Google Analytics 4
Google Analytics 4 MCPAnalytics62 actions

GA4 MCP Server for Google Analytics

Let your AI agents run Google Analytics 4 for you, safely.

A hosted GA4 MCP server for Claude, ChatGPT, Cursor and CLI agents. Sign in with Google, paste one server URL, then run any Google Analytics 4 report and manage key events, custom dimensions and audiences. No Google Cloud project needed.

  • Enable or disable every action, per account. Block your agent from doing dangerous actions.

  • Ask in plain English. Pull reports, find insights and take action in Google Analytics 4.

  • 62 read and write actions. Every Google Analytics 4 task your agent needs, from reporting to making changes.

  • Built for teams. Invite your team and share one connected account.

Works with
ChatGPTChatGPTClaudeClaudeClaude CodeClaude CodeCodexCodexGemini CLIGemini CLICursorCursorMistralMistralOpenClawOpenClawHermesHermesPerplexityGrokn8nWindsurfVS CodeZed
ChatGPT
Google Analytics 4
ChatGPT
connected to Google Analytics 4 MCP
Online
ChatGPT
Actions

Available Actions

62 actions available to automate your Google Analytics 4 workflows.

62 actions

Google Analytics 4
Write

Acknowledge User Data Collection

Attest the User Data Collection acknowledgement on a property, which GA4 requires before Measurement Protocol secrets can be created.

Google Analytics 4
Write

Archive Audience

Archive an audience so it stops collecting members.

Google Analytics 4
Write

Archive Custom Dimension

Archive a GA4 custom dimension (frees a slot; not a hard delete).

Google Analytics 4
Write

Archive Custom Metric

Archive a GA4 custom metric (frees a slot; not a hard delete).

Google Analytics 4
Write

Create Audience

Create an audience from a set of filter clauses.

Google Analytics 4
Write

Create Bigquery Link

Link a GA4 property to a BigQuery project for raw event export.

Google Analytics 4
Write

Create Channel Group

Create a custom channel group from grouping rules.

Google Analytics 4
Write

Create Custom Dimension

Create a GA4 custom dimension from an event parameter.

Google Analytics 4
Write

Create Custom Metric

Create a GA4 custom metric from an event parameter.

Google Analytics 4
Write

Create Data Stream

Create a web, Android or iOS data stream on a GA4 property.

Google Analytics 4
Write

Create Google Ads Link

Link a Google Ads account to a GA4 property.

Google Analytics 4
Write

Create Key Event

Create a GA4 key event (conversion) for an event name.

Google Analytics 4
Write

Create Measurement Protocol Secret

Create a Measurement Protocol secret so server-side events can be sent to a stream.

Google Analytics 4
Write

Create Property

Create a new GA4 property under an account.

Google Analytics 4
Write

Delete Bigquery Link

Remove a BigQuery export link.

Google Analytics 4
Write

Delete Channel Group

Delete a custom channel group.

Google Analytics 4
Write

Delete Data Stream

Delete a data stream from a GA4 property.

Google Analytics 4
Write

Delete Google Ads Link

Unlink a Google Ads account from a GA4 property.

Google Analytics 4
Write

Delete Key Event

Delete a GA4 key event (conversion).

Google Analytics 4
Write

Delete Measurement Protocol Secret

Delete a Measurement Protocol secret, revoking server-side sends that use it.

Google Analytics 4
Write

Delete Property

Soft-delete (trash) the connected GA4 property.

Google Analytics 4
Read

Ecommerce

E-commerce performance data including transactions, revenue, and product metrics

Google Analytics 4
Read

Events

Event tracking data including event names, counts, and user engagement

Google Analytics 4
Read

Geo

Geographic performance data including country, region, city, and language

Google Analytics 4
Read

Get Audience

Get one audience, including its filter clauses.

Google Analytics 4
Read

Get Bigquery Link

Get one BigQuery export link.

Google Analytics 4
Read

Get Channel Group

Get one channel group, including its grouping rules.

Google Analytics 4
Read

Get Custom Dimension

Get a single GA4 custom dimension by id.

Google Analytics 4
Read

Get Custom Metric

Get a single GA4 custom metric by id.

