# Google Analytics MCP

Canonical: https://typenode.ai/templates/google-analytics-mcp

Connect Google Analytics to ChatGPT, Claude and other AI assistants over MCP, and ask about sessions, channels, events and landing pages. Read-only.

- [Try this template free](https://app.typenode.ai/sign-up?returnTo=%2Ftemplates%3Ftemplate%3Dgoogle-analytics-mcp)

7-day trial (no credit card) · 1,000 credits included

Published by Typenode · Reviewed by [Bartosz Mróz](https://typenode.ai/authors/bartosz-mroz) · Updated November 1, 2026

## About

People who want to query their GA4 analytics data in plain language use this toolkit instead of building reports in the Google Analytics interface. It connects GA4 properties to AI assistants through the Model Context Protocol (MCP), so ChatGPT, Claude, Cursor and any other MCP-compatible assistant can run queries on your behalf.

The 19 tools cover property and data-stream discovery, standard and custom reports, funnel analysis, time-series trends, channel and landing-page acquisition, event performance and audience breakdowns. You can ask which channels drove the most sessions last month, compare two date ranges for a specific landing page, or explore the conversion path through a funnel. Queries run against the GA4 Data API and Admin API and return native results, including any sampling or quota restrictions Google applies.

The toolkit is read-only. It queries data and configuration; it does not create properties, modify settings, change conversions or alter any GA4 data. Every call requires your own Google account connected with the analytics.readonly OAuth scope.

## Examples

What this template can return.

### Asked in Claude: How do I find where my sessions come from?

Acme Store · Last 28 days · Session default channel grouping

Channel Sessions Engaged sessions Eng. rate Organic Search 8,421 5,210 61.9% Direct 3,104 1,830 59.0% Paid Search 1,892 1,201 63.5% Organic Social 743 410 55.2% Email 521 388 74.5% Referral 312 198 63.5% Unassigned 189 94 49.7%

Organic Search is the largest channel at 8,421 sessions and a 62% engagement rate. Email shows the highest engagement rate at 74.5% on 521 sessions, suggesting high-intent traffic. Paid Search engagement is slightly above Organic Search despite a smaller volume.

## How it works

How your agent uses these tools.

### Which GA4 properties and data streams can I see?

Calls the GA4 Admin API to list accessible accounts and properties as native account summaries. A follow-up fetches one property's configuration, including reporting timezone and currency. A data-streams lookup lists web and app streams for a property, including available website URLs.

### How do I find where my sessions come from?

Retrieves session acquisition grouped by channel, source/medium or campaign with native GA4 metrics. A first-user acquisition tool describes the original channel rather than the source of subsequent sessions. Both tools return native GA4 attribution and differ from event-scoped metrics.

### Can I run a custom report?

Sends a Core report request with your chosen dimensions, metrics, filters and date range, returning one bounded page of native results with headers and optional aggregates. Google checks that the dimension and metric combination is valid as the report runs and names any invalid field; you can also ask for a compatibility check first.

### How do I track a specific event or conversion?

Retrieves observed event names and counts for explicit dates with optional event filtering. A key-events tool lists the conversions configured on the property. Event counts are not unique sessions; use a report with session metrics to connect events to sessions.

### How do I compare two time periods?

Runs the same report recipe for up to six named date ranges, returning independent result sets without calculating differences. A time-series tool groups native metrics by day, week, month or hour in the property's reporting timezone, with missing intervals left as missing.

## Tools · 19

Tools your agent can use to work with your data.

### List Google Analytics Properties

Discover accessible Google Analytics accounts and properties as native account summaries. Page size counts account summaries, each of which can contain multiple property summaries.

### Get Google Analytics Property

Get one GA4 property’s native configuration, including available reporting timezone and currency. This does not change settings.

### List Google Analytics Data Streams

List one GA4 property’s web and app streams, including available website URLs. Stream discovery helps select a site scope; it does not prove an exact GSC property match.

### Get Google Analytics Report Metadata

Discover standard, custom and comparison metadata for a GA4 property. Returns a bounded, optionally filtered catalog; comparison queries are outside v1.

### List Google Analytics Key Events

List configured GA4 key events and native configuration. Current registration does not establish when an event was tracked or its historical counts.

### Check Google Analytics Report Compatibility

Check Core report dimensions, metrics and filters; optionally list compatible additions. This endpoint does not validate funnel or realtime reports and does not guarantee data access or nonempty results.

### Query Google Analytics Report

Retrieve one bounded page of a GA4 Core report with native headers, numeric strings, restrictions and optional aggregates. Google validates the field combination when the report runs; set validate\_compatibility to check Core compatibility first, at one extra read. Pagination is not a snapshot.

### Get Google Analytics Report Totals

Retrieve dimensionless native GA4 totals for explicit dates and filters. Never sum users across detail rows or average their rates; dimension filters still define the selected population.

### Get Google Analytics Report Time Series

Retrieve native GA4 metrics grouped by day, week, month or hour in the property reporting timezone. Missing intervals remain missing.

### Query Google Analytics Funnel

Retrieve ordered native GA4 funnel aggregates with explicit step, entry and sequence constraints. Uses the Alpha API; capped reports have no offset continuation and require a narrower request.

### Get Google Analytics Organic Landing Pages

Retrieve landing-page traffic and engagement for Google organic sessions by default, or explicitly all organic search. Preserve native page identifiers; URL alignment with GSC belongs to the client.

### Get Google Analytics Landing Page Outcomes

Retrieve separate landing-page traffic context, selected event counts and optional native event-specific key-event rates. At most three report datasets; event filtering never narrows the context or rate denominator.

### Get Google Analytics Channel Acquisition

Retrieve session acquisition by channel, source/medium or campaign with selected native metrics. This differs from first-user acquisition and event-scoped attribution.

### Get Google Analytics First User Acquisition

Retrieve native first-user acquisition groups and compatible metrics. Describes original acquisition rather than the source of subsequent sessions.

### Get Google Analytics Event Performance

Retrieve observed event names and native counts/user metrics for explicit dates and optional event selection. Event occurrences are not unique converting sessions or configured key-event discovery.

### Get Google Analytics Audience Breakdown

Retrieve native metrics by country or device category with explicit traffic scope. Returns recorded aggregates without evaluating audience quality.

### Get Google Analytics Performance Overview

Retrieve independent native totals, daily trend and landing-page datasets, optionally session channels. At most four report datasets; no calculated summary or cross-dataset join.

### Get Google Analytics Period Datasets

Retrieve the same Core report recipe for up to six named periods. Returns independent datasets and continuations without calculating differences or matching absent rows.

### Get Google Analytics Property Datasets

Retrieve the same Core report recipe for up to six GA4 properties. Preserve each property’s scope, result and failure; never combine users or silently normalize currencies.

## Use it in ChatGPT, Claude or Cursor

Clone the template in Typenode to start setup. Your agent prepares the template, then helps you connect your custom MCP connector.

### ChatGPT

[Connect Typenode MCP to ChatGPT](https://docs.typenode.ai/connect/chatgpt), then give your agent the template’s setup prompt.

### Claude

[Connect Typenode MCP to Claude](https://docs.typenode.ai/connect/claude), then give your agent the template’s setup prompt.

### Cursor

[Connect Typenode MCP to Cursor](https://docs.typenode.ai/connect/other-apps), then give your agent the template’s setup prompt.

## Apps and setup

Accounts, access, and setup for the apps this template uses.

### Google Analytics

#### Authentication

- Custom OAuth app

#### Required scopes

- <https://www.googleapis.com/auth/analytics.readonly>

#### Costs

The GA4 Data API and Admin API are free for standard usage. Google applies per-property quotas; large properties or high-frequency queries may hit them. Check the quotas page in Google Cloud Console if you share the project.

#### Documentation

- [Data API documentation](https://developers.google.com/analytics/devguides/reporting/data/v1): GA4 reporting methods, dimensions, metrics and quotas.
- [Admin API documentation](https://developers.google.com/analytics/devguides/config/admin/v1): Account and property discovery methods and access requirements.
- [Pricing](https://marketingplatform.google.com/about/analytics/compare/): Compare Google Analytics offerings and find information about Analytics 360.
- [OAuth setup](https://developers.google.com/identity/protocols/oauth2/web-server): How to configure a Google OAuth web application for offline access.

## FAQ

Answers to common questions about using this template.

### Can it see all my GA4 properties?

Yes, every GA4 property your connected Google account has at least Viewer access to. Properties are returned as native account summaries; Universal Analytics properties are not supported. Use the property ID (a numeric string like 123456789) in subsequent queries.

### Does it change anything in my account?

No. Every tool is read-only. The toolkit connects with the analytics.readonly OAuth scope, which does not permit creating or modifying properties, events, audiences or any configuration. Nothing in your Google Analytics account is changed.

### How fresh is the data?

GA4 data processing typically completes within 24–48 hours. Intraday data is available but may be partial. The toolkit returns what the GA4 Data API reports at query time, including any sampling Google applies to large datasets.

### What can't it do?

It cannot create or modify properties, event parameters, audiences, conversions or data streams. It does not support Universal Analytics, BigQuery exports, realtime reports, or cohort analysis (those tools are deferred). Results are bounded by GA4's own quotas and sampling thresholds.

### What does it cost to use a template?

Templates are included with Typenode. Start with a 7-day trial (no credit card) and 1,000 credits included. Continued use requires a paid plan. Third-party services may charge separately; see Apps and setup.

### Who controls access to my data?

You choose which accounts to connect. The template’s workflows and tools use the access you configure. Review the required scopes and setup details before connecting an account.

## Related templates

- [Google Search Console MCP](https://typenode.ai/templates/google-search-console-mcp): Connect Google Search Console to ChatGPT, Claude and other AI assistants over MCP, and ask about clicks, queries, pages and indexing. Read-only.
- [LinkedIn MCP](https://typenode.ai/templates/linkedin-mcp): Explore LinkedIn people, companies, jobs and posts in Claude or ChatGPT through MCP and Apify. Paid collection with owner-set budgets.

## Disclaimer

This toolkit is published by Typenode and is not affiliated with or endorsed by Google LLC. Google Analytics is a service of Google LLC. Use of this toolkit requires your own Google account and a Google Cloud OAuth application, subject to Google's Terms of Service and API usage policies.
