postgres-mcp
Postgres MCP Pro provides configurable read/write access and performance analysi
The Postgres MCP Server lets your AI connect directly to your PostgreSQL database — instead of writing SQL, you just tell the AI "who were the top 10 customers by revenue last month" and it queries the tables and returns the result.
For developers, this removes the back-and-forth of opening a DB client, writing SQL, and pasting results back into the AI. Once installed, your database becomes part of the AI's context.
Why use it
Good for: developers and data analysts who want the AI to help explore data, generate reports, or debug production data issues.
Before connecting: your connection string holds sensitive credentials — use a read-only account for production databases. Review the maintenance signals below, then test compatibility and security in your own environment.
Before you connect
Config example (to connect)
{
"mcpServers": {
"postgres": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DATABASE_URI",
"crystaldba/postgres-mcp",
"--access-mode=unrestricted"
],
"env": {
"DATABASE_URI": "postgresql://username:password@localhost:5432/dbname"
}
}
}
}Install / Connect
# No npm package — install from source.
# See the repo's README for the exact command:
# https://github.com/crystaldba/postgres-mcpFollow the official README; env and args vary per server.
🛠️ Maintenance weight 30% · 56 pts
📊 Adoption weight 25% · 62 pts
✅ Usability weight 20% · 20 pts
❤️ Health & community weight 25% · 58 pts
Sources: GitHub API · updated 2026-08-19
90-day trend
⭐ stars +0%
Frequently Asked Questions
Will the Postgres MCP Server modify my data?
It depends on the permissions of the database account you give it. To stay safe, use a read-only account for production so the AI can only query, not change data.
Which AI clients are supported?
Claude Desktop, Claude Code, Cursor, and VS Code all work with MCP. See the installation section below for the config.
Similar / alternative servers
How to choose among these
Database servers split into relational vs. vector; vector stores are all for RAG, differing by scale and hosting.
- Relational DB (business data, SQL)→Pick Supabase / Neon / MongoDB / ClickHouse — match your DB
- RAG with semantic memory→Pick a vector store: Pinecone (scaled) / Qdrant / Chroma (light) / Weaviate
mcp-server-mysql
A Model Context Protocol server that provides read-only access to MySQL database
capital.hove/read-only-local-postgres-mcp-server
MCP server for read-only PostgreSQL database queries in Claude Desktop
io.github.Eszetael/postgres-mcp-hardened
PostgreSQL (hardened, read-only)
io.github.ofershap/postgres
PostgreSQL MCP — query databases, inspect schemas, explain queries.
One email a week, 5 minutes to see what happened in the MCP ecosystem
New servers, breakout trends, abandonment alerts — tracked automatically, curated by hand, sent to your inbox.
One email a week · unsubscribe anytime · no data selling