Skip to content
Claude Desktop

MySQL for Claude Desktop

io.github.burakdirin/mysqldb-mcp-server

Query MySQL databases from AI assistants, read-only by default with opt-in writes.

client:Claude Desktop transport:stdio runtime:pypi

Install MySQL in Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json · windows: %APPDATA%\Claude\claude_desktop_config.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "mysqldb-mcp-server": {
      "command": "uvx",
      "args": [
        "mysqldb-mcp-server"
      ],
      "env": {
        "MYSQL_HOST": "<MYSQL_HOST>",
        "MYSQL_PORT": "<MYSQL_PORT>",
        "MYSQL_USER": "<MYSQL_USER>",
        "MYSQL_PASSWORD": "<MYSQL_PASSWORD>",
        "MYSQL_DATABASE": "<MYSQL_DATABASE>",
        "MYSQL_SSL_MODE": "<MYSQL_SSL_MODE>",
        "MYSQL_SSL_CA": "<MYSQL_SSL_CA>",
        "MYSQL_ALLOW_WRITE": "<MYSQL_ALLOW_WRITE>",
        "MYSQL_QUERY_TIMEOUT": "<MYSQL_QUERY_TIMEOUT>",
        "MYSQL_MAX_ROWS": "<MYSQL_MAX_ROWS>"
      }
    }
  }
}

Settings → Developer → Edit Config opens this file. Restart the app after saving. Claude Desktop docs

MySQL in other clients