Skip to content
Windsurf

MySQL MCP Server for Windsurf

io.github.musaddiq-dev/mysql-mcp-server

Python MCP server for MySQL database inspection and querying

client:Windsurf transport:stdio runtime:pypi

Install MySQL MCP Server 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": {
    "mysql-mcp-server": {
      "command": "uvx",
      "args": [
        "mdev-mysql-mcp-server"
      ],
      "env": {
        "MYSQL_HOST": "<MYSQL_HOST>",
        "MYSQL_PORT": "<MYSQL_PORT>",
        "MYSQL_USER": "<MYSQL_USER>",
        "MYSQL_PASSWORD": "<MYSQL_PASSWORD>",
        "MYSQL_DATABASE": "<MYSQL_DATABASE>",
        "MYSQL_POOL_SIZE": "<MYSQL_POOL_SIZE>",
        "LOG_LEVEL": "<LOG_LEVEL>",
        "MYSQL_READ_QUERY_LIMIT": "<MYSQL_READ_QUERY_LIMIT>"
      }
    }
  }
}

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

MySQL MCP Server in other clients