# Devart MCP Server for MySQL (ADO.NET)

This MCP server lets Claude Code read and write MySQL data through Devart dotConnect ADO.NET when database access from an AI client is needed.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed
- Author: devart-ai-connectivity
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/devart-ai-connectivity/devart-mcp-server-mysql
- Updated: 2026-09-03
- HTML: https://affpapa.org/en/nevibecode/mcp/devart-mcp-server-for-mysql-adonet

## What it does

Devart MCP Server for MySQL connects an AI client to a MySQL database through a server running in your environment. The client sends a natural-language request, the server turns it into a structured query, runs it through Devart dotConnect ADO.NET, and returns the result. Both data retrieval and writes are supported.

A manual build requires the .NET 8 SDK. The ADO.NET project is `Devart.AI.McpServer.AdoNet.MySql.csproj`; its Devart dotConnect for MySQL package is restored through NuGet during the build. Database settings live in `mcpserver.json`, where an ADO.NET connection uses `ConnectionString` and the transport can be `stdio` or `http`.

The server will not build without the .NET 8 SDK. With `stdio`, the AI client starts it automatically; with `http`, you must start the server yourself and provide `HttpPort`.

## Requirements
- Environment variables: `DEVART_MCP_MYSQL_CONNECTION` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Install**
- The MCP registry has no launch command for it: see the repository README

## When to use it
- read MySQL rows through natural-language requests
- build a report from database records
- write changes to MySQL tables from an AI client
- inspect database contents before analysis

## Example prompts
- Show the latest rows from the `orders` table in MySQL and group them by status.
- Find customers with overdue orders and save the result to the database.
- Inspect the `my_mysql` schema and explain the relationships between its tables.

## Similar
- [Devart MCP Server for Salesforce (ADO.NET)](https://affpapa.org/en/nevibecode/mcp/devart-mcp-server-for-salesforce-adonet.md) — MCP server
- [azure-resource-manager-mysql-dotnet](https://affpapa.org/en/nevibecode/skills/azure-resource-manager-mysql-dotnet.md) — skill · 1 install
- [mysql-patterns](https://affpapa.org/en/nevibecode/skills/mysql-patterns.md) — skill · 4700 installs
- [mysql-best-practices](https://affpapa.org/en/nevibecode/skills/mysql-best-practices.md) — skill · 2700 installs
- [mysql](https://affpapa.org/en/nevibecode/skills/pluginagentmarketplace-mysql.md) — skill · 506 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
