TokenToSeaMCP Hub
中文 Console

Google Analytics 4 MCP

leonardosepulvedat

Reads GA4 reports, funnels and audits, and sends server-side events through the Measurement Protocol.

Setup

Choose your client, copy the config, then fill in any required environment variables.

Add to CursorAdd to VS Code

claude mcp add google-analytics-4 --env GA_SERVICE_ACCOUNT_JSON='<GA_SERVICE_ACCOUNT_JSON>' --env GA_API_SECRET='<GA_API_SECRET>' --env GA_PROPERTY_ID='<GA_PROPERTY_ID>' --env GA_MEASUREMENT_ID='<GA_MEASUREMENT_ID>' -- npx -y mcp-google-analytics

Environment variables

  • GA_SERVICE_ACCOUNT_JSON
  • GA_API_SECRET
  • GA_PROPERTY_ID
  • GA_MEASUREMENT_ID

Replace the placeholders with your own credentials and keep them out of version control.