Skip to content
Claude Code

mcp postgres for Claude Code

io.github.dockndevai/mcp-postgres

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

client:Claude Code transport:stdio runtime:npm

Install mcp postgres in Claude Code

run in your project directory

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

claude mcp add mcp-postgres -e POSTGRES_URL=<POSTGRES_URL> -e POSTGRES_MODE=<POSTGRES_MODE> -e POSTGRES_SCHEMA_ALLOWLIST=<POSTGRES_SCHEMA_ALLOWLIST> -- npx -y @dockndevai/mcp-postgres

Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs

mcp postgres in other clients