Google Analytics MCP server: what it reads and its data limits
Google publishes an open-source Google Analytics MCP server, installed from PyPI as analytics-mcp (version 1.1.0 as of November 2026). Google's guide lists nine read-only tools that call the GA4 Admin API and Data API. Set-up takes a Google Cloud project with both APIs enabled and a Viewer role on the property. The tools return aggregated report rows and none returns raw events, so quotas, thresholding and sampling still apply.
Who publishes it and what is behind it
The code lives in the googleanalytics/google-analytics-mcp repository under the Apache 2.0 license. The Google Analytics team announced it on July 30, 2025 in a post to the API notify group. That post says it connects your Analytics data to an LLM and points to GitHub for set-up, and it lists no tools.
The tools are on Google's Try the Google Analytics MCP server page, which says the server is available for read requests only and "can't create, modify, or delete your Google Analytics configuration or settings." The repository README on its main branch says more. It lists three write tools, create_property_annotation, create_custom_dimension and create_key_event, that work only when the server starts with --allow-write and the credentials carry the analytics.edit scope. The guide does not mention that flag. The README lists its default as false, so treat the server as read-only unless someone turned it on, and check the README for the version you install. The PyPI page shows version 1.1.0 released on November 6, 2026, after 1.0.0 on November 3.
Other packages carry similar names, among them google-analytics-mcp-python on PyPI, which lists Locomotive Agency as its maintainer. They are separate projects, so confirm the package name before you install.
The tools and the API calls behind them
The guide maps each tool to a method of the Admin API or the Data API v1.
| Tool | API method | Returns |
|---|---|---|
get_account_summaries | accountSummaries.list | Accounts and properties the signed-in user can reach |
get_property_details | properties.get | Configuration of one property |
list_google_ads_links | properties.googleAdsLinks.list | Google Ads accounts linked to a property |
list_property_annotations | properties.reportingDataAnnotations.list | Annotations on a property |
get_custom_dimensions_and_metrics | getMetadata | Custom dimensions and metrics |
run_report | runReport | A standard report |
run_realtime_report | runRealtimeReport | A realtime report |
run_funnel_report | runFunnelReport | A funnel exploration report |
run_conversions_report | runConversionsReport | A conversions performance report |
The README adds list_key_events to the read tools. The guide does not list the parameters each tool takes, so a later section shows the Data API request instead of the tool call.
Setting it up with Claude
Google's guide gives a server block for Claude Desktop and a claude mcp add command for Claude Code, and each needs these steps first:
- Install Python 3.10 or higher and pipx or uv.
- Enable
analyticsadmin.googleapis.comandanalyticsdata.googleapis.comin a Google Cloud project. - Give the user or service account at least the Viewer role (
roles/analytics.viewer) on the property in the Analytics interface. - Create Application Default Credentials with the
analytics.readonlyandcloud-platformscopes. - Add the server to the client with an absolute path to the credentials file.
gcloud auth application-default login \
--scopes="https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/cloud-platform"
{
"mcpServers": {
"analytics-mcp": {
"command": "pipx",
"args": ["run", "analytics-mcp"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "PATH_TO_CREDENTIALS_JSON",
"GOOGLE_CLOUD_PROJECT": "YOUR_PROJECT_ID"
}
}
}
}
Add --client-id-file=YOUR_CLIENT_JSON_FILE to that command if you use a downloaded OAuth client file. The guide's troubleshooting list covers permission errors, a missing quota project, credentials paths and launch failures. A 403 ACCESS_NOT_CONFIGURED means user credentials need a quota project with the Analytics APIs enabled, which GOOGLE_CLOUD_PROJECT in the server block sets. A spawn pipx ENOENT means a desktop app such as Claude Desktop did not inherit your shell PATH, and the fix is the absolute path from which pipx. The credentials path needs the same treatment, because many MCP hosts do not expand ~. For a shared team setup, the README documents an HTTP mode with a built-in OAuth 2.1 server, and its note says the sign-in state sits in process memory, so a restart means signing in again. A Windows user reports in issue 256 that Smart App Control blocks the unsigned launcher executable, and the issue was open as of November 2026.
A question and the request behind it
Take "Which channels brought sessions and key events in the last 7 days?" For the Data API this is a runReport request on the property, with a channel dimension and two metrics. The mapping is ours, and the field names come from the API schema.
{
"dateRanges": [{ "startDate": "7daysAgo", "endDate": "yesterday" }],
"dimensions": [{ "name": "sessionDefaultChannelGroup" }],
"metrics": [{ "name": "sessions" }, { "name": "keyEvents" }],
"returnPropertyQuota": true
}
The runReport reference sets two defaults that change what an agent sees. Without a limit the API returns 10,000 rows and caps a request at 250,000. Rows where each metric is 0 are dropped unless keepEmptyRows is true, so a missing row can mean zero. The returnPropertyQuota flag adds the property's current quota state to the response, which the quota page recommends for checking what a request cost.
Why the numbers differ from the GA4 interface
Google's reporting data expectations page states that users often see differences between runReport and the interface. It lists seven causes. Three of them show up as a field in the response metadata, and the table adds unique counts.
| Cause | What to read |
|---|---|
| Sampling | samplingMetadatas gives the percentage of events used |
| Thresholding | subjectToThresholding |
| The (other) row | dataLossFromOtherRow |
| Unique counts | Estimated with the HyperLogLog++ algorithm, so they are approximations |
The page adds reporting identity, query specificity (date ranges, dimensions, metrics and filters that must match the interface report) and data freshness. Google's guide does not say whether the server passes the metadata fields to the model, so ask for them in the prompt and look for them in the answer.
Thresholding can withhold rows when a report includes demographic data, audiences defined with it, or search query information, and Google's data thresholds page says the thresholds cannot be adjusted. A wider date range can make them less likely. The quota page adds that a property gets 120 potentially thresholded requests per hour. The (other) row is more common for dimensions with more than 500 unique values per day, and filters do not look inside it.
The server has no sampling control. Google's page points to the samplingLevel field of the report tasks method of the Data API, which gives Analytics 360 properties sampling limits of 1 billion events, and the runReport request has no such field. A user asked for report task tools in issue 257, and pull request 263 proposes a run_report_task tool. Both were open as of November 2026.
Google's data freshness page gives the delays. Realtime typically takes a few minutes and covers a few dimensions and metrics. Standard properties get intraday data in 2 to 6 hours, and data processing can take 24 to 48 hours, during which report values may change.
Quotas
The quota page counts tokens per property, and the Data API charges them by request complexity. Most requests cost 10 tokens or fewer, as of November 2026.
| Core quota | Standard property | Analytics 360 property |
|---|---|---|
| Tokens per property per day | 200,000 | 2,000,000 |
| Tokens per property per hour | 40,000 | 400,000 |
| Tokens per project per property per hour | 14,000 | 140,000 |
| Concurrent requests per property | 10 | 50 |
The per-project row is the lowest hourly cap. Google's page says each request consumes both the per-property and the per-project hourly tokens, and that calls made with a project's credentials count against that project's quotas, so people who share one Cloud project draw on the same budget. Daily quotas refresh at midnight Pacific Standard Time. Realtime and funnel reports have their own quota categories with the same numbers.
When the BigQuery export is the better source
Google's data expectations page names BigQuery Export as "the recommended method for advanced analysis of raw event data." The BigQuery Export help page lists the limits that decide whether it fits. Standard properties have a daily export limit of 1 million events. Streaming export has no volume limit but is a best-effort service that can have data gaps, and it costs $0.05 per gigabyte on the BigQuery side, about 600,000 events per gigabyte. The export holds the raw event data Analytics receives from the client, so counts can differ from the interface.
The Google MCP server has no BigQuery tool in either tool list. A question that needs raw events, such as a path across many steps or a user-level join with orders, needs a BigQuery tool next to it.
Where a harness fits
Alpue Studio is a harness that connects Google Analytics 4 with view-only Google sign-in, next to Google Ads, Meta and Search Console. It is not an MCP server and does not load third-party ones. Its agent writes its own queries, and each one opens under "See query". It has no self sign-up and no free trial, and teams ask for access on the access page. MCP server vs agent harness compares the two approaches, GA4 AI assistant lists other ways to ask GA4 in plain words, and the agents page describes the departments.
Questions
Is there an official Google Analytics MCP server?
Yes. Google's Analytics team publishes analytics-mcp on GitHub and PyPI, and Google's developer site documents it. The documentation calls the tools read-only. Packages with similar names are separate projects.
Can the Google Analytics MCP server change a GA4 property?
By default no. Google's guide says it cannot create, modify or delete configuration. The README lists three write tools behind an --allow-write flag that also needs the analytics.edit scope, and the guide has you create credentials with the read-only Analytics scope.
Does it work with Claude?
Yes. The guide has a block for Claude Desktop and a claude mcp add command for Claude Code, and both start the server on your machine with pipx. The guide does not say whether Claude's own connector directory lists it.
Why do the numbers differ from the GA4 interface?
Google names sampling, approximate unique counts, thresholding, the (other) row, reporting identity, mismatched dates, dimensions or filters, and processing delay. The response metadata fields in the table above show whether sampling, thresholding or the (other) row applied to a given report.
Sources
- Try the Google Analytics MCP server, Google for Developers. Read 26 November 2026.
- googleanalytics/google-analytics-mcp, GitHub, Google. Read 26 November 2026.
- Try the Google Analytics MCP Server, Google Analytics API notify group. Read 26 November 2026.
- analytics-mcp, PyPI. Read 26 November 2026.
- google-analytics-mcp-python, PyPI. Read 26 November 2026.
- Connect failue, issue 256, GitHub. Read 26 November 2026.
- Add Report Tasks tools with configurable samplingLevel, issue 257, GitHub. Read 26 November 2026.
- Add a run_report_task tool with sampling_level, pull request 263, GitHub. Read 26 November 2026.
- Data API schema, Google for Developers. Read 26 November 2026.
- properties.runReport, Google for Developers. Read 26 November 2026.
- Reporting data expectations, Google for Developers. Read 26 November 2026.
- Data API limits and quotas, Google for Developers. Read 26 November 2026.
- About data thresholds, Analytics Help, Google. Read 26 November 2026.
- Data freshness, Analytics Help, Google. Read 26 November 2026.
- BigQuery Export, Analytics Help, Google. Read 26 November 2026.