Skip to main content
Official

Postgres

Connects to a Postgres database in read-only mode. The model can introspect the schema and run SELECT queries, which makes it a safe way to let an assistant answer questions about your data.

Install

Run this to register the server with Claude Code. The same npx invocation works in other MCP clients.

install
claude mcp add postgres -- npx -y @modelcontextprotocol/server-postgres postgresql://user:pass@host/db