20 Best PostgreSQL MCP Servers, Compared (November 2026)
The short answer
Most readers should install Postgres MCP (crystaldba/postgres-mcp): it exposes 9 tools with a tool description grade of A, covering index recommendations, explain plans, health checks, top queries and SQL execution, and at 3,457 stars it gained 79 stars per 30 days. Reach for DBHub instead if the same client must also talk to MySQL, SQLite or DuckDB, or if you want the more active repository of the two: it had a commit 0 days ago and 70 commits in the last 12 weeks, though it exposes 2 tools at grade B. If the database is production and the agent must not change it, MCP PostgreSQL Operations is the better answer with 38 read-only tools at grade A, covering locks, WAL, replication, query statistics, bloat, VACUUM and I/O.
Whichever you choose, give it the narrowest access that still works (a read-only credential, a replica, a scratch account), and widen it only once you have watched what your agent actually asks for.
Glama operates the MCP registry these numbers are measured from, and sells MCP hosting and a gateway. No position on this page is paid for. How the registry is built.
Quick picks
- 1pg-aiguide : AI coding agents needing PostgreSQL documentation lookup with version-aware search: it documents a public MCP endpoint for semantic search across PostgreSQL, TimescaleDB, and PostGIS manuals.
- 2Postgres MCP : Production database tuning and maintenance: it provides index-recommendation, explain-plan, health-check, and top-query tools plus SQL execution.
- 3pgEdge Postgres MCP Server : Internal developer workflows against PostgreSQL 14 and later: it gives MCP clients SQL query access to a database plus a natural language agent for forming those queries.
- 4DBHub : PostgreSQL querying from an MCP client when only SQL execution and object search are needed: it exposes execute_sql and search_objects and documents PostgreSQL support.
- 5MCP PostgreSQL Operations : Monitoring a production PostgreSQL instance without altering it: the server exposes 38 read-only tools for locks, WAL, replication, query statistics, bloat, VACUUM, and I/O.
Which one, for your situation
| Your situation | What to use |
|---|---|
| One client must also reach MySQL, SQLite or DuckDB | DBHub exposes execute_sql and search_objects and documents PostgreSQL support, and it had a commit 0 days ago with 70 commits in the last 12 weeks. |
| A production database the agent must never modify | MCP PostgreSQL Operations exposes 38 read-only tools for locks, WAL, replication, query statistics, bloat, VACUUM and I/O, at a tool description grade of A. |
| You want index advice, explain plans and health checks | Postgres MCP provides index-recommendation, explain-plan, health-check and top-query tools plus SQL execution across 9 tools at grade A. |
| You only need SELECTs and schema listing over npm | MCP PostgreSQL Server offers query, list_schemas, list_tables and describe_table across 5 tools at grade A, with 1,365 npm downloads in a typical week. |
| A Prisma Postgres project needing version-matched Prisma docs | Prisma MCP Server installs per-workflow SKILL.md files into Claude Code, Cursor and other agent runtimes through its CLI. |
| Several SQL databases needing per-table permissions and API keys | Faucet gives 8 tools for listing, querying, describing, inserting, updating and deleting tables with per-table role-based access and API keys, at grade A. |
Top MCP servers for PostgreSQL
| Profile | |||||||
|---|---|---|---|---|---|---|---|
| 1 | Community favourite | 1,884 | +20 | 77 | 2 days ago | 82.8 | |
| 2 | Community favourite | 3,457 | +79 | – | 85 days ago | 78.9 | |
| 3 | Steady | 245 | +12 | – | 4 days ago | 73.6 | |
| 4 | Community favourite | 3,803 | +189 | – | today | 70.6 | |
| 5 | Steady | 164 | +4 | – | 6 days ago | 68.9 | |
| 6 | Abandoned but popular | 204 | +4 | 1.7K | 138 days ago | 66.4 | |
| 7 | Community favourite | 47,659 | -44 | – | 2 days ago | 62.8 | |
| 8 | Emerging | 170 | +26 | – | 21 days ago | 59.6 | |
| 9 | Community favourite | 3,030 | -112 | – | today | 57.6 | |
| 10 | Community favourite | 365 | +10 | – | 2 days ago | 57.3 | |
| 11 | Community favourite | 29,390 | +3,359 | – | today | 56.7 | |
| 12 | Steady | 14 | +1 | 204 | today | 56.6 | |
| 13 | Community favourite | 16,820 | +210 | – | 2 days ago | 53.8 | |
| 14 | Abandoned but popular | 943 | +3 | 84 | 236 days ago | 52.0 | |
| 15 | Community favourite | 25 | +3 | 1.4K | 53 days ago | 51.8 | |
| 16 | Community favourite | 3,234 | +29 | 392 | 2 days ago | 51.6 | |
| 17 | Community favourite | 9,375 | +23 | – | 2 days ago | 51.3 | |
| 18 | Community favourite | 5,050 | +23 | – | today | 50.0 | |
| 19 | Emerging | 81 | +44 | – | today | 49.8 | |
| 20 | Steady | 10 | +2 | 1.9K | 9 days ago | 48.8 |
The ranking, with the evidence
- 1timescale/pg-aiguide ↗
pg-aiguide
Community favouriteBest for: AI coding agents needing PostgreSQL documentation lookup with version-aware search: it documents a public MCP endpoint for semantic search across PostgreSQL, TimescaleDB, and PostGIS manuals.
pg-aiguide documents a public MCP server at https://mcp.tigerdata.com/docs for semantic search across PostgreSQL, TimescaleDB, and PostGIS documentation, and it also documents agent skills installed through npx skills and a Claude Code plugin. Before choosing it, note that the documented MCP setup uses TigerData's hosted endpoint, so the server is accessed as a remote service.
Score 82.8: show every number behind it
- Adoption85 / 100 · weight 40%
- GitHub stars82
- npm downloads20downloads show none of the weekday rhythm human traffic has; halved
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance95 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade80
- Commit cadence100
- Momentum59 / 100 · weight 14%
- Stars gained, relative to size40
- Stars gained, absolute53
- npm download trend100
- Tool quality≈68 / 100 · weight 13%
- Tool description quality≈68tool descriptions not yet scored
- Built and inspected by Glamanot measurednever built and inspected by Glama
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integrates100
- Weighted mean of the five
- 82.8
- × relevance: the keyword is dedicated here
- 1.00
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 82.8
- 2crystaldba/postgres-mcp ↗
Postgres MCP
Community favouriteBest for: Production database tuning and maintenance: it provides index-recommendation, explain-plan, health-check, and top-query tools plus SQL execution.
Postgres MCP exposes nine tools for listing schemas and objects, showing object details, explaining queries, analyzing workload and query indexes, analyzing database health, reporting top queries, and executing SQL. Before choosing it, note that it assumes access credentials for the database and either Docker or Python 3.12 or higher.
Score 78.9: show every number behind it
- Adoption88 / 100 · weight 40%
- GitHub stars88
- npm downloadsnot measuredno npm package
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance64 / 100 · weight 24%
- Last commit touching this server88
- Repository maintenance grade30
- Commit cadence40
- Momentum67 / 100 · weight 14%
- Stars gained, relative to size61
- Stars gained, absolute77
- npm download trendnot measuredno download history for the selected registry
- Tool quality76 / 100 · weight 13%
- Tool description quality68
- Built and inspected by Glama100
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integratesnot measurednot published by the vendor it integrates
- Weighted mean of the five
- 78.9
- × relevance: the keyword is dedicated here
- 1.00
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 78.9
Best for: Internal developer workflows against PostgreSQL 14 and later: it gives MCP clients SQL query access to a database plus a natural language agent for forming those queries.
The server documents MCP tools, resources, and prompts for querying PostgreSQL databases, alongside a natural language agent, a web client, a Go chat client, and configuration guides for Claude Desktop and Cursor. It is explicitly not intended for public-facing applications, since it gives LLMs read access to an entire database schema and data, and it ships no npm or PyPI package, so deployment is via Docker or from source.
Score 73.6: show every number behind it
- Adoption60 / 100 · weight 40%
- GitHub stars60
- npm downloadsnot measuredno npm package
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance97 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade100
- Commit cadence85
- Momentum62 / 100 · weight 14%
- Stars gained, relative to size73
- Stars gained, absolute45
- npm download trendnot measuredno download history for the selected registry
- Tool quality≈68 / 100 · weight 13%
- Tool description quality≈68tool descriptions not yet scored
- Built and inspected by Glamanot measurednever built and inspected by Glama
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integrates100
- Weighted mean of the five
- 73.6
- × relevance: the keyword is dedicated here
- 1.00
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 73.6
Best for: PostgreSQL querying from an MCP client when only SQL execution and object search are needed: it exposes execute_sql and search_objects and documents PostgreSQL support.
DBHub exposes execute_sql and search_objects tools to MCP clients and documents connections to PostgreSQL, MySQL, SQL Server, MariaDB, Oracle, and SQLite. The exposed tool descriptions are SQLite-specific, so a PostgreSQL setup relies on the documented DSN and configuration options.
Score 70.6: show every number behind it
- Adoption90 / 100 · weight 40%
- GitHub stars90
- npm downloadsnot measurednpm names no repository for dbhub, so its downloads cannot be attributed
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance100 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade100
- Commit cadence100
- Momentum92 / 100 · weight 14%
- Stars gained, relative to size91
- Stars gained, absolute92
- npm download trendnot measuredno download history for the selected registry
- Tool quality68 / 100 · weight 13%
- Tool description quality60
- Built and inspected by Glama100
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integratesnot measurednot published by the vendor it integrates
- Weighted mean of the five
- 90.5
- × relevance: the keyword is declared here
- 0.78
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 70.6
Best for: Monitoring a production PostgreSQL instance without altering it: the server exposes 38 read-only tools for locks, WAL, replication, query statistics, bloat, VACUUM, and I/O.
MCP PostgreSQL Operations exposes 38 tools for monitoring and analyzing PostgreSQL locks, WAL, replication, schemas, query statistics, database and table sizes, indexes, VACUUM and autovacuum activity, bloat, I/O, and connections. Advanced query tools use pg_stat_statements and optionally pg_stat_monitor, so those extensions need to be installed for that analysis.
Score 68.9: show every number behind it
- Adoption55 / 100 · weight 40%
- GitHub stars55
- npm downloadsnot measuredno npm package
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance95 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade80
- Commit cadence100
- Momentum41 / 100 · weight 14%
- Stars gained, relative to size49
- Stars gained, absolute30
- npm download trendnot measuredno download history for the selected registry
- Tool quality71 / 100 · weight 13%
- Tool description quality63
- Built and inspected by Glama100
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integratesnot measurednot published by the vendor it integrates
- Weighted mean of the five
- 68.9
- × relevance: the keyword is dedicated here
- 1.00
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 68.9
Best for: Administering a PostgreSQL database from an MCP client in admin mode: it exposes schema, index, function, trigger, RLS, user, query, and monitoring tools.
PostgreSQL MCP Server exposes 18 PostgreSQL management tools for schema, functions, triggers, indexes, constraints, row-level security, users, query execution, data import/export, cross-database copying, and monitoring. It starts in readonly mode; enabling mutations, DDL, role administration, filesystem import/export, or arbitrary SQL requires a broader security mode, and destructive operations also require --allow-destructive.
Score 66.4: show every number behind it
- Adoption78 / 100 · weight 40%
- GitHub stars58
- npm downloads69
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance46 / 100 · weight 24%
- Last commit touching this server68
- Repository maintenance grade30
- Commit cadence5
- Momentum52 / 100 · weight 14%
- Stars gained, relative to size41
- Stars gained, absolute27
- npm download trend100
- Tool quality63 / 100 · weight 13%
- Tool description quality55
- Built and inspected by Glama100
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integratesnot measurednot published by the vendor it integrates
- Weighted mean of the five
- 66.4
- × relevance: the keyword is dedicated here
- 1.00
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 66.4
Best for: Prisma Postgres projects whose agent should follow version-matched Prisma docs: the CLI installs per-workflow SKILL.md files into Claude Code, Cursor and other agent runtimes.
The repository is Prisma's ORM for PostgreSQL and MongoDB, and its README documents a CLI (
prisma orm init,prisma skills sync) that writes a prisma-8.md primer plus one SKILL.md per workflow into the directories Claude Code, Cursor, Copilot Agent and Devin read. The README documents no MCP tool list, so what the server actually exposes has to be confirmed in the repository, and Prisma 8 is a release candidate that requires Node.js 24 or newer.Score 62.8: show every number behind it
- Adoption100 / 100 · weight 40%
- GitHub stars100
- npm downloadsnot measurednpm names no repository for dev-env, so its downloads cannot be attributed
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance95 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade80
- Commit cadence100
- Momentum0 / 100 · weight 14%
- Stars gained, relative to size0
- Stars gained, absolute0
- npm download trendnot measuredno download history for the selected registry
- Tool quality≈68 / 100 · weight 13%
- Tool description quality≈68tool descriptions not yet scored
- Built and inspected by Glamanot measurednever built and inspected by Glama
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integrates100
- Weighted mean of the five
- 80.5
- × relevance: the keyword is declared here
- 0.78
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 62.8
Best for: Governed read/write access across multiple SQL databases: 8 tools for listing, querying, describing, inserting, updating and deleting tables, with per-table role-based access and API keys.
Faucet exposes 8 MCP tools that list services and tables, describe table schemas, query records with filtering and pagination, run raw SQL on services where it is enabled, and insert, update or delete rows. It is not installable as an npm or PyPI package, so an agent can only reach PostgreSQL after someone runs the single Go binary (or its Docker image) and assigns permissions through its roles and API keys.
Score 59.6: show every number behind it
- Adoption56 / 100 · weight 40%
- GitHub stars56
- npm downloadsnot measuredno npm package
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance92 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade80
- Commit cadence85
- Momentum83 / 100 · weight 14%
- Stars gained, relative to size100
- Stars gained, absolute58
- npm download trendnot measuredno download history for the selected registry
- Tool quality88 / 100 · weight 13%
- Tool description quality80
- Built and inspected by Glama100
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integratesnot measurednot published by the vendor it integrates
- Weighted mean of the five
- 76.4
- × relevance: the keyword is declared here
- 0.78
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 59.6
- 9butterbase-ai/butterbase ↗
butterbase
Community favouriteBest for: Teams self-hosting Butterbase that want an MCP endpoint at /mcp for agents to manage Postgres with RLS, auth, functions, realtime, KV, AI gateway, and RAG.
The README documents a built-in MCP server reachable over HTTP at /mcp on a self-hosted Butterbase instance, with backend surfaces for Postgres, RLS, auth, storage, functions, realtime, KV, AI gateway, and RAG; the tool list has not been inspected. Before choosing it, note that the HTTP /mcp route is documented for a self-hosted Butterbase instance, and the README's stdio npx path has no published npm package as measured.
Score 57.6: show every number behind it
- Adoption87 / 100 · weight 40%
- GitHub stars87
- npm downloadsnot measuredno npm package
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance89 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade55
- Commit cadence100
- Momentum0 / 100 · weight 14%
- Stars gained, relative to size0
- Stars gained, absolute0
- npm download trendnot measuredno download history for the selected registry
- Tool quality≈68 / 100 · weight 13%
- Tool description quality≈68tool descriptions not yet scored
- Built and inspected by Glamanot measurednever built and inspected by Glama
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integrates100
- Weighted mean of the five
- 73.8
- × relevance: the keyword is declared here
- 0.78
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 57.6
Best for: Managing PostgreSQL from an AI agent inside VS Code or Cursor: DBCode registers its MCP tools automatically and lets agents use existing database connections.
DBCode is a VS Code extension that can run an MCP server, exposing existing database connections, schemas, and query execution to AI agents. It depends on the VS Code extension and existing DBCode connections, with AI permissions controlled per connection.
Score 57.3: show every number behind it
- Adoption64 / 100 · weight 40%
- GitHub stars64
- npm downloadsnot measurednpm names no repository for dbcode, so its downloads cannot be attributed
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance95 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade80
- Commit cadence100
- Momentum52 / 100 · weight 14%
- Stars gained, relative to size59
- Stars gained, absolute43
- npm download trendnot measuredno download history for the selected registry
- Tool quality≈68 / 100 · weight 13%
- Tool description quality≈68tool descriptions not yet scored
- Built and inspected by Glamanot measurednever built and inspected by Glama
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integratesnot measurednot published by the vendor it integrates
- Weighted mean of the five
- 73.5
- × relevance: the keyword is declared here
- 0.78
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 57.3
Best for: Multi-database environments needing one MCP server: it documents natural language queries and database management for 70+ databases through MCP.
dbx is an MCP server for a database manager that supports 70+ databases, and its README documents desktop, Docker, CLI, built-in AI assistant, and MCP Server interfaces with advertised natural language queries and database management through MCP. Its tool list has not been inspected, so the specific MCP operations available must be confirmed before installation.
Score 56.7: show every number behind it
- Adoption100 / 100 · weight 40%
- GitHub stars100
- npm downloadsnot measurednpm publishes dbx from samt/node-dbx
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance95 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade80
- Commit cadence100
- Momentum100 / 100 · weight 14%
- Stars gained, relative to size100
- Stars gained, absolute100
- npm download trendnot measuredno download history for the selected registry
- Tool quality≈68 / 100 · weight 13%
- Tool description quality≈68tool descriptions not yet scored
- Built and inspected by Glamanot measurednever built and inspected by Glama
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integratesnot measurednot published by the vendor it integrates
- Weighted mean of the five
- 94.5
- × relevance: the keyword is tagged here
- 0.60
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 56.7
Best for: Read-only inspection and querying of a PostgreSQL database: it defaults to read-only access and validates user SQL through an AST allowlist before execution.
MCPg is a Model Context Protocol server for PostgreSQL that exposes 191 tools for catalog introspection, query execution, schema inspection, and live operational checks such as locks and WAL readiness, over stdio and HTTP/SSE transports. Before choosing it, note that the WAL inspection tools require the pg_walinspect extension, and read-only access is the default with DDL and other capabilities off until opted in.
Score 56.6: show every number behind it
- Adoption54 / 100 · weight 40%
- GitHub stars29
- PyPI downloads49
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance100 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade100
- Commit cadence100
- Momentum28 / 100 · weight 14%
- Stars gained, relative to size37
- Stars gained, absolute15
- PyPI download trendnot measuredno download history for the selected registry
- Tool quality63 / 100 · weight 13%
- Tool description quality55
- Built and inspected by Glama100
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integratesnot measurednot published by the vendor it integrates
- Weighted mean of the five
- 66.6
- × relevance: the keyword is dedicated here
- 1.00
- × continuity: actively changing
- 1.00
- × evidence: modest but real audience
- 0.85
- Composite score
- 56.6
Best for: Connecting an MCP-compatible IDE to PostgreSQL for schema exploration and SQL queries: the README documents a prebuilt postgres mode with list_tables and execute_sql.
The README documents an MCP server that can run in a prebuilt PostgreSQL mode to provide tools such as list_tables and execute_sql, and it also describes a custom tools framework for defining structured queries. Setup requires adding the server to an MCP client configuration and setting the appropriate database connection environment variables before the prebuilt PostgreSQL tools can connect.
Score 53.8: show every number behind it
- Adoption100 / 100 · weight 40%
- GitHub stars100
- npm downloadsnot measuredno npm package
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance95 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade80
- Commit cadence100
- Momentum65 / 100 · weight 14%
- Stars gained, relative to size46
- Stars gained, absolute94
- npm download trendnot measuredno download history for the selected registry
- Tool quality≈68 / 100 · weight 13%
- Tool description quality≈68tool descriptions not yet scored
- Built and inspected by Glamanot measurednever built and inspected by Glama
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integratesnot measurednot published by the vendor it integrates
- Weighted mean of the five
- 89.7
- × relevance: the keyword is tagged here
- 0.60
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 53.8
Best for: Read-only natural-language querying and schema analysis across PostgreSQL, MySQL, or Redis: it starts read-only by default and documents MCP and HTTP interfaces.
Universal DB MCP documents a database connector for AI assistants, with MCP stdio, MCP SSE, MCP Streamable HTTP, and REST API interfaces for natural-language querying and schema analysis, plus a default read-only mode. Before choosing it, note that it requires Node.js 20 or newer, and because its exposed tool list has not been inspected, verify the available operations.
Score 52.0: show every number behind it
- Adoption81 / 100 · weight 40%
- GitHub stars74
- npm downloads41
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance46 / 100 · weight 24%
- Last commit touching this server68
- Repository maintenance grade30
- Commit cadence5
- Momentum40 / 100 · weight 14%
- Stars gained, relative to size23
- Stars gained, absolute26
- npm download trend89
- Tool quality≈68 / 100 · weight 13%
- Tool description quality≈68tool descriptions not yet scored
- Built and inspected by Glamanot measurednever built and inspected by Glama
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integratesnot measurednot published by the vendor it integrates
- Weighted mean of the five
- 66.7
- × relevance: the keyword is declared here
- 0.78
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 52.0
Best for: Read-only schema exploration and ad hoc SELECTs against local, Docker, RDS, Neon, or Supabase PostgreSQL: its query, list_schemas, list_tables, and describe_table tools cover inspection.
MCP PostgreSQL Server connects over stdio using DATABASE_URL or individual PG_* variables and exposes five tools: query, execute, list_schemas, list_tables, and describe_table. Before choosing it, note that execute refuses writes unless PG_ALLOW_WRITE is set to true, so the default configuration is read-only.
Score 51.8: show every number behind it
- Adoption66 / 100 · weight 40%
- GitHub stars35
- npm downloads60downloads capped: not corroborated by repository audience
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance85 / 100 · weight 24%
- Last commit touching this server88
- Repository maintenance grade80
- Commit cadence85
- Momentum41 / 100 · weight 14%
- Stars gained, relative to size49
- Stars gained, absolute22
- npm download trend50
- Tool quality96 / 100 · weight 13%
- Tool description quality88
- Built and inspected by Glama100
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integratesnot measurednot published by the vendor it integrates
- Weighted mean of the five
- 74.0
- × relevance: the keyword is dedicated here
- 1.00
- × continuity: actively changing
- 1.00
- × evidence: small audience
- 0.70
- Composite score
- 51.8
- 16dosco/graphjin ↗
GraphJin
Community favouriteBest for: PostgreSQL teams wanting a governed natural-language query layer: GraphJin's built-in agent handles discovery, query validation, and evidence-backed answers through MCP.
GraphJin is a GraphQL-to-database compiler and runtime that exposes databases and other systems through GraphQL and an MCP endpoint, documenting catalog search, GraphQL help, security/runtime checks, and durable watches. The built-in agent requires a model API key in ./.env, such as OPENAI_API_KEY, ANTHROPIC_API_KEY, or GOOGLE_APIKEY, so plan for that dependency before relying on natural-language answers.
Score 51.6: show every number behind it
- Adoption92 / 100 · weight 40%
- GitHub stars88
- npm downloads28downloads show none of the weekday rhythm human traffic has; halved
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance100 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade100
- Commit cadence100
- Momentum53 / 100 · weight 14%
- Stars gained, relative to size38
- Stars gained, absolute59
- npm download trend72
- Tool quality≈68 / 100 · weight 13%
- Tool description quality≈68tool descriptions not yet scored
- Built and inspected by Glamanot measurednever built and inspected by Glama
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integrates100
- Weighted mean of the five
- 86.0
- × relevance: the keyword is tagged here
- 0.60
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 51.6
Best for: For Nhost projects with the CLI installed: it reads GraphQL schemas, runs allowed GraphQL queries and mutations, and manages local metadata, permissions, and migrations.
The Nhost CLI ships an MCP server with six tools for retrieving an Nhost Cloud GraphQL schema, executing allowed GraphQL queries and mutations, managing GraphQL management endpoints, and searching or reading Nhost documentation. It assumes the Nhost CLI and an Nhost project rather than a standalone PostgreSQL connection, with database access exposed through GraphQL and Hasura management endpoints.
Score 51.3: show every number behind it
- Adoption99 / 100 · weight 40%
- GitHub stars99
- npm downloadsnot measuredno npm package
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance95 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade80
- Commit cadence100
- Momentum35 / 100 · weight 14%
- Stars gained, relative to size20
- Stars gained, absolute56
- npm download trendnot measuredno download history for the selected registry
- Tool quality71 / 100 · weight 13%
- Tool description quality63
- Built and inspected by Glama100
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integrates100
- Weighted mean of the five
- 85.5
- × relevance: the keyword is tagged here
- 0.60
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 51.3
Best for: Managing hosted WhoDB platform resources (datasets, ontologies, apps) alongside PostgreSQL and other databases: it exposes 156 tools, mostly whodb_platform_* calls plus whodb_mcp_setup.
WhoDB CLI pairs an interactive terminal UI and programmatic commands with an MCP server whose 156 tools are dominated by whodb_platform_* calls for datasets, ontologies, transforms, apps, AI providers, and project bundles, alongside whodb_mcp_setup for in-band guidance, and it connects to sources that include PostgreSQL, MySQL, SQLite, MongoDB, and Redis. Before choosing it, note that no npm package is published and no PyPI package is attributed, so installation runs through the Docker image, Snap, a desktop app, or the CLI instructions rather than a package-manager install.
Score 50.0: show every number behind it
- Adoption93 / 100 · weight 40%
- GitHub stars93
- npm downloadsnot measuredno npm package
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance100 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade100
- Commit cadence100
- Momentum38 / 100 · weight 14%
- Stars gained, relative to size27
- Stars gained, absolute56
- npm download trendnot measuredno download history for the selected registry
- Tool quality61 / 100 · weight 13%
- Tool description quality53
- Built and inspected by Glama100
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integrates100
- Weighted mean of the five
- 83.3
- × relevance: the keyword is tagged here
- 0.60
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 50.0
Best for: Natural-language analytics over an existing production database: db_read answers questions read-only, and writes stay refused unless the identity holds a write grant.
It exposes three tools: db_read answers a natural-language question read-only and returns the answer, the SQL run and an auditable trace; get_schema lists the tables the caller may query; db_write executes a single INSERT, UPDATE or DELETE. Writes are refused by default and run only when the identity holds a write grant, and the server runs inside your own environment on a model you choose, hosted or local, with each proposed query checked for read-only shape, permissions, dialect and query plan before any rows are read.
Score 49.8: show every number behind it
- Adoption48 / 100 · weight 40%
- GitHub stars48
- npm downloadsnot measuredno npm package
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance95 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade80
- Commit cadence100
- Momentum87 / 100 · weight 14%
- Stars gained, relative to size100
- Stars gained, absolute67
- npm download trendnot measuredno download history for the selected registry
- Tool quality93 / 100 · weight 13%
- Tool description quality85
- Built and inspected by Glama100
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integratesnot measurednot published by the vendor it integrates
- Weighted mean of the five
- 75.1
- × relevance: the keyword is declared here
- 0.78
- × continuity: actively changing
- 1.00
- × evidence: modest but real audience
- 0.85
- Composite score
- 49.8
- 20
Best for: Read-only querying and diagnosis of a PostgreSQL database from Claude Code or Cursor: it provides SQL execution, schema introspection, EXPLAIN, health checks, and index advice.
The server exposes 23 tools for querying and managing PostgreSQL from MCP clients, covering SQL execution, schema and object introspection, EXPLAIN plans, health and performance diagnostics, lock inspection, roles and privileges, and replication status. Before choosing it, note that pg_top_queries requires the pg_stat_statements extension to be installed and enabled.
Score 48.8: show every number behind it
- Adoption55 / 100 · weight 40%
- GitHub stars26
- npm downloads51downloads capped: not corroborated by repository audience
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance95 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade80
- Commit cadence100
- Momentum34 / 100 · weight 14%
- Stars gained, relative to size50
- Stars gained, absolute21
- npm download trend21
- Tool quality85 / 100 · weight 13%
- Tool description quality77
- Built and inspected by Glama100
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integratesnot measurednot published by the vendor it integrates
- Weighted mean of the five
- 69.7
- × relevance: the keyword is dedicated here
- 1.00
- × continuity: actively changing
- 1.00
- × evidence: small audience
- 0.70
- Composite score
- 48.8
Questions people ask
Postgres MCP or DBHub for a single PostgreSQL database?
Postgres MCP gives an agent 9 tools with a tool description grade of A, including index recommendations, explain plans, health checks and top queries, where DBHub exposes 2 tools at grade B. DBHub is the more active repository: its last commit was 0 days ago with 70 commits in the last 12 weeks, against 85 days ago and 1 commit in the last 12 weeks for Postgres MCP. Pick Postgres MCP when tuning and diagnosis are the point, and DBHub when you want steady commits or more than one database engine from the same client.
Can I point MCP PostgreSQL Operations at a production database?
That is what it is built for: it exposes 38 read-only tools for locks, WAL, replication, query statistics, bloat, VACUUM and I/O, at a tool description grade of A. It had a commit 6 days ago and 34 commits in the last 12 weeks. It is a monitoring and analysis server, so it is not the choice when the agent also needs to change data or run arbitrary writes.
What does DBCode need before an agent can use it?
DBCode is a Visual Studio Code extension first, and running an MCP server is an option it offers, so the extension has to be installed in VS Code or Cursor before anything else. It registers its MCP tools automatically and lets agents use the database connections you already have in it, so those connections must exist in DBCode. It had a commit 2 days ago and 43 commits in the last 12 weeks.
Which PostgreSQL servers are popular but no longer maintained?
PostgreSQL MCP Server (HenkDz/postgresql-mcp-server) and Universal DB MCP both carry the Abandoned but popular label. PostgreSQL MCP Server had its last commit 138 days ago with 0 commits in the last 12 weeks, and Universal DB MCP 236 days ago with 0 commits in the last 12 weeks, a gap that matters because the first of them exposes schema, index, function, trigger, RLS, user, query and monitoring tools in admin mode. Both are still easy to install: @henkey/postgres-mcp-server saw 1,715 npm downloads in a typical week and universal-db-mcp saw 84.
MCPg exposes 191 tools. Is it a good fit for read-only work?
MCPg defaults to read-only access and validates user SQL through an AST allowlist before execution, and it exposes 191 tools at a tool description grade of B. It had a commit 0 days ago with 66 commits in the last 12 weeks, and its PyPI package saw 204 downloads in a typical week. If all you need is queries, schema listing and table descriptions, MCP PostgreSQL Server does that with 5 tools at grade A.
Other comparisons
- Best Figma MCP servers
- Best Obsidian MCP servers
- Best YouTube MCP servers
- Best Jira MCP servers
- Best MySQL MCP servers
- Best GitHub MCP servers
- Best Slack MCP servers
- Best Notion MCP servers
- Best Linear MCP servers
- Best Discord MCP servers
- Best MongoDB MCP servers
- Best CRM MCP servers
- Best Payments MCP servers
- Best Ecommerce MCP servers
- Best Social Media MCP servers
- Best Browser Automation MCP servers
- Best CMS MCP servers
- Best Email MCP servers
- Best PDF MCP servers
- Best Kubernetes MCP servers
- Best Docker MCP servers
- Best AWS MCP servers
- Best Spreadsheets MCP servers
- Best SEO MCP servers
- Best Web Search MCP servers
- Best Web Scraping MCP servers
- Best Vector Database MCP servers
- Best Code Execution MCP servers
- Best Calendar MCP servers
- Best Observability MCP servers
- Best Image Generation MCP servers
- Best Speech & Transcription MCP servers
- Best Maps MCP servers
- Best Travel MCP servers
- Best Stock Market MCP servers
- Best Web Analytics MCP servers
- Best Memory MCP servers
- Best Documentation MCP servers
- Best Security MCP servers