Connects Claude to Google Analytics 4 properties through both the Data API and Admin API. You get nine tools covering standard reports, realtime queries, custom dimension and metric management, and data stream inspection. Supports both single property mode via environment variables and multi-client mode with automatic property switching based on working directory. Built on the official Google Analytics SDKs with retry logic and circuit breakers. Handles relative dates like "7daysAgo" and "30daysAgo" out of the box. Works with service accounts or OAuth credentials. Reach for this when you need to pull GA4 data, debug tracking setups, or manage custom dimensions without leaving your Claude workflow.
claude mcp add --transport stdio io.github.mharnett-ga4 -- npx -y mcp-ga4