Analytics and tracking
Does Google Analytics Have an MCP Server? What to Know
By Martin Lovfjall, Editor, MCP Ecommerce · Published · 6 min read

The short answer
Yes. Google publishes an official, open-source Google Analytics MCP server on GitHub and PyPI (package name analytics-mcp). It covers GA4 only, lets AI assistants run reports on your properties, and is read-only by default with opt-in write tools. It runs on your own machine or on infrastructure you host, not as a Google-hosted service.
Yes, Google publishes an official Google Analytics MCP server. MCP (Model Context Protocol) is an open protocol that lets AI assistants connect to external tools and data, and Google's server uses it to let an assistant read your GA4 reports. It is free and open source. It is also a technical install, not a button you click in your analytics account.
This article explains what exists, what the server can and cannot do, how it runs, and what to check before you connect it to a store's data. Some details have changed recently and sources disagree, so the points that need verification are marked.
Does Google Analytics have an MCP server?
Google's developer documentation has a page titled "Try the Google Analytics MCP server". It describes a server that connects Analytics data to large language models (LLMs) and AI agents such as Gemini. The key facts:
- Official: the code lives in Google's
googleanalyticsGitHub organization, in thegoogle-analytics-mcprepository. - Package: it is published on PyPI as
analytics-mcp. Google's docs say it exposes bothanalytics-mcpandgoogle-analytics-mcpas commands. - License: third-party sources report Apache 2.0.
- Scope: GA4 only. Universal Analytics (the older version) is not covered.
- Cost: the server is free, but you need a Google Cloud project, and requests count against Google Analytics Data API quotas.
- Age: the repository dates from July 2025 and the first package release from August 2025. A Medium post claiming a May 2026 launch is incorrect on dates.
People search for it as "GA4 MCP", "Google Analytics MCP server" or "Google Analytics MCP official". They all point to this same project. Community servers from other companies are separate products (see below).
What status is it in now?
PyPI lists version 1.0.0 as uploaded on November 3, 2026. PPC Times reports that this release takes the project out of experimental status and adds multi-user hosting with OAuth 2.1 (a standard sign-in method).
Treat the status claim with care. Many older articles still say "experimental" or "local only", and I could only confirm the removal of the experimental label in one secondary source, not in the README itself. Check the repository and release notes before you rely on either description.
What can the Google Analytics MCP server do?
The tool list has grown across versions, and counts differ by source (seven, nine or more). According to the README, the main tools are:
| Area | Tools | What they do |
|---|---|---|
| Account and property | get_account_summaries, get_property_details, list_google_ads_links, list_property_annotations |
List accounts and properties, show property settings, show linked Google Ads accounts, read annotations |
| Reports | run_report, run_funnel_report, run_conversions_report |
Run standard, funnel and conversion reports |
| Other reads | run_realtime_report, get_custom_dimensions_and_metrics |
Realtime data and custom definitions |
| Write (opt-in) | create_property_annotation |
Add an annotation to a property |
The README also mentions create_custom_dimension and create_key_event as write tools in newer versions. Re-check the repository for the exact current list.
In practice you can ask questions such as "which channels drove the most purchases last month" or "how did conversion rate by landing page change week over week". The assistant picks the report, runs it and summarizes the result. Funnel, conversion and annotation tools call alpha versions of Google's APIs, so they may change.
Is the Google Analytics MCP server read-only?
Mostly, and by default. Google's docs describe it as being for read requests. The README documents write tools that are off unless you start the server with the --allow-write flag (or the ANALYTICS_MCP_ALLOW_WRITE environment variable) and use credentials with the analytics.edit scope. The docs and README are slightly inconsistent, so the safe description is: read-only by default, with opt-in write tools.
For a store, start read-only. Grant only the analytics.readonly scope, and add write access later only if you have a specific use for it. Our guide to MCP permissions covers this in more detail: "MCP Permissions: Read-Only vs Read-Write for Ads and Stores".
Does it run locally or remotely?
This is what changed most.
- Local (stdio): the standard way. The server runs on your computer through
pipx run analytics-mcp(oruvx), and your AI app talks to it directly. - Self-hosted remote: the current README documents an HTTP mode with built-in OAuth 2.1, using
--transport http,--oauthand--issuer-url, with Docker and Cloud Run deployment. This is aimed at teams that want one shared server for several users. It is not a hosted product from Google. - Google-hosted: I found no Google-hosted Analytics MCP service in Google's hosted MCP product list.
One caveat: an endpoint at analyticsdata.googleapis.com/mcp/v1 has been seen answering MCP requests and listing read-only tools. One source says it was not documented, and I found no Google announcement. Treat it as unofficial until Google documents it.
How do you set up the GA4 MCP server?
Prerequisites: a Google account with access to the GA4 property, a Google Cloud project, Python (3.10 or newer per third-party sources) and either pipx or uv installed. Be honest about the effort: for non-developers this is a real technical task.
- Install
pipxoruv. - In your Cloud project, enable the Google Analytics Admin API (
analyticsadmin.googleapis.com) and the Data API (analyticsdata.googleapis.com). - Set up Application Default Credentials with the read-only scope. The Google user you sign in with must have access to the GA4 properties.
- Add the server to your AI client. The config uses
pipxas the command andrun analytics-mcpas the arguments. In Claude Code the command isclaude mcp add analytics-mcp -- pipx run analytics-mcp. - Set environment variables such as
GOOGLE_APPLICATION_CREDENTIALSandGOOGLE_CLOUD_PROJECTas Google's docs describe. Older guides useGOOGLE_PROJECT_ID, which may be outdated. - Restart the client and ask a simple question, such as listing your account summaries, to confirm it works.
For a walkthrough aimed at Claude, see "Connect Claude to GA4 with the Google Analytics MCP Server".
Which AI apps work with it?
- Gemini CLI and Gemini Code Assist: the natural fit, and Google's docs show configuration for its Antigravity tools.
- Claude Desktop and Claude Code: reported to work with the local server.
- Cursor: reported to work.
- Claude.ai custom connectors: these expect a remote server with a public URL, so the local server does not work there out of the box. A self-hosted HTTP and OAuth deployment may change that, but I have not verified it.
- ChatGPT: third-party sources say the local server is not directly supported.
What can go wrong or is missing?
- Quotas: Data API limits apply. One source cites about 200 requests per minute per project, which I could not verify. Check Google's quota page.
- Missing reads: compared with the raw APIs, third-party analysis lists pivot and batch reports, audience exports, change history and data-access reports as not covered.
- Missing writes: property creation, data streams and Measurement Protocol secrets are not managed through the server.
- Credential problems: most failed setups come from APIs not enabled, the wrong Cloud project, or a Google user without property access.
- Data quality: the assistant can only report what GA4 collected. If tracking misses orders because of consent or ad blockers, the answers will be confidently incomplete. Cross-check key numbers against your store platform.
- Interpretation errors: an AI summary can pick the wrong metric or date range. Ask it to state the report, dimensions and dates it used.
- No Search Console: one source claims there is no official Search Console MCP server. Verify before assuming otherwise.
What are the alternatives to Google's server?
If you want hosted sign-in without running Python, third-party options exist: Stape, Coupler.io, Composio, Windsor.ai and an open-source Cloudflare Workers server from open-contracting. These are not Google's. Review who holds your credentials, what data passes through them and what they charge. For a framework, read "How to Evaluate an MCP Server Before Connecting It", and for context on tools beyond GA4, see "Best MCP Servers for E-commerce and Marketing Teams (2026)".
Should a merchant use it?
It is worth trying if you or a developer can handle the setup and want faster ad hoc questions on GA4 data. It is not a substitute for clean tracking or a profit view, since GA4 reports revenue and events, not margin. Start with one property, read-only credentials and a few known questions where you already know the answer, so you can judge accuracy before trusting it.
Frequently asked questions
+Is there a Google Analytics MCP?
Yes. Google maintains an official open-source Google Analytics MCP server, published on GitHub and PyPI as analytics-mcp. It covers GA4 only. You run it yourself, either locally on your computer or on infrastructure you host. Google's documentation page is titled Try the Google Analytics MCP server. Check the repository for the latest version and tool list.
+Is the Google Analytics MCP server official?
Yes, the one in Google's googleanalytics GitHub organization and documented on developers.google.com is official. Servers from Stape, Composio, Windsor.ai, Coupler.io and others are community or commercial products, not Google's. An undocumented endpoint on googleapis.com has also been observed, but Google has not announced it, so treat it as unofficial.
+Is the GA4 MCP server free?
The server itself is free and open source under Apache 2.0, according to third-party sources. You still need a Google Cloud project, and requests count against Google Analytics Data API quotas. If you use a third-party hosted connector instead, that vendor may charge for its service.
+Can the Google Analytics MCP server change my GA4 settings?
Not by default. It starts read-only. Write tools, such as creating property annotations, require the --allow-write flag and credentials with the analytics.edit scope. Many admin actions, like creating properties or data streams, are not supported. Begin with read-only credentials and review the README before enabling writes.
+Does the Google Analytics MCP server work with ChatGPT or Claude?
It is reported to work with Claude Desktop, Claude Code, Cursor and Gemini tools when run locally. Third-party sources say ChatGPT does not support the local server directly. Claude.ai custom connectors expect a remote public URL, so you would need a self-hosted remote deployment or a third-party hosted connector.
+Is the Google Analytics MCP server still experimental?
Unclear. Version 1.0.0 appeared on PyPI on November 3, 2026, and PPC Times says it ends experimental status and adds OAuth 2.1 multi-user hosting. Older articles still use the experimental label, and I could not confirm the change in the README itself. Check the repository and release notes.
Sources
Questions and answers
Questions readers and searchers ask about this guide, answered by the site editor from the vendor documentation, plus reader experience. Every comment is reviewed before it appears.
Keep reading

Analytics and tracking · 7 min read
Connect Claude to GA4 with the Google Analytics MCP Server. Step-by-step guide to the Google Analytics MCP server with Claude: prerequisites, setup, what it can read, its...

Analytics and tracking · 12 min read
Reaktion MCP review: what it does, who it is for and what to check first. A review of the Reaktion MCP from its own documentation: the 1,204 metric definitions, 68 dimensions and 467...

Analytics and tracking · 6 min read