Skip to main content

MCP Postgres

io.github.dockndevai/mcp-postgres

v0.1.0Updated Nov 23, 2026stdio · npm

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

Install

Needs 1 secret. Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add mcp-postgres -e 'POSTGRES_URL=<your-postgres-url>' -- npx -y @dockndevai/[email protected]

Configuration

3 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • POSTGRES_URL
    Env var· required· secret
    libpq connection string, e.g. postgresql://user:pass@host:5432/db (or use PGHOST/PGUSER/PGPASSWORD/PGDATABASE).
  • POSTGRES_MODE
    Env var· optional
    Access mode: read-only | read-write | admin.
  • POSTGRES_SCHEMA_ALLOWLIST
    Env var· optional
    Comma-separated schemas the agent may touch (empty = all).

Listed in the official MCP Registry since Nov 23, 2026. Mirrored daily; last checked Nov 26, 2026.