Skip to content
Windsurf

MySQL for Windsurf

io.github.burakdirin/mysqldb-mcp-server

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

client:Windsurf transport:stdio runtime:pypi

Install MySQL in Windsurf

~/.codeium/windsurf/mcp_config.json · windows: %USERPROFILE%\.codeium\windsurf\mcp_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>"
      }
    }
  }
}

Global only — Windsurf has no per-project MCP config. Refresh Cascade after saving. Windsurf docs

MySQL in other clients