MCP server

Google Analytics MCP server for Claude, ChatGPT and OpenClaw.Ask GA4 a question in plain language. Get the report, the request body behind it, and the ad spend next to it.

Toffu is a hosted MCP server with a marketing agent behind it. Ask a GA4 question from the agent you already use. Toffu picks the property, builds the Data API runReport request, fixes it when GA4 rejects a dimension and metric pair, and answers with the numbers and the request it ran. Nothing to install, no Google Cloud project.

No credit card · 500 credits on signup · Results in 60 seconds

send_message · google-analytics
you › In GA4, check the tracking setup only, no traffic numbers: which event names were recorded in the last 7 days and which custom dimensions exist. Reply with names only and the exact GA4 Data API request body you ran.toffu › Reading the property's custom dimensions, then running a Data API runReport on eventName...toffu › Event names recorded, 2026-11-24 to 2026-11-30 (28):
click, connected_integration, file_download, first_visit, form_start, form_submit, gtm.click-v2, gtm.dom, gtm.formInteract, gtm.formSubmit, gtm.historyChange-v2, gtm.init, gtm.init_consent, gtm.js, gtm.linkClick, gtm.load, gtm.scrollDepth, marketing_page_viewed, page_view, purchase, saw_pricing, scroll, session_start, sign_up, signup_page_viewed, use_case_cta_clicked, user_engagement, user_identified

Custom dimensions (3, all user-scoped):
first_touch_channel, signup_cohort_month, signup_cohort_week

Data API request body (runReport):
{"dateRanges": [{"startDate": "2026-11-24", "endDate": "2026-11-30"}], "dimensions": [{"name": "eventName"}], "metrics": [{"name": "eventCount"}], "orderBys": [{"dimension": {"dimensionName": "eventName"}}], "limit": 250}

The API requires at least one metric, so eventCount is in the request. I left its values out of this reply.

Connect

Add Toffu to your MCP client

Copy this to your agent

Onboard onto Toffu as my AI marketing agent. Read https://toffu.ai/llms.txt and follow it: sign up at https://mcp.toffu.ai/agent/signup (no email needed), then add https://mcp.toffu.ai/mcp as an MCP server in your client with the key you get back and reload so its tools load. Don't hand-roll JSON-RPC. Then use the send_message tool to ask Toffu which GA4 events my site recorded in the last 7 days and which of them are key events, and show me the runReport request it used.

Paste it into your agent. It does discovery, signup and connection; you don’t run anything yourself. It is the same flow as our agent onboarding.

Works withopenclawHermesClaudeChatGPTCodexMuseGrok BotDots

Or add the server URL directly

mcp.toffu.ai
$ https://mcp.toffu.ai/mcp

Clients that take a server URL (Claude, ChatGPT, Cursor, Claude Code): add this one and sign in with OAuth. See the full MCP guide.

Then connect Google Analytics inside Toffu once, at toffu.ai, Integrations, and pick the GA4 properties it may read. Toffu holds the OAuth token; your MCP client never sees it. GA4 questions go through the send_message tool, which hands them to the Toffu agent.

Official server or hosted

Google's official Google Analytics MCP server vs Toffu

Google publishes an open-source Google Analytics MCP server, analytics-mcp. You run it yourself with your own Google Cloud project. Here is what each one does, from Google's docs and README and from Toffu's code.

What it readsGoogle's analytics-mcp:Account summaries, property details, Google Ads links, annotations, custom dimensions and metrics, key events, and reports: run_report, run_realtime_report, run_funnel_report and run_conversions_report.Toffu:Any GA4 Data API runReport your question needs, on the properties you allowed in Toffu. The answer can sit in one table with Google Ads, Meta, Search Console and the other sources you connect.
What it can changeGoogle's analytics-mcp:Read-only by default. With the --allow-write flag and the analytics.edit scope it adds three tools: create_property_annotation, create_custom_dimension and create_key_event.Toffu:Nothing in GA4 over MCP. The send_message tool reads and drafts only.
Bad queriesGoogle's analytics-mcp:Returns the Data API error to your agent.Toffu:When GA4 rejects a request, Toffu rewrites it from the error and runs it again, up to three times. It also warns when a revenue metric is split by a page dimension, where GA4 reads close to zero by design.
SetupGoogle's analytics-mcp:Python 3.10 or later, pipx or uv, a Google Cloud project with the Analytics Admin and Data APIs on, and Application Default Credentials from gcloud or a service account key. For a remote client you host it yourself over HTTP.Toffu:Add https://mcp.toffu.ai/mcp to your client. Connect Google Analytics once inside Toffu with Google sign-in. No Cloud project, nothing to install or host.
Agencies and many propertiesGoogle's analytics-mcp:Reads every property the Google login or service account can reach.Toffu:One workspace per client. A workspace reads only the GA4 properties granted to it, so one client's chat cannot reach another client's data.
CostGoogle's analytics-mcp:Free and open source (Apache 2.0). You pay for any hosting you run.Toffu:Hosted. Usage is billed on your Toffu plan.

