MCP servers for Postgres

104 ways to connect Postgres to Claude, Cursor or VS Code. 21 are hosted, so there's nothing to install; the rest run on your machine. Each row shows the security checks, the secrets asked for and an install command.

Sort
How we check servers

Registry data fetched

Postgres MCP servers 104

MCP servers, Postgres, most relevant first
Type Secrets Version Actions
★ 241 io.github.pgEdge/postgres-mcp

Enterprise PostgreSQL MCP server with NL queries, hybrid search (pgvector+BM25), and web UI

3/41 warning68health of 100DockerRuns locallyNoneno keys asked1.0.0
★ 65 ai.waystation/postgres

Connect to your PostgreSQL database to query data and schemas.

3/3All passed37health of 100RemoteHostedNoneno keys asked0.3.1
★ 40 ai.ekwo/mcp

Double-entry books an agent keeps as the user: invoices, VAT returns, 174 country packs.

8/91 warning59health of 100npmLocal or hosted4secrets asked0.23.0
★ 30 io.github.isdaniel/pgtuner_mcp

provides AI-powered PostgreSQL performance tuning capabilities.

7/7All passed48health of 100PyPIRuns locallyNoneno keys asked0.5.2
★ 24 io.github.antonorlov/mcp-postgres-server

MCP server for PostgreSQL: local, Docker, RDS, Neon, Supabase, or behind an SSH bastion.

6/82 warnings57health of 100npmRuns locally4secrets asked0.3.1
★ 12 io.github.neverinfamous/postgres-mcp

PostgreSQL MCP server with 203 tools, connection pooling, HTTP/SSE, OAuth 2.1, and tool filtering

7/7All passed64health of 100npmRuns locallyNoneno keys asked1.0.2
★ 12 io.github.neverinfamous/postgres-mcp-server

Enterprise PostgreSQL MCP server with 63 tools, 10 resources, 10 prompts for AI-native operations

4/4All passed62health of 100DockerRuns locallyNoneno keys asked1.2.0
★ 10 io.github.YawLabs/postgres-mcp

PostgreSQL MCP server - query, schema introspection, explain, and health checks for AI assistants

7/7All passed77health of 100npmRuns locallyNoneno keys asked0.13.9
★ 9 io.github.snss10/dbeast

PostgreSQL MCP server for schema, query, health, security, and performance analysis.

4/4All passed49health of 100DockerRuns locally2secrets asked2.0.2
★ 5 io.github.arifulislamat/database-mcp-postgres

MCP server for PostgreSQL. Read-only by default, row caps, timeouts, secrets never logged.

6/71 warning50health of 100npmRuns locally1secret asked0.5.0
★ 5 io.github.edelciomolina/postgres-mcp

PostgreSQL MCP wrapper with .env credential mapping, tool selection, and safe read-only defaults.

7/7All passed48health of 100npmRuns locallyNoneno keys asked1.7.0
★ 4 io.github.contextflo/postgres-mcp

Read-only Postgres: drop-in for the archived server-postgres, with schema context.

7/7All passed61health of 100npmRuns locally1secret asked0.1.4
★ 3 io.github.Eszetael/postgres-mcp-hardened

Read-only PostgreSQL over MCP. Writes refused at the parsed SQL, plus a READ ONLY transaction.

6/71 warning61health of 100npmRuns locally1secret asked0.1.10
★ 2 io.github.marcelo-ochoa/postgres

MCP server for interacting with PostgreSQL databases

7/7All passed54health of 100npmRuns locally1secret asked1.0.8
★ 2 capital.hove/read-only-local-postgres-mcp-server

MCP server for read-only PostgreSQL database queries in Claude Desktop

7/7All passed58health of 100npmRuns locallyNoneno keys asked0.1.0
★ 1 io.github.sezzlee/postgres

Explore and query PostgreSQL read-only: catalogue search, schema introspection and bounded queries.

7/7All passed50health of 100npmRuns locally1secret asked0.2.1
★ 1 io.github.musaddiq-dev/postgresql-mcp-server

Python MCP server for PostgreSQL database inspection and querying

7/7All passed43health of 100PyPIRuns locally1secret asked0.1.2
com.insightfulpipe/postgresql

Hosted PostgreSQL MCP server for Claude, ChatGPT and Cursor, with each action switched per account.

3/3All passed47health of 100RemoteHostedNoneno keys asked1.0.0
ai.kaiv/postgres

