Skip to content
VS Code

MySQL (security-first) for VS Code

io.github.kurok1/mcp-server-mysql

Security-first MySQL MCP server with AST validation, table whitelist, schema resources, and audit.

client:VS Code transport:stdio runtime:oci

Install MySQL (security-first) in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "mysql-mcp-password",
      "description": "MYSQL_MCP_PASSWORD",
      "password": true
    }
  ],
  "servers": {
    "mcp-server-mysql": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/kurok1/mcp-server-mysql:2.1.0"
      ],
      "env": {
        "MYSQL_MCP_PASSWORD": "${input:mysql-mcp-password}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

MySQL (security-first) in other clients