Skip to main content
Glama
MCP PostgreSQL Read-Only Server

MCP PostgreSQL Read-Only Server

by japentaca

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoPort for HTTP server (optional)
NODE_ENVNoRuntime environment (e.g., production)
MCP_PG_CONNSTRYesPostgreSQL 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

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.3/5.0

Scored across 4 tools

Disambiguation4/5

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.

Naming Consistency5/5

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.

Tool Count4/5

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.

Completeness4/5

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.

Maintenance

ActivityInactive
ResponsivenessOutdated data