Skip to main content
Glama

20 Best PostgreSQL MCP Servers, Compared (September 2026)

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

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 situationWhat 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 forProfile
1AI coding assistants that write PostgreSQL code: it provides semantic search over official PostgreSQL, TimescaleDB, and PostGIS docs.Community favourite1,835+302 days ago84.0
2Developers and DBAs using AI assistants to optimize PostgreSQL: it provides index tuning, explain plans, health checks, and safe SQL execution.Community favourite3,260+10022 days ago81.3
3PostgreSQL teams that need a read-only default: it exposes 18 tools and requires explicit security-mode flags for writes, DDL, and arbitrary SQL.Community favourite198075 days ago70.9
4Developers 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 favourite3,450+523today70.2
5Read-only queries against production databases: it exposes query and schema search tools, with row limits and query timeouts.Community favourite3,456+1645 days ago69.9
6Monitoring an existing PostgreSQL instance without write risk: it exposes read-only tools for locks, WAL, replication, bloat, vacuum, and query stats.Steady161+238 days ago67.8
7Developers pairing Prisma Postgres with an AI coding agent: the shipped skills and primer let the agent drive Prisma Next workflows end to end.Community favourite47,590+444 days ago67.5
8Internal tools and developer workflows that need natural-language querying of PostgreSQL, because it includes an agent that turns natural language into SQL.Steady222+82 days ago64.9
9Querying and inspecting databases from VS Code: the MCP server exposes schemas and executes queries.Community favourite340+17today59.6
10AI-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 favourite21+1yesterday58.9
11Managing databases across many engines from an MCP client: it provides natural language querying and database management through MCP.Community favourite18,129+4,418today57.5
12Connecting AI agents and IDEs to enterprise databases: it provides prebuilt generic database tools and a framework for custom tools with restricted access.Community favourite16,316+1962 days ago54.4
13For teams that need a single MCP server for multiple databases: it supports MySQL, PostgreSQL, and Redis, with stdio and HTTP access modes.Abandoned but popular922+25174 days ago53.9
14For read-only analysis of PostgreSQL: exposes a query tool and schema resources, writes off by default.Abandoned but popular180+1307 days ago53.4
15Read-only exploration and querying of PostgreSQL databases: it offers schema discovery, query execution, and secure connection handling.Abandoned but popular5400361 days ago52.7
16Terminal-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 favourite5,018+19today52.6
17PostgreSQL-backed AI agents that need governed, auditable access: it exposes MCP with schema discovery and natural-language SQL compilation.Community favourite3,158+29today52.2
18A 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.Emerging58+14today48.8
19Developers using AI IDEs who want to deploy to Tencent CloudBase from chat: it operates databases, functions, storage, and deploys from conversation.Community favourite1,093+30today48.5
20Administering 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.Emerging82+823 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 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.
  • 1

    pg-aiguide

    Community favourite 1
    timescale/pg-aiguide

    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 stars
    1,835
    Stars over the last 90 days: 1,768 at the earliest of 13 readings and 1,835 at the latest, up 67.
    Stars / 30 days
    +30
    npm / typical week
    49
    Tools exposed
    never inspected
    Last commit
    2 days ago
    Commits / 12 weeks
    17
    Weekly commits over the last 12 weeks, oldest first: 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 5, 10. 20 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    Not graded
    Score 84.0: show every number behind it
    • Adoption84 / 100 · weight 40%
      • GitHub stars82
      • 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
    • 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 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
    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 stars
    3,260
    Stars over the last 90 days: 2,941 at the earliest of 9 readings and 3,260 at the latest, up 319.
    Stars / 30 days
    +100
    npm / typical week
    Ships no npm package
    Tools exposed
    9
    Last commit
    22 days ago
    Commits / 12 weeks
    1
    Weekly commits over the last 12 weeks, oldest first: 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0. 1 in total, and the last figure is the current week so far.
    Maintenance grade
    D
    Tool descriptions
    A
    Score 81.3: 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
      • Repository maintenance grade30
      • Commit cadence40
    • Momentum75 / 100 · weight 14%
      • Stars gained, relative to size71
      • 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.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 stars
    198
    Stars over the last 90 days: 192 at the earliest of 9 readings and 198 at the latest, up 6.
    Stars / 30 days
    0
    npm / typical week
    2.3K
    Tools exposed
    18
    Last commit
    75 days ago
    Commits / 12 weeks
    11
    Weekly commits over the last 12 weeks, oldest first: 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0. 11 in total, and the last figure is the current week so far.
    Maintenance grade
    B
    Tool descriptions
    B
    Score 70.9: show every number behind it
    • Adoption80 / 100 · weight 40%
      • GitHub stars57
      • npm downloads71
      • 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
    • 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 measured
        not 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 stars
    3,450
    Stars over the last 90 days: 2,274 at the earliest of 26 readings and 3,401 at the latest, up 1,127.
    Stars / 30 days
    +523
    npm / typical week
    Ships no npm package
    Tools exposed
    never inspected
    Last commit
    today
    Commits / 12 weeks
    221
    Weekly commits over the last 12 weeks, oldest first: 22, 28, 43, 20, 11, 2, 33, 11, 8, 12, 12, 18. 220 in total, and the last figure is the current week so far.
    Maintenance grade
    B
    Tool descriptions
    Not graded
    Score 70.2: 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
    • 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 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
    90.0
    × relevance: the keyword is declared here
    0.78
    × continuity: actively changing
    1.00
    × evidence: widely adopted
    1.00
    Composite score
    70.2
  • 5

    DBHub

    Community favouriteNo change
    bytebase/dbhub

    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 stars
    3,456
    Stars over the last 90 days: 3,013 at the earliest of 14 readings and 3,480 at the latest, up 467.
    Stars / 30 days
    +164
    npm / typical week
    downloads not counted
    Tools exposed
    never inspected
    Last commit
    5 days ago
    Commits / 12 weeks
    76
    Weekly commits over the last 12 weeks, oldest first: 0, 10, 1, 6, 9, 3, 34, 2, 1, 4, 0, 6. 76 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    Not graded
    Score 69.9: 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
    • Momentum89 / 100 · weight 14%
      • Stars gained, relative to size89
      • Stars gained, absolute90
      • 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
    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 stars
    161
    Stars over the last 90 days: 151 at the earliest of 11 readings and 161 at the latest, up 10.
    Stars / 30 days
    +2
    npm / typical week
    Ships no npm package
    Tools exposed
    34
    Last commit
    38 days ago
    Commits / 12 weeks
    20
    Weekly commits over the last 12 weeks, oldest first: 3, 1, 9, 0, 1, 0, 6, 0, 0, 0, 0, 0. 20 in total, and the last figure is the current week so far.
    Maintenance grade
    B
    Tool descriptions
    A
    Score 67.8: 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
    • Momentum30 / 100 · weight 14%
      • Stars gained, relative to size35
      • Stars gained, absolute21
      • 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
    67.8
    × relevance: the keyword is dedicated here
    1.00
    × continuity: actively changing
    1.00
    × evidence: widely adopted
    1.00
    Composite score
    67.8
  • 7

    Prisma MCP Server

    Community favourite 1
    prisma/orm

    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 stars
    47,590
    Stars over the last 90 days: 46,407 at the earliest of 29 readings and 47,600 at the latest, up 1,193.
    Stars / 30 days
    +44
    npm / typical week
    downloads not counted
    Tools exposed
    never inspected
    Last commit
    4 days ago
    Commits / 12 weeks
    384
    Weekly commits over the last 12 weeks, oldest first: 13, 16, 17, 33, 42, 35, 36, 41, 66, 28, 15, 8. 350 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    Not graded
    Score 67.5: 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
    • Momentum34 / 100 · weight 14%
      • Stars gained, relative to size12
      • Stars gained, absolute67
      • 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
    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 stars
    222
    Stars over the last 90 days: 181 at the earliest of 25 readings and 222 at the latest, up 41.
    Stars / 30 days
    +8
    npm / typical week
    Ships no npm package
    Tools exposed
    never inspected
    Last commit
    2 days ago
    Commits / 12 weeks
    130
    Weekly commits over the last 12 weeks, oldest first: 10, 24, 0, 2, 5, 21, 12, 21, 12, 4, 6, 5. 122 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    Not graded
    Score 64.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
    • Momentum52 / 100 · weight 14%
      • Stars gained, relative to size61
      • Stars gained, absolute39
      • 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
    • 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
  • 9

    DBCode

    Community favouriteNo change
    dbcodeio/public

    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 stars
    340
    Stars over the last 90 days: 304 at the earliest of 32 readings and 346 at the latest, up 42.
    Stars / 30 days
    +17
    npm / typical week
    downloads not counted
    Tools exposed
    never inspected
    Last commit
    today
    Commits / 12 weeks
    66
    Weekly commits over the last 12 weeks, oldest first: 3, 2, 3, 1, 3, 19, 7, 5, 2, 4, 11, 8. 68 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    Not graded
    Score 59.6: 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
    • Momentum66 / 100 · weight 14%
      • Stars gained, relative to size77
      • Stars gained, absolute50
      • 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
    76.4
    × relevance: the keyword is declared here
    0.78
    × continuity: actively changing
    1.00
    × evidence: widely adopted
    1.00
    Composite score
    59.6
  • 10

    infrawise

    Community favouriteNo change
    Sidd27/infrawise

    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 stars
    21
    Stars over the last 90 days: 12 at the earliest of 38 readings and 21 at the latest, up 9.
    Stars / 30 days
    +1
    npm / typical week
    452
    Tools exposed
    22
    Last commit
    yesterday
    Commits / 12 weeks
    263
    Weekly commits over the last 12 weeks, oldest first: 23, 9, 22, 19, 24, 29, 25, 30, 23, 16, 13, 13. 246 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    A
    Score 58.9: show every number behind it
    • Adoption62 / 100 · weight 40%
      • GitHub stars34
      • npm downloads57
      • 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
    • 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 measured
        not 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
  • 11

    dbx

    Community favourite 1
    t8y2/dbx

    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 stars
    18,129
    Stars over the last 90 days: 12,562 at the earliest of 26 readings and 18,438 at the latest, up 5,876.
    Stars / 30 days
    +4,418
    npm / typical week
    downloads not counted
    Tools exposed
    never inspected
    Last commit
    today
    Commits / 12 weeks
    4,163
    Weekly commits over the last 12 weeks, oldest first: 232, 356, 334, 354, 365, 325, 377, 325, 431, 386, 297, 387. 4,169 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    Not graded
    Score 57.5: 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
    • Momentum100 / 100 · weight 14%
      • Stars gained, relative to size100
      • Stars gained, absolute100
      • 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
    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 stars
    16,316
    Stars over the last 90 days: 15,643 at the earliest of 52 readings and 16,341 at the latest, up 698.
    Stars / 30 days
    +196
    npm / typical week
    Ships no npm package
    Tools exposed
    never inspected
    Last commit
    2 days ago
    Commits / 12 weeks
    271
    Weekly commits over the last 12 weeks, oldest first: 38, 16, 9, 15, 19, 33, 18, 12, 25, 13, 29, 21. 248 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    Not graded
    Score 54.4: 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
    • Momentum64 / 100 · weight 14%
      • Stars gained, relative to size45
      • Stars gained, absolute93
      • 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.7
    × relevance: the keyword is tagged here
    0.60
    × continuity: actively changing
    1.00
    × evidence: widely adopted
    1.00
    Composite score
    54.4
  • 13

    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 stars
    922
    Stars over the last 90 days: 841 at the earliest of 9 readings and 926 at the latest, up 85.
    Stars / 30 days
    +25
    npm / typical week
    133
    Tools exposed
    never inspected
    Last commit
    174 days ago
    Commits / 12 weeks
    0
    Maintenance grade
    C
    Tool descriptions
    Not graded
    Score 53.9: show every number behind it
    • Adoption81 / 100 · weight 40%
      • GitHub stars74
      • npm downloads45
      • 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
    • Momentum46 / 100 · weight 14%
      • Stars gained, relative to size63
      • Stars gained, absolute57
      • npm download trend0
    • 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
    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 stars
    180
    Stars over the last 90 days: 178 at the earliest of 10 readings and 180 at the latest, up 2.
    Stars / 30 days
    +1
    npm / typical week
    210
    Tools exposed
    never inspected
    Last commit
    307 days ago
    Commits / 12 weeks
    0
    Maintenance grade
    D
    Tool descriptions
    Not graded
    Score 53.4: 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
    • Maintenance32 / 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 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 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
    53.4
    × relevance: the keyword is dedicated here
    1.00
    × continuity: actively changing
    1.00
    × evidence: widely adopted
    1.00
    Composite score
    53.4
  • 15

    pg-mcp-server

    Abandoned but popular 3
    stuzero/pg-mcp-server

    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 stars
    540
    Stars over the last 90 days: 541 at the earliest of 9 readings and 540 at the latest, down 1.
    Stars / 30 days
    0
    npm / typical week
    Ships no npm package
    Tools exposed
    never inspected
    Last commit
    361 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
  • 16

    whodb-cli

    Community favouriteNo change
    clidey/whodb

    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 stars
    5,018
    Stars over the last 90 days: 4,858 at the earliest of 50 readings and 5,022 at the latest, up 164.
    Stars / 30 days
    +19
    npm / typical week
    Ships no npm package
    Tools exposed
    12
    Last commit
    today
    Commits / 12 weeks
    608
    Weekly commits over the last 12 weeks, oldest first: 140, 38, 35, 66, 66, 43, 45, 46, 35, 60, 17, 8. 599 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    A
    Score 52.6: show every number behind it
    • Adoption93 / 100 · weight 40%
      • GitHub stars93
      • 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
    • Momentum36 / 100 · weight 14%
      • Stars gained, relative to size25
      • Stars gained, absolute52
      • 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
    87.7
    × relevance: the keyword is tagged here
    0.60
    × continuity: actively changing
    1.00
    × evidence: widely adopted
    1.00
    Composite score
    52.6
  • 17

    GraphJin

    Community favouriteNo change
    dosco/graphjin

    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 stars
    3,158
    Stars over the last 90 days: 3,082 at the earliest of 37 readings and 3,162 at the latest, up 80.
    Stars / 30 days
    +29
    npm / typical week
    714
    Tools exposed
    never inspected
    Last commit
    today
    Commits / 12 weeks
    501
    Weekly commits over the last 12 weeks, oldest first: 3, 2, 3, 28, 12, 30, 28, 57, 121, 92, 116, 4. 496 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    Not graded
    Score 52.2: show every number behind it
    • Adoption92 / 100 · weight 40%
      • GitHub stars87
      • npm downloads30
        downloads show none of the weekday rhythm human traffic has; halved
      • 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
    • Momentum60 / 100 · weight 14%
      • Stars gained, relative to size38
      • Stars gained, absolute59
      • 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.0
    × relevance: the keyword is tagged here
    0.60
    × continuity: actively changing
    1.00
    × evidence: widely adopted
    1.00
    Composite score
    52.2
  • 18

    tela

    Emerging 2
    zcag/tela

    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 stars
    58
    Stars over the last 90 days: 6 at the earliest of 27 readings and 61 at the latest, up 55.
    Stars / 30 days
    +14
    npm / typical week
    Ships no npm package
    Tools exposed
    41
    Last commit
    today
    Commits / 12 weeks
    583
    Weekly commits over the last 12 weeks, oldest first: 26, 197, 107, 7, 10, 4, 16, 48, 12, 10, 31, 37. 505 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    A
    Score 48.8: show every number behind it
    • Adoption44 / 100 · weight 40%
      • GitHub stars44
      • 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
    • Momentum79 / 100 · weight 14%
      • Stars gained, relative to size100
      • Stars gained, absolute48
      • npm download trendnot measured
        no 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 measured
        not 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 stars
    1,093
    Stars over the last 90 days: 1,035 at the earliest of 52 readings and 1,097 at the latest, up 62.
    Stars / 30 days
    +30
    npm / typical week
    Ships no npm package
    Tools exposed
    never inspected
    Last commit
    today
    Commits / 12 weeks
    676
    Weekly commits over the last 12 weeks, oldest first: 73, 28, 1, 43, 51, 68, 81, 53, 128, 70, 28, 80. 704 in total, and the last figure is the current week so far.
    Maintenance grade
    A
    Tool descriptions
    Not graded
    Score 48.5: show every number behind it
    • Adoption76 / 100 · weight 40%
      • GitHub stars76
      • 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
    • Momentum62 / 100 · weight 14%
      • Stars gained, relative to size64
      • Stars gained, absolute60
      • 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
    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 stars
    82
    Stars / 30 days
    +82
    npm / typical week
    downloads not counted
    Tools exposed
    100
    Last commit
    3 days ago
    Commits / 12 weeks
    43
    Weekly commits over the last 12 weeks, oldest first: 0, 0, 0, 15, 3, 3, 16, 0, 0, 5, 0, 1. 43 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

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.

Other comparisons