Skip to content
Gemini CLI

PostHog MCP Server for Gemini CLI

io.github.posthog/mcp

Official PostHog MCP Server for product analytics, feature flags, experiments, and more.

client:Gemini CLI transport:streamable-http

Install PostHog MCP Server 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 MCP Server in other clients