Skip to content
Grok

Google Analytics 4 for Grok

io.github.stucchi/google-analytics

Manage GA4 properties, data streams, conversions, and run reports via Admin & Data APIs.

client:Grok transport:stdio runtime:pypi

Install Google Analytics 4 in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "google-analytics": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "google-analytics-4-mcp"
      ],
      "env": {
        "GA_CREDENTIALS": "<GA_CREDENTIALS>",
        "GA_CREDENTIALS_PATH": "<GA_CREDENTIALS_PATH>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

Google Analytics 4 in other clients