20 Best PostgreSQL MCP Servers, Compared (August 2026)
The short answer
Most readers should reach for Postgres MCP (crystaldba/postgres-mcp). It is a community-favourite server built for tuning and diagnosing PostgreSQL performance, with EXPLAIN plans, index recommendations, and health checks, and its tool descriptions are graded A. It had a commit 4 days ago. If your job is read-only production monitoring of locks, WAL, replication, bloat, and autovacuum, MCP PostgreSQL Operations is the better fit because it exposes 34 tools covering exactly those areas.
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
- 1Postgres MCP — Tuning and diagnosing PostgreSQL performance in development or production — it exposes EXPLAIN plans, index recommendations, and health checks.
- 2pg-aiguide — AI coding assistants that need version-aware PostgreSQL, TimescaleDB, and PostGIS documentation search — it exposes a hosted MCP endpoint for semantic search.
- 3pgEdge Postgres MCP Server — Internal developer workflows on PostgreSQL 14 and higher — its natural language agent turns natural language into SQL queries.
- 4PostgreSQL MCP Server — PostgreSQL admins who need secure defaults — it starts readonly and gates writes behind explicit security-mode flags.
- 5MCP PostgreSQL Operations — Production DBAs who need read-only monitoring of locks, WAL, replication, bloat, and autovacuum — it exposes 34 tools covering those exact areas.
Which one, for your situation
| Your situation | What to use |
|---|---|
| I need to fix slow queries and get index recommendations. | Use Postgres MCP (crystaldba/postgres-mcp); it exposes EXPLAIN plans, index recommendations, and health checks and is a community favourite. |
| I need read-only monitoring of locks, WAL, replication, bloat, and autovacuum. | Use MCP PostgreSQL Operations; it exposes 34 tools covering those exact monitoring areas. |
| I also need Redis or Elasticsearch alongside Postgres in one MCP server. | Use mcp-server-db (Nam088/mcp-db-server); it measured 100 tools and supports Postgres, Redis, Elasticsearch, MySQL, MongoDB, and LDAP with read-only safety. |
| I need safe writes with an explicit opt-in flag. | Use PostgreSQL MCP Server (HenkDz/postgresql-mcp-server); it starts readonly and gates writes behind security-mode flags. |
| I live in VS Code and want schema and queries there. | Use DBCode; its bundled MCP server provides schema access and query execution in the editor. |
| I use Aiven and just want service details in an assistant. | Use Aiven MCP Server; it exposes list_projects, list_services, and get_service_details. |
Top MCP servers for PostgreSQL
| Best for | Profile | ||||||
|---|---|---|---|---|---|---|---|
| 1 | Tuning and diagnosing PostgreSQL performance in development or production — it exposes EXPLAIN plans, index recommendations, and health checks. | Community favourite | 3,207 | +103 | 4 days ago | 81.4 | |
| 2 | AI coding assistants that need version-aware PostgreSQL, TimescaleDB, and PostGIS documentation search — it exposes a hosted MCP endpoint for semantic search. | Community favourite | 1,814 | +23 | 54 days ago | 77.9 | |
| 3 | Internal developer workflows on PostgreSQL 14 and higher — its natural language agent turns natural language into SQL queries. | Emerging | 219 | +19 | 3 days ago | 75.9 | |
| 4 | PostgreSQL admins who need secure defaults — it starts readonly and gates writes behind explicit security-mode flags. | Community favourite | 198 | +3 | 58 days ago | 74.1 | |
| 5 | Production DBAs who need read-only monitoring of locks, WAL, replication, bloat, and autovacuum — it exposes 34 tools covering those exact areas. | Steady | 159 | +8 | 21 days ago | 71.1 | |
| 6 | When you need to connect multiple MCP clients to PostgreSQL and other databases — it exposes execute_sql and search_objects tools. | Community favourite | 3,319 | +184 | 5 days ago | 70.4 | |
| 7 | AI application developers who need a Postgres-backed backend with a built-in MCP server for tool access. | Community favourite | 3,049 | +286 | yesterday | 69.7 | |
| 8 | Developers using Prisma's tooling to manage PostgreSQL databases through its CLI and AI-agent skills | Community favourite | 47,569 | +209 | today | 69.6 | |
| 9 | PostgreSQL developers already working in VS Code — an MCP server bundled with the extension exposes schema access and query execution in the editor. | Community favourite | 326 | +10 | today | 58.0 | |
| 10 | Production databases where writes must be opt-in — write operations stay disabled by default behind the DANGEROUSLY_ALLOW_WRITE_OPS environment variable. | Abandoned but popular | 179 | 0 | 289 days ago | 55.9 | |
| 11 | Managing several database types from an AI assistant — 12 tools cover schemas, queries, explain plans, audits and diffs, with writes gated behind a confirm step. | Community favourite | 5,009 | +107 | today | 55.4 | |
| 12 | Ad-hoc natural-language querying and schema analysis across PostgreSQL, MySQL, and Redis without risking write access | Abandoned but popular | 908 | +33 | 156 days ago | 55.3 | |
| 13 | Production database access from IDEs and AI assistants — it provides prebuilt `list_tables` and `execute_sql` tools with integrated IAM authentication. | Community favourite | 16,198 | +224 | today | 54.7 | |
| 14 | Multi-database AI agents exploring schemas and query plans — it exposes connect, query, explain, and schema discovery tools. | Abandoned but popular | 540 | 0 | 344 days ago | 52.7 | |
| 15 | AI agents needing governed, natural-language access to PostgreSQL and other data sources, with query validation and permission enforcement. | Community favourite | 3,144 | +19 | today | 52.6 | |
| 16 | Production PostgreSQL administration with an MCP agent — Code Mode runs multi-step operations in a V8 isolate to reduce token overhead. | Steady | 12 | +1 | 3 days ago | 52.6 | |
| 17 | PostgreSQL upgrade planning — it exposes eight tools to query CVEs, yanked releases, and upgrade paths for any version. | Steady | 0 | 0 | 2 days ago | 50.7 | |
| 18 | For PostgreSQL users who want natural language queries, it provides an MCP server connecting to a database manager with that capability. | Community favourite | 15,887 | No snapshot history | today | 49.1 | |
| 19 | Teams needing Postgres read-only querying plus Redis/Elasticsearch access in one MCP server — per-connection read-only mode keeps production writes blocked. | Emerging | 82 | +82 | today | 48.3 | |
| 20 | Aiven PostgreSQL users who want an AI assistant to list their projects and services — it exposes list_projects, list_services, and get_service_details. | Steady | 26 | 0 | 11 days ago | 48.3 |
The ranking, with the evidence
Each position is a weighted mean of adoption (40%), maintenance (24%), momentum (14%), tool description quality (13%) and trust (9%), multiplied by three attenuators: how directly the server is about PostgreSQL — named for it, declaring it, tagged with it, or merely mentioning it — whether its repository is still moving, and how much independent evidence of adoption it has. Open the score on any entry to see every number, including the ones marked ≈, which were imputed from the median of the other candidates rather than measured. The maintenance grade on each entry is mostly issue responsiveness, release recency and open security alerts rather than commits, so a recent commit beside a low grade is two different measurements rather than a contradiction.
- Abandoned but popular — People use it, but its default branch has stopped moving. Fine to keep running, risky to adopt.
- Community favourite — Widely adopted and still actively maintained.
- Dormant — Neither changing nor widely adopted. Here because it still matches the search.
- Emerging — Small audience, growing quickly, maintained. The bet with the most upside.
- Steady — Maintained, modest audience, no surprises in either direction.
- 1crystaldba/postgres-mcp ↗
Postgres MCP
Community favouriteBest for: Tuning and diagnosing PostgreSQL performance in development or production — it exposes EXPLAIN plans, index recommendations, and health checks.
It provides EXPLAIN plans, index recommendations, health checks, and SQL execution for PostgreSQL. It requires either Docker or Python 3.12+ and a database connection string.
GitHub stars3,207Stars / 30 days+103npm / typical weekShips no npm packageTools exposed9Last commit4 days agoCommits / 12 weeks1Maintenance gradeDTool descriptionsAScore 81.4 — 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
- Maintenance71 / 100 · weight 24%
- Last commit touching this server100dated from the last commit on the default branch, re-read from GitHub at publication; the stored date would have published 210 days ago
- Repository maintenance grade30
- Commit cadence40
- Momentum76 / 100 · weight 14%
- Stars gained, relative to size72
- Stars gained, absolute81
- npm download trendnot measuredno npm download history
- 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
- 81.4
- × relevance — the keyword is dedicated here
- 1.00
- × continuity — actively changing
- 1.00
- × evidence — widely adopted
- 1.00
- Composite score
- 81.4
- 2timescale/pg-aiguide ↗
pg-aiguide
Community favouriteBest for: AI coding assistants that need version-aware PostgreSQL, TimescaleDB, and PostGIS documentation search — it exposes a hosted MCP endpoint for semantic search.
pg-aiguide is a hosted MCP server providing semantic search over PostgreSQL, TimescaleDB, and PostGIS documentation, plus AI-optimized skills for coding assistants. Its tool list has not been measured, so verify the endpoint's capabilities before relying on it for your workflow.
GitHub stars1,814Stars / 30 days+23npm / typical week49Tools exposednever inspectedLast commit54 days agoCommits / 12 weeks6Maintenance gradeCTool descriptionsNot gradedScore 77.9 — show every number behind it
- Adoption84 / 100 · weight 40%
- GitHub stars81
- npm downloads18downloads show none of the weekday rhythm human traffic has; halved
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance75 / 100 · weight 24%
- Last commit touching this server88
- Repository maintenance grade55
- Commit cadence65
- Momentum60 / 100 · weight 14%
- Stars gained, relative to size45
- Stars gained, absolute56
- npm download trend92
- 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
- 77.9
- × relevance — the keyword is dedicated here
- 1.00
- × continuity — actively changing
- 1.00
- × evidence — widely adopted
- 1.00
- Composite score
- 77.9
Best for: Internal developer workflows on PostgreSQL 14 and higher — its natural language agent turns natural language into SQL queries.
The server enables SQL queries against PostgreSQL databases through MCP-compatible clients and includes a natural language agent that forms SQL from natural language. Before choosing it, know that it is not for public-facing applications, since it gives LLMs read access to your entire database schema and data.
GitHub stars219Stars / 30 days+19npm / typical weekShips no npm packageTools exposednever inspectedLast commit3 days agoCommits / 12 weeks185Maintenance gradeATool descriptionsNot gradedScore 75.9 — show every number behind it
- Adoption59 / 100 · weight 40%
- GitHub stars59
- 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
- Momentum77 / 100 · weight 14%
- Stars gained, relative to size93
- Stars gained, absolute52
- npm download trendnot measuredno npm download history
- 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
- 75.9
- × relevance — the keyword is dedicated here
- 1.00
- × continuity — actively changing
- 1.00
- × evidence — widely adopted
- 1.00
- Composite score
- 75.9
- 4HenkDz/postgresql-mcp-server ↗
PostgreSQL MCP Server
Community favouriteBest for: PostgreSQL admins who need secure defaults — it starts readonly and gates writes behind explicit security-mode flags.
The server exposes 18 tools covering database analysis, schema management, triggers, indexes, row-level security, user management, query execution, and data import/export. It defaults to readonly mode, so mutations, DDL, and arbitrary SQL require --security-mode flags and --allow-destructive for destructive operations.
GitHub stars198Stars / 30 days+3npm / typical week2.6KTools exposed18Last commit58 days agoCommits / 12 weeks12Maintenance gradeBTool descriptionsBScore 74.1 — show every number behind it
- Adoption81 / 100 · weight 40%
- GitHub stars57
- npm downloads73
- 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
- Momentum28 / 100 · weight 14%
- Stars gained, relative to size36
- Stars gained, absolute23
- npm download trend18
- 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
- 74.1
- × relevance — the keyword is dedicated here
- 1.00
- × continuity — actively changing
- 1.00
- × evidence — widely adopted
- 1.00
- Composite score
- 74.1
Best for: Production DBAs who need read-only monitoring of locks, WAL, replication, bloat, and autovacuum — it exposes 34 tools covering those exact areas.
The server exposes 34 read-only tools covering locks, WAL, replication, bloat, autovacuum, and I/O stats. It assumes your PostgreSQL has pg_stat_statements installed for advanced query analysis.
GitHub stars159Stars / 30 days+8npm / typical weekShips no npm packageTools exposed34Last commit21 days agoCommits / 12 weeks20Maintenance gradeBTool descriptionsAScore 71.1 — 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
- Maintenance92 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade80
- Commit cadence85
- Momentum54 / 100 · weight 14%
- Stars gained, relative to size64
- Stars gained, absolute37
- npm download trendnot measuredno npm download history
- Tool quality81 / 100 · weight 13%
- Tool description quality73
- 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
- 71.1
- × relevance — the keyword is dedicated here
- 1.00
- × continuity — actively changing
- 1.00
- × evidence — widely adopted
- 1.00
- Composite score
- 71.1
- 6bytebase/dbhub ↗
DBHub
Community favouriteBest for: When you need to connect multiple MCP clients to PostgreSQL and other databases — it exposes execute_sql and search_objects tools.
DBHub exposes execute_sql and search_objects tools, with opt-in explain_sql and health_check, plus a built-in web workbench. Before installing, note that it requires Node.js 22.5 or newer.
GitHub stars3,319Stars / 30 days+184npm / typical weekdownloads not countedTools exposednever inspectedLast commit5 days agoCommits / 12 weeks83Maintenance gradeATool descriptionsNot gradedScore 70.4 — show every number behind it
- Adoption88 / 100 · weight 40%
- GitHub stars88
- 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
- Momentum95 / 100 · weight 14%
- Stars gained, relative to size97
- Stars gained, absolute91
- npm download trendnot measuredno npm download history
- 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
- 90.3
- × relevance — the keyword is declared here
- 0.78
- × continuity — actively changing
- 1.00
- × evidence — widely adopted
- 1.00
- Composite score
- 70.4
- 7butterbase-ai/butterbase ↗
butterbase
Community favouriteBest for: AI application developers who need a Postgres-backed backend with a built-in MCP server for tool access.
The server exposes its entire feature set as MCP tools over HTTP at /mcp and via stdio. It assumes self-hosting with Docker and Node 22, and the AI gateway runs without upstream router adapters unless you wire your own.
GitHub stars3,049Stars / 30 days+286npm / typical weekShips no npm packageTools exposednever inspectedLast commityesterdayCommits / 12 weeks494Maintenance gradeBTool descriptionsNot gradedScore 69.7 — 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
- 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, absolute99
- npm download trendnot measuredno npm download history
- 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
- 89.4
- × relevance — the keyword is declared here
- 0.78
- × continuity — actively changing
- 1.00
- × evidence — widely adopted
- 1.00
- Composite score
- 69.7
- 8prisma/prisma ↗
Prisma MCP Server
Community favouriteBest for: Developers using Prisma's tooling to manage PostgreSQL databases through its CLI and AI-agent skills
Prisma Next is a TypeScript rewrite of the Prisma ORM that provides command-line tools and agent skills for initializing projects, generating database code, and managing schemas across PostgreSQL, MongoDB, and SQLite. It is currently in early access, with PostgreSQL as the only generally available database, while MongoDB and SQLite are in earlier stages.
GitHub stars47,569Stars / 30 days+209npm / typical weekdownloads not countedTools exposednever inspectedLast committodayCommits / 12 weeks1,139Maintenance gradeATool descriptionsNot gradedScore 69.6 — 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
- Maintenance100 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade100
- Commit cadence100
- Momentum54 / 100 · weight 14%
- Stars gained, relative to size27
- Stars gained, absolute94
- npm download trendnot measuredno npm download history
- 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
- 89.2
- × relevance — the keyword is declared here
- 0.78
- × continuity — actively changing
- 1.00
- × evidence — widely adopted
- 1.00
- Composite score
- 69.6
- 9dbcodeio/public ↗
DBCode
Community favouriteBest for: PostgreSQL developers already working in VS Code — an MCP server bundled with the extension exposes schema access and query execution in the editor.
DBCode is a VS Code extension that can run an MCP server, giving access to configured databases, their schemas, and query execution. Worth knowing: it ships as part of the editor extension, so choosing it means adopting the VS Code-family host along with the server.
GitHub stars326Stars / 30 days+10npm / typical weekdownloads not countedTools exposednever inspectedLast committodayCommits / 12 weeks93Maintenance gradeATool descriptionsNot gradedScore 58.0 — show every number behind it
- Adoption63 / 100 · weight 40%
- GitHub stars63
- 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
- Maintenance100 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade100
- Commit cadence100
- Momentum53 / 100 · weight 14%
- Stars gained, relative to size61
- Stars gained, absolute43
- npm download trendnot measuredno npm download history
- 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
- 74.4
- × relevance — the keyword is declared here
- 0.78
- × continuity — actively changing
- 1.00
- × evidence — widely adopted
- 1.00
- Composite score
- 58.0
- 10ericzakariasson/pg-mcp-server ↗
Postgres MCP Server
Abandoned but popularBest for: Production databases where writes must be opt-in — write operations stay disabled by default behind the DANGEROUSLY_ALLOW_WRITE_OPS environment variable.
The server ships a
querytool for executing SQL alongside resources that list all tables or return a table's schema with sample data, over stdio or a Streamable HTTP endpoint. It installs as an npm package launched through npx, so it assumes a Node.js runtime and a database reachable viaDATABASE_URL.GitHub stars179Stars / 30 days0npm / typical week210Tools exposednever inspectedLast commit289 days agoCommits / 12 weeks0Maintenance gradeCTool descriptionsNot gradedScore 55.9 — show every number behind it
- Adoption64 / 100 · weight 40%
- GitHub stars56
- npm downloads49
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance38 / 100 · weight 24%
- Last commit touching this server42dated from the last commit on the default branch, re-read from GitHub at publication; github.com shows a push 1 days ago, which counts every ref
- Repository maintenance grade55
- Commit cadence5
- Momentum25 / 100 · weight 14%
- Stars gained, relative to size0
- Stars gained, absolute0
- 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 integratesnot measurednot published by the vendor it integrates
- Weighted mean of the five
- 55.9
- × relevance — the keyword is dedicated here
- 1.00
- × continuity — actively changing
- 1.00
- × evidence — widely adopted
- 1.00
- Composite score
- 55.9
- 11clidey/whodb ↗
whodb-cli
Community favouriteBest for: Managing several database types from an AI assistant — 12 tools cover schemas, queries, explain plans, audits and diffs, with writes gated behind a confirm step.
The server exposes 12 tools that list connections and schemas, describe tables, run queries, explain plans, audit data quality, diff schemas, generate ERDs, and confirm pending writes. Note that write queries are not executed immediately — they first appear in a pending list and must be confirmed through whodb_confirm.
GitHub stars5,009Stars / 30 days+107npm / typical weekShips no npm packageTools exposed12Last committodayCommits / 12 weeks715Maintenance gradeATool descriptionsAScore 55.4 — show every number behind it
- Adoption92 / 100 · weight 40%
- GitHub stars92
- 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
- Momentum68 / 100 · weight 14%
- Stars gained, relative to size59
- Stars gained, absolute82
- npm download trendnot measuredno npm download history
- Tool quality98 / 100 · weight 13%
- Tool description quality90
- Built and inspected by Glama100
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integrates100
- Weighted mean of the five
- 92.3
- × relevance — the keyword is tagged here
- 0.60
- × continuity — actively changing
- 1.00
- × evidence — widely adopted
- 1.00
- Composite score
- 55.4
- 12Anarkh-Lee/universal-db-mcp ↗
Universal DB MCP
Abandoned but popularBest for: Ad-hoc natural-language querying and schema analysis across PostgreSQL, MySQL, and Redis without risking write access
Universal DB MCP exposes natural-language database querying and schema inspection through MCP and HTTP APIs, supporting stdio, SSE, and Streamable transports. It defaults to read-only mode and caches schema metadata to accelerate repeated lookups.
GitHub stars908Stars / 30 days+33npm / typical week144Tools exposednever inspectedLast commit156 days agoCommits / 12 weeks0Maintenance gradeCTool descriptionsNot gradedScore 55.3 — show every number behind it
- Adoption81 / 100 · weight 40%
- GitHub stars74
- npm downloads46
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance52 / 100 · weight 24%
- Last commit touching this server68
- Repository maintenance grade55
- Commit cadence5
- Momentum59 / 100 · weight 14%
- Stars gained, relative to size73
- Stars gained, absolute62
- npm download trend31
- 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
- 70.9
- × relevance — the keyword is declared here
- 0.78
- × continuity — actively changing
- 1.00
- × evidence — widely adopted
- 1.00
- Composite score
- 55.3
- 13googleapis/mcp-toolbox ↗
MCP Toolbox for Databases
Community favouriteBest for: Production database access from IDEs and AI assistants — it provides prebuilt `list_tables` and `execute_sql` tools with integrated IAM authentication.
It connects AI clients and IDEs to databases through prebuilt tools like
list_tablesandexecute_sql, plus a framework for custom tools with restricted access and structured queries. Its exposed tools have not been inspected, and the quick-start command depends on an@toolbox-sdk/servernpm package that was not found published.GitHub stars16,198Stars / 30 days+224npm / typical weekShips no npm packageTools exposednever inspectedLast committodayCommits / 12 weeks289Maintenance gradeATool descriptionsNot gradedScore 54.7 — 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
- Maintenance100 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade100
- Commit cadence100
- Momentum67 / 100 · weight 14%
- Stars gained, relative to size48
- Stars gained, absolute95
- npm download trendnot measuredno npm download history
- 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
- 91.2
- × relevance — the keyword is tagged here
- 0.60
- × continuity — actively changing
- 1.00
- × evidence — widely adopted
- 1.00
- Composite score
- 54.7
- 14stuzero/pg-mcp-server ↗
pg-mcp-server
Abandoned but popularBest for: Multi-database AI agents exploring schemas and query plans — it exposes connect, query, explain, and schema discovery tools.
This server implements MCP over SSE and exposes read-only SQL, query explain, and schema, table, column, and extension resources, along with YAML context for PostGIS and pgvector. It requires Python 3.13+ and has no npm package, so installation uses Docker or local Python setup with uv.
GitHub stars540Stars / 30 days0npm / typical weekShips no npm packageTools exposednever inspectedLast commit344 days agoCommits / 12 weeks0Maintenance gradeDTool descriptionsNot gradedScore 52.7 — show every number behind it
- Adoption68 / 100 · weight 40%
- GitHub stars68
- npm downloadsnot measuredno npm package
- Used through Glamanot measurednot used through Glama in the last 30 days
- Maintenance32 / 100 · weight 24%
- Last commit touching this server42
- Repository maintenance grade30
- Commit cadence5
- Momentum0 / 100 · weight 14%
- Stars gained, relative to size0
- Stars gained, absolute0
- npm download trendnot measuredno npm download history
- 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
- 52.7
- × relevance — the keyword is dedicated here
- 1.00
- × continuity — actively changing
- 1.00
- × evidence — widely adopted
- 1.00
- Composite score
- 52.7
- 15dosco/graphjin ↗
GraphJin
Community favouriteBest for: AI agents needing governed, natural-language access to PostgreSQL and other data sources, with query validation and permission enforcement.
GraphJin runs as a server exposing GraphQL and MCP interfaces that compile natural-language queries into validated database operations, and includes a built-in agent for interactive use. To use the agent, you must provide a model API key in the environment.
GitHub stars3,144Stars / 30 days+19npm / typical week336Tools exposednever inspectedLast committodayCommits / 12 weeks337Maintenance gradeATool descriptionsNot gradedScore 52.6 — show every number behind it
- Adoption96 / 100 · weight 40%
- GitHub stars87
- npm downloads54
- 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
- Momentum55 / 100 · weight 14%
- Stars gained, relative to size31
- 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
- 87.7
- × relevance — the keyword is tagged here
- 0.60
- × continuity — actively changing
- 1.00
- × evidence — widely adopted
- 1.00
- Composite score
- 52.6
Best for: Production PostgreSQL administration with an MCP agent — Code Mode runs multi-step operations in a V8 isolate to reduce token overhead.
The README documents a PostgreSQL sandbox over MCP with schema introspection, migration tracking, connection pooling, HTTP/SSE Transport, OAuth 2.1 authentication, and extension support for PostGIS and pgvector. The tool list was not measured at publication, so verify the actual tools after installation before relying on specific capabilities.
GitHub stars12Stars / 30 days+1npm / typical week70Tools exposednever inspectedLast commit3 days agoCommits / 12 weeks25Maintenance gradeATool descriptionsNot gradedScore 52.6 — show every number behind it
- Adoption44 / 100 · weight 40%
- GitHub stars28
- npm downloads39
- 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
- Momentum24 / 100 · weight 14%
- Stars gained, relative to size38
- Stars gained, absolute15
- npm download trend10
- 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
- 61.9
- × relevance — the keyword is dedicated here
- 1.00
- × continuity — actively changing
- 1.00
- × evidence — modest but real audience
- 0.85
- Composite score
- 52.6
- 17
Best for: PostgreSQL upgrade planning — it exposes eight tools to query CVEs, yanked releases, and upgrade paths for any version.
pg-cve-mcp exposes eight tools for querying PostgreSQL CVE data, yanked releases, known exploits, and upgrade paths, returning structured JSON sorted by CVSS. It relies on the curated PG_CVE dataset fetched from GitHub Pages, so it assumes network access at runtime and is a security-intelligence lookup rather than a direct database client.
GitHub stars0Stars / 30 days0npm / typical weekShips no npm packageTools exposed8Last commit2 days agoCommits / 12 weeks19Maintenance gradeBTool descriptionsAScore 50.7 — show every number behind it
- Adoption45 / 100 · weight 40%
- GitHub stars0
- npm downloadsnot measuredno npm package
- Used through Glama45
- Maintenance92 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade80
- Commit cadence85
- Momentum0 / 100 · weight 14%
- Stars gained, relative to size0
- Stars gained, absolute0
- npm download trendnot measuredno npm download history
- Tool quality81 / 100 · weight 13%
- Tool description quality73
- 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
- 59.6
- × relevance — the keyword is dedicated here
- 1.00
- × continuity — actively changing
- 1.00
- × evidence — modest but real audience
- 0.85
- Composite score
- 50.7
- 18t8y2/dbx ↗
dbx
Community favouriteBest for: For PostgreSQL users who want natural language queries, it provides an MCP server connecting to a database manager with that capability.
It provides an MCP interface to the DBX database manager, which supports natural language queries and database management. Its MCP tool list is not documented, so the exact operations are unknown until the server is run.
GitHub stars15,887Stars / 30 daysno snapshot historynpm / typical weekdownloads not countedTools exposednever inspectedLast committodayCommits / 12 weeks3,980Maintenance gradeATool descriptionsNot gradedScore 49.1 — 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
- Maintenance100 / 100 · weight 24%
- Last commit touching this server100
- Repository maintenance grade100
- Commit cadence100
- Momentum≈0 / 100 · weight 14%
- Stars gained, relative to sizenot measuredno snapshot history yet
- Stars gained, absolutenot measuredno snapshot history yet
- npm download trendnot measuredno npm download history
- 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
- 81.8
- × relevance — the keyword is tagged here
- 0.60
- × continuity — actively changing
- 1.00
- × evidence — widely adopted
- 1.00
- Composite score
- 49.1
- 19
Best for: Teams needing Postgres read-only querying plus Redis/Elasticsearch access in one MCP server — per-connection read-only mode keeps production writes blocked.
mcp-server-db exposes 100 measured tools, including read-only Postgres queries, schema introspection, maintenance utilities, and Redis/Elasticsearch operations, with per-connection read-only mode and reconnect/retry handling. Its README documents a larger tool API than the measured package exposes, so a tool listed there may not be present after install.
GitHub stars82Stars / 30 days+82npm / typical weekdownloads not countedTools exposed100Last committodayCommits / 12 weeks31Maintenance gradeBTool descriptionsAScore 48.3 — show every number behind it
- Adoption48 / 100 · weight 40%
- GitHub stars48
- npm downloadsnot measurednpm publishes mcp-server-db from Nam088/mcp-database-server-v2
- 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
- Momentum91 / 100 · weight 14%
- Stars gained, relative to size100
- Stars gained, absolute77
- npm download trendnot measuredno npm download history
- 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
- 72.9
- × relevance — the keyword is declared here
- 0.78
- × continuity — actively changing
- 1.00
- × evidence — modest but real audience
- 0.85
- Composite score
- 48.3
Best for: Aiven PostgreSQL users who want an AI assistant to list their projects and services — it exposes list_projects, list_services, and get_service_details.
It exposes three tools — list_projects, list_services, and get_service_details — for browsing Aiven projects and services, and documents hosted HTTP, local stdio, and local development setups. Before choosing it, note that access is governed by the permissions of the authenticated Aiven account.
GitHub stars26Stars / 30 days0npm / typical week266Tools exposed3Last commit11 days agoCommits / 12 weeks65Maintenance gradeATool descriptionsDScore 48.3 — show every number behind it
- Adoption57 / 100 · weight 40%
- GitHub stars36
- npm downloads52
- 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
- Momentum17 / 100 · weight 14%
- Stars gained, relative to size0
- Stars gained, absolute0
- npm download trend70
- Tool quality28 / 100 · weight 13%
- Tool description quality20
- Built and inspected by Glama100
- Trust100 / 100 · weight 9%
- License100
- Published by the vendor it integrates100
- Weighted mean of the five
- 61.9
- × relevance — the keyword is declared here
- 0.78
- × continuity — actively changing
- 1.00
- × evidence — widely adopted
- 1.00
- Composite score
- 48.3
Questions people ask
Which server should I pick for PostgreSQL performance tuning?
For EXPLAIN plans, index recommendations, and health checks, use Postgres MCP (crystaldba/postgres-mcp). It is a community-favourite profile, its tool descriptions are graded A, and it had a commit 4 days ago. If your focus is ongoing production monitoring rather than query tuning, MCP PostgreSQL Operations is the read-only monitoring option with 34 tools for locks, WAL, replication, bloat, and autovacuum.
Is PostgreSQL MCP Server (HenkDz/postgresql-mcp-server) safe to point at production?
It starts readonly and gates writes behind explicit security-mode flags, so its default posture is read-only. It exposes 18 tools and its tool descriptions are graded B. Its last commit was 58 days ago, with 12 commits in the last 12 weeks. Keep the write flags off unless you intentionally need them.
Which server should I use if I need Postgres plus other databases?
mcp-server-db (Nam088/mcp-db-server) supports Postgres, Redis, Elasticsearch, MySQL, MongoDB, and LDAP, and it measured 100 tools with read-only safety. It had a commit 0 days ago and 31 commits in the last 12 weeks. That makes it a strong option when you want one MCP server for several database types.
What is the difference between Postgres MCP and Postgres MCP Server?
Postgres MCP (crystaldba/postgres-mcp) is the performance-focused server; it exposes EXPLAIN plans, index recommendations, and health checks, and it is a community favourite. Postgres MCP Server (ericzakariasson/pg-mcp-server) is a separate npm package (pg-mcp-server) that keeps writes disabled by default behind DANGEROUSLY_ALLOW_WRITE_OPS, but it has had no commits in the last 12 weeks and its last commit was 289 days ago.
What does Aiven MCP Server actually cover?
Aiven MCP Server is scoped to Aiven service management: its measured tools are list_projects, list_services, and get_service_details. Its tool description grade is D, and it had a commit 11 days ago. If you need actual SQL against a PostgreSQL database, use a Postgres querying server instead.
Should I use a server marked Abandoned but popular?
The three servers marked Abandoned but popular here — Postgres MCP Server (ericzakariasson/pg-mcp-server), Universal DB MCP, and pg-mcp-server (stuzero/pg-mcp-server) — all have 0 commits in the last 12 weeks, with last commits 289, 156, and 344 days ago. They may still be popular, but they are not actively developed. If you want recent maintenance, Postgres MCP (crystaldba/postgres-mcp) had a commit 4 days ago and MCP PostgreSQL Operations had a commit 21 days ago.