MCP PostgreSQL Read-Only Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | Port for HTTP server (optional) | |
| NODE_ENV | No | Runtime environment (e.g., production) | |
| MCP_PG_CONNSTR | Yes | PostgreSQL connection string (e.g., postgresql://user:password@localhost:5432/database) |
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 | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| execute_select_queryB | Ejecuta una consulta SELECT personalizada en la base de datos PostgreSQL |
| list_tablesB | Obtiene una lista de todas las tablas disponibles en la base de datos |
| describe_tableB | Obtiene información detallada sobre las columnas de una tabla específica |
| execute_common_queriesC | Ejecuta consultas predefinidas comunes para explorar la base de datos |
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
list_tables and describe_table are clearly distinct introspection tools, and execute_select_query is clearly the arbitrary-SQL escape hatch. The only soft overlap is execute_common_queries, which also runs queries; the description ('predefined common queries') signals the difference but an agent may still hesitate between the two execution tools.
All four names follow a consistent snake_case verb_noun pattern (execute_*, list_*, describe_*). The verb prefixes map predictably onto the action, so the naming does real disambiguating work here.
Four tools is a tight, well-scoped surface for a read-only database server: introspection plus querying is exactly what the purpose warrants. execute_common_queries is the weakest earner, since it is largely a convenience wrapper over execute_select_query.
The read-only lifecycle (discover tables, inspect schema, run queries) is covered end-to-end, and the absence of write tools is intentional rather than a gap. Minor gaps remain: no way to list schemas/views/indexes beyond 'all tables', and no query-plan or error-diagnosis aid.