Install guide · VS Code
Install MySQL Legacy MCP for VS Code
Workspace file .vscode/mcp.json uses the servers key. User settings can hold the same shape.
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 .vscode/mcp.json on macOS, .vscode/mcp.json on Windows, or .vscode/mcp.json on Linux.
Paste the JSON config below.
Replace placeholder secrets, then restart the client if it does not reload on its own.
{ "servers": { "rufflet-mysql-legacy-mcp": { "type": "stdio", "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 | .vscode/mcp.json |
| Windows | .vscode/mcp.json |
| Linux | .vscode/mcp.json |