M

MCP Postgres Analyst

by AkibUllah · AkibUllah/MCP Postgres Analyst

Enables AI assistants to explore and query PostgreSQL or SQLite databases read-only, with SQL allow-listing, automatic row limits, statement timeouts, column masking, per-tool rate limits and JSONL audit logging.

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
PORT No Port for HTTP transport binding; alternative to MCP_PORT.
MAX_ROWS No Hard cap on rows returned per query. Default: 1000
MCP_HOST No Host interface for HTTP transport binding. Default: 127.0.0.1
MCP_PORT No Port for HTTP transport binding. Default: 8765
POLICY_PATH No Path to the YAML policy file for masking, blocked tables/columns/functions, rate limits, and saved queries. Empty disables policy loading. Default: config/policy.yaml
DATABASE_URL No Database connection URL. Supports sqlite:///relative.db, sqlite:////absolute.db, or postgresql://user:pass@host/db (postgres:// accepted). Default: sqlite:///data/demo.db
DEFAULT_LIMIT No Default row limit injected into queries. Default: 100
AUDIT_LOG_PATH No Path to the JSONL audit log file. Empty disables audit logging. Default: logs/audit.jsonl
MCP_HTTP_TOKEN No Bearer token required on the /mcp endpoint when HTTP transport is used.
ALLOWED_SCHEMAS No Comma-separated PostgreSQL schemas exposed by the server. Default: public
MAX_RESULT_BYTES No Maximum result payload size in bytes. Rows beyond this are dropped and flagged. Default: 262144
MCP_ALLOWED_HOSTS No Additional Host values accepted by DNS-rebinding protection, for example when using a public hostname.
STATEMENT_TIMEOUT_MS No Per-statement timeout in milliseconds. Default: 5000

Similar servers