Best Postgres MCP Servers (July 2026) - Ranked by GitHub Stars
DBHub is the best mcp server for Postgres - 3.1k GitHub stars. Strong alternatives: Postgres and Memory Vault.
39 Postgres MCP servers for developers, ranked by GitHub stars. Every pick links to install commands and trust signals.
Ranked by Skillselion · adoption from the skills.sh registry & GitHub · data refreshed July 9, 2026.
The top 30 MCP servers for postgres
| # | MCP Server | Works with | Stars | Installs |
|---|---|---|---|---|
| 1 | Minimal, token-efficient Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB | Claude Code | 3.1k | 0 |
| 2 | Connect to your PostgreSQL database to query data and schemas. | Claude Code | 57 | 0 |
| 3 | Local-first AI memory layer with hybrid search. Postgres + pgvector. Self-hosted, MIT. | Claude Code | 56 | 0 |
| 4 | MCP Server for Metabase - 111 tools for SQL generation, dashboards & PostgreSQL | Claude Code | 45 | 0 |
| 5 | Database MCP server for MySQL, MariaDB, PostgreSQL & SQLite | Claude Code | 28 | 0 |
| 6 | Database MCP server for MySQL, MariaDB, PostgreSQL & SQLite | Claude Code | 28 | 0 |
| 7 | provides AI-powered PostgreSQL performance tuning capabilities. | Claude Code | 25 | 0 |
| 8 | Durable memory for AI agents: fact extraction, hybrid retrieval, temporal graph. SQLite/Postgres. | Claude Code | 19 | 0 |
| 9 | MCP server for SQLite, PostgreSQL, and MySQL with natural language to SQL and direct SQL tooling. | Claude Code | 18 | 0 |
| 10 | Infrastructure analysis for AWS (15 tools) — DynamoDB, Lambda, SQS, SNS, S3, PostgreSQL, MongoDB. | Claude Code | 14 | 0 |
| 11 | A production-grade PostgreSQL Model Context Protocol (MCP) server. | Claude Code | 7 | 0 |
| 12 | PostgreSQL MCP wrapper with.env credential mapping, tool selection, and safe read-only defaults. | Claude Code | 5 | 0 |
| 13 | MCP server for interacting with PostgreSQL databases | Claude Code | 2 | 0 |
| 14 | MCP server for read-only PostgreSQL database queries in Claude Desktop | Claude Code | 2 | 0 |
| 15 | PostgreSQL-backed virtual filesystem for agents: session isolation, shared stores, POSIX ops, RLS. | Claude Code | 2 | 0 |
| 16 | Persistent semantic memory for SQL databases. Postgres, MySQL, MSSQL, SQLite. | Claude Code | 1 | 0 |
| 17 | MCP server for database connectivity. Multi-DB (PostgreSQL, MySQL, SQLite), 19 tools. | Claude Code | 1 | 0 |
| 18 | A MCP server provides SQL database access with support for PostgreSQL, MySQL, and SQLite. | Claude Code | 1 | 0 |
| 19 | Connect AI tools to your PostgreSQL with permissions, encryption, and audit trails. | Claude Code | 0 | 0 |
| 20 | RLS/tenant-aware Postgres for AI agents — schema, read-only SQL, NL→SQL with safety rails. | Claude Code | 0 | 0 |
| 21 | MCP server for querying PostgreSQL databases | Claude Code | 0 | 0 |
| 22 | PostgreSQL MCP server - query, schema introspection, explain, and health checks for AI assistants | Claude Code | 0 | 0 |
| 23 | PostgreSQL MCP Server — 27 tools for queries, schema, CRUD, DBA, HA & server management | Claude Code | 0 | 0 |
| 24 | Scout your PostgreSQL databases with AI - safety features, monitoring, and data quality | Claude Code | 0 | 0 |
| 25 | Enterprise PostgreSQL MCP secured by Aegis Zero-Trust to block unauthorized SQL injections. | Claude Code | 0 | 0 |
| 26 | Read-only PostgreSQL, MySQL, SQL Server access via MCP — 24 dialect-aware hosted tools. | Claude Code | 0 | 0 |
| 27 | Database admin MCP: schema inspection, query optimization for PostgreSQL and MySQL | Claude Code | 0 | 0 |
| 28 | AI-native database utility. Talk to your DB in plain language. No SQL. MySQL & PostgreSQL. | Claude Code | 0 | 0 |
| 29 | MCP server for Databricks, BigQuery, PostgreSQL, MySQL, SQL Server, SQLite, MariaDB | Claude Code | 0 | 0 |
| 30 | Extract database metadata from PostgreSQL, Snowflake, SQL Server, BigQuery, and Oracle. | Claude Code | 0 | 0 |
Is Postgres well covered on Skillselion?
Postgres has one of the cleanest, most genuinely-dedicated match sets of any vendor tested - almost none of the rows are noise, ranging from dedicated drivers (waystation-ai, marcelo-ochoa) to specialty tools (PostgreSQL performance tuner, RLS-aware NL-to-SQL wrappers). DBHub leads on stars but is multi-dialect (also MySQL, SQL Server, SQLite, MariaDB); the page's lede should be honest that the single highest-starred pick isn't Postgres-exclusive, then let the dedicated Postgres-only servers carry the rest of the ranking.
Skillselion is an independent directory, not affiliated with Postgres.
Why these MCP servers rank for postgres
1. DBHub
DBHub ranks #1 of the 39 MCP servers for Postgres by adoption, with 3.1k GitHub stars. It minimal, token-efficient Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB.
2. Postgres
Postgres ranks #2 of the 39 MCP servers for Postgres by adoption, with 57 GitHub stars. It connect to your PostgreSQL database to query data and schemas.
3. Memory Vault
Memory Vault ranks #3 of the 39 MCP servers for Postgres by adoption, with 56 GitHub stars. It local-first AI memory layer with hybrid search. Postgres + pgvector. Self-hosted, MIT.
4. Metabase Ai Assistant
Metabase Ai Assistant ranks #4 of the 39 MCP servers for Postgres by adoption, with 45 GitHub stars. It mCP Server for Metabase - 111 tools for SQL generation, dashboards & PostgreSQL.
5. Database
Database ranks #5 of the 39 MCP servers for Postgres by adoption, with 28 GitHub stars. It database MCP server for MySQL, MariaDB, PostgreSQL & SQLite.
Common questions
How are these Postgres MCP servers ranked?
By GitHub stars across the 39 Postgres MCP servers that name Postgres in their own name or description - none of these report installs yet. Data from GitHub.
What counts as a Postgres MCP server on this list?
A tool counts here if its own name or description names Postgres directly - not merely an author handle or an unrelated mention - and it is registered as an MCP-type listing in the Skillselion catalog. That bar currently matches 39 servers.
Is Skillselion affiliated with Postgres?
No. Skillselion is an independent directory, not affiliated with Postgres. Rankings come from public GitHub adoption signals, not sponsorship or partnership.
More Postgres tools
Browse all MCP servers in the catalog, or see every best-of shortlist.