LocalFree server, account needed

Ga4 MCP server

mharnett/mcp-ga4

Google Analytics 4 MCP: reports, realtime data, custom dimensions, data streams.

0 GitHub stars1 forks634 npm downloads / month

Install Ga4 in Claude Code

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

Replace each ... with your own value.

Frequently asked questions

What does the Ga4 MCP server do?

Google Analytics 4 MCP: reports, realtime data, custom dimensions, data streams.

Is the Ga4 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 Ga4 run locally or remotely?

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

How do I add Ga4 to Claude Code?

Run: claude mcp add ga4 -e GA4_PROPERTY_ID=... -e GOOGLE_APPLICATION_CREDENTIALS=... -- npx -y mcp-ga4

More marketing MCP servers

View all