mcp-postgres-insight
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | pino log level. Logs go to stderr as JSON. | info |
| PG_POOL_MAX | No | Connection pool size. | 4 |
| DATABASE_URL | Yes | PostgreSQL connection string. Required. | |
| MCP_HTTP_HOST | No | HTTP bind address. | 127.0.0.1 |
| MCP_HTTP_PORT | No | HTTP bind port. | 3333 |
| MCP_TRANSPORT | No | Transport mode: stdio or http. | stdio |
| REDACT_VALUES | No | Mask e-mails, Luhn-valid card numbers and SSNs inside text and JSON values. | true |
| MAX_CELL_CHARS | No | Longer text and JSON cells are truncated with a marker. | 512 |
| MAX_SQL_LENGTH | No | Maximum SQL length accepted. | 20000 |
| QUERY_MAX_ROWS | No | Upper bound for run_readonly_query.max_rows. | 200 |
| REDACT_COLUMNS | No | Case-insensitive regex matched against column names for PII redaction. | |
| SAMPLE_MAX_ROWS | No | Upper bound for sample_rows.limit. | 50 |
| PG_ALLOWED_SCHEMAS | No | Comma-separated schemas visible to the agent. pg_catalog and information_schema cannot be allowlisted. | public |
| MCP_HTTP_AUTH_TOKEN | No | Bearer token, 32 or more characters. Required when MCP_HTTP_HOST is not loopback. | |
| STATEMENT_TIMEOUT_MS | No | statement_timeout and lock_timeout for every transaction, in milliseconds. | 5000 |
| ALLOW_EXPLAIN_ANALYZE | No | Set to false to forbid explain_query(analyze=true), which executes the query. | true |
| MCP_HTTP_ALLOWED_HOSTS | No | Extra Host header values accepted by DNS-rebinding protection. | |
| SEQ_SCAN_ROW_THRESHOLD | No | Row 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
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues