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

Ga4 MCP

MCP server by chimpmatic Verified · npm:ga4-mcp

ga4-mcp gives AI assistants access to Google Analytics 4, Search Console and the Indexing API through 16 MCP tools. It suits marketers and SEO teams who want to run reports and manage sites from their AI agent.

  • Score 60
  • 3 stars
  • 242 a week
  • MIT
  • Updated

Install Ga4 MCP

Built from the published package, never by AI.

claude mcp add ga4-mcp -- npx -y ga4-mcp

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

Step-by-step: install Ga4 MCP 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 ga4-mcp block.

About

ga4-mcp is an MCP server that gives AI assistants access to Google Analytics 4, Google Search Console and the Indexing API. It provides 16 tools that run reports, inspect URLs, submit sitemaps, manage properties and request indexing. The README says it works with Claude, Copilot, Cursor, Codex, Gemini and other MCP-compatible agents.

It runs locally through npx or a global npm install, using stdio by default or Streamable HTTP. Authentication uses Google application default credentials with the listed scopes, or a service account JSON key. Tool groups can be limited with the --tools option, which separates read-only analytics (ga4) from the write and delete admin tool. It suits marketers, SEO staff and developers who want to query site data from an AI agent.

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

Tools it gives your assistant

  • pingHealth check that returns pong. Always registered.
  • get_account_summariesLists all GA4 accounts and properties.
  • run_reportRuns GA4 Data API reports.
  • run_realtime_reportRuns GA4 realtime reports.
  • ga4_adminCreates, updates or deletes properties, streams, key events and audiences.
  • gsc_list_sitesLists all Google Search Console properties.
  • gsc_search_analyticsQueries search analytics for impressions, clicks, CTR and position.
  • gsc_inspect_urlInspects a URL for index status, crawl info and mobile usability.
  • gsc_submit_sitemapSubmits a sitemap to Search Console.
  • indexing_notifyNotifies Google to crawl or remove a URL.

What you need

  • Google account with access to the GA4 and Search Console properties
  • Google application default credentials via gcloud, or a service account JSON key
  • npm and npx to run the package

Try asking

  • Run a GA4 report of sessions by country for the last 30 days.
  • Show Search Console clicks and impressions for my top queries this month.
  • Inspect the index status of https://example.com/blog for me.

Good to know

  • The ga4 tool group is read-only analytics, while the admin group performs write and delete actions.
  • The source does not state API rate limits.

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 Ga4 MCP

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

Ga4 MCP: common questions

Which AI assistants does ga4-mcp work with?

The README says it works with Claude, Copilot, Cursor, Codex, Gemini and any MCP-compatible AI agent.

Can ga4-mcp change my Google Analytics or Search Console settings?

Yes. The admin tool can create, update and delete GA4 properties, streams, key events and audiences, and the Search Console tools can add sites and submit sitemaps.

How do I limit which tools the server loads?

Use the --tools option or the GA4_MCP_TOOLS environment variable with the groups ga4, gsc, indexing, admin or all.

How do I install Ga4 MCP?

In Claude Code run claude mcp add ga4-mcp -- npx -y ga4-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Ga4 MCP the official server?

Ga4 MCP is published by npm:ga4-mcp from its verified domain in the official MCP Registry.

Is Ga4 MCP free?

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

Is Ga4 MCP safe to use?

It scores 60 of 100. Grades: maintenance D, 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 Ga4 MCP?

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

Does Ga4 MCP 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.

Ga4 MCP Install

Add to stack

Loading.