Skip to content
Zed

mcp postgres for Zed

io.github.dockndevai/mcp-postgres

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

client:Zed transport:stdio runtime:npm

Install mcp postgres in Zed

~/.config/zed/settings.json · windows: %APPDATA%\Zed\settings.json

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

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

Merge this into your existing settings object — do not replace the file. Zed docs

mcp postgres in other clients