Skip to content
Claude Code

ga4 for Claude Code

io.github.mharnett/ga4

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

client:Claude Code transport:stdio runtime:npm

Install ga4 in Claude Code

run in your project directory

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

claude mcp add ga4 -e GA4_PROPERTY_ID=<GA4_PROPERTY_ID> -e GOOGLE_APPLICATION_CREDENTIALS=<GOOGLE_APPLICATION_CREDENTIALS> -- npx -y mcp-ga4

Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs

ga4 in other clients