Postgres MCP server
Query, analyze, and tune your Postgres database from your agent.
Postgres MCP Pro (by Crystal DBA) is a popular open-source MCP server for Postgres that goes beyond raw SQL: an agent can run queries with configurable safety modes, analyze database health (indexes, cache, vacuum, replication), tune indexes with real algorithms, and inspect query plans with hypothetical-index simulation. Connect it with a standard Postgres URI.
Who it’s for: Developers and DBAs who want an agent that not only queries Postgres but helps optimize and maintain it.
Local MCP server — runs on your machine via the command below.
What is Postgres MCP?
Postgres MCP Pro (by Crystal DBA) is a popular open-source MCP server for Postgres that goes beyond raw SQL: an agent can run queries with configurable safety modes, analyze database health (indexes, cache, vacuum, replication), tune indexes with real algorithms, and inspect query plans with hypothetical-index simulation. Connect it with a standard Postgres URI.
Who is Postgres for?
Developers and DBAs who want an agent that not only queries Postgres but helps optimize and maintain it.
How do I connect Postgres to my agent?
Postgres runs locally over stdio. Add it to your MCP client config: claude mcp add postgres -e DATABASE_URI=postgresql://user:pass@host:5432/db -- uvx postgres-mcp.
Does Postgres require authentication?
Yes — Postgres authenticates with Connection URI. You connect your own account, and it acts only within the scopes you grant.
How much does Postgres cost?
Free · open source.
Is Postgres verified on MCPExplorer?
Yes — Postgres is hand-checked and featured on MCPExplorer. We pull its real tool surface, required scopes, and risk labels from the live index so you can see exactly what it does before connecting.
Other MCP servers worth a look in Database.
Postgres is featured on MCPExplorer. Add this badge to Postgres’s site or README — it links back to this page.
HTML — for your website
Markdown — for a README
Set up Postgres and put it to work — Free · open source. Or see its full verified profile.