Skip to content
Gemini CLI

postgres for Gemini CLI

ai.waystation/postgres

Connect to your PostgreSQL database to query data and schemas.

client:Gemini CLI transport:streamable-http

Install postgres in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

{
  "mcpServers": {
    "postgres": {
      "httpUrl": "https://waystation.ai/postgres/mcp"
    }
  }
}

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

postgres in other clients