P

Postgres Schema MCP

by eric-patton · eric-patton/postgres-schema-mcp

Provides an AI agent with read-only PostgreSQL access, enabling schema browsing, foreign-key exploration, column search across tables, capped SELECT queries, and offline data dictionary export while rejecting write operations.

Unknown transport Glama Low confidence
Note

Install

No install method is published for this server: no package and no remote endpoint. Check its source repository or registry listing for setup instructions.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
DATABASE_URL Yes Connection string. Point it at the read-only role.
PGSM_MAX_POOL No Connection pool size Default: 4
PGSM_MAX_ROWS No Row cap on every result Default: 200
PGSM_HTTP_HOST No Host to bind for HTTP mode. Defaults to 127.0.0.1 Default: 127.0.0.1
PGSM_HTTP_PORT No Port for authenticated HTTP mode
PGSM_MAX_BYTES No Size cap on every result, which is the one that protects the agent's context Default: 100000
PGSM_TOKENS_FILE No Path to JSON file containing tokens for HTTP mode
PGSM_REDACT_PATTERN No Regular expression matched against column names to redact values in results. Default covers common sensitive column names. Default: password|secret|token|ssn|credit_card|api_key|private_key
PGSM_ALLOWED_SCHEMAS No Comma-separated allowlist of schemas. Everything else becomes invisible. Default: all
PGSM_IDLE_TX_TIMEOUT_MS No Idle-in-transaction timeout Default: 15000
PGSM_STATEMENT_TIMEOUT_MS No Per-statement timeout Default: 10000

Similar servers