A Model Context Protocol server for PostgreSQL database operations, providing tools to connect to PostgreSQL servers, list databases/schemas/tables, describe table structures, and execute read-only SELECT queries.
PostgreSQL MCP server has clear tool naming (verb_noun pattern) and complete input schemas with type definitions. However, descriptions are minimal (10-80 chars, well below the 194-char baseline), parameter descriptions lack actionable detail, and output schemas are undocumented. No error recovery guidance, no pagination support for result-heavy tools, and no tool annotations. The Connect tool exposes credentials as parameters (critical security issue). Tools are read-only and well-scoped, but descriptions do not explain WHEN to use each tool or what structure they reveal.
Connects to a PostgreSQL server. Port is optional, defaults to 5432.
Describes the structure of a table including columns, types, nullability, primary keys and foreign keys.
Executes a read-only SELECT query against the specified database.
Lists all databases available on the connected PostgreSQL server.
Lists all schemas in the specified database.
Lists all tables in the specified schema and database.
Credentials exposed as tool parameters. Connect tool accepts password as a string parameter, which will be logged in agent traces and prompt history. Violates secret-injection pattern.
Descriptions are too short (10 - 80 chars vs 194-char baseline). Lack WHEN-to-use guidance and dependency hints. E.g., 'Connects to a PostgreSQL server' does not explain that Connect must be called before other tools, or that port defaults to 5432.
Output schemas are undocumented. Tools return formatted text strings (e.g., DescribeTable returns a formatted table as a single string). LLMs cannot parse structure or extract IDs for chaining. No documented return types.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 48 | 2026-07-28+ | v2 |
No pagination or result limits. ExecuteQuery truncates output at MaxOutputCharacters but does not support limit/offset parameters. ListDatabases and ListTables return all results without pagination, risking context window exhaustion.
Error messages lack recovery guidance. 'Not connected. Please call connect first.' is clear, but 'Connection failed: {ex.Message}' exposes raw exception text without actionable next steps. No error classification (retryable vs fatal).