Anclum Submit

Best MCP servers for PostgreSQL

8 MCP servers that connect an agent to PostgreSQL — read-only query servers, tuning and ops tools, and services that create databases for you. The credential you hand over is the real decision.

How to choose

Almost every server here passes SQL straight through, so the choice is about permissions and blast radius, not features.

Our call: a read-only server on a scoped role covers dashboards and question answering; add a write-capable server only for migrations, keep it in a separate config, and point it at a database you can restore from a backup you have actually tested.

Compare

ToolWhat it doesInstallSourceStars
crystaldba/postgres-mcp Site ↗Postgres development and operations: performance analysis, tuning and health checks—awesome:punkpeye/awesome-mcp-servers3,403
neondatabase/mcp-server-neon Site ↗Create and manage Postgres databases with Neon Serverless Postgres—awesome:punkpeye/awesome-mcp-servers654
centralmind/gateway Site ↗Automatically generate APIs from database schema and data for PostgreSQL, ClickHouse, MySQ—awesome:punkpeye/awesome-mcp-servers548
subnetmarco/pgmcp Site ↗Natural-language queries for any PostgreSQL database, with automatic streaming and read-on—awesome:punkpeye/awesome-mcp-servers542
FreePeak/db-mcp-server Site ↗MySQL and PostgreSQL access: query execution, transaction management, schema exploration, —awesome:punkpeye/awesome-mcp-servers468
runekaagaard/mcp-alchemy Site ↗Access PostgreSQL, MySQL, MariaDB, SQLite, Oracle, SQL Server and more via SQLAlchemy, wit—awesome:punkpeye/awesome-mcp-servers421
ashishsinha1602/schemagate Site ↗Text-to-SQL access control: schema selection that gives the LLM only the tables the caller—awesome:punkpeye/awesome-mcp-servers105
TheRaLabs/legion-mcp Site ↗Multi-database access for PostgreSQL, Redshift, CockroachDB, MySQL, RDS MySQL, SQL Server,—awesome:punkpeye/awesome-mcp-servers95

Why these links: every card opens the entry's own page here first (what it does, how to install, how to verify the numbers); the tool's official site is one click further, and nothing here is a paid placement. Numbers come from public sources and are shown so you can check them.

Keep exploring: MCP directory · all fields · all AI tools · rankings