mcp-postgres
by imangali01
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PG_DSN | No | PostgreSQL connection string (mutually exclusive with DATABASE_URL and individual PG_* variables) | |
| LOG_SQL | No | Log SQL queries (default: false) | |
| PG_HOST | No | PostgreSQL host | |
| PG_PORT | No | PostgreSQL port (default: 5432) | |
| PG_USER | No | PostgreSQL user | |
| LOG_FILE | No | Optional log file path | |
| LOG_LEVEL | No | Log level (default: INFO) | |
| AUDIT_FILE | No | Audit log file path (default: ./logs/audit.jsonl) | |
| LOG_FORMAT | No | Log format: text or json (default: text) | |
| PG_SSLMODE | No | PostgreSQL SSL mode (default: prefer) | |
| PG_DATABASE | No | PostgreSQL database name | |
| PG_PASSWORD | No | PostgreSQL password | |
| DATABASE_URL | No | PostgreSQL connection URL (mutually exclusive with PG_DSN and individual PG_* variables) | |
| MCP_MAX_ROWS | No | Maximum rows per query result (default: 1000) | |
| MCP_HTTP_HOST | No | HTTP server host (default: 0.0.0.0) | |
| MCP_HTTP_PATH | No | HTTP server path (default: /mcp) | |
| MCP_HTTP_PORT | No | HTTP server port (default: 8000) | |
| MCP_TRANSPORT | No | Transport mode: stdio or http (default: stdio) | |
| MCP_MAX_SQL_LENGTH | No | Maximum SQL query length (default: 20000) | |
| MCP_ALLOWED_SCHEMAS | No | Comma-separated list of allowed schemas | |
| MCP_HTTP_AUTH_TOKEN | No | Bearer token for HTTP transport authentication | |
| MCP_MAX_RESULT_BYTES | No | Maximum result size in bytes (default: 1000000) | |
| PG_STATEMENT_TIMEOUT_MS | No | Statement timeout in milliseconds (default: 30000) | |
| MCP_ALLOW_EXPLAIN_ANALYZE | No | Allow EXPLAIN ANALYZE (default: false) |
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
ActivitySlowing
ResponsivenessNo issues