Google Analytics 4
Read

Get Data Retention Settings

Read a GA4 property's event and user data retention settings.

Google Analytics 4
Read

Get Data Stream

Fetch one data stream, including its Measurement ID.

Google Analytics 4
Read

Get Enhanced Measurement Settings

Read the enhanced measurement settings of a web data stream.

Google Analytics 4
Read

Get Key Event

Get a single GA4 key event by id.

Google Analytics 4
Write

Get Measurement Protocol Secret

Get one Measurement Protocol secret, including its secret value.

Google Analytics 4
Read

Get Property

Fetch a GA4 property's settings (name, time zone, currency, industry).

Google Analytics 4
Read

Get Report

Execute GA4 runReport with arbitrary metrics and dimensions.

Google Analytics 4
Write

List Accounts

List the GA4 accounts this connection can administer.

Google Analytics 4
Read

List Audiences

List the audiences on a property.

Google Analytics 4
Read

List Bigquery Links

List the BigQuery export links on a property.

Google Analytics 4
Read

List Channel Groups

List the channel groups on a property.

Google Analytics 4
Read

List Custom Dimensions

List the GA4 custom dimensions on a property.

Google Analytics 4
Read

List Custom Metrics

List the GA4 custom metrics on a property.

Google Analytics 4
Read

List Data Streams

List a GA4 property's data streams (web, Android, iOS).

Google Analytics 4
Read

List Google Ads Links

List the Google Ads accounts linked to a GA4 property.

Google Analytics 4
Read

List Key Events

List the GA4 key events (conversions) on a property.

Google Analytics 4
Write

List Measurement Protocol Secrets

List the Measurement Protocol secrets on a data stream.

Google Analytics 4
Read

Pages

Page-level performance data including views, engagement, and user behavior

Google Analytics 4
Read

Tech

Technology breakdown data including browser, device, OS, and platform

Google Analytics 4
Read

Traffic Sources

Traffic acquisition data including source, medium, campaign, and channel groupings

Google Analytics 4
Write

Update Audience

Rename an audience or change its description.

Google Analytics 4
Write

Update Bigquery Link

Change what a BigQuery export link exports.

Google Analytics 4
Write

Update Channel Group

Change a channel group's name, description, rules, or primary flag.

Google Analytics 4
Write

Update Custom Dimension

Update a GA4 custom dimension's display name / description.

Google Analytics 4
Write

Update Custom Metric

Update a GA4 custom metric's display name / description.

Google Analytics 4
Write

Update Data Retention Settings

Set how long a GA4 property retains event and user data.

Google Analytics 4
Write

Update Data Stream

Update a data stream's display name or default URI.

Google Analytics 4
Write

Update Enhanced Measurement Settings

Turn enhanced measurement events (scrolls, outbound clicks, site search, video, downloads) on or off.

Google Analytics 4
Write

Update Google Ads Link

Update a Google Ads link's personalized-advertising setting.

Google Analytics 4
Write

Update Key Event

Update a GA4 key event's counting method or default value.

Google Analytics 4
Write

Update Measurement Protocol Secret

Rename a Measurement Protocol secret.

Google Analytics 4
Write

Update Property

Update a GA4 property's display name, time zone, currency or industry.

Google Analytics 4
Read

User Demographics

User demographic data including age, gender, interests, and user type

Compare

Google Analytics 4 MCP servers compared: hosted vs official

Google offers an experimental, open-source Google Analytics MCP server. It suits developers who want free, read-only access and are comfortable running it locally. InsightfulPipe is a hosted alternative with property management and team controls.

HostingHosted by InsightfulPipeRuns locally with pipx and Python 3.10+
SetupSign in with Google and pick propertiesGoogle Cloud project with the Analytics Admin and Data APIs enabled, plus Application Default Credentials
Read or writeRead and write: 62 actions, 36 of them writeRead-only
ReportsCustom and ready-made standard reports (no realtime)Standard, realtime, funnel and conversions reports
Property managementKey events, custom dimensions and metrics, audiences, channel groups, data streams, links and retentionNot available
ControlsRead-only connections, per-property action controls, destructive actions off by defaultLocal credentials with the analytics.readonly scope
Other platformsGoogle Ads, Meta Ads, LinkedIn Ads and 40+ more MCP servers, plus a CLIGoogle Analytics only
PriceIncluded in plans from $29.99/month, with a 7-day free trialFree and open source (Apache-2.0)
Overview

