100+ integrations are ready to connect to your AI.Connect your first MCP

Google Analytics 4 MCP server for your AI

Pull sessions, revenue and channel reports over any date range, see who is on the site right now, and audit audiences, key events and custom dimensions without opening the GA4 UI.

PopMCPGoogle Analytics 4

Show sessions and revenue by channel for last month against the month before

Supported Google Analytics 4 tools

Every reporting and admin call available on a connected property, plus the traffic, revenue and engagement alerts PopMCP can watch.

ga4_create_audience

Create an audience.

ga4_create_custom_dimension

Create a custom dimension.

ga4_create_key_event

Mark an event name as a key event (conversion).

ga4_get_data_retention_settings

Retrieve the property's event data retention settings.

ga4_get_data_stream

Retrieve a single data stream.

ga4_get_property

Retrieve the connected GA4 property (displayName, timeZone, currencyCode, …).

ga4_list_account_summaries

Show the connected property's account summary (owning account + the connected property).

ga4_list_audiences

List audiences configured on the property.

ga4_list_custom_dimensions

List custom dimensions defined on the property.

ga4_list_custom_metrics

List custom metrics defined on the property.

ga4_list_data_streams

List the property's data streams (web/app).

ga4_list_google_ads_links

List Google Ads links for the property.

ga4_list_key_events

List key events (conversions) for the property.

ga4_update_property

Update GA4 property fields.

ga4_batch_run_pivot_reports

Run multiple GA4 pivot reports in one batch.

ga4_batch_run_reports

Run up to 5 GA4 reports in a single batch.

ga4_check_compatibility

Check which dimensions/metrics are compatible with a report request.

ga4_get_metadata

List all dimensions and metrics available for the property (including custom).

ga4_run_pivot_report

Run a GA4 pivot report.

ga4_run_realtime_report

Run a GA4 realtime report (last 30 minutes of activity).

ga4_run_report

Run a GA4 report: dimensions × metrics over date ranges with optional filters and ordering.

Connect Google Analytics 4 to your AI

Authorize once, then an endpoint your client signs into. Nothing to deploy, and nothing to install on the Google Analytics 4 side.

Enable the Analytics Admin API and Analytics Data API in Google Cloud, add your OAuth Client ID and OAuth Client Secret, then authorize with the Google account that has property access. Pick the properties to connect.

OAuth Client ID1234567890-abc.apps.googleusercontent.com
OAuth Client Secret••••••••••••3f7a
Authorize PopMCP on Google Analytics 4Authorize

Then just ask for the work

  • Show sessions and revenue by channel for last month against the month before

    • get_property
    • batch_run_reports
  • Mark purchase, begin_checkout and signup as key events if they aren't already

    • get_metadata
    • list_key_events
    • create_key_event
  • Create a custom dimension for plan_tier and check it shows up in metadata

    • list_custom_dimensions
    • create_custom_dimension
    • get_metadata
  • Which data streams and Google Ads links feed this property, and what did each send last week?

    • list_data_streams
    • list_google_ads_links
    • run_report

Use Google Analytics 4 from the assistant you already open

One hosted endpoint, registered once per client. The same tools and the same permissions, whichever window the request comes from.

Claude DesktopCustom connector

Add the PopMCP URL under Settings → Connectors and the tools appear in every chat.

Claude WebCustom connector

The same endpoint, registered in the browser. Nothing to install on the machine you are working from.

ChatGPTCustom connector

Register PopMCP as a custom connector, then let ChatGPT read and update the account.

CodexDesktop & CLI

Wire the endpoint into Codex or the Codex CLI when a task needs live business context, not a fixture.

OpenCodeCoding agent

Register the remote MCP server in OpenCode's config for terminal-first and scripted agent runs.

ZCodeDesktop app

Add PopMCP as an MCP server in Z.ai's desktop app and work the account from the same window.

Google Analytics 4 MCP server questions

What teams ask before putting Google Analytics 4 behind an AI client.

Do I need my own Google Cloud project to connect Google Analytics 4?

Yes. You connect with your own Google OAuth client, so the connect form asks for an OAuth Client ID and an OAuth Client Secret from that project. Enable both the Google Analytics Admin API and the Analytics Data API under APIs & Services -> Library first, then authorize; those two APIs are what the reporting and admin calls run against. You never paste an API key: the last step is a normal Google consent screen.

Which properties does one connection cover?

You authorize with the Google account that already has access to your GA4 properties, and after the consent screen you choose which of those properties to connect and which workspace each one belongs in. The agent works against the properties you picked, not everything the Google account can see. Reporting and admin calls run inside that scope.

Can the agent change my GA4 configuration, or is it reporting only?

Both, and you decide which. Most of the catalog is read-only reporting and admin lookups, and the writes are narrow: creating an audience, creating a custom dimension, marking an event name as a key event, and updating property fields such as display name, time zone or currency. Set the connection to read-only if you only want analysis, or keep full access with approval required so those four kinds of change wait for a human.

Can it read realtime data and run several reports at once?

ga4_run_realtime_report covers the last 30 minutes of activity, which is what you want when someone asks whether the site is up or a campaign has landed. For historical work, ga4_batch_run_reports sends up to 5 reports in a single batch, and there is a pivot equivalent for breakdowns that need two dimensions crossed. Batching matters when an agent would otherwise fire one call per date range.

Why do some report requests come back with an incompatible dimension or metric?

The GA4 Data API rejects dimension and metric combinations that cannot be queried together, and this is the usual reason a first attempt fails. ga4_check_compatibility tests a request before it runs, and ga4_get_metadata lists every dimension and metric available on the property, including the custom ones you have defined. Pointing the agent at those two first turns a guessing loop into one clean query.

What can PopMCP watch in a GA4 property on its own?

The triggers are threshold-based and tuned to the questions analytics owners get paged about: sessions dropping below the same period last week, traffic spiking above its normal range, conversions or key events falling under their recent average, purchase revenue missing target, one channel such as organic or paid search dropping sharply, engagement rate falling, and live visitors crossing a level you set. Each fires against the property you connected, so your AI client can investigate with a report before you have even opened GA4.

Do I have to run or host the Google Analytics 4 MCP server myself?

No. PopMCP hosts it and gives you a Streamable HTTP MCP URL. There is nothing to deploy, no callback URL to register, and no infrastructure to keep running or patch.

Which AI clients can use this MCP server?

Any client that supports a remote Streamable HTTP MCP server — Claude Desktop, Claude Web, ChatGPT custom connectors, Codex and the Codex CLI, OpenCode and Z.ai's ZCode, as well as editors such as Cursor, Windsurf and Zed. Your client signs in to PopMCP with OAuth; the provider credential never leaves the server.

Why do only 21 of the 21 tools load by default?

Loading 21 tool definitions into every conversation burns context before the work starts. PopMCP loads a curated 21-tool set covering the everyday workflows and keeps the rest searchable, so your AI pulls a specialist tool only when a task needs it. You can switch a connection to the full catalog at any time.

What is the difference between a tool and a trigger?

A tool is something your AI calls — there are 21 here. A trigger is something PopMCP watches for you: 7 Google Analytics 4 events that can start work on the PopMCP side. Triggers never enter your AI client's context, and none of them ask you to paste a callback URL into Google Analytics 4.

Connect Google Analytics 4 to your AI in minutes

Launch a hosted MCP endpoint for Google Analytics 4, keep tool access under control, and start testing real workflow prompts right away.

Connect your first MCP