---
title: Google Analytics 4 MCP server for Claude, ChatGPT, and Cursor
description: Connect Claude, ChatGPT, or Cursor to Google Analytics 4 with Advanced GSC. Ask for traffic, landing pages, and conversion reports in plain language.
canonical: https://www.advancedgsc.com/mcp/google-analytics-4
format: markdown
---

# Google Analytics MCP server for AI agents and assistants

Securely connect Claude, ChatGPT, Cursor, and Grok to Google Analytics 4. Ask for reports, landing pages, and traffic trends in plain language.

- **Get started:** https://www.advancedgsc.com/mcp/login?action=signup
- **Get a demo:** https://www.advancedgsc.com/contact
- **Connect your AI to GA4 now →:** https://www.advancedgsc.com/mcp/login?action=signup
- **HTML page:** https://www.advancedgsc.com/mcp/google-analytics-4

## Example questions

Sample conversations. The figures are illustrative, not a live property.

### AI referrals

**You:** How much traffic came from ChatGPT, Gemini, and Perplexity in the last 90 days?

I'll check AI assistant referrals for the last 90 days, then the pages they landed on.

**Tool:** `ga4_ai_traffic`

| Source | Sessions | Users | Engage | Key events |
| --- | --- | --- | --- | --- |
| chatgpt.com | 6,240 | 4,810 | 66% | 112 |
| perplexity.ai | 2,180 | 1,740 | 79% | 64 |
| gemini.google.com | 1,460 | 1,190 | 58% | 21 |
| claude.ai | 890 | 720 | 71% | 18 |

ChatGPT sent the most sessions. Perplexity engages more of the people it sends, and it is close on key events for its size. I can break the same 90 days out by landing page.

### Landing pages

**You:** Which organic landing pages brought sessions, and which ones bounce?

I'll list organic landing pages by sessions, with bounce rate and key events.

**Tool:** `ga4_pages`

| Landing page | Sessions | Bounce | Key events |
| --- | --- | --- | --- |
| /blog/keyword-research | 12,480 | 34% | 28 |
| /pricing | 4,260 | 31% | 186 |
| /blog/ai-overviews | 3,910 | 61% | 9 |
| /templates/audit | 2,140 | 27% | 94 |

The AI Overviews post bounces more than the rest. Pricing and the audit template do the converting. I can add the Search Console queries behind each page.

### Compare periods

**You:** Compare organic traffic this month with the month before.

I'll compare organic sessions, users, engagement, and key events for the two months.

**Tool:** `ga4_compare_periods`

| Metric | This month | Last month | Change |
| --- | --- | --- | --- |
| Sessions | 42,800 | 36,400 | +18% |
| Users | 28,600 | 25,100 | +14% |
| Engagement | 61% | 57% | +4 pt |
| Key events | 412 | 298 | +38% |

Sessions are up, and key events moved further than traffic. I can split the change by landing page.

### Key events

**You:** Which pages drove organic conversions?

I'll pull organic key events by page. If none are marked, I'll say so and show the top events instead.

**Tool:** `ga4_key_events`

| Page | Event | Count |
| --- | --- | --- |
| /pricing | purchase | 96 |
| /pricing | sign_up | 90 |
| /templates/audit | generate_lead | 74 |
| /blog/keyword-research | sign_up | 19 |

Pricing closes the purchases. The audit template brings the leads, and the keyword guide assists sign-ups.

## Supported Tools

Here are the safe and read-only GA4 tools for your SEO analysis. Instead of a long list of tools, a few powerful ones take arguments, so this MCP stays light and much more useful.

11 tools, 55 arguments.

| Tool | Name | Arguments | What it does |
| --- | --- | --- | --- |
| `ga4_list_properties` | List properties | 1 | List the GA4 accounts and properties connected to this server. |
| `ga4_traffic_overview` | Traffic overview | 3 | Sessions, users, bounce rate, average duration, and pageviews for a date range. |
| `ga4_realtime` | Realtime | 1 | Active users in the last 30 minutes, by page and channel. |
| `ga4_compare_periods` | Compare periods | 6 | Compare traffic metrics between two date ranges. |
| `ga4_site_search_terms` | Site search terms | 6 | Internal search terms used by organic visitors. |
| `ga4_pages` | Pages | 10 | Landing and exit pages by sessions or bounce, for organic or any channel. |
| `ga4_breakdown` | Breakdown | 9 | Sessions by channel, device, country, source, or new versus returning. |
| `ga4_trend` | Trend | 5 | Daily or weekly sessions, for organic or all traffic. |
| `ga4_key_events` | Key events | 5 | Conversions by page and event name. |
| `ga4_retention_trend` | Retention trend | 3 | Weekly new versus returning visitors, for organic or all traffic. |
| `ga4_ai_traffic` | AI traffic | 6 | Sessions referred by ChatGPT, Gemini, Perplexity, and other assistants. |

## Why use our GA4 MCP

### Built by an SEO with Fortune 500 experience

- Builder of [mcp-gsc](https://github.com/AminForou/mcp-gsc), the most popular Search Console MCP on GitHub, with 2,000+ stars.
- Also the designer of other SEO tools, with more than 30,000 users a month, including the [Advanced GSC Visualizer](https://chromewebstore.google.com/detail/advanced-gsc-visualizer/cdiccpnglfpnclonhpchpaaoigfpieel) extension.

### Safe to connect

- Read-only. It does not write to your Search Console, Analytics, or ads.
- Your reports are fetched live and are not stored.

### Fewer tools, more range

- A short list of tools, each with many arguments.
- Your agent gets flexibility without a long catalog to sort through.

### The rest of an SEO's stack

- Google Search Console, SERP analysis, and Google Ads.
- CrUX field data and keyword research.
- A schema validator for the markup on a page.

## Frequently asked questions

### General

#### What does the GA4 MCP do?

It lets Claude, ChatGPT, and Cursor ask Google Analytics 4 in plain language. The agent pulls sessions, landing pages, comparisons, and the other reports live. You do not export a spreadsheet first.

#### Which assistants can connect?

Claude, ChatGPT, Cursor, Gemini, Grok, Grokbot, and Antigravity, plus other clients that speak MCP. You sign in with Google and connect. Nothing to install on your computer.

#### Can it change my Analytics account?

No. The tools are read-only. They cannot create, edit, or delete properties, events, or settings.

#### Do you keep my Analytics data?

No. A report is fetched when your agent asks, and it is not stored after that request. An encrypted connection stays in place so you do not sign in again for every question.

#### How can 11 tools cover Google Analytics?

Each tool takes arguments, so the agent changes the date range, channel, or breakdown instead of needing a new tool for every variation. Those 11 cover the reports SEOs ask for.

### Billing

#### Which plan includes Google Analytics?

Google Analytics 4 is on Pro and Max. Those plans include everything in the plans below them, so Search Console is included too.

#### Can I cancel anytime?

Yes. Cancel from the dashboard. The plan stays active until the end of the period you have already paid for.

#### Does the price include Claude, ChatGPT, or Cursor?

No. The price covers this MCP server. The AI client you connect is billed by its own provider.

---

_Markdown representation of https://www.advancedgsc.com/mcp/google-analytics-4, served when the client accepts text/markdown._
