Google Analytics 4 MCP server
Google Analytics 4 MCP: reports, realtime, funnels, pivots, metadata, admin lists. 17 tools.
0 stars30 downloads/wk
Reviews
Write oneNobody has reviewed Google Analytics 4 MCP yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Google Analytics 4 MCP tools (17, 6 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
ga4_batch_run_reportswrite actionRun up to 5 GA4 reports in a single round-trip.
ga4_check_compatibilityValidate whether a dim/metric combo can be queried together. Cheap pre-flight.
ga4_get_metadataFetch the full GA4 dimension + metric catalog for a property.
ga4_get_property_detailsFull metadata for a single GA4 property.
ga4_list_account_summariesList every GA4 account and its child properties accessible to this service account.
ga4_list_audiencesList audiences defined on a GA4 property.
ga4_list_custom_dimensionsList custom dimensions configured on a GA4 property.
ga4_list_custom_metricsList custom metrics configured on a GA4 property.
ga4_list_data_streamsList all data streams (web, iOS, Android) on a GA4 property.
ga4_list_google_ads_linksList Google Ads links attached to a GA4 property.
ga4_list_key_eventsList key events (formerly conversions) on a GA4 property.
ga4_list_property_annotationsList reporting annotations on a GA4 property.
ga4_run_access_reportwrite actionAudit log of who-read-what on a GA4 property (last 12 months).
ga4_run_funnel_reportwrite actionRun a GA4 funnel report. v1alpha, API surface may change.
ga4_run_pivot_reportwrite actionRun a GA4 pivot report.
ga4_run_realtime_reportwrite actionRun a GA4 real-time report. Covers the last 30 minutes only.
ga4_run_reportwrite actionRun a GA4 standard report. The workhorse tool.
Public scan report
scanner v0.1.10 · 2026-10-15 · same rubric, same numbers if you re-run it
- Code scan6 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 9 days ago15/15
- Maintainer identitynamespace and repository owner differ; website matches verified namespace6/10
How Google Analytics 4 MCP compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 89/100
- higher than 80% of 48,255 servers
- Tools
- 17
- the typical server has 7
- Tools that change things
- 35%
- typical: 0%. Fewer write tools means less an agent can break
- Downloads a week
- 30
- more than 18% of 12,191 servers with a package
What its tools let an agent do: 11 read · 6 change
Install Google Analytics 4 MCP in Claude Code, Cursor or VS Code
claude mcp add ga4-mcp -- uvx scalably-ga4-mcp
What the publisher says
From the Google Analytics 4 MCP repository's README, as published. We do not edit it. Read it on GitHub
Google Analytics 4 MCP
Read-only MCP server for Google Analytics 4. Seventeen tools cover the read surface of both the Data API and the Admin API: standard, batch, pivot, realtime and funnel reports; the metadata catalog and compatibility check; and admin lists for properties, streams, custom dimensions and metrics, key events, audiences, Google Ads links, annotations and access reports. We run this server in production for every analytics client.
<!-- mcp-name: io.scalably/ga4-mcp -->
Install
Claude Code:
claude mcp add ga4 -e GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json -- uvx scalably-ga4-mcpCodex:
codex mcp add ga4 --env GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json -- uvx scalably-ga4-mcpClaude Desktop: download ga4-mcp.mcpb from the latest GitHub release and open it.
Setup
- In Google Cloud, create or pick a project and enable the Google Analytics Data API and the Google Analytics Admin API on it (APIs and Services, Library).
- Create a service account in that project and download its JSON key.
- Add the service account's email as a Viewer on each GA4 property you want to query (Admin, Property access management).
No OAuth consent screen is needed; the server authenticates as the service account with the analytics.readonly scope. One service account can read any property that grants it access, so there is no per-client configuration beyond step 3 above.
Call ga4listaccountsummaries first to discover which propertyid values the service account can see, then pass one into the reporting or admin tools.
Tools (17)
Configuration
Filter expression shape
Every tool accepting dimensionfilter / metricfilter takes a dict:
{"filter": {"field_name": "country", "string_filter": {"value": "US"}}}Compose with boolean groups:
{"and_group": {"expressions": [
{"filter": {"field_name": "country", "string_filter": {"value": "US"}}},
{"filter": {"field_name": "deviceCategory", "string_filter": {"value": "mobile"}}}
]}}A raw {"fieldname": ..., "stringfilter": ...} is auto-wrapped into {"filter": {...}}.
Reply shape
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Google Analytics 4 MCP: common questions
- Is Google Analytics 4 MCP server safe?
- Yes, by our scan: it is graded A (89/100). Read the Google Analytics 4 MCP safety report
- How do I install Google Analytics 4 MCP?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Google Analytics 4 MCP need an API key?
- No secret keys are declared. It reads 2 settings from the environment.
- Is Google Analytics 4 MCP maintained?
- The last commit was 28 days ago (2026-10-06). The latest release is v1.0.1.
- What can I use instead of Google Analytics 4 MCP?
- Servers from other publishers that do the same job: AdLoop MCP server.
- How does Google Analytics 4 MCP compare with other MCP servers?
- safety score 89/100 (higher than 80% of 48,255 servers); tools 17 (the typical server has 7); tools that change things 35% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Google Analytics 4 MCP
Same job from other publishers: the closest match first, then the best rated.
- AdLoopGoogle Ads, Reddit Ads, GA4 and Tag Manager in your AI client, with a preview before every change.not reviewedEstablishedA