20 Best PostgreSQL MCP Servers, Compared (September 2026)
The short answer
For most readers, Postgres MCP (crystaldba/postgres-mcp) is the one to install: it is a Community favourite with 3,260 stars, exposes 9 tools with an A tool description grade, and covers index tuning, explain plans, health checks, and safe SQL execution. It had a commit 22 days ago and 1 commit in the last 12 weeks, so it is maintained but not frenetic. If you need a strict read-only default for production, PostgreSQL MCP Server (HenkDz/postgresql-mcp-server) is the better answer: it exposes 18 tools and requires explicit security-mode flags before it can write, run DDL, or execute arbitrary SQL.
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 assistants that write PostgreSQL code: it provides semantic search over official PostgreSQL, TimescaleDB, and PostGIS docs.
- 2Postgres MCP : Developers and DBAs using AI assistants to optimize PostgreSQL: it provides index tuning, explain plans, health checks, and safe SQL execution.
- 3PostgreSQL MCP Server : PostgreSQL teams that need a read-only default: it exposes 18 tools and requires explicit security-mode flags for writes, DDL, and arbitrary SQL.
- 4butterbase : Developers who want an all-in-one backend via MCP: it provides MCP access to Postgres, auth, file storage, serverless functions, realtime, KV, AI gateway, and RAG.
- 5DBHub : Read-only queries against production databases: it exposes query and schema search tools, with row limits and query timeouts.
Which one, for your situation
| Your situation | What to use |
|---|---|
| I want a general managed Postgres helper for developers and DBAs. | Use Postgres MCP (crystaldba/postgres-mcp) for index tuning, explain plans, health checks, and safe SQL execution. |
| I need strict read-only by default in production. | Use PostgreSQL MCP Server (HenkDz/postgresql-mcp-server) because writes, DDL, and arbitrary SQL only happen after explicit security-mode flags. |
| I need semantic search over Postgres documentation for coding agents. | Use pg-aiguide (timescale/pg-aiguide), which provides semantic search across PostgreSQL, TimescaleDB, and PostGIS docs. |
| I already use Prisma and want an agent to drive Prisma Postgres. | Use Prisma MCP Server (prisma/orm), which ships skills and a primer to let an AI coding agent drive Prisma Next workflows. |
| I want one MCP server for Postgres plus Redis and Elasticsearch. | Use mcp-server-db (Nam088/mcp-db-server), which exposes 100 tools and enforces per-connection read-only mode for write tools. |
Top MCP servers for PostgreSQL
| Best for | Profile | ||||||
|---|---|---|---|---|---|---|---|
| 1 | AI coding assistants that write PostgreSQL code: it provides semantic search over official PostgreSQL, TimescaleDB, and PostGIS docs. | Community favourite | 1,835 | +30 | 2 days ago | 84.0 | |
| 2 | Developers and DBAs using AI assistants to optimize PostgreSQL: it provides index tuning, explain plans, health checks, and safe SQL execution. | Community favourite | 3,260 | +100 | 22 days ago | 81.3 | |
| 3 | PostgreSQL teams that need a read-only default: it exposes 18 tools and requires explicit security-mode flags for writes, DDL, and arbitrary SQL. | Community favourite | 198 | 0 | 75 days ago | 70.9 | |
| 4 | Developers who want an all-in-one backend via MCP: it provides MCP access to Postgres, auth, file storage, serverless functions, realtime, KV, AI gateway, and RAG. | Community favourite | 3,450 | +523 | today | 70.2 | |
| 5 | Read-only queries against production databases: it exposes query and schema search tools, with row limits and query timeouts. | Community favourite | 3,456 | +164 | 5 days ago | 69.9 | |
| 6 | Monitoring an existing PostgreSQL instance without write risk: it exposes read-only tools for locks, WAL, replication, bloat, vacuum, and query stats. | Steady | 161 | +2 | 38 days ago | 67.8 | |
| 7 | Developers pairing Prisma Postgres with an AI coding agent: the shipped skills and primer let the agent drive Prisma Next workflows end to end. | Community favourite | 47,590 | +44 | 4 days ago | 67.5 | |
| 8 | Internal tools and developer workflows that need natural-language querying of PostgreSQL, because it includes an agent that turns natural language into SQL. | Steady | 222 | +8 | 2 days ago | 64.9 | |
| 9 | Querying and inspecting databases from VS Code: the MCP server exposes schemas and executes queries. | Community favourite | 340 | +17 | today | 59.6 | |
| 10 | AI-assisted development against an AWS codebase with DynamoDB, PostgreSQL, and Lambda: it exposes 22 tools that surface scan risks, missing indexes, and Lambda config issues. | Community favourite | 21 | +1 | yesterday | 58.9 | |
| 11 | Managing databases across many engines from an MCP client: it provides natural language querying and database management through MCP. | Community favourite | 18,129 | +4,418 | today | 57.5 | |
| 12 | Connecting AI agents and IDEs to enterprise databases: it provides prebuilt generic database tools and a framework for custom tools with restricted access. | Community favourite | 16,316 | +196 | 2 days ago | 54.4 | |
| 13 | For teams that need a single MCP server for multiple databases: it supports MySQL, PostgreSQL, and Redis, with stdio and HTTP access modes. | Abandoned but popular | 922 | +25 | 174 days ago | 53.9 | |
| 14 | For read-only analysis of PostgreSQL: exposes a query tool and schema resources, writes off by default. | Abandoned but popular | 180 | +1 | 307 days ago | 53.4 | |
| 15 | Read-only exploration and querying of PostgreSQL databases: it offers schema discovery, query execution, and secure connection handling. | Abandoned but popular | 540 | 0 | 361 days ago | 52.7 | |
| 16 | Terminal-first developers who want an AI assistant to inspect and modify PostgreSQL safely: it exposes query, schema, explain, diff, and confirm-write MCP tools. | Community favourite | 5,018 | +19 | today | 52.6 | |
| 17 | PostgreSQL-backed AI agents that need governed, auditable access: it exposes MCP with schema discovery and natural-language SQL compilation. | Community favourite | 3,158 | +29 | today | 52.2 | |
| 18 | A self-hosted team wiki where agents are first-class authors: it exposes 41 MCP tools for search, page creation/editing, comments, and Atlas doc generation. | Emerging | 58 | +14 | today | 48.8 | |
| 19 | Developers using AI IDEs who want to deploy to Tencent CloudBase from chat: it operates databases, functions, storage, and deploys from conversation. | Community favourite | 1,093 | +30 | today | 48.5 | |
| 20 | Administering a Postgres database alongside Redis and Elasticsearch in one MCP server: it exposes 100 tools and enforces per-connection read-only mode for write tools. | Emerging | 82 | +82 | 3 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.
Best for: AI coding assistants that write PostgreSQL code: it provides semantic search over official PostgreSQL, TimescaleDB, and PostGIS docs.
It exposes an MCP server and installable skills that give AI agents semantic search over PostgreSQL, TimescaleDB, and PostGIS documentation. It requires an AI coding assistant that supports MCP or agent skills.
GitHub stars1,835Stars / 30 days+30npm / typical week49Tools exposednever inspectedLast commit2 days agoCommits / 12 weeks17Maintenance gradeATool descriptionsNot gradedScore 84.0: show every number behind it
- Adoption84 / 100 · weight 40%
- GitHub stars82
- npm downloads18downloads show none of the weekday rhythm human traffic has; halved
- 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
- Momentum66 / 100 · weight 14%
- Stars gained, relative to size51
- Stars gained, absolute60
- 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
- 84.0
- × relevance: the keyword is dedicated here
- 1.00
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 84.0
Best for: Developers and DBAs using AI assistants to optimize PostgreSQL: it provides index tuning, explain plans, health checks, and safe SQL execution.
This server exposes nine tools for exploring schemas, explaining query plans, analyzing index and database health, listing top queries, and executing SQL. The get_top_queries tool depends on the pg_stat_statements extension being enabled in the database.
GitHub stars3,260Stars / 30 days+100npm / typical weekShips no npm packageTools exposed9Last commit22 days agoCommits / 12 weeks1Maintenance gradeDTool descriptionsAScore 81.3: 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 server100
- Repository maintenance grade30
- Commit cadence40
- Momentum75 / 100 · weight 14%
- Stars gained, relative to size71
- 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.3
- × relevance: the keyword is dedicated here
- 1.00
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 81.3
Best for: PostgreSQL teams that need a read-only default: it exposes 18 tools and requires explicit security-mode flags for writes, DDL, and arbitrary SQL.
It exposes 18 tools covering schema, functions, triggers, indexes, constraints, RLS, users, queries, data import/export, and monitoring. Before choosing it, note that it starts in readonly mode and requires explicit security-mode and allow-destructive flags for any write, DDL, or arbitrary SQL operation.
GitHub stars198Stars / 30 days0npm / typical week2.3KTools exposed18Last commit75 days agoCommits / 12 weeks11Maintenance gradeBTool descriptionsBScore 70.9: show every number behind it
- Adoption80 / 100 · weight 40%
- GitHub stars57
- npm downloads71
- 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
- Momentum9 / 100 · weight 14%
- Stars gained, relative to size0
- Stars gained, absolute0
- npm download trend35
- 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
- 70.9
- × relevance: the keyword is dedicated here
- 1.00
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 70.9
Best for: Developers who want an all-in-one backend via MCP: it provides MCP access to Postgres, auth, file storage, serverless functions, realtime, KV, AI gateway, and RAG.
Butterbase documents an MCP server that exposes its backend platform through HTTP at /mcp on a self-hosted instance or stdio via npx @butterbase/mcp. The self-hosted path requires Docker, Node 22+, and npm; the managed offering exists separately.
GitHub stars3,450Stars / 30 days+523npm / typical weekShips no npm packageTools exposednever inspectedLast committodayCommits / 12 weeks221Maintenance gradeBTool descriptionsNot gradedScore 70.2: 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
- 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 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
- 90.0
- × relevance: the keyword is declared here
- 0.78
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 70.2
Best for: Read-only queries against production databases: it exposes query and schema search tools, with row limits and query timeouts.
DBHub provides MCP tools for execute_sql and search_objects, plus optional explain_sql, health_check, and custom tools, and a web workbench. It requires Node.js 22.5.0 or newer, or can be run via Docker.
GitHub stars3,456Stars / 30 days+164npm / typical weekdownloads not countedTools exposednever inspectedLast commit5 days agoCommits / 12 weeks76Maintenance gradeATool descriptionsNot gradedScore 69.9: 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
- Momentum89 / 100 · weight 14%
- Stars gained, relative to size89
- Stars gained, absolute90
- 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
- 89.6
- × relevance: the keyword is declared here
- 0.78
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 69.9
Best for: Monitoring an existing PostgreSQL instance without write risk: it exposes read-only tools for locks, WAL, replication, bloat, vacuum, and query stats.
The server connects to a PostgreSQL database and exposes read-only tools that report locks, WAL, replication, connections, schema, table relationships, sizes, index usage, vacuum, bloat, background writer I/O, and query statistics. The more detailed query-analysis tools depend on the optional pg_stat_statements and pg_stat_monitor extensions being installed on the target database.
GitHub stars161Stars / 30 days+2npm / typical weekShips no npm packageTools exposed34Last commit38 days agoCommits / 12 weeks20Maintenance gradeBTool descriptionsAScore 67.8: 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
- Momentum30 / 100 · weight 14%
- Stars gained, relative to size35
- Stars gained, absolute21
- 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
- 67.8
- × relevance: the keyword is dedicated here
- 1.00
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 67.8
Best for: Developers pairing Prisma Postgres with an AI coding agent: the shipped skills and primer let the agent drive Prisma Next workflows end to end.
It registers Prisma Next agent skills under .claude/skills and .agents/skills and drops a prisma-next.md primer, so an AI agent can carry out schema and query tasks from a natural-language prompt. Before choosing it, know that Prisma Next is in early access and the README advises against production workloads.
GitHub stars47,590Stars / 30 days+44npm / typical weekdownloads not countedTools exposednever inspectedLast commit4 days agoCommits / 12 weeks384Maintenance gradeATool descriptionsNot gradedScore 67.5: 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
- Momentum34 / 100 · weight 14%
- Stars gained, relative to size12
- Stars gained, absolute67
- 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
- 86.5
- × relevance: the keyword is declared here
- 0.78
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 67.5
Best for: Internal tools and developer workflows that need natural-language querying of PostgreSQL, because it includes an agent that turns natural language into SQL.
The server exposes MCP-compatible SQL query tools for PostgreSQL and bundles a natural language agent that translates natural language into SQL. It is intended only for internal trusted environments, not public-facing applications, because it grants LLMs read access to the entire database schema and data.
GitHub stars222Stars / 30 days+8npm / typical weekShips no npm packageTools exposednever inspectedLast commit2 days agoCommits / 12 weeks130Maintenance gradeATool descriptionsNot gradedScore 64.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
- Momentum52 / 100 · weight 14%
- Stars gained, relative to size61
- Stars gained, absolute39
- 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
- Trust15 / 100 · weight 9%
- License0
- Published by the vendor it integrates100
- Weighted mean of the five
- 64.9
- × relevance: the keyword is dedicated here
- 1.00
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 64.9
Best for: Querying and inspecting databases from VS Code: the MCP server exposes schemas and executes queries.
The server exposes database schemas and allows clients to execute queries over an MCP interface. It only runs as an optional part of the DBCode VS Code extension, so it assumes that editor as its host.
GitHub stars340Stars / 30 days+17npm / typical weekdownloads not countedTools exposednever inspectedLast committodayCommits / 12 weeks66Maintenance gradeATool descriptionsNot gradedScore 59.6: 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
- Momentum66 / 100 · weight 14%
- Stars gained, relative to size77
- Stars gained, absolute50
- 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
- 76.4
- × relevance: the keyword is declared here
- 0.78
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 59.6
Best for: AI-assisted development against an AWS codebase with DynamoDB, PostgreSQL, and Lambda: it exposes 22 tools that surface scan risks, missing indexes, and Lambda config issues.
Infrawise probes the AWS environment and codebase, then exposes 22 MCP tools that return infrastructure overviews, table schemas, queue and topic details, and GSI or SQL index suggestions. It requires Node.js 22 or later and is an analysis layer, not a provisioning or observability platform.
GitHub stars21Stars / 30 days+1npm / typical week452Tools exposed22Last commityesterdayCommits / 12 weeks263Maintenance gradeATool descriptionsAScore 58.9: show every number behind it
- Adoption62 / 100 · weight 40%
- GitHub stars34
- npm downloads57
- 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
- Momentum46 / 100 · weight 14%
- Stars gained, relative to size37
- Stars gained, absolute15
- npm download trend100
- 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
- 75.5
- × relevance: the keyword is declared here
- 0.78
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 58.9
Best for: Managing databases across many engines from an MCP client: it provides natural language querying and database management through MCP.
This MCP server enables natural language queries and database management through MCP, and the DBX project also ships desktop, Docker, and CLI interfaces. The MCP server is one delivery mode of the larger DBX package, so it is a choice for MCP-based access rather than the only way to use DBX.
GitHub stars18,129Stars / 30 days+4,418npm / typical weekdownloads not countedTools exposednever inspectedLast committodayCommits / 12 weeks4,163Maintenance gradeATool descriptionsNot gradedScore 57.5: 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
- Momentum100 / 100 · weight 14%
- Stars gained, relative to size100
- Stars gained, absolute100
- 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
- 95.8
- × relevance: the keyword is tagged here
- 0.60
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 57.5
Best for: Connecting AI agents and IDEs to enterprise databases: it provides prebuilt generic database tools and a framework for custom tools with restricted access.
The server provides prebuilt tools for database interaction and a framework for building custom tools with restricted access and semantic search. Its supported databases are all Google Cloud services, including AlloyDB, BigQuery, and Cloud SQL, so other platforms are not listed.
GitHub stars16,316Stars / 30 days+196npm / typical weekShips no npm packageTools exposednever inspectedLast commit2 days agoCommits / 12 weeks271Maintenance gradeATool descriptionsNot gradedScore 54.4: 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
- Momentum64 / 100 · weight 14%
- Stars gained, relative to size45
- Stars gained, absolute93
- 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.7
- × relevance: the keyword is tagged here
- 0.60
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 54.4
Best for: For teams that need a single MCP server for multiple databases: it supports MySQL, PostgreSQL, and Redis, with stdio and HTTP access modes.
The server installs as an npm package and can run in stdio or HTTP mode, exposing MCP endpoints and a REST API for natural-language querying and schema analysis across databases such as MySQL, PostgreSQL, and Redis. The main thing to know before choosing it is that it assumes Node.js 20 or newer and takes database connection details through CLI arguments or HTTP headers, while defaulting to read-only.
GitHub stars922Stars / 30 days+25npm / typical week133Tools exposednever inspectedLast commit174 days agoCommits / 12 weeks0Maintenance gradeCTool descriptionsNot gradedScore 53.9: show every number behind it
- Adoption81 / 100 · weight 40%
- GitHub stars74
- npm downloads45
- 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
- Momentum46 / 100 · weight 14%
- Stars gained, relative to size63
- Stars gained, absolute57
- npm download trend0
- 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
- 69.1
- × relevance: the keyword is declared here
- 0.78
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 53.9
Best for: For read-only analysis of PostgreSQL: exposes a query tool and schema resources, writes off by default.
The server exposes a query tool for executing SQL and resources for listing tables and retrieving table schemas. It requires a DATABASE_URL environment variable and defaults to read-only unless DANGEROUSLY_ALLOW_WRITE_OPS is set to true.
GitHub stars180Stars / 30 days+1npm / typical week210Tools exposednever inspectedLast commit307 days agoCommits / 12 weeks0Maintenance gradeDTool descriptionsNot gradedScore 53.4: 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
- Maintenance32 / 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 18 days ago, which counts every ref; the stored date would have published 18 days ago
- Repository maintenance grade30
- Commit cadence5
- Momentum18 / 100 · weight 14%
- Stars gained, relative to size26
- Stars gained, absolute15
- npm download trend6
- 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
- 53.4
- × relevance: the keyword is dedicated here
- 1.00
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 53.4
Best for: Read-only exploration and querying of PostgreSQL databases: it offers schema discovery, query execution, and secure connection handling.
It exposes connect and disconnect tools, query and explain tools, and schema resources via MCP resource URIs. Before using it, note that the server runs in read-only mode by default, enforced via transaction.
GitHub stars540Stars / 30 days0npm / typical weekShips no npm packageTools exposednever inspectedLast commit361 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
Best for: Terminal-first developers who want an AI assistant to inspect and modify PostgreSQL safely: it exposes query, schema, explain, diff, and confirm-write MCP tools.
whodb-cli exposes 12 MCP tools for listing schemas and tables, describing columns, running SQL, explaining query plans, diffing schemas, auditing data, and confirming pending writes. Before choosing it, know that WhoDB is a multi-database application with browser, desktop, and CLI interfaces, not a PostgreSQL-only service.
GitHub stars5,018Stars / 30 days+19npm / typical weekShips no npm packageTools exposed12Last committodayCommits / 12 weeks608Maintenance gradeATool descriptionsAScore 52.6: 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
- Momentum36 / 100 · weight 14%
- Stars gained, relative to size25
- Stars gained, absolute52
- 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
- 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: PostgreSQL-backed AI agents that need governed, auditable access: it exposes MCP with schema discovery and natural-language SQL compilation.
The README documents a compiler and runtime that exposes PostgreSQL and other data sources through GraphQL and MCP, with a built-in agent reachable via /api/v1/agent or ask_graphjin_agent and discovery tools such as query_catalog and graphql_help. Before choosing it, know that it is a multi-database service rather than a PostgreSQL-only server, and the built-in agent requires a model API key in .env.
GitHub stars3,158Stars / 30 days+29npm / typical week714Tools exposednever inspectedLast committodayCommits / 12 weeks501Maintenance gradeATool descriptionsNot gradedScore 52.2: show every number behind it
- Adoption92 / 100 · weight 40%
- GitHub stars87
- npm downloads30downloads 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
- Momentum60 / 100 · weight 14%
- Stars gained, relative to size38
- Stars gained, absolute59
- 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.0
- × relevance: the keyword is tagged here
- 0.60
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 52.2
Best for: A self-hosted team wiki where agents are first-class authors: it exposes 41 MCP tools for search, page creation/editing, comments, and Atlas doc generation.
tela exposes 41 MCP tools for searching, reading, writing, commenting on, and linking wiki pages, plus Atlas tools that generate cited pages from git repos and Jira. It is not published as an npm package: the MCP server is built into the Go backend and runs through the Docker Compose stack.
GitHub stars58Stars / 30 days+14npm / typical weekShips no npm packageTools exposed41Last committodayCommits / 12 weeks583Maintenance gradeATool descriptionsAScore 48.8: show every number behind it
- Adoption44 / 100 · weight 40%
- GitHub stars44
- 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
- Momentum79 / 100 · weight 14%
- Stars gained, relative to size100
- Stars gained, absolute48
- npm download trendnot measuredno npm download history
- Tool quality91 / 100 · weight 13%
- Tool description quality83
- 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
- 73.6
- × relevance: the keyword is declared here
- 0.78
- × continuity: actively changing
- 1.00
- × evidence: modest but real audience
- 0.85
- Composite score
- 48.8
Best for: Developers using AI IDEs who want to deploy to Tencent CloudBase from chat: it operates databases, functions, storage, and deploys from conversation.
The README documents an MCP server that handles login, data queries and changes, function and hosting management, log reading, and chat-driven deployment. One thing worth knowing: the measured npm package is not published, so the npx command in the README may not resolve.
GitHub stars1,093Stars / 30 days+30npm / typical weekShips no npm packageTools exposednever inspectedLast committodayCommits / 12 weeks676Maintenance gradeATool descriptionsNot gradedScore 48.5: show every number behind it
- Adoption76 / 100 · weight 40%
- GitHub stars76
- 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
- Momentum62 / 100 · weight 14%
- Stars gained, relative to size64
- Stars gained, absolute60
- 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
- 80.8
- × relevance: the keyword is tagged here
- 0.60
- × continuity: actively changing
- 1.00
- × evidence: widely adopted
- 1.00
- Composite score
- 48.5
Best for: Administering a Postgres database alongside Redis and Elasticsearch in one MCP server: it exposes 100 tools and enforces per-connection read-only mode for write tools.
It exposes 100 tools covering Postgres queries, schema inspection, indexes, locks, health, and EXPLAIN, plus tools for Redis, Elasticsearch, MySQL, MongoDB, and LDAP. The one thing to know before choosing it is that write tools are blocked only when the connection's own readOnly mode is enabled, so POSTGRES_READ_ONLY=true or the YAML equivalent must be set for read-only safety.
GitHub stars82Stars / 30 days+82npm / typical weekdownloads not countedTools exposed100Last commit3 days agoCommits / 12 weeks43Maintenance 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
Questions people ask
How do I choose between Postgres MCP and PostgreSQL MCP Server?
Postgres MCP (crystaldba/postgres-mcp) is a Community favourite with 3,260 stars, 9 tools, and tool descriptions graded A, and it is aimed at index tuning, explain plans, health checks, and safe SQL execution. PostgreSQL MCP Server (HenkDz/postgresql-mcp-server) is also a Community favourite but has 198 stars and 18 tools, and it requires explicit security-mode flags for writes, DDL, and arbitrary SQL. Pick the first for a more popular general helper; pick the second when you want a read-only default with an explicit write opt-in.
Is pg-aiguide only useful for TimescaleDB users?
pg-aiguide (timescale/pg-aiguide) is described as enabling semantic search across PostgreSQL, TimescaleDB, and PostGIS documentation, so the PostgreSQL portion is useful beyond TimescaleDB. It is aimed at AI coding assistants that write PostgreSQL code, and it had 1,835 stars, 17 commits in the last 12 weeks, and a commit 2 days ago.
What should I be careful about when letting an agent write to my Postgres database?
If you use PostgreSQL MCP Server (HenkDz/postgresql-mcp-server), writes, DDL, and arbitrary SQL require explicit security-mode flags, so leaving those flags off keeps the agent read-only. whodb-cli (clidey/whodb) exposes a confirm-write tool, which lets you approve a change before the agent executes it. mcp-server-db (Nam088/mcp-db-server) enforces per-connection read-only mode for write tools, so a read-only connection protects the database.
What is the maintenance status of the abandoned Postgres servers?
Universal DB MCP (Anarkh-Lee/universal-db-mcp) had its last commit 174 days ago, Postgres MCP Server (ericzakariasson/pg-mcp-server) 307 days ago, and pg-mcp-server (stuzero/pg-mcp-server) 361 days ago. All three had 0 commits in the last 12 weeks and none is archived. Their profiles are all Abandoned but popular.
I use Prisma. Is Prisma MCP Server the right choice?
Prisma MCP Server (prisma/orm) is specifically for Prisma Postgres and ships skills and a primer that let an AI coding agent drive Prisma Next workflows. It is a Community favourite with 47,590 stars, 384 commits in the last 12 weeks, and a commit 4 days ago. If your data is not on Prisma Postgres, use a generic Postgres server instead.
What should I know about mcp-server-db before using it?
mcp-server-db (Nam088/mcp-db-server) covers Postgres along with Redis, Elasticsearch, MySQL, MongoDB, and LDAP, and it exposes 100 tools. It enforces per-connection read-only mode for write tools, so you can connect read-only to be safe. It is labelled Emerging, had a commit 3 days ago, and has 82 stars.