Skip to main content

Pg Doctor

io.github.alaev-dev/pg-doctor

v0.2.1Updated Dec 2, 2026stdio · Docker

Read-only PostgreSQL diagnostics for AI agents: slow queries, plans, bloat, locks, replicas.

Install

Needs 1 secret. Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add pg-doctor -e 'DATABASE_URL=<your-database-url>' -- docker run -i --rm -e DATABASE_URL ghcr.io/alaev-dev/pg-doctor:0.2.1

Configuration

1 setting, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • DATABASE_URL
    Env var· required· secret
    Connection string of a dedicated PostgreSQL role with pg_monitor; table_bloat and explain_statement also need SELECT on the tables they look at

Listed in the official MCP Registry since Dec 2, 2026. Mirrored daily; last checked Dec 2, 2026.