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 188 MCP servers in our directory that genuinely cover postgresql — together they have 6,886 GitHub stars, and 61 of them run as hosted services you can connect to without installing anything. The highest-rated options are crystaldba/postgres-mcp, julien040/anyquery, 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-anyqueryNeon
by neondatabase
Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.
https://mcp.neon.tech/mcpsubnetmarco/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/inspectorAderlo Cloud
by cloud.aderlo
Manage Aderlo Cloud hosting: files, DNS, MySQL/PostgreSQL databases and WP-CLI over OAuth scopes.
https://aderlo.cloud/api/mcpAgentSQL
by io.github.cuipengdba
Guard AI agents' PostgreSQL/MySQL access via MCP: SQL audit, auth, masking, write approval
https://demo.agentsql.cn/mcpAI2SQL
by io.ai2sql
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
https://builder.ai2sql.io/api/chatgpt-mcpainative-postgres-mcp
by io.github.AINative-Studio
Zero-config Postgres MCP with auto-provisioning — drop-in for server-postgres.
npx -y ainative-postgres-mcp@1.0.1Aiven MCP
by io.aiven
Provision PostgreSQL, manage Apache Kafka, and deploy apps with Aiven - all from your AI assistant.
npx -y mcp-aiven@1.18.1alpacacloud-mcp
by io.github.Melgencer
Connect AI agents to Alpaca Cloud: Postgres, Auth, Storage, Sandboxes, and Workflows.
npx -y @alpacacloud/mcp@1.4.2amnesic
by io.github.SurajKGoyal
Persistent semantic memory for SQL databases. Postgres, MySQL, MSSQL, SQLite.
uvx amnesic@0.2.2amu-pgvector
by io.github.sangaraju1988
Lineage-gated agent memory tools on Postgres + pgvector, enforced by row-level security.
uvx amu-pgvector@0.1.3Appbricx
by com.appbricx
Build, verify and deploy full-stack apps: Postgres, sign-in, workflows, realtime, AI, rollback.
https://www.appbricx.com/api/mcpAtlas Cloud
by io.github.Brandworks-Technologies
Deploy and manage web apps with Atlas hosting, isolated Postgres, file storage and logs.
https://mcp.atlasos.one/api/mcpAutomata
by app.getautomata
Scoped, revocable access to your WhatsApp, Telegram, IMAP email and PostgreSQL for AI agents.
https://mcp.getautomata.app/mcpBackendGen
by io.github.SiTouhemi
Validate compact backend specs and generate tested NestJS, Prisma, and PostgreSQL repositories.
npx -y @2hemi/backendgen-mcp@0.2.2Backenly
by io.github.backenly
Postgres backend your coding agent builds over MCP; destructive actions wait for a person.
npx -y @backenly/mcp-server@0.4.0briq
by cloud.briq
Give your agent its own cloud: Postgres, Redis, a sandbox or any Docker image, in one MCP call.
https://api.briq.cloud/mcpCloudovňa
by eu.cloudovna
Order, configure and deploy Docker containers and PostgreSQL or SQL Server databases in the EU.
https://admin.cloudovna.eu/mcpcodeDB Lens
by io.github.codedb-io
Read-only health checks and data questions for SQL Server and PostgreSQL, with your saved profiles.
docker run -i --rm ghcr.io/codedb-io/codedb-lens:0.9.1custom-mcp-database
by io.github.renanlido
Run alias-based queries against PostgreSQL, MySQL, MongoDB and Oracle without exposing credentials.
uvx custom-mcp-database@0.6.2data
by co.thinair
PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents.
https://data.thinair.co/mcpdatabase-admin
by io.github.cybeleri
Database admin MCP: schema inspection, query optimization for PostgreSQL and MySQL
npx -y database-admin-mcp@1.0.1database-mcp
by io.github.cocaxcode
MCP server for database connectivity. Multi-DB (PostgreSQL, MySQL, SQLite), 19 tools.
npx -y @cocaxcode/database-mcp@0.1.14database-mcp-postgres
by io.github.arifulislamat
MCP server for PostgreSQL. Read-only by default, row caps, timeouts, secrets never logged.
npx -y @database-mcp/postgres@0.5.0DataClawe — Database as a Utility
by com.dataclawe
AI-native database utility. Talk to your DB in plain language. No SQL. MySQL & PostgreSQL.
https://mcp.dataclawe.com/sseShowing the top 30 of 188 servers. Browse the full MCP directory
Frequently 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 188 servers here publish a license in the directory (MIT, NOASSERTION, Apache-2.0). 61 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.
