postgres-mcp
Level ALocalPostgres MCP Pro provides configurable read/write access and performance analysis for you and your AI agents.
Overview
Postgres MCP Pro is an open-source MCP server that helps users and AI agents manage Postgres throughout development. It offers database health analysis (index health, connection utilization, buffer cache, vacuum, replication lag), index tuning, EXPLAIN plan review with hypothetical index simulation, schema-aware SQL generation, and configurable read/write access control with safe SQL execution, including a read-only mode for development and production use.
Installation
MCP client config (paste into mcp.json)
{
"mcpServers": {
"crystaldba-postgres-mcp": {
"command": "uvx",
"args": [
"postgres-mcp",
"--access-mode=unrestricted"
]
}
}
}Agent install prompt
Copy and paste into Cursor / Claude / other agents to install this MCP for you
Please read this MCP repository and install it into my current environment:
https://github.com/crystaldba/postgres-mcp
Known working client config (can write into mcp.json):
{
"mcpServers": {
"crystaldba-postgres-mcp": {
"command": "uvx",
"args": [
"postgres-mcp",
"--access-mode=unrestricted"
]
}
}
}
Please: 1) check README for deps and env vars; 2) write config for my client; 3) if secrets are missing, tell me what to fill — do not invent values.
Related servers
mempalaceThe best-benchmarked open-source AI memory system. And it's free.private-gptComplete API layer for private AI applications on local models: RAG, skills, toocodebase-memory-mcpLocal code intelligence for developers and AI agents. Connect code, docs and infcontext-modeFree, local plugin that keeps tool output out of your coding agent's context wincogneeCognee is the open-source AI memory platform for agents. Give your AI agents pergraphitiBuild Real-Time Knowledge Graphs for AI Agents