Skip to content
Claude Desktop

pg doctor for Claude Desktop

io.github.alaev-dev/pg-doctor

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

client:Claude Desktop transport:stdio runtime:oci

Install pg doctor in Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json · windows: %APPDATA%\Claude\claude_desktop_config.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "pg-doctor": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/alaev-dev/pg-doctor:0.3.0"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>"
      }
    }
  }
}

Settings → Developer → Edit Config opens this file. Restart the app after saving. Claude Desktop docs

pg doctor in other clients