Google Analytics MCP Server
Ask plain-English questions about GA4 traffic, conversions and realtime visitors.
Officialby GoogleRuns on your computerChecked November 8, 2026
Google's own MCP server connects Claude to the Google Analytics Admin and Data APIs, so you can pull GA4 reports, funnels, conversions and realtime numbers for any property you can access. It runs on your computer with your Google credentials and is read-only by default; an optional --allow-write flag, added in October 2026, adds a few write tools such as annotations and key events. A good first prompt: "Compare last month's GA4 conversions by channel with the month before and flag any channel that dropped more than 20%." Sending a report like that every Monday without asking is what The AI School's Autopilot course (early access) builds; the free What is MCP guide explains the setup.
Who is Google Analytics MCP for?
- Marketers and growth teams
- Website and blog owners
- Agencies that report on client traffic
What can you ask Google Analytics MCP to do?
Once it is connected, ask in plain words. Your AI tool decides when to use the server and asks before it changes anything important.
Which 10 landing pages brought the most new users from organic search last month?Compare conversions by device category for the last 30 days against the 30 days before.How many people are on the site right now, and which pages are they reading?How to connect Google Analytics to Claude
MCP is an open standard. The setup steps below cover this server in Claude Code, Claude app, Codex, Cursor, VS Code, Gemini CLI, Antigravity, OpenCode, Windsurf. Pick your tool:
New to MCP? Read what an MCP server is and how to add one.
Connect the Google Analytics MCP server to Claude Code for me: run this command: claude mcp add analytics-mcp --scope user -e "GOOGLE_APPLICATION_CREDENTIALS=PATH_TO_CREDENTIALS_JSON" -e "GOOGLE_CLOUD_PROJECT=YOUR_PROJECT_ID" -- pipx run analytics-mcp
If a value starts with YOUR_, ask me for it first. When it is connected, help me sign in if needed and show me one thing I can ask it to do.Or do it yourself:
claude mcp add analytics-mcp --scope user -e "GOOGLE_APPLICATION_CREDENTIALS=PATH_TO_CREDENTIALS_JSON" -e "GOOGLE_CLOUD_PROJECT=YOUR_PROJECT_ID" -- pipx run analytics-mcpReplace the YOUR_ values with your own details first.
Unlock the setup steps
Free. Leave your email once to open the setup steps for all 152 servers, and get the best new connectors each month.
Good to know
First enable the Analytics Admin and Data APIs in Google Cloud and sign in with gcloud auth application-default login using the analytics.readonly scope. Add --allow-write to the args only if you want the write tools, which also need the analytics.edit scope.
How did we check Google Analytics MCP?
Rechecked the repo under Google's googleanalytics GitHub organization (Apache-2.0, release 1.1.0 on November 6, 2026), its README and Google's MCP guide for Analytics (updated October 26, 2026), which describes the server as read-only, plus the Data API quota page. Version 1.0.0 added a self-hosted HTTP mode with per-user OAuth; by default it still runs on your computer. We have not run this server ourselves; the details come from the vendor's documentation and our own endpoint checks.
Source: github.com/googleanalytics/google-analytics-mcp
Other official pages we read for this entry:
What do people ask about Google Analytics MCP?
Does the Google Analytics MCP server cost anything?
The server is free, open-source code from Google, and Google publishes quotas for the Data API it calls rather than a price. A standard GA4 property gets 200,000 Core tokens a day and 40,000 an hour, with 10 requests at a time, per Google's quota page (checked November 8, 2026). Long date ranges and many dimensions use more tokens per report.
Can it change my GA4 settings?
Not by default. Google's MCP guide describes it as read-only, and its credentials only need the analytics.readonly scope. Start it with --allow-write and you get tools that create annotations, custom dimensions and key events; those also need the analytics.edit scope, and custom dimensions need the Editor role on the property (key events accept Marketer or Editor).
Is there a hosted version I can add by URL?
Google does not host one. Since version 1.0.0 (November 3, 2026) you can run the package yourself as a multi-tenant HTTP server where each person signs in with their own Google account, for example on Cloud Run. For one person on one computer the local setup below is simpler.
Why does the setup ask for a Google Cloud project?
The server reaches GA4 through Google's Analytics Admin and Data APIs, which have to be switched on in a Cloud project. Create or pick any project, enable the two APIs there and put its ID in GOOGLE_CLOUD_PROJECT; your reports still come from the GA4 properties your Google account can open.
Can I set up Google Analytics MCP without coding?
Yes, but it is more than one click: you create a Google Cloud project, turn on the Analytics APIs, sign in with gcloud, install the server with pipx and paste a config block. Claude Code can run each command with you and explain any error it prints. Our Claude Code course (early access) teaches that way of working to people who do not code, MCP setup included.
We wrote these answers from the official pages of each product named, read on November 8, 2026.
More data and analytics servers
Using servers like Google Analytics from Claude Code? Our Claude Code course, in early access, goes from your first command to a landing page, an AI video and a working agent.