MCP Servers
Postgres MCP Pro (Explain & Index Advisor)
MCP server equipping coding agents with read-safe SQL schema introspection, EXPLAIN ANALYZE plan inspection, and automated index recommendations.
Created by @crystaldba. Open the original project and documentation ↗
- Upstream repository
- crystaldba/postgres-mcp
- GitHub stars
- 3,514
- Forks
- 401
- License reported by GitHub
- MIT
- Created upstream
- 2025-03-24
- Last pushed upstream
- 2026-11-30
- Discovered by Agent Tool Radar
- 2026-11-01
- Repository metadata last observed
- 2026-12-02
Documented client compatibility
Not verified
Not verified; no explicit supported-client statement found in README.
Usage and installation
Read the upstream installation instructions, permissions and requirements before use. The saved reference below is provided by the directory and may direct you to that source.
# See https://github.com/crystaldba/postgres-mcp for installation and usage.
Task fit & practical context
When to choose Postgres MCP Pro
Diagnose a database question with database evidence
Postgres MCP Pro connects an MCP client to PostgreSQL inspection and diagnostic tools. Its documented capabilities include schema and object inspection, query plans, database-health checks and index analysis. It is a useful candidate when an application problem needs evidence from the database rather than another speculative rewrite of the SQL in a prompt.
Start with a bounded question: one endpoint slows down when an account has many orders. Identify the query and relevant workload before asking for an optimization. The server can help collect evidence, but a recommendation still needs an application-level explanation of which behavior or cost it is intended to improve.
Inspect access mode and prerequisites
The upstream project documents restricted and unrestricted access modes. Restricted mode uses read-only transactions and execution-time limits; unrestricted mode allows data and schema changes. Inspect the mode in any copied configuration and the database role behind the connection. Choose access for the diagnostic job rather than assuming a setup example is appropriate for every environment.
Some analysis relies on PostgreSQL extensions and available statistics. The documentation discusses pg_stat_statements for workload information and HypoPG for hypothetical-index analysis. Check these prerequisites with whoever maintains the database. Missing statistics can limit a tool’s answer without implying that the application has no performance problem.
Evaluate one query before changing the schema
A useful first task is to inspect the relevant tables and plan for a known slow query, then relate the observation to the endpoint. Record the filters, data scale and environment. If an index is proposed, compare the intended read benefit with write overhead, storage and the way the migration would be applied.
Treat a hypothetical plan as planning evidence, not a measured production improvement. Test the proposed change in an appropriate environment and preserve before-and-after observations. This gives reviewers a reasoned decision instead of an index definition justified only by the confidence of the generated explanation.
Check fit before enabling a broad connection
Use the original client and connection instructions, verify one inspection call and keep database credentials out of prompts and reports. Compare this project with a platform-specific MCP server when you need account or deployment management rather than PostgreSQL diagnostics. The directory’s stars and compatibility evidence help discovery; they do not certify a database configuration or replace review of a schema change.
Documentation reviewed 2026-11-02 · Agent Tool Radar editorial. Source-based guidance; no independent benchmark implied.
Original sources
Source and inclusion
Initial editorial selection; metadata independently fetched from GitHub
GitHub stars indicate interest, not a review score or security certification. Eligibility uses repository activity and sampled contributor evidence. Read the selection methodology and limitations.