Connect Google Analytics to your AI chat agent

GA4 has the traffic, conversion, and audience data to answer almost any question about your site. Most of it just sits behind a dashboard nobody has time to open.

SourcetoMCP connects it straight to Claude, ChatGPT, or any MCP-compatible agent, so it can query real GA4 data instead of guessing.

Agent asks

What are our top traffic channels this month?

Organic Search: 34.1K sessions, 61% engagement rate, our top channel by far

Agent asks

How much revenue came from purchases last week?

$86,400 across 1,240 purchase events, up 12% week over week

Why GA4 data matters for your agent

A screenshot of a GA4 dashboard goes stale the moment you close the tab. Your agent needs live access to actually answer questions, not repeat what it remembers from training data.

  • Four real report types, one connection. Traffic and engagement, conversions and e-commerce, audience and demographics, and real-time activity all come from the same connected property.
  • Breaks down by what actually matters. Channel, source, device, country, age bracket, event, item category, not just a single top-line number.
  • Read-only, on purpose.Your agent can query GA4 data freely; it can never change your property’s configuration or tracking setup.

How it works

1

Connect Google Analytics. Authorize through Google's own sign-in in about a minute. SourcetoMCP never sees your password.

2

Your agent asks in plain language. It calls the right MCP operation behind the scenes — traffic, conversions, audience, or real-time — and gets real GA4 data back, never a guess.

3

Every answer shows its work. Structured data comes back with the exact dimensions and metrics used, so you can see how the answer was built rather than take it on faith.

google_analytics.performance

dimensions: sessionDefaultChannelGroup · period: last 28 days

ChannelSessionsUsersEngagement
Organic Search3,4202,89061.2%
Paid Search1,8761,54054.8%
Direct1,23498049.1%
See it work

Ask about your GA4 property. Get real data back.

master — ✳ Claude Code — claude — 120×30
Claude Code v2.1.224
Sonnet 5 · Claude Pro
/Users/master
⚠ 1 MCP server needs authentication · run /mcp
| Using Sonnet 5 (from .claude/settings.json) · /model
  +1 more · /status
master Sonnet 5
‖ manual mode on
What's included

Built for the whole property, not one dashboard tab

Traffic and engagement, broken down

Sessions, users, engagement rate, and pageviews, split by channel group, source, medium, device, or page, over any date range.

Conversions past a single number

Transactions, purchase revenue, and items purchased or added to cart, broken down by the individual event or product driving them.

Who's actually visiting

Age bracket, gender, new vs returning, platform, language, and country, so your agent can describe the audience, not just the traffic.

What's happening right now

Active users, events, and pageviews from roughly the last 30 minutes, for launches, sends, or anything you're watching live.

Four report types, one connection

Traffic, conversions, audience, and real-time all come from the same connected GA4 property, so your agent covers the whole picture.

Read-only, on purpose

Your agent can query freely; it can never change your property's tracking setup, audiences, or configuration.

Real prompts teams run against Google Analytics

Every SourcetoMCP account gets these in the Prompt Library, ready to run against your own connected GA4 property.

Traffic & performance

  • Google Analytics Traffic Performance Report
  • Google Analytics Weekly Traffic Summary

Conversions & audience

  • Google Analytics Conversion & Revenue Report
  • Google Analytics Audience Overview
  • Google Analytics Real-Time Activity Check

Ask anything else

Your agent can call these operations directly too. The library is a starting point, not the limit.

Google Analytics MCP FAQ

Common questions from teams connecting Google Analytics to an agent.

Traffic and engagement, conversions and e-commerce, audience and demographics, and real-time activity for any GA4 property you connect: four registered operations in total.

Claude, ChatGPT, Cursor, or any MCP-compatible client. Connect once from your dashboard's "Connect an agent" page and every tool you've paired can use it.

No. Connecting uses Google's own OAuth sign-in. SourcetoMCP never sees your password.

No. Access is read-only, so your agent can query traffic, conversion, audience, and real-time data freely, but it can never change tracking setup, audiences, or any other configuration.

Only if Google Signals is enabled on your property, and Google suppresses individual rows below its own minimum-traffic thresholds for privacy. That's a Google policy, not a SourcetoMCP limitation.

Google Analytics is available on every paid plan. See Pricing for how many connections each plan includes.

Securely connect your Google Analytics to AI chat agents.

Connect your first source in minutes.