Skip to content
Windsurf

mcp postgres for Windsurf

io.github.dockndevai/mcp-postgres

PostgreSQL schema exploration, read-only SQL & governed changes for AI agents.

client:Windsurf transport:stdio runtime:npm

Install mcp postgres in Windsurf

~/.codeium/windsurf/mcp_config.json · windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "mcp-postgres": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-postgres"
      ],
      "env": {
        "POSTGRES_URL": "<POSTGRES_URL>",
        "POSTGRES_MODE": "<POSTGRES_MODE>",
        "POSTGRES_SCHEMA_ALLOWLIST": "<POSTGRES_SCHEMA_ALLOWLIST>"
      }
    }
  }
}

Global only — Windsurf has no per-project MCP config. Refresh Cascade after saving. Windsurf docs

mcp postgres in other clients