★ Community Edition ★Price: Free



The Prompt Card Index

The official Google Analytics MCP: query GA4 straight from Claude

Google Analytics' own MCP server, exposing GA4 report and realtime tools so Claude or Cursor can query your Analytics data directly without writing API glue.

Wiring an agent up to the GA4 Data API by hand means writing report request objects, handling auth, and mapping dimensions and metrics before you can ask a single real question. This MCP server does that work once, as an official Google Analytics repository, and exposes GA4 as a set of tools an agent can call directly: run a report, get account summaries, or run a realtime report.

Why it made the cut

It is genuinely official, published under the Google Analytics organisation on GitHub rather than a community reimplementation, so the tool set tracks the real Data API rather than someone else's guess at what matters. It carries an active release cadence, with a recent point release and a steady run of tagged versions, which matters for anything sitting between an agent and production reporting data.

How to use it

Connect it to an MCP client such as Claude or Cursor and authenticate with your own GA4 credentials, read access is enough. It is self-hosted: you run it against your own property using your own credentials, so no data passes through a third party. Once connected, ask the agent to run a report, pull an account summary, or check realtime activity, and it calls the underlying GA4 Data API tools directly instead of you writing the request by hand.

Worth knowing

It is free, Apache-2.0 licensed, and written in Python. Self-hosting means you carry the same responsibility for credential handling as any other GA4 API integration, there is nothing hosted on Google's side beyond the API itself.

  • MCP
  • GA4
  • Agent