P

PostgreSQL MCP Server

by abhinv98 · abhinv98/PostgreSQL MCP Server

Enables AI agents to query, explore, and analyze PostgreSQL databases through the Model Context Protocol. It provides robust security features including read-only mode, schema restrictions, and query timeouts for safe data interaction.

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
sslMode No SSL connection mode. Options: disable (no SSL), prefer (use SSL if available), require (force SSL). Default: prefer
timeout No Query timeout in seconds. Queries exceeding this duration are automatically terminated. Range: 1-300. Default: 30
readOnly No When enabled, only SELECT and EXPLAIN queries are permitted. Prevents all data modifications. Default: true
allowedSchemas No List of database schemas AI agents can access. Queries are restricted to these schemas only. Default: ["public"]
maxQueryResults No Maximum number of rows returned by a single query. Range: 1-10,000. Default: 1000
connectionString Yes PostgreSQL connection URL in the format postgresql://username:password@host:port/database

Similar servers