Skip to content
Gemini CLI

google analytics mcp for Gemini CLI

io.github.surendranb/google-analytics-mcp

GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.

client:Gemini CLI transport:stdio runtime:pypi

Install google analytics 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": {
    "google-analytics-mcp": {
      "command": "uvx",
      "args": [
        "google-analytics-mcp"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
        "GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>"
      }
    }
  }
}

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

google analytics mcp in other clients