Skip to content
Claude Code

postgres for Claude Code

io.github.ofershap/postgres

PostgreSQL MCP — query databases, inspect schemas, explain queries.

client:Claude Code transport:stdio runtime:npm

Install postgres in Claude Code

run in your project directory

claude mcp add postgres -- npx -y mcp-pg-server

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

postgres in other clients