Skip to content
Best of 2026 · updated 2026-11-23

Best Postgres MCP servers

We track 34 Postgres MCP servers. The most-starred is Prest (4,631 stars), followed by Dbhub and Onecli. 5 of the 25 listed here are remote servers you connect to over HTTP, with no local install. PerformanceMonitor has the most recent commit (1w ago). Most are written in TypeScript (7) and Go (3).

34 matches · MCP servers with Postgres in their name or GitHub topics, ranked by GitHub stars. Sponsored slots are labelled and never change the ranking.

How to add a Postgres MCP server to Claude Code

The install command from the Pgmcp README:

$brew install pgmcp

Each tool page has its own command, plus an mcp.json snippet for Cursor, Windsurf and Claude Desktop when the server needs no extra config. See the Pgmcp page for its setup.

#NameStars
1Prest prestGo · MIT · 2w ago4,631
2Dbhub bytebaseTypeScript · MIT · 2w ago3,817
3Onecli onecliTypeScript · Apache-2.0 · 1w ago3,630
4Butterbase butterbase-aiTypeScript · Apache-2.0 · 2w ago3,031
5Deft Maneek21TypeScript · AGPL-3.0 · 2w ago583
6Pgmcp subnetmarcoGo · 6mo ago542
7PerformanceMonitor erikdarlingdataC# · MIT · 1w ago528
8Atomicmemory atomicstrataTypeScript · 2w ago438
9EDDI labsaiJava · Apache-2.0 · 1mo ago384
10akb dnotitiaPython · 1mo ago162
11MCP PostgreSQL Ops call518Python · MIT · 1mo ago160
12Eion eiondbGo · AGPL-3.0 · 1y ago159
13Pgconsole pgplexTypeScript · Apache-2.0 · 3mo ago156
14Ogham MCP ogham-mcpPython · MIT · 1mo ago115
15Openhermit HCF-STUDIOSTypeScript · MIT · 1mo ago88
  1. Instant REST and MCP APIs for PostgreSQL and MySQL, on existing or new databases. CRUD, custom SQL routes, auth and ACL without writing a backend. Low-code, realtime…

    $git clone https://github.com/prest/prest
  2. Token conscious database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite.

    $npx @bytebase/dbhub@latest --transport http --port 8080 --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"
  3. Open-source sandboxed agent harness for teams. Giving every employee a secured personal agent.

    $git clone https://github.com/onecli/onecli
  4. Open-source backend-as-a-service. Postgres, auth, storage, functions, AI gateway, MCP.

    $git clone https://github.com/butterbase-ai/butterbase
  5. Self-hostable AGPL workspace where humans and AI agents share chat, tasks, knowledge, approvals, and MCP context.

    $git clone https://github.com/Maneek21/Deft
  6. Free, open-source SQL Server and Postgres performance monitoring. Collectors, real-time alerts, graphical plan viewer, MCP server for AI analysis. Supports SQL 2016-2025, Azure…

    $claude mcp add --transport http --scope user sql-monitor http://localhost:5151/
  7. Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise…

    $git clone https://github.com/labsai/EDDI
  8. #10akb

    AKB, Agent Knowledgebase. Organizational memory for AI agents: vault-scoped docs / tables / files unified by URI graph, served over MCP.

    $/plugin marketplace add dnotitia/akb
  9. OpenHermit is the open-source platform for deploying fleets of AI agents as production services, durable state, sandboxed execution, managed at scale, and the channels you…

    $npm install -g openhermit
  10. .NET SQL Agent MCP server featuring raw SQL input, strict AST validation, and an embedded Admin UI. Eliminates LLM hallucinations and security risks across 6 major databases.

    $git clone https://github.com/tse-wei-chen/hs-sql-agent