Skip to content
Gemini CLI

Postgres DBA MCP for Gemini CLI

io.github.a-lafon/postgres-dba-mcp

Bounded, read-only PostgreSQL access for AI assistants: nine DBA tools, compact CSV output

client:Gemini CLI transport:stdio runtime:oci

Install Postgres DBA MCP 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": {
    "postgres-dba-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/a-lafon/postgres-dba-mcp:0.3.3"
      ],
      "env": {
        "DATABASE_URI": "<DATABASE_URI>"
      }
    }
  }
}

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

Postgres DBA MCP in other clients