Postgres MCP Pro
PostgreSQL inspection, safe query execution, index health, and performance analysis.
Overview
Postgres MCP Pro connects an agent to a PostgreSQL database for schema inspection, safe SQL execution, index tuning, and performance analysis. It supports restricted access modes intended to reduce the risk of destructive statements. Even in a restricted mode, a database connection can expose sensitive rows and must use a dedicated least-privilege role.
Capabilities
- Schema inspection
- SQL queries
- Index analysis
- Performance insights
- Restricted access mode
Connection profile
- Transports
- stdio
- Authentication
- Database user and password; Connection URL
- License
- MIT
- Vendor
- Crystal DBA
- Repository
- github.com/crystaldba/postgres-mcp
Client format support is reviewed against official client documentation. It is not a claim that this specific server was tested with every client.
Configuration starting point
A documented preset is available for this server. It contains placeholders, not real credentials. Generate a client-correct file or review the raw values below.
uvx postgres-mcp --access-mode=restricted
Security notes
- Use a read-only or restricted database role and never a production superuser for exploratory agent work.
- Restrict network access to the database; a local MCP proxy does not make the database itself safe to expose.
- Query results may include personal data; check client logs, retention, and sharing behavior.
The catalog records source evidence, not a security audit. Review the server's permissions, recent releases, and the data it can access before connecting it to a real account.
Used in these workflows
Related failure modes
The method exists but its parameters are missing, of the wrong type, or outside the accepted range. For MCP tool calls, this is usually a schema mismatch between the model's arguments and the tool's inputSchema.
JSON-RPC -32603 Internal errorThe server hit an unexpected failure while handling a valid request. Unlike invalid params, this usually indicates a server bug, a dependency failure, or an unhandled exception. The client only sees a generic internal error unless the server logs the underlying stack.
Tool input fails schema validationThe server rejected a tool call because the arguments did not satisfy its input schema. This is often a tool-design problem: vague descriptions, unlabeled units, or overly permissive schemas cause a model to guess the wrong shape.
MCP request or tool call times outA request exceeded the client's or server's time budget. Timeouts can be legitimate slow operations, an unresponsive upstream dependency, a blocked stdio process, or a timeout set too low for startup or long-running tools.
Sources & evidence
- github.com/crystaldba/postgres-mcpRepository · checked Oct 23, 2026 · documented
The project repository documents Postgres MCP Pro, access modes, database URI configuration, and its analysis tools.