Skip to content

MCP server for Google Analytics 4

Reports on request.Admin changes with a preview.

The GA4 server lets Claude, ChatGPT and other AI clients run reports and read settings in the properties you allow. When a client proposes a change, such as a new key event or custom dimension, you see the before and after first. Nothing runs until it is applied or, when needed, approved by a person.

Server address

https://mcp-sandbox.adtool.ai/ga4

Availability: Customer reads require Google verification. Changes require verified edit permissions, a paid plan and the edit access you grant when linking Google.

Mark sign_up as a key event

Requested by Claude · Write with approval

Before: sign_up is a regular event

After: sign_up is a key event, counted once per event

Report for the last 28 days: sign_up · 1,284 events

Sample preview, not a real account

Google Analytics 4

What it reads

  • Runs standard reports and period comparisons with quota, sampling and thresholding notes. BigQuery export tools require separately enabled read-only access.
  • Runs realtime and funnel reports, checks expected events and reports tracking-health signals without proving that every tag fires.
  • Reads property details, data streams, Google Ads links and data retention.
  • Lists key events, custom dimensions and custom metrics, with the slots left on the property.

What it changes

  • Creates, updates or deletes key events, always as a preview first. Deleting always needs approval.
  • Creates, updates or archives custom dimensions after a preview. Archiving always needs approval.
  • Previews custom metric, annotation and Google Ads link changes, with permissions, warnings and human approval where required.
  • Says in the preview when a change applies only to data collected from then on.

How changes work here

Every change previewed. Every change logged.

Changes on this server follow the same three steps. Approval comes in when the access level or the risk calls for it.

  1. Preview

    The client asks for the change. adtool.ai reads the property's current key events and custom definitions, checks the names and saves a change plan with the before and after.

  2. Approval

    With Write with approval, a workspace owner or admin reviews the diff and warnings for a shared connection; only the linker approves a personal connection. Deleting a key event or archiving a custom dimension waits for approval at every access level.

  3. Apply and log

    Right before it runs, adtool.ai checks the property again and stops if something changed. The result lands in the activity log with the client and the person behind it.

Tools

Every tool. Straight from the server.

This list is built from the server's own tool definitions, as AI clients receive them. A tool an operator has paused is left out of tools/list until it is back.

See the full tool catalogue
  • adtool_whoami

    Show this connection

    Read
  • ga4_list_accounts

    List GA4 accounts

    Read
  • ga4_get_property

    Get GA4 property details

    Read
  • ga4_get_metadata

    Find GA4 dimensions and metrics

    Read
  • ga4_run_report

    Run a GA4 report

    Read
  • ga4_run_realtime_report

    Run a GA4 realtime report

    Read
  • ga4_list_key_events

    List GA4 key events

    Read
  • ga4_list_custom_definitions

    List GA4 custom dimensions and metrics

    Read
  • ga4_check_events

    Check GA4 events arrive

    Read
  • ga4_list_annotations

    List GA4 annotations

    Read
  • ga4_list_bigquery_exports

    List GA4 BigQuery exports

    Read
  • ga4_run_bigquery_query

    Query the GA4 BigQuery export

    Read
  • ga4_check_tracking_health

    Check GA4 tracking health

    Read
  • ga4_run_funnel_report

    Run GA4 funnel report (alpha)

    Read
  • ga4_get_period_comparison

    Compare GA4 periods

    Read
  • adtool_list_activity

    List recent activity

    Read
  • adtool_list_source_groups

    List source groups

    Read
  • adtool_preview_source_group_change

    Preview a source-group change

    Write
  • ga4_preview_custom_dimension_change

    Preview a GA4 custom dimension change

    Write
  • ga4_preview_key_event_change

    Preview a GA4 key event change

    Write
  • ga4_preview_custom_metric_change

    Preview a GA4 custom metric change

    Write
  • ga4_preview_annotation_change

    Preview a GA4 annotation

    Write
  • ga4_preview_google_ads_link_change

    Preview linking or unlinking a Google Ads account

    Write
  • adtool_preview_revert

    Preview the revert of an applied plan

    Write
  • adtool_get_change_plan

    Show a change plan

    Write
  • adtool_list_change_plans

    List change plans

    Write
  • adtool_apply_change_plan

    Apply a change plan

    Write

Setup

One address per product. Your AI client.

Each Google product has its own server address. Add it to Claude, ChatGPT, Cursor, VS Code or another MCP client and sign in; the setup guide has the steps for each client.

Open the setup guide

FAQ

Questions about this server. Short answers.

Can it delete events or fix past data?

No. GA4 cannot delete single events or rewrite collected data, so the server does not either. A new key event or custom dimension applies to data collected from then on, and the preview says so.

Do you store my report data?

No. Report data lives only in short-lived caches. Results go to the AI client you connected and approved, and nowhere else.

Which Google permissions does the GA4 server need?

It asks for analytics.readonly for reading. Changes add analytics.edit, because GA4 has no narrower permission for them. adtool.ai never asks to manage GA4 users or for full Analytics access.