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

2.7k ★MIT

🐍 🏠 - All-in-one MCP server for Postgres development and operations, with tools for performance analysis, tuning, and health checks

$npx -y crystaldba-postgres-mcp
PythonDatabases
🔌

julien040/anyquery

by julien040

1.7k ★

🏎️ 🏠 ☁️ - 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-anyquery
GoDatabases
🔌

Neon

by neondatabase

594 ★MIT

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

$https://mcp.neon.tech/mcp
DatabaseData
🔌

subnetmarco/pgmcp

by subnetmarco

529 ★

🏎️ 🏠 - Natural language PostgreSQL queries with automatic streaming, read-only safety, and universal database compatibility.

$npx -y subnetmarco-pgmcp
GoDatabases
🔌

centralmind/gateway

by centralmind

528 ★Apache-2.0

🏎️ 🏠 🍎 🪟 - 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-gateway
GoDatabases
🔌

runekaagaard/mcp-alchemy

by runekaagaard

401 ★MPL-2.0

🐍 🏠 - 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-alchemy
PythonDatabases
🔌

FreePeak/db-mcp-server

by FreePeak

372 ★MIT

🏎️ 🏠 – 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-server
GoDatabases
🔌

TheRaLabs/legion-mcp

by TheRaLabs

90 ★GPL-3.0

🐍 🏠 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/inspector
PythonDatabases
🧩

Aderlo Cloud

by cloud.aderlo

Manage Aderlo Cloud hosting: files, DNS, MySQL/PostgreSQL databases and WP-CLI over OAuth scopes.

$https://aderlo.cloud/api/mcp
DatabaseFilesCloud
🧩

AgentSQL

by io.github.cuipengdba

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

$https://demo.agentsql.cn/mcp
DatabaseAIDevTools
🧩

AI2SQL

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-mcp
DatabaseAI
🧩

ainative-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.1
DatabaseAIDevTools
🧩

Aiven 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.1
DatabaseAICloud
🧩

alpacacloud-mcp

by io.github.Melgencer

Connect AI agents to Alpaca Cloud: Postgres, Auth, Storage, Sandboxes, and Workflows.

$npx -y @alpacacloud/mcp@1.4.2
DatabaseSearchFiles
🧩

amnesic

by io.github.SurajKGoyal

Persistent semantic memory for SQL databases. Postgres, MySQL, MSSQL, SQLite.

$uvx amnesic@0.2.2
DatabaseDevToolsData
🧩

amu-pgvector

by io.github.sangaraju1988

Lineage-gated agent memory tools on Postgres + pgvector, enforced by row-level security.

$uvx amu-pgvector@0.1.3
DatabaseSearchDevTools
🧩

Appbricx

by com.appbricx

Build, verify and deploy full-stack apps: Postgres, sign-in, workflows, realtime, AI, rollback.

$https://www.appbricx.com/api/mcp
DatabaseAICloud
🧩

Atlas 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/mcp
DatabaseSearchFiles
🧩

Automata

by app.getautomata

Scoped, revocable access to your WhatsApp, Telegram, IMAP email and PostgreSQL for AI agents.

$https://mcp.getautomata.app/mcp
DatabaseAIProductivity
🧩

BackendGen

by io.github.SiTouhemi

Validate compact backend specs and generate tested NestJS, Prisma, and PostgreSQL repositories.

$npx -y @2hemi/backendgen-mcp@0.2.2
DatabaseDevTools
🧩

Backenly

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.0
DatabaseAIDevTools
🧩

briq

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/mcp
DatabaseCloud
🧩

Cloudovňa

by eu.cloudovna

Order, configure and deploy Docker containers and PostgreSQL or SQL Server databases in the EU.

$https://admin.cloudovna.eu/mcp
DatabaseAICloud
🧩

codeDB 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.1
DatabaseFilesDevTools
🧩

custom-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.2
DatabaseAIDevTools
🧩

data

by co.thinair

PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents.

$https://data.thinair.co/mcp
DatabaseAIData
🧩

database-admin

by io.github.cybeleri

Database admin MCP: schema inspection, query optimization for PostgreSQL and MySQL

$npx -y database-admin-mcp@1.0.1
DatabaseDevToolsData
🧩

database-mcp

by io.github.cocaxcode

MCP server for database connectivity. Multi-DB (PostgreSQL, MySQL, SQLite), 19 tools.

$npx -y @cocaxcode/database-mcp@0.1.14
DatabaseDevToolsData
🧩

database-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.0
DatabaseDevToolsData
🧩

DataClawe — 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/sse
DatabaseAIData

Showing 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.