Skip to content

google analytics mcp for Grok

io.github.surendranb/google-analytics-mcp

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

client:Grok transport:stdio runtime:pypi

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

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 mcp in other clients