Skip to content
Claude Desktop

mcp postgres for Claude Desktop

io.github.dockndevai/mcp-postgres

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

client:Claude Desktop transport:stdio runtime:npm

Install mcp postgres in Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json · windows: %APPDATA%\Claude\claude_desktop_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>"
      }
    }
  }
}

Settings → Developer → Edit Config opens this file. Restart the app after saving. Claude Desktop docs

mcp postgres in other clients