Skip to content
Gemini CLI

PostHog for Gemini CLI

com.posthog/mcp

Query analytics, manage feature flags and experiments, and investigate errors in PostHog.

client:Gemini CLI transport:streamable-http

Install PostHog in Gemini CLI

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

{
  "mcpServers": {
    "mcp": {
      "httpUrl": "https://mcp.posthog.com/mcp"
    }
  }
}

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

PostHog in other clients