Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Google Analytics 4

MCP server by get-mcp-ads Verified · getmcpads.com

Google Analytics 4 MCP server that lets an AI assistant read GA4 reports, funnels, realtime data and property configuration. It is built for analysts and developers who want read-only access to their GA4 properties.

  • Score 82
  • 0 stars
  • 189 a week
  • Apache-2.0
  • Updated

Install Google Analytics 4

Built from the published package, never by AI.

claude mcp add google-analytics-4 -e GA4_CLIENT_ID=YOUR_GA4_CLIENT_ID -e GA4_CLIENT_SECRET=YOUR_GA4_CLIENT_SECRET -e GA4_REFRESH_TOKEN=YOUR_GA4_REFRESH_TOKEN -- npx -y @getmcpads/google-analytics-mcp-server

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Google Analytics 4 in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the google-analytics-4 block.

About

This is an MCP server for Google Analytics 4. It gives an AI assistant 27 read tools that cover reports, pivots, funnels, realtime data, and the Admin API for properties, data streams, custom definitions, key events and audiences. The server has no write tools, and the publisher says no environment variable adds them. Every tool calls a read method of the Data API or the Admin API.

The server runs locally over stdio with the user's own Google OAuth client, client secret and refresh token. Requests go directly to the platform. It includes a compatibility matrix that checks metric and dimension combinations before a query runs, and it redacts user, email and device identifiers by default on selected tools. The source is aimed at people who want to analyse GA4 data from an assistant such as Claude Desktop, Claude Code or Cursor.

Written from the project's README and checked against it.

Tools it gives your assistant

  • ga4_run_reportRuns a GA4 analytics report with intelligent query planning.
  • ga4_run_realtime_reportRuns a read-only GA4 Data API realtime report.
  • ga4_get_metadataLists the dimensions and metrics available for a specific GA4 property.
  • ga4_list_propertiesLists all GA4 properties accessible with the current credentials.
  • ga4_check_compatibilityChecks whether a metric and dimension combination is valid before a call.
  • ga4_validate_queryValidates a query against the compatibility matrix before it is sent.
  • ga4_get_property_quotas_snapshotShows the GA4 property quota tokens left.
  • ga4_list_admin_resourcesLists Admin API resources, with access binding identifiers redacted by default.
  • ga4_query_audience_exportQueries an audience export, with identifier columns redacted by default.
  • ga4_health_checkChecks the credentials and lists the properties that can be reached.

What you need

  • Node.js 22.23.4, 24.22.1 or 26.12.1, or a newer release of one of these lines
  • A Google Cloud project with the Google Analytics Data API and Admin API enabled
  • A Google OAuth client ID and client secret, with a refresh token
  • Access to the GA4 properties you want to query
SettingNeededWhat it is
GA4_CLIENT_IDEnvironment variableRequiredOAuth client ID.
GA4_CLIENT_SECRETEnvironment variable, secretRequiredOAuth client secret.
GA4_REFRESH_TOKENEnvironment variable, secretRequiredOAuth refresh token, analytics.readonly scope.
GA4_PROPERTY_IDEnvironment variableOptionalDefault GA4 property ID.
GA4_PROPERTY_IDSEnvironment variableOptionalComma-separated property IDs every tool is limited to. Optional in 2.x, required in 3.0.0.

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • List my Google Analytics properties
  • Run a GA4 report of traffic by channel for the last 30 days
  • Check whether this metric and dimension combination is valid in GA4

Good to know

  • Read-only: the server has no write tools and no flag to add them.
  • Report rows are not redacted, so personal identifiers in report dimensions reach the conversation.
  • GA4_PROPERTY_IDS is optional in 2.x and is announced as required in 3.0.0.
  • The film and MCP Apps shown in the source belong to the hosted product, not this repository.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Google Analytics 4

All alternatives →
World Monitor koala73
98

World Monitor is a real-time global intelligence dashboard covering conflict, markets, energy, trade, shipping and cyber. Its MCP server gives AI assistants access to that data, and it is aimed at analysts, agents and scripts.

ACA Remote 91k
Power BI Authoring MCP Server (Local) microsoft
95

Lets AI agents create and change Power BI semantic models through a local MCP server. Built for developers who want natural language modeling in Power BI Desktop, Fabric workspaces and PBIP files.

AAA Local 9.7k/wk
Seal Open Data ariacom
95

Seal Open Data serves French public datasets from data.gouv.fr to AI assistants. It covers topics such as territories, companies, housing and population. It is aimed at users who want to query French open data from clients like Claude.

AAA Remote 1.7k
OpenMetadataopen-metadata
94

OpenMetadata MCP server lets MCP-compatible assistants search metadata, inspect lineage, and manage data quality tests. It is for data teams and AI agents that need governed context about enterprise data.

AAA Remote 16k
Flint Chart MCP microsoft
94

Compiles, validates and renders semantic chart specs for AI assistants through the Model Context Protocol. It is for agents that need reliable, good-looking and interactive charts across several chart libraries.

AAA Local 4.6k
PostHog PostHog
94

Query PostHog analytics, manage feature flags and experiments, and investigate errors from your AI assistant. It suits product teams and developers who already use PostHog for analytics, replays, and error tracking.

AFA Remote 41k

Compare with World Monitor, Power BI Authoring MCP Server (Local) or Seal Open Data

Google Analytics 4: common questions

Does this Google Analytics MCP server change my GA4 data?

No. The source states there are no write tools and that every tool calls a read method of the Data API or the Admin API.

Does the server redact personal data?

Identifiers are redacted by default on the access binding and audience export tools, and showing them requires includePersonalIdentifiers set to true. Report rows are not redacted.

Which Node.js versions does it need?

The source says it requires Node.js 22.23.4, 24.22.1 or 26.12.1, or a newer release of one of these lines.

How do I install Google Analytics 4?

In Claude Code run claude mcp add google-analytics-4 -e GA4_CLIENT_ID=YOUR_GA4_CLIENT_ID -e GA4_CLIENT_SECRET=YOUR_GA4_CLIENT_SECRET -e GA4_REFRESH_TOKEN=YOUR_GA4_REFRESH_TOKEN -- npx -y @getmcpads/google-analytics-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Google Analytics 4 the official server?

Google Analytics 4 is published by getmcpads.com from its verified domain in the official MCP Registry.

Is Google Analytics 4 free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is Google Analytics 4 safe to use?

It scores 82 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Google Analytics 4?

Similar MCP servers: World Monitor, Power BI Authoring MCP Server (Local), Seal Open Data, OpenMetadata.

Does Google Analytics 4 work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Google Analytics 4 Install

Add to stack

Loading.