Skip to content
Zed

postgres for Zed

io.github.marcelo-ochoa/postgres

MCP server for interacting with PostgreSQL databases

client:Zed transport:stdio runtime:npm

Install 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": {
    "postgres": {
      "command": "npx",
      "args": [
        "-y",
        "@marcelo-ochoa/server-postgres"
      ],
      "env": {
        "POSTGRES_USER": "<POSTGRES_USER>",
        "POSTGRES_PASSWORD": "<POSTGRES_PASSWORD>"
      }
    }
  }
}

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

postgres in other clients