Best PostgreSQL MCP servers

We installed and handshake-tested 3 tested agent tools and MCP servers for PostgreSQL. Short answer: PostgreSQL MCP (HenkDz) (80/100). This list includes paid and keyed servers; servers that need a key are labelled, and we have not tested any of them with real credentials.

Last tested 2026-10-22

How we test: methodology. Not tested by us: security, output quality, and behaviour with real credentials.

Ranked by test score

ServerScoreStatusToolsSchema tokens (est.)Functional tasksGitHub stars
PostgreSQL MCP (HenkDz)
@henkey/postgres-mcp-server
80working18~5,787SQL SELECT on seeded table (expect testedmcp-alpha): pass (pg_execute_sql)201
Postgres MCP Pro (Crystal DBA)
postgres-mcp
60failedNot measuredNot measuredNot measured3,418

Ranked by score, then GitHub stars. Failed = did not complete the MCP handshake without credentials or a backing service.

Don't use (deprecated or archived)

  • Postgres (legacy reference) (@modelcontextprotocol/server-postgres), legacy score 70: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

Free only: free-only database MCP servers.

FAQ

What is the best PostgreSQL MCP server?

In our 2026-10-22 tests, PostgreSQL MCP (HenkDz) (@henkey/postgres-mcp-server) ranked first with 80/100 and 18 tools listed. Ranking uses our test score, then GitHub stars as a tie-break.

Which PostgreSQL MCP server uses the least context?

PostgreSQL MCP (HenkDz) lists 18 tools at about 5,787 schema tokens, the lowest among maintained servers here that we measured.

Which PostgreSQL MCP servers are deprecated?

Postgres (legacy reference) (@modelcontextprotocol/server-postgres): Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.