GA4 in Claude for the whole team: Analytics MCP 1.0
Until this month, giving a marketer GA4 inside Claude or Gemini meant turning them into a part-time developer. Install Python and pipx. Run gcloud auth application-default login with the right scopes. Keep a credentials file on the laptop. Edit a JSON config by hand. For an analyst that is an afternoon; for a performance marketer it is a support ticket that never closes.
Google's official Google Analytics MCP server reached 1.0.0 on 3 November 2026, and the headline change is not a new report. It is a new way to run the thing: a multi-tenant Streamable HTTP transport with OAuth 2.1. Version 1.1.0 followed three days later with a Dockerfile and Cloud Run deployment docs. Together they turn GA4-in-an-AI-assistant from a per-laptop setup into a shared team service.
What changed in 1.0 and 1.1
The server has always wrapped two Google APIs: the Admin API (accounts, properties, links, key events) and the Data API (reports). What changed is where it runs and who it runs as.
- Local mode (unchanged): the server runs on each person's machine over stdio, authenticated with that machine's Application Default Credentials.
- Hosted mode (new in 1.0): one server runs over HTTP for everyone. With the built-in OAuth 2.1 flag, each person signs in with their own Google account from their AI client, and the server calls GA4 with their token.
- Deployment (new in 1.1): a root Dockerfile that starts the server in stateless HTTP mode, plus a documented Cloud Run deploy.
- Writes, opt-in: the server is read-only by default. Since 0.8 and 1.1 it can also create annotations, custom dimensions and key events, but only when started with --allow-write and when the user has the edit scope.
The practical effect: the platform or data person deploys it once, and the team gets a single MCP URL to paste into their client.
Why per-user OAuth is the real feature
The obvious shortcut for a shared server is a service account: give one robot account Viewer access on every property and point everyone at it. It works, and it is exactly what you should not do. A shared service account flattens your permission model. The intern sees the same properties as the CMO, every query in the API logs looks like it came from one identity, and offboarding someone does not remove their access to anything.
With OAuth 2.1 mode the server holds no GA4 access of its own. Each request carries the signed-in user's Google token, so GA4 enforces the roles you already manage in Admin. If a person cannot see a property in the GA4 UI, they cannot query it through Claude either. Removing someone from the property removes their AI access in the same click. For agencies with dozens of client properties, that is the difference between "allowed" and "we need a security review first".
What the team can actually ask it
The server exposes thirteen tools. The ones marketers will use daily:
- run_report — any Data API report: dimensions, metrics, date ranges, filters. "Sessions and purchases by source/medium, last 28 days vs previous 28."
- run_realtime_report — what is happening right now, with minute ranges since 1.1. Useful during a launch or a campaign switch-over.
- run_funnel_report and run_conversions_report — funnel drop-off and key-event performance without building an exploration.
- get_custom_dimensions_and_metrics — so the assistant knows your custom fields before it guesses names.
- list_google_ads_links, list_key_events, list_property_annotations — the context questions: is Ads linked, what counts as a conversion, what changed on that date.
With writes enabled, create_property_annotation is the quiet winner: "annotate yesterday as the day we launched the new checkout" from inside the chat, so the next person reading the trend knows why it moved.
Rolling it out on Cloud Run
The shape of a sensible rollout, based on the project's own docs:
- In a Google Cloud project you own, enable the Google Analytics Admin API and Data API, and create an OAuth client. The server reads it from GOOGLE_OAUTH_CLIENT_ID and GOOGLE_OAUTH_CLIENT_SECRET; keep the secret in Secret Manager.
- Deploy from the repository with gcloud run deploy, OAuth enabled (--oauth or ANALYTICS_MCP_OAUTH=true).
- Request only analytics.readonly unless you deliberately want writes. Turn on --allow-write later, for a smaller group, if at all.
- Share the service URL. Each person adds it as a remote MCP server in their client and signs in with Google the first time.
# local test of the hosted mode before you deploy it
pipx run analytics-mcp --transport http --stateless-http --host 0.0.0.0 --port 8080
Caveats before you send the link
Version 1.0 is production-ready in the sense of "graduated from experimental", not in the sense of "nothing to think about". Three things to know:
- OAuth state lives in memory. Client registrations, pending authorizations and refresh tokens are held in the process. The docs recommend a single Cloud Run instance (--max-instances 1) or sticky sessions, and every restart or redeploy means everyone signs in again. Fine for a team of twenty; plan for it before rolling out to two hundred.
- The endpoint is public at the Cloud Run layer. Deploying with --allow-unauthenticated means anyone can reach the URL; the server still rejects tool calls without a valid Google token, but put it behind your usual ingress controls if your policy requires it.
- Write tools need real GA4 roles. Creating a custom dimension needs Editor on the property, a key event needs Marketer or Editor. That is the right default, but it means "the AI broke my config" is now a possible sentence. Keep writes off for most people.
And the usual AI caveat applies with more force, not less: an assistant that can query GA4 will happily answer from a report that uses the wrong attribution setting, a mis-scoped dimension, or a key event someone renamed last quarter. The server makes the data easier to reach. It does not make it more correct.
Where this fits in a reporting stack
GA4 through MCP is excellent for the questions marketers used to queue for an analyst: quick cuts, sanity checks, "did the launch move anything". It is not a replacement for a warehouse. GA4 numbers still disagree with ad platforms and with orders in your store, and true ROAS still needs margin, returns and offline revenue that GA4 never sees.
The useful pattern is two tools side by side: the GA4 MCP server for behavioral and session questions, and a warehouse-backed agent for revenue questions where the answer has to match finance. Deploy the first one this week; it is a few hours of work now instead of a few hours per marketer. Then make sure the second one exists before someone starts quoting GA4 revenue in a budget meeting.