Hub / connectors / postgres
Connector · DevOps & Homelab
PostgreSQL Read-Only MCP
Official reference PostgreSQL MCP server for schema introspection and read-only SQL analytics.
Verified
Process-isolated MCP · SecurityGate
Local 14B+
MIT
postgressqldatabasemcpread-only
How to use
Runs as a process-isolated MCP server (a separate OS process, never imported inside Prometheus). Adding a connector requires the daemon’s master token (owner devices cannot). Tool calls are double-checked against allowed_tools and still prompt in SecurityGate unless you explicitly enable autonomous mode.
~/.prometheus/config.yaml
mcp_servers:
postgres:
transport: stdio
command: npx
args:
- "-y"
- "@modelcontextprotocol/server-postgres@0.6.2"
- "$POSTGRES_READONLY_URL"
allowed_tools:
- query
env:
POSTGRES_READONLY_URL: "${POSTGRES_READONLY_URL}"Honest disclosures
- Runs queries inside read-only transactions; still recommend connecting with a database role restricted to SELECT.
- POSTGRES_READONLY_URL is stored write-only and redacted from logs.
Inspect raw source (connectors/postgres.yaml)
hub_schema: 1
kind: connector
slug: postgres
name: PostgreSQL Read-Only MCP
version: 0.6.2
category: devops-homelab
tags: [postgres, sql, database, mcp, read-only]
trust_tier: verified
execution_boundary: mcp_out_of_process
model_fit: local_14b
license: MIT
provenance:
origin: upstream_mcp
repo: https://github.com/modelcontextprotocol/servers
package_pin: "@modelcontextprotocol/server-postgres@0.6.2"
audited_at: "2026-11-26"
mcp:
transport: stdio
command: npx
args: ["-y", "@modelcontextprotocol/server-postgres@0.6.2", "$POSTGRES_READONLY_URL"]
allowed_tools:
- query
env_vars: [POSTGRES_READONLY_URL]
disclosures:
- "Runs queries inside read-only transactions; still recommend connecting with a database role restricted to SELECT."
- "POSTGRES_READONLY_URL is stored write-only and redacted from logs."
summary: "Official reference PostgreSQL MCP server for schema introspection and read-only SQL analytics."