Skip to main content
CC
CULT OF CLAUDE
CC
CULT OF CLAUDE

Not affiliated with Anthropic. An independent community resource.

PostgreSQL MCP Server GitHub repository preview
Database Editor's Pick Archived (no security updates) Medium Setup

PostgreSQL MCP Server

Query Postgres databases directly from Claude -- read-only by default, which is the right call.

Read-only database access with schema inspection for PostgreSQL databases. Part of the archived reference servers.

Anthropic avatar
By Anthropic 81.1k stars Verified 2026-03-15

Install

terminal
$ npx -y @modelcontextprotocol/server-postgres postgresql://localhost/mydb

Who It's For

Developers who want Claude to explore database schemas, run queries, and help with data analysis.

Compatibility

Claude CodeClaude DesktopCursor

Pros

  • Read-only default (safe)
  • Schema introspection
  • Connection string config
  • Well-tested

Cons

  • Archived -- no security updates
  • Read-only limits use cases
  • Connection string management

Alternatives

Links