LocalFree server, account needed

Google Analytics MCP server

surendranb/google-analytics-mcp

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

244 GitHub stars49 forks

Install Google Analytics in Claude Code

Claude Code
claude mcp add surendranb-google-analytics -e GOOGLE_APPLICATION_CREDENTIALS=... -e GA4_PROPERTY_ID=... -- uvx google-analytics-mcp
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "surendranb-google-analytics": {
      "command": "uvx",
      "args": [
        "google-analytics-mcp"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "...",
        "GA4_PROPERTY_ID": "..."
      }
    }
  }
}

Replace each ... with your own value.

Frequently asked questions

What does the Google Analytics MCP server do?

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

Is the Google Analytics MCP server free?

The server is free, but you will likely need an account. The server itself is free, but it connects to a service that needs an account or API key, which may have paid tiers. Check the provider for current pricing.

Does Google Analytics run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add Google Analytics to Claude Code?

Run: claude mcp add surendranb-google-analytics -e GOOGLE_APPLICATION_CREDENTIALS=... -e GA4_PROPERTY_ID=... -- uvx google-analytics-mcp

More marketing MCP servers

View all