Skip to content
Cursor

MySQL MCP Server for Cursor

io.github.ranjian/mcp-mysql

Read-only MySQL MCP server with multi-connection profiles and safe SELECT queries.

client:Cursor transport:stdio runtime:pypi

Install MySQL MCP Server in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

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

{
  "mcpServers": {
    "mcp-mysql": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "jj-mcp-mysql"
      ],
      "env": {
        "MCP_DB_PROFILES_FILE": "<MCP_DB_PROFILES_FILE>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

MySQL MCP Server in other clients