Skip to content
Gemini CLI

pg doctor for Gemini CLI

io.github.alaev-dev/pg-doctor

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

client:Gemini CLI transport:stdio runtime:oci

Install pg doctor in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.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>"
      }
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

pg doctor in other clients