Google Analytics MCP Server for GA4
The Pipeboard Google Analytics MCP connects Claude, ChatGPT, Cursor or any MCP client to your GA4 properties, with no Google Cloud project to set up. Marketers and analysts ask about traffic, conversions and landing pages in plain language, and can have the assistant update custom dimensions, key events and property settings.
- 24 GA4 tools
- Reports, realtime and property setup
- Works in Claude, ChatGPT, Cursor and Codex
Used by teams and partner agencies working with
$1.2B+
Estimated monthly ad spend across connected accounts
Period & methodology
Monthly equivalent of approximately $329M in deduplicated advertiser spend for October 19–25, 2026, multiplied by 52/12. Includes Meta, Google, TikTok, Snap, LinkedIn, Reddit, and Pinterest Ads; Google manager accounts are excluded. This measures spend in connected accounts, not spend autonomously managed by Pipeboard.
11
Ad platforms you can connect
Period & methodology
Ad platforms any Pipeboard account can connect today: Meta Ads, Google Ads, TikTok Ads, LinkedIn Ads, Microsoft Ads, Pinterest Ads, Snap Ads, Reddit Ads, Amazon Ads, Amazon DSP, and AppLovin Ads. Analytics and commerce sources such as Google Analytics, Search Console and Merchant Center are not counted, nor are integrations still in early access.
Two ways to connect AI to Google Analytics
A Google Analytics MCP server lets an AI assistant read your GA4 data through the Model Context Protocol. There are two main options:
- Google’s official Google Analytics MCP (open source): you run it yourself with Python, a Google Cloud project and Application Default Credentials. Reports are its focus; a few write tools are optional.
- Pipeboard Google Analytics MCP: hosted. You sign in with Google and add one URL. 24 tools for reports and property setup, in Claude, ChatGPT and other clients, with Google Ads and Search Console on the same login.
Google’s server suits developers who are comfortable with Cloud projects and want to run the code themselves, or who need its funnel reports. Pipeboard suits marketers who want to start in a few minutes, use ChatGPT, or have the assistant change GA4 settings.
Pipeboard vs Google’s official Google Analytics MCP
Both connect AI to GA4. Here’s where they differ, as of November 11, 2026.
| Feature | Pipeboard Google Analytics MCP | Google official MCP |
|---|---|---|
| What it is | A hosted MCP server run by Pipeboard | Open-source server from Google (Apache-2.0), the analytics-mcp package |
| Setup | Sign in with Google, connect GA4, paste one URL into your AI client | Install Python 3.10+ and pipx or uv, enable the Analytics Admin and Data APIs in a Google Cloud project, set up Application Default Credentials, edit your client’s config |
| Where it runs | Hosted by Pipeboard; nothing to install or update | On your computer; you can also deploy it yourself over HTTP, for example on Cloud Run |
| Reports | Standard, pivot, batched and realtime reports | Standard, funnel, conversions and realtime reports |
| Changes to GA4 | Property settings, custom dimensions and metrics, and key events, once you grant edit permission | Docs: read requests only. README: optional tools to create annotations, custom dimensions and key events with --allow-write |
| AI clients covered | Claude (web, desktop, Code), ChatGPT, Cursor, Codex, any MCP client | Claude Desktop, Claude Code, Cursor, Antigravity, Gemini CLI. ChatGPT not documented |
| Other platforms | Same Pipeboard login for Google Ads, Search Console, Meta and other ad platforms | Google Analytics only |
| Price | Free plan; paid plans for higher limits | Free and open source |
Sources for the Google column: Google Analytics MCP server docs and the google-analytics-mcp README.
How to connect GA4 to Claude, ChatGPT and other AI tools
Two steps are the same for every assistant. Then add the server to the one you use.
1. Sign up for Pipeboard (free plan available).
2. Connect Google Analytics on the Connections page with the Google account that can see your GA4 properties. Leave the Analytics edit permission ticked on Google’s consent screen if you want the assistant to be able to change property setup.
3. Add this server URL to your AI tool:
https://google-analytics.mcp.pipeboard.co/Already using the all-platforms URL
https://ads.mcp.pipeboard.co/? The GA4 tools are included there too, next to your ad platforms. Ads MCP guide.
Connect GA4 to Claude
- In Claude on the web or desktop, open Settings, then Connectors.
- Click Add custom connector and name it Google Analytics.
- Paste the server URL above and save.
- Sign in to Pipeboard when Claude asks, then start a new chat.
Connect Google Analytics to ChatGPT
- Open Settings → Apps → Advanced settings and turn on Developer mode.
- Click Create app, name it Google Analytics and paste the server URL as the MCP Server URL.
- Choose OAuth, tick "I trust this application" and sign in to Pipeboard.
- In a new chat, pick Developer mode from the + menu and select the app.
Needs ChatGPT Plus, Pro, Business, Enterprise or Education.
Full ChatGPT guide →Claude Code
claude mcp add --transport http google-analytics https://google-analytics.mcp.pipeboard.co/Then type /mcp in Claude Code to sign in to Pipeboard. Claude Code guide.
Cursor
Add this to ~/.cursor/mcp.json, restart Cursor, and sign in when it asks.
{
"mcpServers": {
"google-analytics": { "url": "https://google-analytics.mcp.pipeboard.co/" }
}
}Codex
Create an API token, export it as PIPEBOARD_API_TOKEN, then run:
codex mcp add google-analytics --url https://google-analytics.mcp.pipeboard.co/ --bearer-token-env-var PIPEBOARD_API_TOKENAny other MCP client that supports Streamable HTTP can use the same URL. To build your own agent, see Python + LangChain or n8n.
What the Google Analytics MCP can do
24 tools, grouped by job. You don’t call them yourself: ask in plain language and the assistant picks the right one. It only changes something when it calls one of the tools under “Change property setup”, normally because you asked.
Run reports
run_google_analytics_reportAny GA4 report: sessions, users, conversions, revenue, by any dimension and date range
run_google_analytics_realtime_reportWhat is happening on your site or app in the last 30 minutes
run_google_analytics_pivot_reportPivot tables, such as channels down the side and devices across the top
batch_run_google_analytics_reportsUp to 5 reports on the same property in one call
batch_run_google_analytics_pivot_reportsUp to 5 pivot reports on the same property in one call
Find properties and fields
list_google_analytics_account_summariesEvery account you can access, with its properties
list_google_analytics_propertiesA flat list of your GA4 properties across connected Google logins
get_google_analytics_metadataThe exact dimension and metric names a property supports, custom ones included
check_google_analytics_compatibilityWhich dimensions and metrics can go in the same report
Read property setup
get_google_analytics_property_detailsDisplay name, time zone, currency and industry category
list_google_analytics_custom_dimensionsCustom dimensions with their parameter, scope and description
list_google_analytics_custom_metricsCustom metrics with their parameter, scope and unit
list_google_analytics_conversion_eventsConversion (key) events and how each is counted
list_google_analytics_data_streamsWeb, iOS and Android data streams on the property
list_google_analytics_google_ads_linksLinked Google Ads accounts and their settings
Change property setup
update_google_analytics_propertyChange display name, time zone, reporting currency or industry category
create_google_analytics_custom_dimensionAdd a custom dimension from an event or user parameter
update_google_analytics_custom_dimensionChange a custom dimension’s name, description or ads personalization setting
archive_google_analytics_custom_dimensionArchive a custom dimension (cannot be undone through the API)
create_google_analytics_custom_metricAdd a custom metric from an event parameter
update_google_analytics_custom_metricChange a custom metric’s name, description or unit
archive_google_analytics_custom_metricArchive a custom metric (cannot be undone through the API)
create_google_analytics_conversion_eventMark an event as a conversion (key) event
delete_google_analytics_conversion_eventStop counting an event as a conversion (key) event
Example prompts
Traffic overview
"List my Google Analytics properties and show sessions, users and conversions for the last 28 days"
What changed
"Compare traffic by default channel group this month vs last month and tell me what changed"
Landing pages
"Show my top 20 landing pages by sessions, with engagement rate and conversions, for the last 30 days"
Right now
"How many people are on my site right now, and which pages are they on?"
Ads and analytics together
"Compare last week’s Google Ads spend by campaign with GA4 sessions and conversions from google / cpc"
New custom dimension
"Create an event-scoped custom dimension called Plan type from the plan_type parameter on my main property"
Key events
"Mark sign_up as a key event, then list all key events on the property"
Property settings
"What time zone and currency does each of my GA4 properties report in?"
The ads-and-analytics prompt needs Google Ads connected too, and works best through the all-platforms URL so one assistant sees both.
Requirements and limits
- GA4 only. Universal Analytics properties are not supported.
- Realtime reports cover the last 30 minutes and accept fewer fields than standard reports.
- Making changes needs Google’s Analytics edit permission on your connection and the Editor role on the property. A connection without edit permission is marked “read-only (reconnect to edit)” on your Connections page; reconnect and grant it to make changes.
- Archiving a custom dimension or metric is GA4’s soft delete and cannot be undone through the API.
- Property setting changes apply going forward. GA4 does not restate past data, so a new currency does not convert old revenue.
- No tool edits or deletes the analytics data you have already collected.
- You can list data streams, Google Ads links and accounts, but not change them. There are no tools for audiences, or for creating and deleting properties. Those changes stay in the GA4 interface.
- Google’s GA4 API quotas apply. If a property runs out, the tool says so instead of retrying.
Want reports only? Use https://google-analytics.mcp.pipeboard.co/?read_only=true as the server URL and the tools that change things are refused. You can also limit which properties the assistant can reach with Configure Access on your Connections page.
How Pipeboard uses your Google Analytics data
What we request, why, and what we never do with it
When you connect Google Analytics, Pipeboard requests access through Google’s official OAuth consent screen. We only request the Google Analytics scopes needed to run the reporting and configuration tools described on this page, plus your basic account identity so we can show which Google account a property belongs to. We use this access solely to fulfil the requests you (or your AI assistant, on your behalf) make.
The access we request, and why:
analytics.readonlyRuns reports against your GA4 properties (sessions, users, conversions, revenue, traffic sources, landing pages, realtime activity) and lists the properties, dimensions, metrics and conversion events available to you. This is the read access behind every reporting tool, and the connection needs it.
analytics.editRequested by default so the assistant can change property setup when you ask: property display name, time zone, reporting currency and industry category; custom dimensions and custom metrics; and conversion events. If you untick it, the connection works read-only. It is never used to alter or delete your collected analytics data, which GA4 does not allow in the first place.
userinfo.emailIdentifies the connected account so we can label which Google login a property belongs to. Important if you connect more than one Google account.
userinfo.profileDisplays the connected account name in your Pipeboard connections list so you can tell your connections apart.
Our commitments
- We never sell your Google Analytics data, and we never use it for advertising.
- Your data is used only to respond to the requests you or your AI assistant make. It is not used to train AI models.
- You can disconnect Google Analytics at any time from your connections page, which revokes Pipeboard’s access.
- The edit permission is only used when the assistant calls a tool that changes property setup, normally because you asked it to.
- Pipeboard’s use of information received from Google APIs adheres to the Google API Services User Data Policy, including the Limited Use requirements.
Full details are in our Privacy Policy and Security pages.
Frequently asked questions
Is there an official Google Analytics MCP server?
Yes. Google publishes an open-source Google Analytics MCP server (the analytics-mcp package on GitHub and PyPI). You run it yourself with Python and pipx or uv, using a Google Cloud project with the Analytics Admin and Data APIs enabled and Application Default Credentials. Google’s developer docs describe it as read-only; its GitHub README also lists three optional write tools that you switch on with an --allow-write flag. Pipeboard’s Google Analytics MCP is a hosted alternative: you sign in with Google and add one URL to Claude, ChatGPT or another MCP client.
How do I connect GA4 to Claude?
Sign up for Pipeboard and connect Google Analytics on the Connections page. Then in Claude (web or desktop) open Settings, then Connectors, add a custom connector, paste https://google-analytics.mcp.pipeboard.co/ and sign in to Pipeboard when asked. In Claude Code, run: claude mcp add --transport http google-analytics https://google-analytics.mcp.pipeboard.co/, then type /mcp to sign in.
Can I connect Google Analytics to ChatGPT?
Yes, on a ChatGPT Plus, Pro, Business, Enterprise or Education account. In ChatGPT open Settings, then Apps, then Advanced settings, and turn on Developer mode. Click Create app, name it Google Analytics, paste https://google-analytics.mcp.pipeboard.co/ as the MCP Server URL, choose OAuth, tick "I trust this application" and sign in to Pipeboard. In a new chat, pick Developer mode from the + menu and select the app.
Do I need a Google Cloud project?
Not with Pipeboard. You sign in with the Google account that can see your GA4 properties and Pipeboard handles the API access. Google’s own server does need one: you enable the Google Analytics Admin API and Data API in a Cloud project and set up Application Default Credentials.
Can the Google Analytics MCP change my GA4 settings?
Yes. It can change a property’s display name, time zone, reporting currency and industry category; create, update and archive custom dimensions and custom metrics; and create and delete conversion (key) events. Pipeboard asks for Google’s Analytics edit permission when you connect. If you untick it on Google’s consent screen, the connection works read-only and you reconnect to grant it later. Your Google account also needs the Editor role on the property. Archiving cannot be undone through the API, and no tool edits or deletes the analytics data you have already collected.
Does it work with Universal Analytics?
No. It works with Google Analytics 4 properties only. Universal Analytics properties are not supported.
Does it work with Claude Code, Cursor and Codex?
Yes. In Claude Code run claude mcp add --transport http google-analytics https://google-analytics.mcp.pipeboard.co/. In Cursor, add https://google-analytics.mcp.pipeboard.co/ as a server in ~/.cursor/mcp.json and sign in when Cursor asks. In Codex, run codex mcp add with the same URL and a Pipeboard API token. Any MCP client that supports Streamable HTTP can use the same URL.
Is the Google Analytics MCP free?
Pipeboard has a free plan, and the Google Analytics tools, including the ones that change settings, are available on every plan with no separate add-on. Paid plans add higher limits. See pipeboard.co/pricing.
