best of · updated August 2026

The 15 best Postgres MCP servers

The 15 Postgres MCP servers worth your time, out of 69 we track - actively maintained, with real adoption, ranked on monthly installs, GitHub stars, and commit recency. Checked nightly.

Everything here speaks Postgres: query it, inspect schemas, manage instances, or build on pgvector. The differences that matter are write access, connection pooling, and whether the server is read-only by default.

01 Dbhub ★ 3,395 · commit 2026-08-21 DBHub is a minimal MCP server: token-efficient, zero-dependency, and just two tools by default with opt-in extras. 97,593 installs/mo · 7 releases/90d · no env vars documented $ npx -y @bytebase/dbhub 02 Dbx ★ 16,462 · commit 2026-08-25 Query databases from AI agents using connections configured in DBX. 33,367 installs/mo · 10+ releases/90d · needs 2 env vars $ npx -y @dbx-app/mcp-server 03 Run402 ★ 23 · commit 2026-08-24 x402 pay-per-call infra for agents: $0.03 image generation, Postgres, auth, storage, functions. 10,585 installs/mo · 10+ releases/90d · no env vars documented $ npx -y run402-mcp 04 Geo Lens ★ 202 · commit 2026-08-24 Read-only access to a self-hosted GeoLens spatial catalog: datasets, features, maps, sandboxed SQL. 2,659 installs/mo · 10+ releases/90d · no env vars documented $ uvx geolens-mcp 05 Docs Mint ★ 72 · commit 2026-08-24 A self-hosted AI-native knowledge workspace and installable PWA for people, applications, and AI agents. 4,181 installs/mo · 10+ releases/90d · needs 5 env vars $ npx -y @hiai-gg/docsmint 06 Butterbase Ai MCP Server ★ 3,225 · commit 2026-08-24 AI-native, open-source backend-as-a-service. 206 installs/mo · needs 3 env vars $ npx -y @butterbase/mcp 07 Your Memory ★ 264 · commit 2026-08-22 Persistent, self-improving memory for AI agents - built on the science of how humans remember. 1,032 installs/mo · no env vars documented $ uvx yourmemory 08 Orionbelt Semantic Layer ★ 74 · commit 2026-08-24 OrionBelt Semantic Layer and Sidecar Define your metrics once in YAML. 861 installs/mo · 10+ releases/90d · needs 3 env vars $ uvx orionbelt-semantic-layer 09 Akb ★ 155 · commit 2026-08-24 Git-backed org memory for AI agents - hybrid search, tables, files & a URI graph over MCP. 477 installs/mo · 10+ releases/90d · no env vars documented $ npx -y akb-mcp 10 Aiven MCP ★ 26 · commit 2026-08-11 A Model Context Protocol (MCP) server for the Aiven cloud data platform. 1,829 installs/mo · 40 tools documented · 10+ releases/90d · needs 2 env vars $ npx -y mcp-aiven 11 Cuba Memorys ★ 26 · commit 2026-08-17 Persistent memory MCP server. 28 tools, BM25+MMR+OOD retrieval, tamper-evident audit, code graph. 2,563 installs/mo · 10+ releases/90d · needs 1 env var $ npx -y cuba-memorys 12 Pg Aiguide ★ 1,821 · commit 2026-06-26 AI-optimized PostgreSQL expertise for coding assistants pg-aiguide helps AI coding tools write dramatically better PostgreSQL code. 296 installs/mo · no env vars documented $ npx -y @tigerdata/pg-aiguide 13 Good Memory ★ 17 · commit 2026-08-22 Language: English | 简体中文 GoodMemory is a memory layer for AI products and coding agents. 1,376 installs/mo · 10+ releases/90d · needs 4 env vars $ npx -y goodmemory 14 Dryrun ★ 34 · commit 2026-08-23 The PostgreSQL MCP server that doesn't need connection to the production. 818 installs/mo · 10+ releases/90d · no env vars documented $ npx -y @boringsql/dryrun 15 Mcpg ★ 9 · commit 2026-08-24 A production-grade Model Context Protocol server for PostgreSQL. 1,049 installs/mo · 10+ releases/90d · needs 4 env vars $ uvx mcpg

How to choose between them

Dbhub tops the list - the most installs (97,593 last month) and actively maintained. 5 of these 15 offer a remote endpoint (no local process to run); the rest are local stdio servers. 7 document no required env vars - paste the config and go; the others need env vars set first (each page lists exactly which). Where we've compared two of these head-to-head, the comparison is linked on each one's page.

Quick answers

Which Postgres MCP server is most installed?

Dbhub, with 97,593 installs in the last month (as of August 2026). By GitHub stars the leader is Dbx (16,462).

How many Postgres MCP servers exist?

We track 69 actively-maintained MCP servers built for Postgres, matched from the official registry and each project's own description. The 15 above lead on monthly installs, GitHub stars, and commit recency.

All 69 Postgres MCP servers

Ranked 16 onward, same order as above. Status checked last night.

How this list is ranked

Ranked from live registry + GitHub data: monthly installs (npm/PyPI), GitHub stars, and commit recency - recomputed nightly. No pay-to-rank, ever. The 15 above lead the full list of 69, all of which you can see on this page. Full recipe: how we verify.