Person at a cafe table checking their phone next to an open laptop and a cappuccino

How to Connect Google Analytics to Claude (and Its Limits)

Google itself maintains the best way to get GA4 data into Claude: the official Google Analytics MCP server, published under the googleanalytics GitHub org and documented on developers.google.com. It isn’t a one-click app in Claude’s directory — it’s a server you run yourself — and Google is explicit that it handles read requests only. But for the core loop of “ask a question, get a report,” it’s first-party, free, and much better maintained than the community GA4 wrappers that came before it.

What Google’s server exposes

The server sits on top of the GA4 Admin API and Data API and offers a tight, deliberately bounded toolset:

  • get_account_summaries and get_property_details — enumerate your accounts and GA4 properties
  • get_custom_dimensions_and_metrics — see what a property actually tracks beyond the defaults
  • run_report — the workhorse: arbitrary dimension/metric combinations from the Data API
  • run_funnel_report — funnel analysis without building an exploration in the GA4 UI
  • run_realtime_report — what’s on the site right now

Nothing writes. Claude can’t change a data stream, edit key events, or touch property settings through this server — Google fenced it to reads on purpose.

Questions a GA4 user would actually pose once it’s connected:

  • “Run a report of sessions and key events by session default channel group, last 28 days, for the ecommerce property.”
  • “Compare organic search conversions this month against last month and tell me which landing pages account for the gap.”
  • “What custom dimensions does our app property have, and which reports use them?”

For deeper history than the Data API serves comfortably, GA4’s BigQuery export is still the right tool — this server is for report-shaped questions, not warehouse queries.

Getting it running

  1. Install the server locally (Google’s README walks through pipx), with the Analytics APIs enabled on a Google Cloud project.
  2. Authenticate with Application Default Credentials — gcloud auth with an account that has GA4 access, or a service account granted viewer on the properties.
  3. Register it as a local MCP server in Claude Desktop’s config or via claude mcp add in Claude Code.
  4. Ask for your account summaries as a smoke test.

Note the deployment wrinkle: because it’s a local server, it pairs with Claude Desktop or Claude Code. To reach it from claude.ai in a browser you’d have to host it at a URL and add it as a custom connector — and custom connectors require a paid Claude plan either way.

Read-only and chat-bound: what that rules out

Read-only is the smaller constraint; chat-bound is the one that changes your workflow. The server answers when asked and is otherwise inert. So the Monday-morning traffic email still requires a human to open Claude on Monday morning and request it. If organic sessions slide 20% after a core update, the connector holds the exact run_report call that would reveal it — and runs it days later, when someone thinks to ask. “Watch key events this week while the campaign runs” isn’t expressible at all: no schedules, no polling, no standing instructions survive the end of a conversation.

Closing the loop with Carly

To make GA4 numbers arrive — rather than wait to be fetched — you need an agent that runs on triggers. Carly is an AI executive assistant that executes workflows on schedules and events, in the cloud:

  • Scheduled reporting: every Monday, pull sessions, conversions, and channel mix from Google Analytics, write the week-over-week story, and email it — sent for real through Gmail or Outlook, attachments and all.
  • Drop detection: a recurring check compares this week to baseline and pings Slack the day traffic falls out of range, not the day someone notices.
  • No server to run: you describe the outcome conversationally, Carly asks follow-up questions, and the workflow exists — no pipx, no credentials file, no config JSON.

AI agents start at $35/month, and steps that don’t use AI run free and unlimited, across 200+ connected apps.

Google’s GA4 MCP server vs Carly

Claude (official GA4 MCP)Carly
Ad-hoc reports by dimension and metricYesYes
Funnel and realtime reportsYesYes
Weekly traffic email on a scheduleNoYes
Flag a sessions drop the day it happensNoYes
Edit GA4 settings or key eventsNo (read-only by design)
Needs your machine onYes (local server)No (cloud)
Setup effortpipx + Cloud project + ADCDescribe it in chat
CostFree server; paid plan for custom connectorsAI agents from $35/mo

Frequently Asked Questions

Does Claude integrate with Google Analytics?

Yes, via Google’s own MCP server — an official, open-source, read-only server for GA4 that you run locally and attach to Claude Desktop or Claude Code. Google Analytics isn’t in Claude’s connector directory as of mid-2026, so there’s no one-click path; hosting the server remotely as a custom connector requires a paid Claude plan.

Which GA4 tools does the official MCP server include?

Account and property lookups, custom dimension/metric discovery, and three report runners: standard reports, funnel reports, and realtime reports — all backed by the GA4 Data and Admin APIs, all read-only.

Can Claude change my GA4 configuration?

No. Google restricted the server to read requests; it cannot edit properties, data streams, key events, or anything else in your Analytics setup. For configuration work you’re back in the GA4 admin UI.

Can I get a GA4 report from Claude automatically every week?

Not from Claude — connectors only respond inside a conversation someone starts, with no scheduler behind them. Carly handles the recurring version: it pulls GA4 metrics on the schedule you set and delivers the summary by email or Slack. AI agents start at $35/month.

Does the GA4 MCP server replace the BigQuery export?

No — it answers Data API-shaped questions in chat. Event-level analysis, long retention windows, and joins against other datasets still belong in the BigQuery export.


More: Claude connectors · Claude vs Carly · Can Claude send emails · Claude + Google Sheets · Claude + Google Drive · Claude + Google Maps · Claude + Amplitude · Claude + Mixpanel

Ready to automate your busywork?

Carly schedules, researches, and briefs you—so you can focus on what matters.

See what people say

"Before Carly, I relied on a Calendly link, but the whole process felt impersonal and not very professional. Carly changed that by handling all the back-and-forth, so I'm no longer stuck in endless email threads trying to line up schedules.

Now Carly reaches out to candidates, shares my real-time availability, lets them pick a slot, then sends a Zoom link and drops it straight into my calendar. She sends reminders to both of us before each call, which has significantly reduced no-shows and last-minute confusion.

On top of scheduling, Carly acts like a full executive assistant, sending me my schedule the night before so I can prepare for each call. It reminds me of the old x.ai assistant, but Carly is noticeably smarter, faster, and better suited to my healthcare recruitment business."

Gus Ibrahim, Founder & Director, IHR