multi-postgres-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_POSTGRES_CONFIG | No | Path to config.json (default: ~/.mcp-postgres/config.json). Alternative to the --config CLI argument. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| pg_list_databasesB | List all available PostgreSQL databases |
| pg_queryA | Execute a SQL query against a PostgreSQL database. Read-only by default; write queries allowed only if the connection is configured with readOnly: false. |
| pg_list_tablesB | List tables in a PostgreSQL database with estimated row counts |
| pg_describe_tableB | Describe columns, types, constraints, and indexes of a PostgreSQL table |
| pg_list_schemasC | List all schemas in a PostgreSQL database |
| pg_health_checkA | Test database connectivity and return PostgreSQL version and response latency |
| pg_explainB | Run EXPLAIN ANALYZE on a query and return the execution plan. The query is always rolled back to prevent side effects. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool targets a distinct metadata or execution concern: database listing, schema listing, table listing, table description, query execution, health check, and plan explanation. There is no meaningful overlap between e.g. pg_list_tables and pg_describe_table, since one enumerates and the other details a single table.
Every tool follows the same pg_ + verb_noun snake_case pattern (pg_list_databases, pg_describe_table, pg_health_check). The convention is predictable and the pg_ prefix cleanly marks the server's namespace.
Seven tools is a well-scoped surface for a read-mostly PostgreSQL inspection server. Each tool covers a clearly separate step of the discovery/query workflow with no filler.
The introspect-query-explain lifecycle is covered cleanly, including a safe read-only default and rollback for EXPLAIN. Minor gaps remain: despite the 'multi' server name there is no tool to enumerate configured connections/servers, and there is no listing for views, functions, or indexes as first-class objects (they are only reachable via pg_query).