Postgres MCP Pro
Inspect PostgreSQL schemas, query plans, and database health.
Data & storage · Documentation reviewed 2026-11-10. Not independently tested.
When it helps
Diagnosing SQL performance and understanding an authorized PostgreSQL database.
What to consider
Unrestricted mode permits writes. Some diagnostic tools depend on database extensions; read-only access can still reveal sensitive data.
Getting started
Follow the uv or Docker guide, connect a test database, and choose the documented restricted access mode.
Access & costs
- Runs
- Local / Self-hosted
- External account
- Not required
- API key
- Not required
- Costs
- Local or service costs
The server does not need an inference key. Database hosting, credentials, and assistant inference are separate concerns.
- Python/uv or Docker
- PostgreSQL connection
MCP connection
- Documented transports
- Standard input/output (stdio), Legacy HTTP + SSE
- Documented clients
- Claude Desktop, Cursor
What it can access or do
- Inspect schemas and query plans
- Run database health and SQL analysis tools
Use a limited database role and review the access mode before allowing query execution.
Documentation reviewed, not connection-tested. Model calls made by your assistant can incur separate charges.
Repository evidence
Stars: 3,494 · License: MIT
Last code push: 2026-08-17
Statistics retrieved: 2026-11-23T00:42:59+00:00
Counts are snapshots, not live rankings. Review the repository license and any hosted-service terms before adopting it.
Adding model calls?
Plan the tokens, retries, and fallback costs before connecting your tools.