Read-only PostgreSQL MCP server. Drop-in replacement for the archived server-postgres.

7/7All passed52health of 100npmRuns locallyNoneno keys asked0.1.1
io.github.AIops-tools/postgres-aiops

Governed PostgreSQL DBA ops: slow-query RCA, bloat/vacuum & blocking-lock analysis; 35 MCP tools.

7/7All passed59health of 100PyPIRuns locallyNoneno keys asked0.12.0
io.github.gouranshul/pg-perf-mcp

Read-only PostgreSQL performance diagnostics: slow queries, EXPLAIN, index advice, locks, functions

4/4All passed52health of 100DockerRuns locally2secrets asked0.1.0
io.github.meob/pg-cve-mcp

PostgreSQL security for AI agents: CVEs, yanked releases, exploits, and upgrade paths

7/7All passed51health of 100PyPIRuns locallyNoneno keys asked1.0.4
io.github.NexQL-OSS/nexql-mcp

Standalone Postgres MCP server — schema-aware, read-only by default, installable everywhere.

6/71 warning55health of 100npmRuns locally1secret asked0.2.4
io.prisma/mcp Official Prisma, hosted Unlisted

Manage Prisma Postgres and existing Prisma Compute apps. Requires sign-in; does not upload code.

2/31 warningNo dataRemoteHostedNoneno keys asked1.1.0
★ 3.7k io.github.bytebase/dbhub

Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite

6/82 warnings76health of 100npmRuns locally4secrets asked1.5.0
★ 1.9k io.github.timescale/pg-aiguide Code reviewed

Comprehensive PostgreSQL documentation and best practices, including ecosystem tools

8/91 warning73health of 100npmLocal or hosted7secrets asked0.6.1
★ 658 com.neon/mcp Official Neon, hosted

Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.

3/3All passed72health of 100RemoteHostedNoneno keys asked1.0.0
★ 166 io.github.faucetdb/faucet

SQL database to MCP tools and REST API: PostgreSQL, MySQL, SQL Server, Oracle, SQLite, Snowflake.

7/7All passed60health of 100npmRuns locallyNoneno keys asked0.1.15
★ 94 io.github.backenly/backenly

Postgres backend your coding agent builds over MCP; destructive actions wait for a person.

8/8All passed75health of 100npmLocal or hosted1secret asked0.4.0
★ 72 io.github.appwrite/mcp Official Appwrite

Build and deploy backends: auth, Postgres/MySQL/vector databases, storage, functions, hosting, CDN

5/5All passed77health of 100PyPILocal or hostedNoneno keys asked2.0.1
★ 65 io.github.MihaiBuilds/memory-vault

Local-first AI memory layer with hybrid search. Postgres + pgvector. Self-hosted, MIT.

4/4All passed69health of 100DockerRuns locally1secret asked1.6.1
★ 48 io.github.enessari/metabase-ai-assistant

MCP Server for Metabase - 111 tools for SQL generation, dashboards & PostgreSQL

7/81 warning54health of 100npmRuns locally3secrets asked3.2.0
★ 36 io.github.boringSQL/dryrun

PostgreSQL schema intelligence from a committed snapshot. No connection, no credentials.

7/7All passed68health of 100npmRuns locallyNoneno keys asked0.20.0
★ 33 ai.haymon/dbmcp

Database MCP server for MySQL, MariaDB, PostgreSQL & SQLite with PII redaction and write-prevention

4/4All passed65health of 100DockerRuns locally1secret asked0.15.2
★ 30 io.github.nicholasglazer/gnosis

Zero-config MCP server for searchable documentation. SQLite or PostgreSQL.

7/7All passed67health of 100PyPIRuns locallyNoneno keys asked0.17.5
★ 28 io.aiven/mcp

Provision PostgreSQL, manage Apache Kafka, and deploy apps with Aiven - all from your AI assistant.

8/8All passed66health of 100npmLocal or hosted1secret asked1.18.0
★ 24 com.run402/mcp

x402 pay-per-call infra for agents: $0.03 image generation, Postgres, auth, storage, functions.

7/81 warning76health of 100npmLocal or hostedNoneno keys asked4.104.2
★ 24 com.dbconvert/streams

Read-only SQL across your PostgreSQL, MySQL, S3 buckets and local data files, in one query.

