Skip to content

Postgres MCP servers

3 MCP servers in Postgres. Facts are checked against each project's own sources.

Which one to pick

The three Postgres servers listed here do different jobs, so the choice depends on what you want an assistant to do with the database.

  • To query a database and tune it, look at postgres-mcp (published as Postgres MCP Pro). Next to execute_sql it lists tools for query plans and index advice: explain_query, get_top_queries, analyze_workload_indexes, analyze_query_indexes and analyze_db_health. It has the most GitHub stars of the three. Its README sets it up through a Docker image, and the example config uses --access-mode=unrestricted, so check the access mode before pointing it at a production database. When we checked, its last commit was three months old.
  • To monitor a database without changing it, look at MCP-PostgreSQL-Ops. All 37 tools in its README start with get_ and cover areas such as bloat, autovacuum, locks, WAL and replication status. It was the most recently updated of the three. Its README documents setup for Claude Desktop only, and its config runs a Python module with uv instead of a single packaged command.
  • For the simplest setup, look at PostgreSQL by antonorlov. It installs with one npx command, has six tools (query, execute, list_schemas, list_tables, describe_table, connect_db) and its README documents setup for Claude Code, Cursor, VS Code, Windsurf and Codex. It has far fewer stars than the other two.

All three are MIT licensed.

Based on the facts listed on each server's page, last checked 15 Nov 2026. We have not installed or run these servers. How we verify

Compare

MCP serverMaintainerOfficial serverTools exposedSetup documented forLicenceLast commitGitHub stars
MCP-PostgreSQL-Opscall518—37Claude DesktopMIT14 Nov 2026164
postgres-mcpcrystaldba—9Claude Desktop, Cursor, Windsurf, ClineMIT17 Aug 20263,476
PostgreSQLantonorlov—query, list_schemas, list_tables, describe_table, execute, connect_dbClaude Code, Cursor, VS Code, Windsurf, CodexMIT16 Sept 202625

A dash means we have no sourced value. Each value's source is on the server's own page.