Skip to main content
Glama

20 Best PostgreSQL MCP Servers, Compared (August 2026)

Updated 20 of 1,041 PostgreSQL servers in the Glama registryRebuilt weekly

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 situationWhat 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 forProfile
1Tuning and diagnosing PostgreSQL performance in development or production — it exposes EXPLAIN plans, index recommendations, and health checks.Community favourite3,207+1034 days ago81.4
2AI coding assistants that need version-aware PostgreSQL, TimescaleDB, and PostGIS documentation search — it exposes a hosted MCP endpoint for semantic search.Community favourite1,814+2354 days ago77.9
3Internal developer workflows on PostgreSQL 14 and higher — its natural language agent turns natural language into SQL queries.Emerging219+193 days ago75.9
4PostgreSQL admins who need secure defaults — it starts readonly and gates writes behind explicit security-mode flags.Community favourite198+358 days ago74.1
5Production DBAs who need read-only monitoring of locks, WAL, replication, bloat, and autovacuum — it exposes 34 tools covering those exact areas.Steady159+821 days ago71.1
6When you need to connect multiple MCP clients to PostgreSQL and other databases — it exposes execute_sql and search_objects tools.Community favourite3,319+1845 days ago70.4
7AI application developers who need a Postgres-backed backend with a built-in MCP server for tool access.Community favourite3,049+286yesterday69.7
8Developers using Prisma's tooling to manage PostgreSQL databases through its CLI and AI-agent skillsCommunity favourite47,569+209today69.6
9PostgreSQL developers already working in VS Code — an MCP server bundled with the extension exposes schema access and query execution in the editor.Community favourite326+10today58.0
10Production databases where writes must be opt-in — write operations stay disabled by default behind the DANGEROUSLY_ALLOW_WRITE_OPS environment variable.Abandoned but popular1790289 days ago55.9
11Managing 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 favourite5,009+107today55.4
12Ad-hoc natural-language querying and schema analysis across PostgreSQL, MySQL, and Redis without risking write accessAbandoned but popular908+33156 days ago55.3
13Production database access from IDEs and AI assistants — it provides prebuilt `list_tables` and `execute_sql` tools with integrated IAM authentication.Community favourite16,198+224today54.7
14Multi-database AI agents exploring schemas and query plans — it exposes connect, query, explain, and schema discovery tools.Abandoned but popular5400344 days ago52.7
15AI agents needing governed, natural-language access to PostgreSQL and other data sources, with query validation and permission enforcement.Community favourite3,144+19today52.6
16Production PostgreSQL administration with an MCP agent — Code Mode runs multi-step operations in a V8 isolate to reduce token overhead.Steady12+13 days ago52.6
17PostgreSQL upgrade planning — it exposes eight tools to query CVEs, yanked releases, and upgrade paths for any version.Steady002 days ago50.7
18For PostgreSQL users who want natural language queries, it provides an MCP server connecting to a database manager with that capability.Community favourite15,887No snapshot historytoday49.1
19Teams needing Postgres read-only querying plus Redis/Elasticsearch access in one MCP server — per-connection read-only mode keeps production writes blocked.Emerging82+82today48.3
20Aiven PostgreSQL users who want an AI assistant to list their projects and services — it exposes list_projects, list_services, and get_service_details.Steady26011 days ago48.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 popularPeople use it, but its default branch has stopped moving. Fine to keep running, risky to adopt.
  • Community favouriteWidely adopted and still actively maintained.
  • DormantNeither changing nor widely adopted. Here because it still matches the search.
  • EmergingSmall audience, growing quickly, maintained. The bet with the most upside.
  • SteadyMaintained, modest audience, no surprises in either direction.
  • Best 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 stars
    3,207
    Stars over the last 90 days: 2,814 at the earliest of 9 readings and 3,207 at the latest, up 393.
    Stars / 30 days
    +103
    npm / typical week
    Ships no npm package
    Tools exposed
    9
    Last commit
    4 days ago
    Commits / 12 weeks
    1
    Weekly commits over the last 12 weeks, oldest first: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1. 1 in total, and the last figure is the current week so far.
    Maintenance grade
    D
    Tool descriptions
    A
    Score 81.4 — show every number behind it
    • Adoption88 / 100 · weight 40%
      • GitHub stars88
      • npm downloadsnot measured
        no npm package
      • Used through Glamanot measured
        not used through Glama in the last 30 days
    • Maintenance71 / 100 · weight 24%
      • Last commit touching this server100
        dated 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 measured
        no 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 measured
        not 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
  • Best 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 stars
    1,814
    Stars over the last 90 days: 1,743 at the earliest of 10 readings and 1,814 at the latest, up 71.
    Stars / 30 days
    +23
    npm / typical week
    49
    Tools exposed
    never inspected
    Last commit
    54 days ago
    Commits / 12 weeks
    6
    Weekly commits over the last 12 weeks, oldest first: 0, 0, 1, 0, 5, 0, 0, 0, 0, 0, 0, 0. 6 in total, and the last figure is the current week so far.
    Maintenance grade
    C
    Tool descriptions
    Not graded
    Score 77.9 — show every number behind it
    • Adoption84 / 100 · weight 40%
      • GitHub stars81
      • npm downloads18
        downloads show none of the weekday rhythm human traffic has; halved
      • Used through Glamanot measured
        not 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 quality68 / 100 · weight 13%
      • Tool description quality68
        tool descriptions not yet scored
      • Built and inspected by Glamanot measured
        never 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 stars
    219
    Stars over the last 90 days: 172 at the earliest of 22 readings and 219 at the latest, up 47.
    Stars / 30 days
    +19
    npm / typical week
    Ships no npm package
    Tools exposed
    never inspected
    Last commit
    3 days ago
    Commits / 12 weeks
    185
    Weekly commits over the last 12 weeks, oldest first: 51, 2, 25, 10, 24, 0, 2, 5, 21, 12, 21, 12. 185 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    Not graded
    Score 75.9 — show every number behind it
    • Adoption59 / 100 · weight 40%
      • GitHub stars59
      • npm downloadsnot measured
        no npm package
      • Used through Glamanot measured
        not 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 measured
        no npm download history
    • Tool quality68 / 100 · weight 13%
      • Tool description quality68
        tool descriptions not yet scored
      • Built and inspected by Glamanot measured
        never 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
  • Best 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 stars
    198
    Stars over the last 90 days: 185 at the earliest of 8 readings and 198 at the latest, up 13.
    Stars / 30 days
    +3
    npm / typical week
    2.6K
    Tools exposed
    18
    Last commit
    58 days ago
    Commits / 12 weeks
    12
    Weekly commits over the last 12 weeks, oldest first: 1, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0. 12 in total, and the last figure is the current week so far.
    Maintenance grade
    B
    Tool descriptions
    B
    Score 74.1 — show every number behind it
    • Adoption81 / 100 · weight 40%
      • GitHub stars57
      • npm downloads73
      • Used through Glamanot measured
        not 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 measured
        not 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 stars
    159
    Stars over the last 90 days: 149 at the earliest of 12 readings and 159 at the latest, up 10.
    Stars / 30 days
    +8
    npm / typical week
    Ships no npm package
    Tools exposed
    34
    Last commit
    21 days ago
    Commits / 12 weeks
    20
    Weekly commits over the last 12 weeks, oldest first: 0, 0, 0, 2, 2, 0, 9, 0, 1, 1, 5, 0. 20 in total, and the last figure is the current week so far.
    Maintenance grade
    B
    Tool descriptions
    A
    Score 71.1 — show every number behind it
    • Adoption55 / 100 · weight 40%
      • GitHub stars55
      • npm downloadsnot measured
        no npm package
      • Used through Glamanot measured
        not 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 measured
        no 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 measured
        not 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
  • 6

    DBHub

    Community favourite
    bytebase/dbhub

    Best 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 stars
    3,319
    Stars over the last 90 days: 2,835 at the earliest of 13 readings and 3,319 at the latest, up 484.
    Stars / 30 days
    +184
    npm / typical week
    downloads not counted
    Tools exposed
    never inspected
    Last commit
    5 days ago
    Commits / 12 weeks
    83
    Weekly commits over the last 12 weeks, oldest first: 0, 0, 14, 4, 0, 10, 1, 6, 8, 3, 33, 4. 83 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    Not graded
    Score 70.4 — show every number behind it
    • Adoption88 / 100 · weight 40%
      • GitHub stars88
      • npm downloadsnot measured
        npm names no repository for dbhub, so its downloads cannot be attributed
      • Used through Glamanot measured
        not 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 measured
        no npm download history
    • Tool quality68 / 100 · weight 13%
      • Tool description quality68
        tool descriptions not yet scored
      • Built and inspected by Glamanot measured
        never built and inspected by Glama
    • Trust100 / 100 · weight 9%
      • License100
      • Published by the vendor it integratesnot measured
        not 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
  • Best 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 stars
    3,049
    Stars over the last 90 days: 1,247 at the earliest of 19 readings and 3,049 at the latest, up 1,802.
    Stars / 30 days
    +286
    npm / typical week
    Ships no npm package
    Tools exposed
    never inspected
    Last commit
    yesterday
    Commits / 12 weeks
    494
    Weekly commits over the last 12 weeks, oldest first: 62, 159, 78, 27, 26, 21, 48, 17, 9, 5, 33, 9. 494 in total, and the last figure is the current week so far.
    Maintenance grade
    B
    Tool descriptions
    Not graded
    Score 69.7 — show every number behind it
    • Adoption87 / 100 · weight 40%
      • GitHub stars87
      • npm downloadsnot measured
        no npm package
      • Used through Glamanot measured
        not 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 measured
        no npm download history
    • Tool quality68 / 100 · weight 13%
      • Tool description quality68
        tool descriptions not yet scored
      • Built and inspected by Glamanot measured
        never 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
  • Best 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 stars
    47,569
    Stars over the last 90 days: 46,060 at the earliest of 23 readings and 47,569 at the latest, up 1,509.
    Stars / 30 days
    +209
    npm / typical week
    downloads not counted
    Tools exposed
    never inspected
    Last commit
    today
    Commits / 12 weeks
    1,139
    Weekly commits over the last 12 weeks, oldest first: 499, 299, 42, 13, 16, 17, 33, 42, 35, 36, 41, 66. 1,139 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    Not graded
    Score 69.6 — show every number behind it
    • Adoption100 / 100 · weight 40%
      • GitHub stars100
      • npm downloadsnot measured
        npm names no repository for dev-env, so its downloads cannot be attributed
      • Used through Glamanot measured
        not 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 measured
        no npm download history
    • Tool quality68 / 100 · weight 13%
      • Tool description quality68
        tool descriptions not yet scored
      • Built and inspected by Glamanot measured
        never 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
  • 9

    DBCode

    Community favourite
    dbcodeio/public

    Best 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 stars
    326
    Stars over the last 90 days: 292 at the earliest of 27 readings and 326 at the latest, up 34.
    Stars / 30 days
    +10
    npm / typical week
    downloads not counted
    Tools exposed
    never inspected
    Last commit
    today
    Commits / 12 weeks
    93
    Weekly commits over the last 12 weeks, oldest first: 1, 2, 35, 12, 3, 2, 3, 1, 3, 19, 7, 5. 93 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    Not graded
    Score 58.0 — show every number behind it
    • Adoption63 / 100 · weight 40%
      • GitHub stars63
      • npm downloadsnot measured
        npm names no repository for dbcode, so its downloads cannot be attributed
      • Used through Glamanot measured
        not 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 measured
        no npm download history
    • Tool quality68 / 100 · weight 13%
      • Tool description quality68
        tool descriptions not yet scored
      • Built and inspected by Glamanot measured
        never built and inspected by Glama
    • Trust100 / 100 · weight 9%
      • License100
      • Published by the vendor it integratesnot measured
        not 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
  • Best 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 query tool 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 via DATABASE_URL.

    GitHub stars
    179
    Stars over the last 90 days: 176 at the earliest of 11 readings and 181 at the latest, up 5.
    Stars / 30 days
    0
    npm / typical week
    210
    Tools exposed
    never inspected
    Last commit
    289 days ago
    Commits / 12 weeks
    0
    Maintenance grade
    C
    Tool descriptions
    Not graded
    Score 55.9 — show every number behind it
    • Adoption64 / 100 · weight 40%
      • GitHub stars56
      • npm downloads49
      • Used through Glamanot measured
        not used through Glama in the last 30 days
    • Maintenance38 / 100 · weight 24%
      • Last commit touching this server42
        dated 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 quality68 / 100 · weight 13%
      • Tool description quality68
        tool descriptions not yet scored
      • Built and inspected by Glamanot measured
        never built and inspected by Glama
    • Trust100 / 100 · weight 9%
      • License100
      • Published by the vendor it integratesnot measured
        not 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
  • 11

    whodb-cli

    Community favourite
    clidey/whodb

    Best 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 stars
    5,009
    Stars over the last 90 days: 4,836 at the earliest of 47 readings and 5,009 at the latest, up 173.
    Stars / 30 days
    +107
    npm / typical week
    Ships no npm package
    Tools exposed
    12
    Last commit
    today
    Commits / 12 weeks
    715
    Weekly commits over the last 12 weeks, oldest first: 99, 64, 42, 140, 38, 35, 66, 66, 43, 45, 46, 31. 715 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    A
    Score 55.4 — show every number behind it
    • Adoption92 / 100 · weight 40%
      • GitHub stars92
      • npm downloadsnot measured
        no npm package
      • Used through Glamanot measured
        not 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 measured
        no 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
  • Best 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 stars
    908
    Stars over the last 90 days: 796 at the earliest of 9 readings and 908 at the latest, up 112.
    Stars / 30 days
    +33
    npm / typical week
    144
    Tools exposed
    never inspected
    Last commit
    156 days ago
    Commits / 12 weeks
    0
    Maintenance grade
    C
    Tool descriptions
    Not graded
    Score 55.3 — show every number behind it
    • Adoption81 / 100 · weight 40%
      • GitHub stars74
      • npm downloads46
      • Used through Glamanot measured
        not 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 quality68 / 100 · weight 13%
      • Tool description quality68
        tool descriptions not yet scored
      • Built and inspected by Glamanot measured
        never built and inspected by Glama
    • Trust100 / 100 · weight 9%
      • License100
      • Published by the vendor it integratesnot measured
        not 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
  • Best 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_tables and execute_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/server npm package that was not found published.

    GitHub stars
    16,198
    Stars over the last 90 days: 15,320 at the earliest of 52 readings and 16,198 at the latest, up 878.
    Stars / 30 days
    +224
    npm / typical week
    Ships no npm package
    Tools exposed
    never inspected
    Last commit
    today
    Commits / 12 weeks
    289
    Weekly commits over the last 12 weeks, oldest first: 26, 37, 41, 38, 16, 9, 15, 19, 33, 18, 12, 25. 289 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    Not graded
    Score 54.7 — show every number behind it
    • Adoption100 / 100 · weight 40%
      • GitHub stars100
      • npm downloadsnot measured
        no npm package
      • Used through Glamanot measured
        not 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 measured
        no npm download history
    • Tool quality68 / 100 · weight 13%
      • Tool description quality68
        tool descriptions not yet scored
      • Built and inspected by Glamanot measured
        never built and inspected by Glama
    • Trust100 / 100 · weight 9%
      • License100
      • Published by the vendor it integratesnot measured
        not 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
  • Best 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 stars
    540
    Stars over the last 90 days: 539 at the earliest of 10 readings and 540 at the latest, up 1.
    Stars / 30 days
    0
    npm / typical week
    Ships no npm package
    Tools exposed
    never inspected
    Last commit
    344 days ago
    Commits / 12 weeks
    0
    Maintenance grade
    D
    Tool descriptions
    Not graded
    Score 52.7 — show every number behind it
    • Adoption68 / 100 · weight 40%
      • GitHub stars68
      • npm downloadsnot measured
        no npm package
      • Used through Glamanot measured
        not 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 measured
        no npm download history
    • Tool quality68 / 100 · weight 13%
      • Tool description quality68
        tool descriptions not yet scored
      • Built and inspected by Glamanot measured
        never built and inspected by Glama
    • Trust100 / 100 · weight 9%
      • License100
      • Published by the vendor it integratesnot measured
        not 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
  • 15

    GraphJin

    Community favourite
    dosco/graphjin

    Best 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 stars
    3,144
    Stars over the last 90 days: 3,081 at the earliest of 30 readings and 3,144 at the latest, up 63.
    Stars / 30 days
    +19
    npm / typical week
    336
    Tools exposed
    never inspected
    Last commit
    today
    Commits / 12 weeks
    337
    Weekly commits over the last 12 weeks, oldest first: 18, 25, 10, 3, 2, 3, 28, 12, 30, 28, 57, 121. 337 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    Not graded
    Score 52.6 — show every number behind it
    • Adoption96 / 100 · weight 40%
      • GitHub stars87
      • npm downloads54
      • Used through Glamanot measured
        not 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 quality68 / 100 · weight 13%
      • Tool description quality68
        tool descriptions not yet scored
      • Built and inspected by Glamanot measured
        never 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 stars
    12
    Stars over the last 90 days: 7 at the earliest of 11 readings and 12 at the latest, up 5.
    Stars / 30 days
    +1
    npm / typical week
    70
    Tools exposed
    never inspected
    Last commit
    3 days ago
    Commits / 12 weeks
    25
    Weekly commits over the last 12 weeks, oldest first: 4, 3, 1, 3, 3, 3, 3, 1, 1, 1, 1, 1. 25 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    Not graded
    Score 52.6 — show every number behind it
    • Adoption44 / 100 · weight 40%
      • GitHub stars28
      • npm downloads39
      • Used through Glamanot measured
        not 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 quality68 / 100 · weight 13%
      • Tool description quality68
        tool descriptions not yet scored
      • Built and inspected by Glamanot measured
        never built and inspected by Glama
    • Trust100 / 100 · weight 9%
      • License100
      • Published by the vendor it integratesnot measured
        not 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
  • 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 stars
    0
    Stars / 30 days
    0
    npm / typical week
    Ships no npm package
    Tools exposed
    8
    Last commit
    2 days ago
    Commits / 12 weeks
    19
    Weekly commits over the last 12 weeks, oldest first: 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 2. 19 in total, and the last figure is the current week so far.
    Maintenance grade
    B
    Tool descriptions
    A
    Score 50.7 — show every number behind it
    • Adoption45 / 100 · weight 40%
      • GitHub stars0
      • npm downloadsnot measured
        no 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 measured
        no 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 measured
        not 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
  • 18

    dbx

    Community favourite
    t8y2/dbx

    Best 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 stars
    15,887
    Stars / 30 days
    no snapshot history
    npm / typical week
    downloads not counted
    Tools exposed
    never inspected
    Last commit
    today
    Commits / 12 weeks
    3,980
    Weekly commits over the last 12 weeks, oldest first: 306, 257, 318, 232, 356, 334, 354, 365, 325, 377, 325, 431. 3,980 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    Not graded
    Score 49.1 — show every number behind it
    • Adoption100 / 100 · weight 40%
      • GitHub stars100
      • npm downloadsnot measured
        npm publishes dbx from samt/node-dbx
      • Used through Glamanot measured
        not used through Glama in the last 30 days
    • Maintenance100 / 100 · weight 24%
      • Last commit touching this server100
      • Repository maintenance grade100
      • Commit cadence100
    • Momentum0 / 100 · weight 14%
      • Stars gained, relative to sizenot measured
        no snapshot history yet
      • Stars gained, absolutenot measured
        no snapshot history yet
      • npm download trendnot measured
        no npm download history
    • Tool quality68 / 100 · weight 13%
      • Tool description quality68
        tool descriptions not yet scored
      • Built and inspected by Glamanot measured
        never built and inspected by Glama
    • Trust100 / 100 · weight 9%
      • License100
      • Published by the vendor it integratesnot measured
        not 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
  • 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 stars
    82
    Stars / 30 days
    +82
    npm / typical week
    downloads not counted
    Tools exposed
    100
    Last commit
    today
    Commits / 12 weeks
    31
    Weekly commits over the last 12 weeks, oldest first: 0, 0, 0, 0, 0, 0, 18, 3, 10, 0, 0, 0. 31 in total, and the last figure is the current week so far.
    Maintenance grade
    B
    Tool descriptions
    A
    Score 48.3 — show every number behind it
    • Adoption48 / 100 · weight 40%
      • GitHub stars48
      • npm downloadsnot measured
        npm publishes mcp-server-db from Nam088/mcp-database-server-v2
      • Used through Glamanot measured
        not 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 measured
        no 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 measured
        not 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 stars
    26
    Stars over the last 90 days: 19 at the earliest of 26 readings and 26 at the latest, up 7.
    Stars / 30 days
    0
    npm / typical week
    266
    Tools exposed
    3
    Last commit
    11 days ago
    Commits / 12 weeks
    65
    Weekly commits over the last 12 weeks, oldest first: 5, 4, 2, 4, 15, 10, 0, 7, 7, 5, 1, 5. 65 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    D
    Score 48.3 — show every number behind it
    • Adoption57 / 100 · weight 40%
      • GitHub stars36
      • npm downloads52
      • Used through Glamanot measured
        not 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.

Other comparisons