What you can do with the Google Analytics 4 MCP

The InsightfulPipe GA4 MCP server is a hosted Model Context Protocol server for Google Analytics 4. Connect your GA4 properties with a Google sign-in, add the server URL to Claude, ChatGPT, Cursor, Claude Code, Gemini CLI or Codex, and ask about traffic, conversions and user behavior in plain English.

ClaudeGoogle Analytics 4Acme StoreRead-only
Ask about your Google Analytics 4 account…
01Traffic and channel analysis

Traffic and channel analysis

See sessions, users and key events by source, medium, channel group and campaign, and how they trend over time.

See all Google Analytics 4 actions
ClaudeGoogle Analytics 4Acme StoreRead-only
Ask about your Google Analytics 4 account…
02Content and landing pages

Content and landing pages

Find the pages that drive engagement and conversions, and the ones where visitors leave.

See all Google Analytics 4 actions
ClaudeGoogle Analytics 4Acme StoreRead-only
Ask about your Google Analytics 4 account…
03Ecommerce reporting

Ecommerce reporting

Report on revenue, transactions, items and purchase behavior without building explorations.

See all Google Analytics 4 actions
62
actions
one server URL
26
read actions
reports, audits, research
36
write actions
create, update, manage
Setup

How to connect the Google Analytics 4 MCP server

Add the server URL to your AI client, then sign in with your InsightfulPipe account to authorize access. The server is hosted, so there is nothing to install.

MCP server URL

https://google-analytics.insightfulmcp.com/

Connect Google Analytics 4 to Claude

Fastest: add InsightfulPipe from the Claude Directory

One click connects the full InsightfulPipe MCP with all your connected accounts. To add a server scoped to Google Analytics 4 only, follow the steps below.

Open Claude Directory

Or add the Google Analytics 4 server manually:

  1. 01
    Copy the server URL:
    https://google-analytics.insightfulmcp.com/
  2. 02
    Open Claude connector settings (Customize > Connectors), click + and then Add custom connector.
  3. 03
    Paste the URL and click Add.
  4. 04
    Click Connect, then click Authorize access in the browser.

Start a new chat, click +, open Connectors and turn the connector on to use it.

The Free plan can add one custom connector. On Team and Enterprise plans, an Owner first adds it under Organization settings > Connectors, then each member clicks Connect in Customize > Connectors.

Watch the setup tutorial

Playbook

Prompts and skills that run on the Google Analytics 4 MCP

Copy a prompt into any connected client, or install a Claude skill that chains the actions for you.

Prompt

How did sessions and key events change week over week by channel group?

Trend report by default channel group

Skill

Onboarding CRO

Claude skill that improves post-signup onboarding: defines your activation metric, picks onboarding patterns and plans behavior-triggered emails.

Prompt

Which landing pages had the most sessions but the lowest engagement rate last month?

Finds pages that need work

Skill

Page CRO

Claude skill that diagnoses why a landing page, homepage, pricing or feature page is not converting and prioritizes fixes with the ICE framework.

Prompt

Show revenue and transactions by device category for the last 90 days

Ecommerce performance by device

Skill

Signup Flow CRO

Claude skill that optimizes signup and registration flows: fields, social sign-in, email verification, page design and the path to activation.

Prompt

Which countries grew the most in new users this quarter?

Geography comparison with date ranges

Skill

Cross-Channel Attribution Analyst

Claude skill that analyzes customer journeys across channels, compares attribution models and finds undervalued and overvalued channels.

Prompt

List the key events on this property

Reviews conversion setup

HAVE QUESTIONS?

Frequently asked questions

A GA4 MCP server connects Google Analytics 4 to AI assistants through the Model Context Protocol. Your assistant can run reports on your property and, with write access, manage settings like key events and custom dimensions, instead of you building reports in the GA4 interface.

Ready to connect your data?

Join hundreds of agencies and brands using InsightfulPipe to connect marketing data to AI.

Start a free trial today.