Google publishes an open-source MCP server for Google Analytics. Besides reports, it reads your GA4 settings through the Admin API: which properties you can see, their key events, custom dimensions and metrics, and Google Ads links. It only reads by default. Turned on, three write tools can create custom dimensions, key events and annotations. Some settings, like data retention, aren't in it at all. This guide covers what it can do, what to watch, how to connect, and what changes when a team looks after many properties.
MCP (Model Context Protocol) is an open standard for plugging AI assistants into other apps. Claude and ChatGPT are a great fit for one person checking their own property. BlueNexus is for when settings are shared work.
For an analyst who looks after GA4 settings and is comfortable in a terminal.
For someone with a developer who can host the server.
For an agency or marketing team looking after many GA4 properties.
What it can do, and what to watch
Google's Google Analytics MCP server reads accounts, properties, key events, custom definitions, Google Ads links and annotations. Google's setup page covers Claude Desktop, Claude Code and Cursor. Version 1.1, from November 2026, includes three write tools. They stay off unless it's started with --allow-write and the edit scope.
Three things are worth knowing:
- Some settings aren't there. It has no tools for data retention, data streams, creating Google Ads links, archiving or user access. Check those in GA4's Admin.
- Key events don't look back. Marking an event as a key event "doesn't change historic data", says Google's key events page. It counts from then on.
- Slots are limited. A standard property has 50 event-scoped custom dimensions and 30 key events. Creating ones you don't need uses them up.
What Google's Google Analytics MCP server lets an AI do with settings
- Data retention settings
- Data streams
- Creating Google Ads links
- Archiving, or managing user access
Connect Google Analytics Admin to Claude or ChatGPT
Both use your own Google account, and only see the properties you can.
Connect Google Analytics Admin to Claude
20 minA good fit if you look after GA4 settings yourself.
- 1In a Google Cloud project, enable the Google Analytics Admin API and Data API. Your account needs at least Viewer access to the property.
- 2Install Python 3.10 or later and pipx, then sign in with
gcloud auth application-default loginand the read-only Analytics scope. - 3Add the server to Claude Code with
claude mcp add, or to Claude Desktop's config file, using the lines from Google's setup page. - 4Ask which properties you can see, and which key events each one has.
To let it create custom dimensions or key events, start it with --allow-write and sign in with the edit scope. Google's README has the details. Leave it off for an audit.
Connect Google Analytics Admin to ChatGPT
1 hourA good fit if a developer can host it for you.
- 1A developer hosts Google's server with
--transport httpand its built-in OAuth sign-in, for example on Cloud Run. - 2In ChatGPT, open Plugins and add a custom MCP server with that address. On Business plans, only admins and owners can add one.
- 3Sign in with your Google account.
- 4Ask which custom dimensions a property has, and how close it is to the limit.
ChatGPT can't start a server on your computer, so Google's server has to be hosted. We didn't find a Google-made Google Analytics app in ChatGPT's Plugins in November 2026.
For developers
The Admin API has a v1beta and a v1alpha. v1beta covers accounts, properties, data streams, custom dimensions and metrics, key events, Google Ads links and data retention settings. User access, audiences, channel groups and annotations are in v1alpha. Its quotas are 1,200 requests a minute, 600 per user, and 600 writes a minute, 180 per user. Since June 2026, each property summary says whether your role can edit it (changelog).
Who can do what
- Your role decides. GA4's roles go from Viewer to Administrator. Editor has "Full control of settings at the property level". Marking an existing event as a key event needs Editor or above, and creating a new event as a key event needs Marketer or above. Only an Administrator manages users.
- Some things can't be undone. Archiving a custom dimension can't be undone, and explorations that use it stop loading. Do it by hand, after checking.
- Google Ads needs two sides. Linking needs Editor in GA4 and admin access in Google Ads.
- Your data. Settings and report data go to the AI app you use, and that app's settings apply.
When it doesn't work
- Write tools don't show up. The server needs
--allow-writeand the edit scope, and you need the right role. - A new key event shows no data. Standard reports can take up to 24 hours, and past events aren't counted.
- Can't create a custom dimension. The property may be at its limit. Google says to wait 48 hours after deleting dimensions before adding new ones.
- Explorations only go back two months. Check the property's data retention in Admin. It's 2 or 14 months on standard properties.
- No properties listed. Check your access and that both APIs are enabled in the Cloud project.
With a team: Google Analytics Admin in BlueNexus
In Claude or ChatGPT, each person sets up their own server and checks their own properties. That suits one person. In an agency or a marketing team with several brands, many properties need the same settings, changes need a second pair of eyes, and nobody remembers who changed what last month.
BlueNexus is a shared AI workspace where people and AI agents work in the same projects, channels and tasks. The BlueNexus Google Analytics Admin connector, our own integration, is coming soon. It has 33 tools (18 that read and 15 that write) for accounts, properties, data streams, custom dimensions and metrics, key events, Google Ads links and data retention settings. Every change an agent prepares waits for a person in Needs you. Connect it with a Google account that has the role your team should have.
Once it's live, open Add a connector, search for Google Analytics Admin, click Connect and follow the steps.
- All
- AI
- Analytics
- Communication
- Finance
- Marketing
- Productivity
- Sales
- Social
Manage Google Analytics 4 settings: accounts, properties, data streams, custom dimensions and metrics, key events, Google Ads links and data retention.
Illustration of the BlueNexus app with example data.
At Fallowfield Digital, a 20-person marketing agency in Denver, Lennox, the analytics lead, asks the analytics agent on Tuesday 10 November to check a client's property, Mosswood Bakery. Retention is at 2 months, and the catering_enquiry event from the bakery's catering form isn't a key event. The plan waits in Needs you.
Nothing in GA4 changed until Lennox approved it. Linking Google Ads stays with Darcy, the paid media lead, who has admin access to the client's Google Ads account.
Lennox asked the analytics agent to check the Mosswood Bakery property. From Google Analytics Admin. Nothing is changed or posted until Lennox approves it.
- Set event data retention to 14 monthsIt's at 2 months, so explorations only reach back 2 months. Takes effect after 24 hours
- Mark catering_enquiry as a key eventLennox confirms the catering form sends it. It counts from now on, not before
- Post both changes in the Mosswood Bakery client channelWith what changed, and why
- Link the client's Google Ads accountLeft unticked: Darcy links it, with admin access in Google Ads
Illustration of the BlueNexus app with example data.
For a full check of one property, see how to audit a GA4 property's settings. For many properties, see keeping many GA4 properties set up the same way.
Which way fits you
If you look after your own property, run Google's MCP server with Claude, read-only, and make changes in GA4's Admin yourself.
If settings are shared work, across an analytics lead, account directors, paid media and developers, you'll get more from one shared space than from several private chats. That's what BlueNexus is built for, and you can sign up for BlueNexus to bring your team in.