Skip to main content
Glama
AkibUllah

MCP Postgres Analyst

by AkibUllah

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoPort for HTTP transport binding; alternative to MCP_PORT.
MAX_ROWSNoHard cap on rows returned per query.1000
MCP_HOSTNoHost interface for HTTP transport binding.127.0.0.1
MCP_PORTNoPort for HTTP transport binding.8765
POLICY_PATHNoPath to the YAML policy file for masking, blocked tables/columns/functions, rate limits, and saved queries. Empty disables policy loading.config/policy.yaml
DATABASE_URLNoDatabase connection URL. Supports sqlite:///relative.db, sqlite:////absolute.db, or postgresql://user:pass@host/db (postgres:// accepted).sqlite:///data/demo.db
DEFAULT_LIMITNoDefault row limit injected into queries.100
AUDIT_LOG_PATHNoPath to the JSONL audit log file. Empty disables audit logging.logs/audit.jsonl
MCP_HTTP_TOKENNoBearer token required on the /mcp endpoint when HTTP transport is used.
ALLOWED_SCHEMASNoComma-separated PostgreSQL schemas exposed by the server.public
MAX_RESULT_BYTESNoMaximum result payload size in bytes. Rows beyond this are dropped and flagged.262144
MCP_ALLOWED_HOSTSNoAdditional Host values accepted by DNS-rebinding protection, for example when using a public hostname.
STATEMENT_TIMEOUT_MSNoPer-statement timeout in milliseconds.5000

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