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_sqlit lists tools for query plans and index advice:explain_query,get_top_queries,analyze_workload_indexes,analyze_query_indexesandanalyze_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 withuvinstead of a single packaged command. - For the simplest setup, look at PostgreSQL by antonorlov. It installs with one
npxcommand, 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 server | Maintainer | Official server | Tools exposed | Setup documented for | Licence | Last commit | GitHub stars |
|---|---|---|---|---|---|---|---|
| MCP-PostgreSQL-Ops | call518 | — | 37 | Claude Desktop | MIT | 14 Nov 2026 | 164 |
| postgres-mcp | crystaldba | — | 9 | Claude Desktop, Cursor, Windsurf, Cline | MIT | 17 Aug 2026 | 3,476 |
| PostgreSQL | antonorlov | — | query, list_schemas, list_tables, describe_table, execute, connect_db | Claude Code, Cursor, VS Code, Windsurf, Codex | MIT | 16 Sept 2026 | 25 |
A dash means we have no sourced value. Each value's source is on the server's own page.
MCP-PostgreSQL-Ops
Give AI assistants full PostgreSQL DBA superpowers — 30+ tools for performance analysis, bloat detection, lock/deadlock monitoring, autovacuum & schema inspection. No extensions required. PG 12-18.
postgres-mcp
Postgres MCP Pro provides configurable read/write access and performance analysis for you and your AI agents.
PostgreSQL
MCP server for PostgreSQL: local, Docker, RDS, Neon, Supabase, or behind an SSH bastion.