Install guide · Cursor
Install MySQL Legacy MCP for Cursor
Cursor reads ~/.cursor/mcp.json. A project can also commit .cursor/mcp.json.
Add to Cursor: MySQL Legacy MCPInstall in VS Code: MySQL Legacy MCPInstall in VS Code Insiders: MySQL Legacy MCP
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
Open ~/.cursor/mcp.json on macOS, %USERPROFILE%\.cursor\mcp.json on Windows, or ~/.cursor/mcp.json on Linux.
Paste the JSON config below.
Replace placeholder secrets, then restart the client if it does not reload on its own.
{ "mcpServers": { "rufflet-mysql-legacy-mcp": { "command": "npx", "args": [ "-y", "mysql-legacy-mcp@0.2.1" ], "env": { "MYSQL_LEGACY_HOST": "", "MYSQL_LEGACY_USER": "", "MYSQL_LEGACY_PASSWORD": "YOUR_MYSQL_LEGACY_PASSWORD", "MYSQL_LEGACY_PORT": "3306", "MYSQL_LEGACY_DATABASE": "", "MYSQL_LEGACY_HIDE_SYSTEM_DATABASES": "true", "MYSQL_LEGACY_QUERY_TIMEOUT": "10000", "MYSQL_LEGACY_MAX_ROWS": "200", "MYSQL_LEGACY_MAX_RESULT_BYTES": "262144", "MYSQL_LEGACY_CONNECT_TIMEOUT": "10000", "MYSQL_LEGACY_POOL_SIZE": "5", "MYSQL_LEGACY_ALLOW_INSERT": "false", "MYSQL_LEGACY_ALLOW_UPDATE": "false", "MYSQL_LEGACY_ALLOW_DELETE": "false", "MYSQL_LEGACY_ALLOW_DDL": "false", "MYSQL_LEGACY_DISABLE_READ_ONLY_TRANSACTIONS": "false" } } }}
Where the config lives
| System | Path |
|---|---|
| macOS | ~/.cursor/mcp.json |
| Windows | %USERPROFILE%\.cursor\mcp.json |
| Linux | ~/.cursor/mcp.json |