Postgres
by crystaldba
Query a Postgres database in read-only (restricted) mode — schema exploration, EXPLAIN plans, index advice. Postgres MCP Pro by crystaldba; replaces the archived @modelcontextprotocol/server-postgres.
Format: postgresql://user:password@host:port/database. The server runs in restricted (read-only) mode by default. Value is encrypted at rest.
Optional. Required only for LLM-assisted index tuning features.
Optional KEY=VALUE pairs (one per line) set as extra environment variables on the connector's process. Lines starting with # are ignored; uncomment and edit what you need.
Default template
# Optional extra environment variables, one KEY=VALUE per line. # Lines starting with # are ignored: uncomment and edit what you need. # Documented options: https://github.com/crystaldba/postgres-mcp # Route the connector through an HTTP proxy, if your network needs one. # HTTPS_PROXY=http://proxy.example:8080 # Turn up logging for troubleshooting (read by many servers; the name varies). # LOG_LEVEL=debug
This template lands in your config when you add the connector. Edit or override anytime from My Connectors — click the connector's config action to open the same editor with your saved values.
Runtime commands — technical reference. Nothing to configure here; the desktop runs these for you.
uvx postgres-mcp==0.3.0 --access-mode=restricted