Skip to content
Claude Code

mcp google analytics for Claude Code

io.github.leonardosepulvedat/mcp-google-analytics

GA4 MCP that reads AND writes: reports, funnels, audits, and server-side events. 26 tools.

client:Claude Code transport:stdio runtime:npm

Install mcp google analytics 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 mcp-google-analytics -e GA_SERVICE_ACCOUNT_JSON=<GA_SERVICE_ACCOUNT_JSON> -e GA_PROPERTY_ID=<GA_PROPERTY_ID> -e GA_MEASUREMENT_ID=<GA_MEASUREMENT_ID> -e GA_API_SECRET=<GA_API_SECRET> -- npx -y mcp-google-analytics

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

mcp google analytics in other clients