mcp postgres for VS Code
io.github.dockndevai/mcp-postgres
PostgreSQL schema exploration, read-only SQL & governed changes for AI agents.
client:VS Code
transport:stdio
runtime:npm
Install mcp postgres in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "postgres-url",
"description": "POSTGRES_URL",
"password": true
},
{
"type": "promptString",
"id": "postgres-mode",
"description": "POSTGRES_MODE",
"password": true
},
{
"type": "promptString",
"id": "postgres-schema-allowlist",
"description": "POSTGRES_SCHEMA_ALLOWLIST",
"password": true
}
],
"servers": {
"mcp-postgres": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-postgres"
],
"env": {
"POSTGRES_URL": "${input:postgres-url}",
"POSTGRES_MODE": "${input:postgres-mode}",
"POSTGRES_SCHEMA_ALLOWLIST": "${input:postgres-schema-allowlist}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs