Google Analytics MCP Server for Claude and ChatGPT
Connect your GA4 property to Claude or ChatGPT through SourcetoMCP. Ask about sessions, users, engagement rate, conversions, revenue and demographics, and get the numbers back with the dimensions and date range used to build them.
SourcetoMCP hosts the MCP server and handles the Google sign-in, so there is no Google Cloud project to set up and nothing to install on your machine.
Agent asks
What are our top traffic channels this month?
Agent asks
How much revenue came from purchases last 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 answer the question you actually asked, using data pulled at the moment you ask it.
- 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, and item category, each available as its own breakdown.
- Reads reports and manages the property. 13 read operations cover traffic, conversions, audience and real-time. 12 more create custom dimensions, key events, audiences, data streams and annotations, each behind an approval prompt in your agent.
How it works
Connect Google Analytics. Authorise through Google's own sign-in in about a minute. SourcetoMCP never sees your password.
Your agent asks in plain language. It calls the right MCP operation behind the scenes, whether that is traffic, conversions, audience, or real-time, and gets real GA4 data back.
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.
Traffic by channel
by default channel group · last 28 days
| Channel | Sessions | Users | Engagement |
|---|---|---|---|
| Organic Search | 3,420 | 2,890 | 61.2% |
| Paid Search | 1,876 | 1,540 | 54.8% |
| Direct | 1,234 | 980 | 49.1% |
Ask about your GA4 property. Get real data back.
‖ manual mode on
Built for the whole GA4 property
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 as well as 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.
Property settings your agent can change
Create custom dimensions and metrics, key events, audiences, data streams and annotations, set data retention and Google Signals, and link a Google Ads account.
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
- Google Analytics Property & Data Stream Setup
- Google Analytics Account Access Audit
- Google Analytics Data Governance Check
Conversions & audience
- Google Analytics Conversion & Revenue Report
- Google Analytics Audience Overview
- Google Analytics Real-Time Activity Check
- Google Analytics Conversion Event Setup from Event Data
- Google Analytics Remarketing Audience Builder
- Google Analytics Google Ads Link Audit & Setup
- Google Analytics Campaign Launch Annotation
Ask anything else
Your agent can call these operations directly too. The library is a starting point.
Google Analytics MCP FAQ
Common questions from teams connecting Google Analytics to an agent.
Traffic and engagement, conversions and e-commerce, audience and demographics, real-time activity, account-level access review, and full visibility into a property's custom dimensions/metrics, conversion events, audiences, data streams, and Google Ads links, plus management of all of it: creating properties, dimensions, metrics, events, audiences, data streams, Google Ads links, and reporting annotations, and updating property settings, data retention, and Google Signals: 25 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.
Yes, carefully. It can create and archive custom dimensions/metrics and conversion events, build a simple event-triggered audience, update the property's time zone and currency, add a web data stream, create a whole new property under your account, update data retention and Google Signals settings, link or unlink a Google Ads account, add reporting annotations, and start provisioning a new GA4 account (finishing that last one still needs a human to accept Google's Terms of Service). Every other query stays read-only.
Yes. It can list every Google Ads account currently linked to a property, and create or remove a link, which is useful for confirming audience sharing and conversion data are actually flowing between the two if you also connect Google Ads.
Only if Google Signals is enabled on your property, and Google suppresses individual rows below its own minimum-traffic thresholds for privacy. That threshold is Google's own privacy policy.
No. SourcetoMCP hosts the MCP server and runs the Google sign-in for you. You approve access on Google's own consent screen and pick which GA4 property to connect, with nothing to install locally.
Yes, as a custom connector. Add SourcetoMCP once under Customize, then Connectors, and Claude reaches every GA4 property you have connected. ChatGPT, Cursor and any other MCP-compatible client use the same server address.
Google Analytics is available on every paid plan. See Pricing for how many connections each plan includes.
