Skip to main content
Glama
mcp-postgres-insight

mcp-postgres-insight

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNopino log level. Logs go to stderr as JSON.info
PG_POOL_MAXNoConnection pool size.4
DATABASE_URLYesPostgreSQL connection string. Required.
MCP_HTTP_HOSTNoHTTP bind address.127.0.0.1
MCP_HTTP_PORTNoHTTP bind port.3333
MCP_TRANSPORTNoTransport mode: stdio or http.stdio
REDACT_VALUESNoMask e-mails, Luhn-valid card numbers and SSNs inside text and JSON values.true
MAX_CELL_CHARSNoLonger text and JSON cells are truncated with a marker.512
MAX_SQL_LENGTHNoMaximum SQL length accepted.20000
QUERY_MAX_ROWSNoUpper bound for run_readonly_query.max_rows.200
REDACT_COLUMNSNoCase-insensitive regex matched against column names for PII redaction.
SAMPLE_MAX_ROWSNoUpper bound for sample_rows.limit.50
PG_ALLOWED_SCHEMASNoComma-separated schemas visible to the agent. pg_catalog and information_schema cannot be allowlisted.public
MCP_HTTP_AUTH_TOKENNoBearer token, 32 or more characters. Required when MCP_HTTP_HOST is not loopback.
STATEMENT_TIMEOUT_MSNostatement_timeout and lock_timeout for every transaction, in milliseconds.5000
ALLOW_EXPLAIN_ANALYZENoSet to false to forbid explain_query(analyze=true), which executes the query.true
MCP_HTTP_ALLOWED_HOSTSNoExtra Host header values accepted by DNS-rebinding protection.
SEQ_SCAN_ROW_THRESHOLDNoRow count at which a table counts as large in plan hints.10000

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

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources