postgres-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DB_HOST | Yes | Database host | |
| DB_NAME | Yes | Database name | |
| DB_PORT | Yes | Database port (e.g., 5433) | |
| DB_USER | Yes | Database user | |
| DB_PASSWORD | Yes | Database password |
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 |
|---|---|
| list_tablesB | List all tables and views available in the current database schema |
| describe_tableB | Retrieve the column structure, keys, and indexes of a specific table |
| run_queryA | Execute a read-only SQL SELECT query against the database (results capped to 100 rows) |
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 3 tools
Each tool maps to a distinct step of database exploration: enumerate tables, inspect one table's structure, and execute a query. There is no meaningful overlap, and an agent can pick correctly from names alone.
All three follow a consistent verb_noun snake_case pattern (list_tables, describe_table, run_query), with no style mixing.
Three tools is on the lean side but cohesive for a read-only discovery-and-query server; each earns its place. A fourth helper (e.g. listing schemas or explaining a plan) would round it out without bloat.
The core read-only lifecycle of discover → inspect → query is fully covered, with no dead ends for the stated purpose. Minor gaps exist around multi-schema enumeration and query-plan/stat inspection, but agents can work around them.