Use Google's server when you want raw GA4 reports in a local client and are happy to run it yourself, or when you need its three write tools. Use Toffu when you want a hosted server with nothing to set up, or GA4 next to your ad platforms in one answer. The two also work side by side in the same MCP client.

Checked 2026-12-01 against: Google Analytics developer docs: MCP server, googleanalytics/google-analytics-mcp on GitHub.

What you can do

GA4 answers without writing the request yourself

Plain question in, runReport out

Toffu maps "users", "sessions" or "signups by channel" to the right GA4 dimensions and metrics, picks the property, and shows the request body it ran so you can check it.

Fixes rejected queries

GA4 rejects some dimension and metric pairs. Toffu reads the error, rewrites the request and runs it again, up to three times, instead of handing your agent a 400.

Warns on misleading splits

Revenue and transactions split by page path read close to zero, because GA4 credits the purchase to the checkout page. Toffu says so and points to landing page or item metrics.

Tracking audits

List the events your site really sends, the key events and the custom dimensions, and spot the ones that stopped firing, without opening the GA4 admin.

GA4 next to ad spend

Ask for sessions and signups by source next to Google Ads, Meta or LinkedIn spend for the same dates, in one answer.

Property allowlist

Toffu reads only the GA4 properties you selected in Toffu, even when your Google login can see more.

How it works

Connect. Ask. Check the request.

01

Connect Toffu as an MCP server

Paste the onboarding prompt into your agent. It signs up, registers https://mcp.toffu.ai/mcp and loads the tools. Connect Google Analytics inside Toffu once and pick the properties.

02

Ask in plain language

"Which landing pages lost the most sessions this week, and from which channel?" Your agent passes it to Toffu with send_message.

03

Get the answer and the request

Toffu runs the GA4 report, fixes the request if GA4 rejects it, and replies with the result and the request body it used.

After the first answer

Keep asking from the same chat

Your GA4 property does not change. Toffu reads it with the access you granted.

Follow-up questions

"Now split that by device" reuses the property and dates from the last answer.

Search Console in the same answer

Connect Search Console too and ask which queries bring the landing pages that convert in GA4.

Compare periods

"This week against last week" runs both date ranges in one GA4 request and returns them side by side.

Same agent in Toffu's own chat

Everything you ask from OpenClaw, Hermes or Claude shows up in your Toffu workspace, with the same history and the same property rules.

For agencies

Running ads for 10+ clients?

Your agent answers one request at a time. Toffu runs the daily work across every client.

One workspace per client

Each client gets its own isolated workspace, with its own connected accounts and memory.

Reports that send themselves

White-label reports on a schedule, by email, Slack or WhatsApp.

Approval before changes go live

Budget and status changes wait for a click from your team.

FAQ

Common questions

What is a Google Analytics MCP server?

An MCP server that lets an AI agent such as Claude, ChatGPT or OpenClaw read your Google Analytics 4 data. Model Context Protocol is the open standard for connecting agents to outside tools. Toffu is a hosted one, so there is nothing to install.

Is there an official Google Analytics MCP server?

Yes. Google publishes analytics-mcp, an open-source server you run yourself with Python and your own Google Cloud project. It reads GA4 through the Admin and Data APIs, and with the --allow-write flag it can create annotations, custom dimensions and key events. Toffu is a third-party hosted server that reads GA4 with nothing to install.

Is a GA4 MCP server different from a Google Analytics MCP server?

No. Google stopped processing Universal Analytics data in 2023 (2024 for Analytics 360), so current Google Analytics MCP servers read GA4 properties.

Do I need a Google Cloud project or a service account?

Not with Toffu. You sign in with Google inside Toffu and Toffu calls the GA4 APIs for you. Google's own server needs a Cloud project with the Analytics Admin and Data APIs on, plus Application Default Credentials.

Which MCP tool do I call for GA4?

send_message. Toffu's MCP server has no GA4-specific tool; send_message hands your question to the Toffu agent, which runs the GA4 reports and returns the answer.

Can Toffu change my GA4 settings?

Not over MCP. send_message reads and drafts only, so it does not create key events, custom dimensions or annotations.

Which clients work?

Any client that supports remote MCP servers over streamable HTTP with OAuth: OpenClaw, Hermes, Claude (web, desktop, Claude Code), ChatGPT apps, Cursor, and most agent frameworks.

I run an agency. Can a client's chat read another client's GA4?

No. Each workspace reads only the GA4 properties granted to it.

Before you let an agent write: how approvals, limits and undo work

Ask GA4 your next question in plain language.

Connect Toffu to the client you already use. Connect Google Analytics once. Ask.

No credit card · 500 credits on signup · Results in 60 seconds