Google Analytics 4 MCP for your AI client

Let Claude, ChatGPT, Cursor or Codex read reports, realtime, key events and custom dimensions in Google Analytics 4, and stage fixes you approve in one click. No developer token.

Pick your AI client

Setup guides for Google Analytics 4

What people ask

  • People are signing up. Why does GA4 show no conversions?
  • Which channels drove key events last month?
  • Compare landing page engagement for paid vs organic.
  • What happened to traffic yesterday, in realtime?
Every tool

13 Google Analytics 4 tools, from the live catalog

9 read tools return live data. 4 write tools stage changes that wait for your approval.

Read

  • ga4_listProperties

    GA4 properties exposed to okaytorun, grouped by account, with resource name ("properties/123") and display name.

    Read
  • ga4_getProperty

    Property settings: display name, time zone, currency, industry, creation time.

    Read
  • ga4_runReport

    GA4 Data API report: dimensions, metrics, up to 4 date ranges (comparisons), filters, ordering, limit. Flags sampling.

    Read
  • ga4_runRealtimeReport

    Events and active users from now back to about 30 minutes.

    Read
  • ga4_getMetadata

    All dimensions and metrics available for this property (API name, UI name, description, custom flag). Use to build valid reports.

    Read
  • ga4_listKeyEvents

    Events marked as key events (conversions), with counting method and creation time.

    Read
  • ga4_listCustomDimensions

    Registered custom dimensions (parameter name, display name, scope). Archived ones are not listed.

    Read
  • ga4_listAudiences

    Audiences defined on the property (name, description, membership duration).

    Read
  • ga4_runScript

    Run several read steps in one call (e.g. a report per channel). Steps may only use: runReport, runRealtimeReport, getMetadata, getProperty, listKeyEvents, listCustomDimensions, listAudiences. Never mutates; write tools are rejected.

    Read

Write

  • ga4_createKeyEvent

    Stage marking an event (e.g. "sign_up") as a key event (conversion). Affects future data only; history is unchanged. Inverse: deleteKeyEvent.

    Needs approval
  • ga4_deleteKeyEvent

    Stage removing an event from key events. Affects future data only. Inverse: createKeyEvent.

    Needs approval
  • ga4_createCustomDimension

    Stage registering an event/user/item parameter as a custom dimension. Data appears from now on. It can only be removed by archiving, which permanently retires the parameter name.

    Irreversible
  • ga4_archiveCustomDimension

    Stage ARCHIVING a custom dimension. IRREVERSIBLE: GA4 has no delete or restore, and the parameter name can never be registered again.

    Irreversible
Questions

Google Analytics 4 MCP FAQ

What is the okaytorun Google Analytics 4 MCP server?

It is a hosted MCP server that gives your AI client 13 tools for reports, realtime, key events and custom dimensions. Your AI reads live data and stages changes; you approve each one in okaytorun.

Which AI clients work?

Claude, Claude Code, ChatGPT, Codex, Cursor, OpenClaw, Hermes, Grok, and any client that supports remote MCP servers over Streamable HTTP.

Is it safe to let an AI change my account?

Changes never run without your approval. Server side limits block extreme edits (a budget can't more than double in one change, bids are capped at 3x), okaytorun re-reads the account before applying, and every applied change can be undone on Growth and Plus.

What does it cost?

A 7-day free trial on every plan, then Basic $29/mo, Growth $79/mo or Plus $199/mo billed yearly. See pricing.

Your next fix, already drafted.

7-day free trial on every plan. Cancel anytime before day 8.