MySQL MCP Server for VS Code
io.github.ranjian/mcp-mysql
Read-only MySQL MCP server with multi-connection profiles and safe SELECT queries.
client:VS Code
transport:stdio
runtime:pypi
Install MySQL MCP Server in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "mcp-db-profiles-file",
"description": "MCP_DB_PROFILES_FILE",
"password": true
}
],
"servers": {
"mcp-mysql": {
"type": "stdio",
"command": "uvx",
"args": [
"jj-mcp-mysql"
],
"env": {
"MCP_DB_PROFILES_FILE": "${input:mcp-db-profiles-file}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs