Skip to content
VS Code

SQL MCP Server for VS Code

io.github.nethinwei/sql-mcp-server

Controlled SQL access gateway with policy, cost limits, tenant isolation, and safe tools.

client:VS Code transport:stdio runtime:oci

Install SQL MCP Server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "database-dsn",
      "description": "DATABASE_DSN",
      "password": true
    }
  ],
  "servers": {
    "sql-mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/nethinwei/sql-mcp-server:0.1.10"
      ],
      "env": {
        "DATABASE_DSN": "${input:database-dsn}"
      }
    }
  }
}

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

SQL MCP Server in other clients