P

PostgreSQL MCP Server

by datdeboer · datdeboer/PostgreSQL MCP Server

A production-ready MCP server that enables safe, read-only SQL SELECT queries against PostgreSQL databases with built-in security validation. It features connection pooling, automatic row limits, and structured logging to ensure secure and reliable database interactions.

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
NODE_ENV No Environment mode (development, production, test) Default: development
LOG_LEVEL No Logging level (trace, debug, info, warn, error, fatal) Default: info
DATABASE_URL Yes PostgreSQL connection string (e.g., postgresql://user:password@localhost:5432/dbname)
MAX_QUERY_LIMIT No Maximum allowed row limit Default: 10000
QUERY_TIMEOUT_MS No Query execution timeout in milliseconds Default: 30000
DEFAULT_QUERY_LIMIT No Default row limit for queries Default: 100

Similar servers