The Google Analytics MCP server connects Claude to your GA4 properties, and unlike Search Console, Google ships an official one. This guide covers the official server, when a community alternative earns its place, and the blended GSC-plus-GA4 workflows that turn two half-pictures into one.
What is the official Google Analytics MCP server?
Google's official server (googleanalytics/google-analytics-mcp) runs locally and exposes the Analytics Data and Admin APIs as MCP tools. Out of the box: account summaries, property details, custom dimensions and metrics, standard reports, funnel reports and realtime reports. It authorises with your Google account and runs on your machine, so the data path is you to Google, no third party.
That tool list covers most SEO questions: sessions and conversions by landing page, channel splits, engagement by page, trend over time. Being official matters for one practical reason: when GA4's API surface shifts, the official server moves with it.
When would you use a community GA4 MCP instead?
Reach for a community server when you need opinionated analysis, multi-source blending, or deployment shapes the official server does not do. The ecosystem is busy (surendranb's analysis-ready server, mcp-ga4-ultimate's 54 specialised tools, Cloud-Run deployables), and one pattern is worth singling out: servers that put GA4 AND Search Console behind one tool set, so blended questions do not require two round trips. If your workflow is mostly "pull a report, think, follow up", the official server is enough. If it is "join my traffic to my rankings every morning", a blended server or a small custom layer starts paying rent.
What do blended GSC + GA4 workflows look like?
Blending answers the questions neither source can answer alone, because GSC sees the SERP and GA4 sees the session. The three I run most, via the StudioHawk GSC-plus-GA4 plugin we built for exactly this:
- Click-to-session reconciliation. Pages where GSC clicks and GA4 sessions diverge hard are measurement problems (redirects, UTM overwrites, consent walls) before they are SEO problems. The divergence list IS the audit.
- Which rankings actually convert. Join GSC queries to GA4 conversions by landing page and you find pages that rank, get clicked, and convert nothing: the exact set where intent-matching work beats more traffic. The reverse list (converts well, ranks poorly) is your priority queue for authority work.
- AI-referral quality. GA4 splits out chatgpt.com and perplexity.ai referrals; GSC cannot see them at all. Blend and you can compare AI-referred engagement against organic on the same pages. On the sites I watch, AI referrals are small and engaged, and the trend line matters more than the level.
How do you set the official server up?
Install the package, authorise once, add it to your MCP client config. The shape: enable the Analytics APIs in a Google Cloud project, set up application-default credentials (or OAuth client credentials), install the server package, and register it in Claude Code's MCP config. First run opens the Google consent screen; after that the tools are just available. Budget 15 minutes, once, per machine.
One discipline carries over from every other data tool: make the model show the pull. Ask for the rows, then the read. GA4's metric names are just similar enough to Universal Analytics ghosts that unverified numbers slip through polite conversation.
FAQ
Is there an official GA4 MCP server?
Yes: googleanalytics/google-analytics-mcp on GitHub, from the Google Analytics team. It exposes the Data and Admin APIs as MCP tools and runs locally. Search Console, by contrast, has no official server.
What is the difference between a GA4 MCP and Search Console MCP?
GA4 sees what happens ON your site (sessions, engagement, conversions, all channels). Search Console sees what happens on Google's results (queries, impressions, clicks, positions). Blended, they connect a ranking to its revenue.
Can I connect more than one GA4 property?
Yes. The official server can list every account and property your Google login can access, which is what makes it practical for agencies and portfolios, not just one site.
Does the GA4 MCP work in Claude Code and Claude Desktop?
Yes, both, plus any MCP-compatible client (Cursor and most agent frameworks). One config entry per client.
Sources
- Official Google Analytics MCP server: https://github.com/googleanalytics/google-analytics-mcp
- surendranb/google-analytics-mcp: https://github.com/surendranb/google-analytics-mcp
- Gatescrispy/mcp-ga4-ultimate: https://github.com/Gatescrispy/mcp-ga4-ultimate
Soaring Above Search
Weekly AI search insights from the front line. One newsletter. Six sections. Everything that actually moved this week, with a practitioner's take.