pg-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | Logging level: DEBUG, INFO, WARNING, ERROR, CRITICAL, or NONE. Defaults to INFO. | INFO |
| DATABASE_URI | Yes | PostgreSQL connection URI, e.g., postgresql://user:pass@localhost:5432/dbname |
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": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_schemasB | List all schemas in the database |
| list_objectsC | List objects in a schema |
| get_object_detailsC | Show detailed information about a database object |
| execute_sqlB | Execute a read-only SQL query |
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 4 tools
Each tool has a distinct purpose: execute SQL queries, get object details, list objects in a schema, and list schemas. No overlap in functionality.
All tool names follow a consistent verb_noun pattern using underscore separation (execute_sql, get_object_details, list_objects, list_schemas).
4 tools is on the lower end but appropriate for a lightweight database inspector. Each tool serves a clear role without being excessive.
Covers core inspection tasks (list schemas, list objects, get details, run queries). Minor gaps like a dedicated tool for listing tables or columns, but SQL query tool can compensate.