Best MCP Servers for PostgreSQL (2026)
Postgres access ranges from read-only analytics (Postgres MCP by Crystal DBA, with index tuning) to full hosted-platform control (Neon's server), multi-database gateways (Centralmind, Legion, DB MCP Server), and a hosted PostgreSQL listing.
This page collects the 9 MCP servers in our directory that genuinely cover postgresql — together they have 6,886 GitHub stars, and 0 of them run as hosted services you can connect to without installing anything. The highest-rated options are crystaldba/postgres-mcp, julien040/anyquery, neondatabase/mcp-server-neon.
How to choose
Use Crystal DBA's server for safe production analytics, Neon if your database is on Neon, and a gateway like Centralmind when Postgres is one of several databases behind one endpoint.
crystaldba/postgres-mcp
by crystaldba
🐍 🏠 - All-in-one MCP server for Postgres development and operations, with tools for performance analysis, tuning, and health checks
npx -y crystaldba-postgres-mcpjulien040/anyquery
by julien040
🏎️ 🏠 ☁️ - Query more than 40 apps with one binary using SQL. It can also connect to your PostgreSQL, MySQL, or SQLite compatible database. Local-first and private by design.
npx -y julien040-anyqueryneondatabase/mcp-server-neon
by neondatabase
📇 ☁️ — An MCP Server for creating and managing Postgres databases using Neon Serverless Postgres
npx -y neonctl@latestsubnetmarco/pgmcp
by subnetmarco
🏎️ 🏠 - Natural language PostgreSQL queries with automatic streaming, read-only safety, and universal database compatibility.
npx -y subnetmarco-pgmcpcentralmind/gateway
by centralmind
🏎️ 🏠 🍎 🪟 - MCP and MCP SSE Server that automatically generate API based on database schema and data. Supports PostgreSQL, Clickhouse, MySQL, Snowflake, BigQuery, Supabase
npx -y centralmind-gatewayrunekaagaard/mcp-alchemy
by runekaagaard
🐍 🏠 - Universal SQLAlchemy-based database integration supporting PostgreSQL, MySQL, MariaDB, SQLite, Oracle, MS SQL Server and many more databases. Features schema and relationship inspection, and l
npx -y runekaagaard-mcp-alchemyFreePeak/db-mcp-server
by FreePeak
🏎️ 🏠 – A high-performance multi-database MCP server built with Golang, supporting MySQL & PostgreSQL (NoSQL coming soon). Includes built-in tools for query execution, transaction management, schema
npx -y @freepeak/db-mcp-serverTheRaLabs/legion-mcp
by TheRaLabs
🐍 🏠 Universal database MCP server supporting multiple database types including PostgreSQL, Redshift, CockroachDB, MySQL, RDS MySQL, Microsoft SQL Server, BigQuery, Oracle DB, and SQLite.
npx -y @modelcontextprotocol/inspectorPostgreSQL
by Anthropic
Execute SQL queries, explore schema, and interact with PostgreSQL databases safely.
npx @modelcontextprotocol/server-postgres postgresql://localhost/mydbFrequently asked questions
What is the most popular MCP server for PostgreSQL?
crystaldba/postgres-mcp leads this list with 2,688 GitHub stars. 🐍 🏠 - All-in-one MCP server for Postgres development and operations, with tools for performance analysis, tuning, and health checks
Are these PostgreSQL MCP servers free to use?
8 of the 9 servers here publish a license in the directory (MIT, NOASSERTION, Apache-2.0). 0 of them run as hosted services you can connect to remotely; the rest you install and run yourself. Hosted services may have their own pricing.
How do I choose an MCP server for PostgreSQL?
Use Crystal DBA's server for safe production analytics, Neon if your database is on Neon, and a gateway like Centralmind when Postgres is one of several databases behind one endpoint.
