The three kinds of Google Analytics MCP server
The channel's own server, a community one you run yourself, or a hosted connector. What each one is, and what it can change in your Google Analytics 4 account.
Official Google Analytics MCP
Google publishes an official Google Analytics MCP server, googleanalytics/google-analytics-mcp: reports, funnels, realtime and account summaries. It is read-only, labelled experimental, and runs on your machine with your own Google Cloud credentials.
Open-source servers
Google’s own server is itself open source, and it is the one most people run. Any self-run GA4 server, Google’s included, is a process you host on credentials you keep valid, answering one person at one machine.
Sprites MCP
Sprites reads GA4 through a hosted connection, beside the ad accounts that drove the traffic, so one thread answers which campaign brought the sessions that converted. It changes nothing in GA4: recommendations land on the ad or SEO channel they belong to, each with its own approval.
The full comparison is further down: running your own.
Set up Google Analytics MCP in Claude
Plans: Free (one custom connector), Pro, Max, Team and Enterprise, on claude.ai, Claude Desktop and Claude Code. Connect Google Analytics 4 inside Sprites once, and every client reads the same account.
Open the connector settings
On a Free, Pro or Max plan, go to Settings, then Customize, then Connectors. On Team and Enterprise an Owner adds the connector once for the whole workspace under Organization settings → Connectors, and everyone else only clicks Connect.
ClaudeSettingsCustomizeConnectorsAdd a custom connector
Click the + button, then Add custom connector. On Team and Enterprise, hover Custom and choose Web. Paste the Sprites endpoint and click Add. Leave Advanced settings alone: Sprites publishes its own OAuth client metadata, so there is no client ID or secret to fill in.
Add custom connectorNameSpritesRemote MCP server URLhttps://mcp.sprites.ai/mcpSign in and approve the scopes
Click Connect. Claude opens the Sprites consent screen in a new tab. Sign in with the account your ad platforms are already connected to, review what Sprites is being allowed to do, and approve. The grant is revocable from Claude settings or from Sprites at any time, and the very next tool call after a revoke fails closed.
Spriteswants access on behalf of Claude- Read your connected ad accounts and site data
- Draft campaigns, creatives and pages for your approval
- Apply only the changes you approve
AllowCancelOr add it to Claude Code in one line
The terminal client takes the same endpoint. Run the command, then type /mcp inside Claude Code to finish the browser sign-in.
Terminalclaude mcp add --transport http sprites https://mcp.sprites.ai/mcpRun the first prompt
Ask Claude: "With Sprites, what happened to conversions last week and which channel caused it?" Type "what can Sprites do?" and Claude lists the doors it can see. If it names analyze, launch and optimize, the connector is live.
Set up Google Analytics MCP in ChatGPT
Plans: Plus, Pro, Business, Enterprise and Edu, on the web app. Not available on Free. Connect Google Analytics 4 inside Sprites once, and every client reads the same account.
Turn on developer mode
Open Settings, go to Security and login, and switch Developer mode on. ChatGPT shows a warning that custom connectors run third-party code on your behalf. Read it and accept. On Business and Enterprise workspaces an admin has to allow developer mode first.
Developer modeSettings → Security and loginCreate the Sprites app
Go to Settings → Plugins. This section used to be called Connectors, which is why older guides send you to an Advanced tab that no longer exists. Press the + button to create a developer-mode app.
ChatGPTSettingsPlugins+ CreatePaste the endpoint and choose OAuth
Give it a name and description, paste the Sprites endpoint, and set Authentication to OAuth. Tick the box confirming you trust the application, then click Create.
Create appNameSpritesMCP server URLhttps://mcp.sprites.ai/mcpAuthenticationOAuthSign in and approve the scopes
Connect the new app. ChatGPT sends you to the Sprites consent screen; sign in with the account holding your ad platforms and approve. The app then appears under Drafts in app settings and in the composer under the Developer mode tool.
Spriteswants access on behalf of ChatGPT- Read your connected ad accounts and site data
- Draft campaigns, creatives and pages for your approval
- Apply only the changes you approve
AllowCancelRun the first prompt
Ask ChatGPT: "With Sprites, what happened to conversions last week and which channel caused it?" Open the composer's Developer mode tool and confirm Sprites is listed with its tools enabled, then ask it what it can do.
Set up Google Analytics MCP in Cursor
Plans: Any Cursor plan that allows MCP servers, on desktop and on Cursor web agents. Connect Google Analytics 4 inside Sprites once, and every client reads the same account.
Write the config
Put the entry in ~/.cursor/mcp.json to have Sprites available in every project, or in .cursor/mcp.json inside one repo to scope it there.
~/.cursor/mcp.json{ "mcpServers": { "sprites": { "url": "https://mcp.sprites.ai/mcp" } } }Or add it from the UI
Cursor lists MCP servers under Customize in the sidebar; adding one there writes the same file.
CursorCustomizeMCPNew MCP serverSign in
Cursor finds the Sprites authorization server from the endpoint's protected-resource metadata, registers itself, and opens a browser for the consent screen. Desktop completes on http://localhost:8787/callback and web agents on cursor.com; both are pre-registered, so there is nothing to allowlist.
Spriteswants access on behalf of Cursor- Read your connected ad accounts and site data
- Draft campaigns, creatives and pages for your approval
- Apply only the changes you approve
AllowCancelKeep it in the repo, not in your dotfiles
A project-scoped .cursor/mcp.json is worth committing: every teammate who opens the repo gets the same connector and signs in as themselves. The file holds a URL and nothing else: the token is per person and never touches the config.
Run the first prompt
Ask Cursor: "With Sprites, what happened to conversions last week and which channel caused it?" Open Customize → MCP in the sidebar and confirm sprites is listed as connected with its tool count.
Every other client
The same URL works in any client that speaks remote MCP. Each guide below is the exact path through that client's settings.
What to ask
Paste any of these into a connected client. Name Sprites in the prompt: otherwise an agent may answer a GA4 question from the web rather than from your account.
- With Sprites, what happened to conversions last week and which channel caused it?
- Ask Sprites for our top 10 landing pages by conversion rate this month.
- Use Sprites to compare organic and paid revenue quarter over quarter in GA4.
- Have Sprites break down ecommerce revenue by product for the last 30 days.
- With Sprites, set up a Monday brief on traffic, conversions and the biggest change.
What it reads, and what it can change
Reads happen on request. Every change to Google Analytics 4 is proposed, editable, and applied only when you approve it.
What it reads
- Sessions, users, engagement and conversions by any GA4 dimension
- Channel, source, medium and campaign attribution
- Landing pages, events and funnels
- Item-scoped ecommerce: revenue and units per product
What it can change
- Nothing. GA4 is read-only through this connector by design
- Changes it recommends land on the ad or SEO channel they belong to, each with its own approval
The doors behind it
- analyze — sessions, users, conversions and revenue for any period, with the comparison
- research — landing pages, channels and cohorts behind a change
- run_task — anything that crosses GA4 and another channel in one job
- schedule_task — a recurring brief that arrives without anyone opening GA4
Running a Google Analytics MCP server yourself
Community servers are a genuinely good fit for some readers. This is what the route takes, what it is good at, and what ends it.
What you have to set up
- Python and a local checkout of the server, run on the machine you want to ask questions from.
- A Google Cloud project with the Analytics Data and Admin APIs enabled, and application-default credentials obtained by running the gcloud consent flow yourself.
- An entry in the host’s MCP config pointing at the command, and a restart before the tools appear.
What it is genuinely good at
- Account summaries, property details and custom dimensions, read straight from GA4 rather than a stale export.
- Standard reports, funnel reports and realtime, described in English instead of assembled in the Explore builder.
- Anything you would otherwise be clicking through the GA4 UI to find, on a machine you control.
What breaks under production load
It only runs where you installed it
It is a local server, so it works on that laptop and nowhere else — not on your phone, not in a browser tab, and not for the colleague who asked you the question.
Read-only, and Google labels it experimental
Both facts are in Google’s own README. It reports; it cannot act, and nothing downstream of the number is in scope.
GA4 alone cannot answer the question you actually asked
"Why did conversions drop" is a question about the ad accounts and the site as well as the analytics. A server that can see one of the three will confidently answer from the one it can see.
Credentials live in your home directory
Application-default credentials are a file on disk, readable by anything running as you, and they do not expire the way a revocable OAuth grant does.
For an analyst on one machine who wants GA4 in a chat window, Google’s own server is the right answer and it is free. The moment the question spans GA4 and the channels that drove the traffic — or the moment a second person needs to ask it — a local read-only server is not the shape of the problem.
The servers people reach for: googleanalytics/google-analytics-mcp.
Troubleshooting
The problems readers hit most often, in the client and on the GA4 side, with the fix for each. If the tools never appear, check the URL is exactly mcp.sprites.ai/mcp.
| Where | Problem | Fix |
|---|---|---|
| Claude | The connector is added but Claude says it has no tools. | The OAuth handshake completed but the token is not being accepted. Disconnect and reconnect from Settings → Connectors; a stale grant from a previous session is the usual cause. |
| ChatGPT | There is no Advanced tab under Connectors. | Connectors was renamed Plugins, and developer mode moved to Settings → Security and login. Follow the path above rather than an older guide. |
| Cursor | The Connect button does nothing and no request is made. | A known Cursor issue on some builds. Update Cursor, then remove and re-add the server; if it persists, restart Cursor with the config already in place so the connection is made at startup. |
Google Analytics MCP questions
Is there an official Google Analytics MCP server?
Yes: googleanalytics/google-analytics-mcp. It covers reports, funnels, realtime and account summaries, is read-only and labelled experimental, and runs on your own machine with your own Google Cloud credentials.
Can the agent change my GA4 property?
Not through Sprites. GA4 is read-only here by design; what it recommends lands on the ad or SEO channel it belongs to, with its own approval.
What is the MCP server URL?
https://mcp.sprites.ai/mcp. There is one endpoint for every client and every channel, and every sign-in is bound to exactly that address, so a variant of it will not work.
How much does the Sprites Google Analytics MCP server cost?
Nothing extra: the connector is part of your Sprites plan, from $29 a month. Build is $29 to $99 a month, depending on your business, and includes everything a small business needs: paid ads, SEO and AI visibility (AEO) in one plan. Launch is $300 to $500 a month for bigger businesses, with more business profiles and seats. Larger companies get a custom plan (Scale). Every plan starts with a 7-day trial for $1. There is no free plan.
Can it change anything in GA4?
No. GA4 is read-only through this connector on purpose. If the answer implies a change, it is proposed on the channel that owns it — an ad account, a page — with its own approval.
Do I need to know GA4 dimensions and metrics?
No. You ask the question; Sprites picks the dimensions, runs the report and states what it queried so you can check the working.
Does it handle ecommerce?
Yes, including item-scoped breakdowns — revenue and units per product rather than per session.
Which GA4 property does it use?
The one connected in your Sprites workspace. If several are connected, name the property in the prompt.
Is this better than GA4's own AI answers?
It is answering a different question. GA4 can describe its own data; Sprites can compare it against the ad accounts spending into it and act on the difference.
More setup guides
The same connector on every other channel, one URL for all of them.
More on Google Analytics MCP
Guides for this channel first, then what the protocol is and which servers are worth connecting.
- Mixpanel MCPWhat Mixpanel’s own server reaches, and the request limit that shapes how you use it.
- Amplitude MCPSetup, the tools it exposes, and where it stops.
- What is MCPThe protocol in plain English: what a server is, and what the latest revision changed.
- MCP vs APIThey are layers, not rivals. The one property that separates them.
- Best MCP servers for marketersTwelve that do marketing work, sorted by job — remote or local, read or write.
- Best Claude connectors for marketersEvery endpoint called rather than copied from a directory.
Connect Google Analytics 4 to your agent
One URL, one sign-in, and the next GA4 question you ask is answered from the live account.