4/4All passed66health of 100MCPBRuns locallyNoneno keys asked2.7.3
★ 23 io.github.jamjet-labs/engram-server

Durable memory for AI agents: fact extraction, hybrid retrieval, temporal graph. SQLite/Postgres.

4/4All passed60health of 100DockerRuns locallyNoneno keys asked0.5.0
★ 19 io.github.Souhar-dya/mcp-db-server

MCP server for SQLite, PostgreSQL, and MySQL with natural language to SQL and direct SQL tooling.

4/4All passed57health of 100DockerRuns locallyNoneno keys asked1.3.1
★ 15 io.github.cuipengdba/agentsql

Guard AI agents' PostgreSQL/MySQL access via MCP: SQL audit, auth, masking, write approval

3/3All passed64health of 100RemoteHostedNoneno keys asked0.4.0
★ 14 io.github.devopam/mcpg

Production-grade PostgreSQL MCP server — 254 tools for query, tuning & ops, read-only by default.

7/7All passed61health of 100PyPIRuns locallyNoneno keys asked0.8.3
★ 10 io.github.tribal-memory/tribal

Self-hosted semantic memory over MCP for an engineering team's tacit knowledge. Needs Postgres.

4/4All passed49health of 100DockerRuns locally2secrets asked0.4.1
★ 9 io.github.mickelsamuel/migrationpilot

112 rules that catch dangerous PostgreSQL migrations, plus a pass/fail gate to call before any DDL.

6/71 warning54health of 100npmRuns locallyNoneno keys asked1.6.4
★ 8 io.github.orifisher2/sqlike-mcp

Lints SQL and checks rewrites return the same rows. Postgres, MySQL, MariaDB, SQLite, MSSQL, DuckDB

7/7All passed66health of 100npmRuns locally1secret asked0.2.3
★ 7 io.github.owen282000/life-dashboard

Read-only health and screen time history from the Postgres of a self-hosted Life Dashboard Stack

4/4All passed59health of 100DockerRuns locally1secret asked1.2.0
★ 7 io.github.AYUSH-148/db-explorer-mcp-server

Read-only SQL for PostgreSQL, MySQL and SQLite: schema, safe SELECTs, EXPLAIN, index advice

7/7All passed52health of 100PyPIRuns locally1secret asked0.1.0
★ 7 io.github.thegoodguysla/myco-brain

Shared, source-backed memory for AI agents on your own Postgres, with an optional document engine.

7/7All passed54health of 100npmRuns locallyNoneno keys asked1.3.0
★ 6 io.github.GiulioDER/re-call

Agent memory on your own Postgres that flags superseded facts and abstains instead of guessing.

5/72 warnings62health of 100PyPIRuns locally1secret asked0.14.0
★ 6 com.superagnt/superagnt

AI agent toolkit: live social media data, lead enrichment + email finder, Postgres DB, webhooks.

3/3All passed57health of 100RemoteHostedNoneno keys asked0.1.0

Showing 1 to 50 of 104. These are the most recently updated; search or pick a category for the rest.

Postgres MCP servers: questions people ask

Which Postgres MCP server should I use?

Prisma Postgres and Prisma Compute is published by the company behind Postgres, which makes it the safest first pick. On GitHub stars, postgres-mcp (★ 241), postgres (★ 65) and Ekwo OS — open source accounting: ledger, invoices and VAT on your own Supabase or Postgres (★ 40) lead the 104 we list. postgres is named for Postgres and passed every check we run.

Is it safe to give an AI a Postgres MCP server?

84 of the 104 passed every registry check. Reading the package code or tool descriptions of 72 of them turned up 9 with something to look at, from install scripts to obfuscated code. A clean result means none of our patterns matched, not that a server is safe.

Are Postgres MCP servers kept up to date?

57 of the 104 were updated in the 30 days before 31 Oct 2026. The latest was Midplane, on 28 October.

MCP server or Claude skill for Postgres?

An MCP server gives the AI new tools, such as reaching Postgres itself. A skill only teaches it how to do a task with tools it already has. There are 158 Claude skills for Postgres if that fits better.

Hosted or local: how do Postgres MCP servers run?

21 can run hosted, so you only paste a URL into Claude, Cursor or VS Code. The 90 that run locally ship as 48 npm, 23 PyPI, 16 Docker and 3 MCPB bundle packages.

More topics: every “MCP server for…” page. Prefer a skill? Claude skills for this (158).