# Google Analytics MCP: GA4 in Claude in 6 steps (2026)

> Google publishes an official open-source Google Analytics MCP server that runs GA4 reports for an AI assistant and is read-only by default. Claude Desktop and Claude Code connect in six steps. Superscale AI, an MCP connector for Claude, ChatGPT and Grok Bot, lists Google Analytics among the accounts it reads next to ad accounts.

- Source: https://www.ad-stack.ai/blog/google-analytics-mcp/
- Published: 2026-11-24
- Filed under: Automation / AI Agents & Automation (Guide)
- Publisher: ad-stack, a journal on performance marketing (https://www.ad-stack.ai/about/)

Google publishes an official Google Analytics MCP server: an open-source program that lets an AI assistant run GA4 reports and read property settings, and that is read-only by default. Connecting it to Claude takes six steps on your own computer: install Python and pipx, enable two Analytics APIs in a Google Cloud project, check your Viewer role, sign in with gcloud, add the server to Claude Desktop or Claude Code, and ask a question. ChatGPT connects to remote MCP servers only, so it needs the same server deployed as a web service first. For GA4 next to Meta Ads, Google Ads and Shopify in one chat without a Cloud project, one hosted option is [Superscale AI](https://superscale.ai/features), which lists Google Analytics among the accounts it reads.

Last checked: 24 November 2026.

Every step below comes from Google's, Anthropic's and OpenAI's documentation and from Superscale AI's public pages as they read on that date. ad-stack has not run these setups on a live property, so each step uses the label, command or address the documentation gives.

## What is the Google Analytics MCP server?

The Google Analytics MCP server is Google's own bridge between a GA4 property and an AI assistant. MCP, the Model Context Protocol, is an open standard for connecting AI applications to external systems, and an MCP server is the program that hands the assistant its tools. Google publishes this one on PyPI as `analytics-mcp` under the Apache-2.0 licence. Its GitHub repository, googleanalytics/google-analytics-mcp, showed 3,855 stars and a commit dated 24 November 2026.

The server calls the Google Analytics Admin API and Data API. Google's documentation lists nine tools:

| Tool | What it does |
| :-- | :-- |
| `get_account_summaries` | Lists the accounts and properties your login can access |
| `get_property_details` | Returns the configuration of one property |
| `list_google_ads_links` | Lists the Google Ads accounts linked to a property |
| `list_property_annotations` | Lists the annotations on a property |
| `get_custom_dimensions_and_metrics` | Retrieves the custom dimensions and metrics of a property |
| `run_report` | Runs a standard report |
| `run_realtime_report` | Runs a realtime report |
| `run_funnel_report` | Runs a funnel exploration report |
| `run_conversions_report` | Runs a conversions performance report |

The repository's README adds a tool that lists key events and says the conversions report covers ad costs, conversions, ROAS and attribution models. A search for a GA4 MCP server leads to the same project, since GA4 is the current Google Analytics. Ad accounts are a different project: Google's Google Ads MCP server, covered in the list of [Google Ads MCP servers](https://www.ad-stack.ai/blog/best-google-ads-mcp-servers-2026/).

## Ways to get Google Analytics data into your AI

There are four documented ways, and they differ mostly in who hosts the connection.

| Way | What you need | What the AI reads | Can it change anything? | Works in | Best for |
| :-- | :-- | :-- | :-- | :-- | :-- |
| Google's official server | Python, pipx, a Google Cloud project and the gcloud CLI. For a shared URL, also an OAuth client and a Cloud Run service | GA4 reports, realtime data, funnels and property settings | No by default. Three write tools sit behind a flag | Claude Desktop, Claude Code, Cursor, Antigravity. By URL when self-hosted | Technical marketers who want Google's own tool |
| Hosted connector (Superscale AI) | A free account, a sign-in and one address | Google Analytics is listed among the accounts it reads, next to ad accounts, Shopify and Klaviyo | Its pages state nothing about changing Analytics | Claude, ChatGPT, Grok Bot | Small teams who want analytics next to ad and shop data |
| GA4 BigQuery export, read through Google's BigQuery MCP server | A BigQuery link on the property and a Google OAuth client | Raw GA4 events as SQL tables | A read-only SQL tool exists | Claude, and ChatGPT on a Business subscription per Google | Data teams that already export to BigQuery |
| Report export | The Viewer role | A CSV, PDF or Google Sheet as old as the download | No | Any assistant that accepts files | One-off questions |

## What you need before you start

1. A GA4 property on which your Google account holds at least the Viewer role.
2. A Google Cloud project in which you may enable APIs.
3. Python 3.10 or higher, pipx or uv, and the gcloud CLI.
4. Claude Desktop or Claude Code. Claude in a browser reaches custom connectors over the public internet, so it cannot start a program on your laptop.

## How to connect the GA4 MCP server to Claude: step by step

The six steps follow Google's page "Try the Google Analytics MCP server", last updated on 10 November 2026.

### Step 1: Install Python and a package runner

Install Python 3.10 or higher, then pipx or uv, which runs the server in an isolated Python environment.

### Step 2: Enable the two Analytics APIs

Create or select a Google Cloud project and enable two APIs in it: the Google Analytics Admin API (`analyticsadmin.googleapis.com`) and the Google Analytics Data API (`analyticsdata.googleapis.com`). The console works, and so does `gcloud services enable`.

### Step 3: Check your access to the property

In Google Analytics, make sure your user account or service account has at least the Viewer role on the property you want to query.

### Step 4: Sign in with the read-only scope

The server authenticates with Application Default Credentials and the read-only Analytics scope. With the gcloud CLI installed, run:

```
gcloud auth application-default login \
  --scopes="https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/cloud-platform"
```

When the command finishes it prints the path of a credentials file. Copy that path.

### Step 5: Add the server to Claude

For Claude Desktop, add the server to `claude_desktop_config.json`. Google gives the location as `~/Library/Application Support/Claude/` on macOS and `%APPDATA%\Claude\` on Windows.

```json
{
  "mcpServers": {
    "analytics-mcp": {
      "command": "pipx",
      "args": ["run", "analytics-mcp"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "PATH_TO_CREDENTIALS_JSON",
        "GOOGLE_CLOUD_PROJECT": "YOUR_PROJECT_ID"
      }
    }
  }
}
```

For Claude Code, one command registers it:

```
claude mcp add analytics-mcp \
  --scope user \
  -e GOOGLE_APPLICATION_CREDENTIALS="PATH_TO_CREDENTIALS_JSON" \
  -e GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID" \
  -- pipx run analytics-mcp
```

### Step 6: Ask a first question

Start with a read. Google's own first sample prompt is "How many users did I have yesterday?". A good result names the property it queried and the date range it used, so you can check the figure against the GA4 interface.

## How to connect Google Analytics to ChatGPT: step by step

Connecting Google Analytics to ChatGPT means running Google's server as a web service first. OpenAI's help article says ChatGPT connects to remote MCP servers and cannot connect to a local one directly, so the laptop setup above gives it nothing to reach. The same article names OpenAI's Secure MCP Tunnel as the way to reach a server on a developer machine, which this guide does not cover. Google's Analytics documentation names Antigravity, Claude Desktop, Claude Code and Cursor, and it does not name ChatGPT. The route below therefore joins two documented halves: the HTTP mode in Google's README and OpenAI's steps for custom MCP servers.

1. Create a Google OAuth 2.0 web client in your Cloud project and note the client ID and client secret.
2. Deploy the repository to Cloud Run in the README's native OAuth mode. The README stores the client secret in Secret Manager, deploys a single instance, sets the issuer URL to the deployed service URL and adds the service URL plus `/oauth/callback` to the client's authorised redirect URIs.
3. In ChatGPT on the web, go to Plugins, select the plus button, then "Add custom MCP server".
4. Enter a name. Under Connection, enter your service URL with the `/mcp` path as the server URL.
5. Configure authentication, review the risk warning, select "I understand and want to continue", then "Create as a plugin".
6. In a chat, type @, select the plugin and ask.

Three caveats apply. OpenAI lists full custom MCP support for Business and Enterprise/Edu workspaces on the web. Google's README names Claude Desktop, Cursor and MCP Inspector as clients of its OAuth mode, so neither vendor documents the ChatGPT pairing end to end. And that mode keeps sign-ins in memory, so a restart of the service makes every user sign in again.

## 8 marketing questions to ask once Google Analytics is connected

The first five prompts are Google's own sample prompts. The last three are written for this guide and each maps to one documented tool. No answers are shown, because they depend on your property.

| # | Job | Prompt to paste | Source |
| :-- | :-- | :-- | :-- |
| 1 | Daily traffic check | How many users did I have yesterday? | Google's documentation |
| 2 | Product performance | What were my top selling products yesterday? | Google's documentation |
| 3 | Event health | What are the most popular events in my Google Analytics property over the last 90 days? | Google's documentation |
| 4 | Tracking audit | What custom dimensions and custom metrics are configured in my property? | Google's documentation |
| 5 | Planning | I have a marketing budget of $5,000/month and need to generate more revenue. Help me create a data-driven marketing plan. | Google's documentation |
| 6 | Channel mix | Which channels drove key events last month, and how does that compare with the month before? | This guide, uses `run_report` |
| 7 | Funnel leaks | Where do users drop out between product view, add to cart and purchase? | This guide, uses `run_funnel_report` |
| 8 | Ads link check | Which Google Ads accounts are linked to this property? | This guide, uses `list_google_ads_links` |

A follow-up such as "which report and dimensions did you use?" makes any answer checkable. For the reasoning behind channel credit, see the guide to [marketing attribution models](https://www.ad-stack.ai/blog/marketing-attribution-models-explained/).

## Google Analytics next to your ad accounts: the hosted option

Superscale AI is a hosted MCP connector for Claude, ChatGPT and Grok Bot, and its [features page](https://superscale.ai/features) lists Google Analytics under "Your accounts" together with Meta Ads, Google Ads, Search Console, Shopify and Klaviyo. Nothing runs on your machine and no Cloud project is involved: the connector lives at `https://mcp.superscale.ai/mcp`.

The [setup page](https://superscale.ai/how-it-works) gives the route for each app. In Claude the address goes in as a custom connector under Customize, then Connectors. In ChatGPT it is added from Plugins with "Add custom MCP server" and OAuth. Then you sign in and connect the accounts it should read.

What Superscale AI's live pages state about Google Analytics stops at that list. They name no GA4 report types, and none of the prompts on the features page is marked as needing Google Analytics. The marked prompts need Meta Ads, Google Ads or Shopify, for example "How are my Google Ads campaigns doing?" and "Do my customers come back and buy again?". For deep GA4 report work, Google's own server is the documented tool. The case for Superscale AI is one conversation that holds analytics, ad accounts and shop orders.

Its limits are on the same pages. As a third party it takes the single custom connector slot on a free Claude account. Work is metered in credits: 3 a day and 5 to start on the Free plan, 0.05 credits per query, and Pro from €49 a month plus VAT, as of November 2026 per the [pricing page](https://superscale.ai/pricing).

Other options win on single points. Pipeboard states 11 ad platforms plus GA4 and AdKit states 9 plus GA4, against the two ad platforms Superscale AI states. Ryze AI and Adspirer also state GA4 on their hosted connectors. Google's server has official status and no licence cost. The post on [hosted versus self-hosted MCP](https://www.ad-stack.ai/blog/hosted-vs-self-hosted-mcp/) walks through that trade.

## What are the limits of the Google Analytics MCP server?

Google's pages document four limits of the official server.

| Limit | What it means in practice |
| :-- | :-- |
| It runs where you run it | Google Cloud's list of Google-managed remote MCP servers, updated on 23 November 2026, has entries such as BigQuery and none for Google Analytics, so there is no Google-hosted address to paste into a chat app |
| Read-only unless you change it | Google's documentation page calls the server read-only. The newer README lists three write tools for annotations, custom dimensions and key events, which load only with the `--allow-write` flag and the edit scope |
| It reads Google Analytics | Spend from Meta Ads or orders from a shop system are outside its tools unless that data already sits in the property |
| The HTTP mode holds sign-ins in memory | The README tells you to run a single instance for that reason |

## Common mistakes when connecting Google Analytics to an AI assistant

| Mistake | Why it hurts | What to do instead |
| :-- | :-- | :-- |
| Adding the local server as a custom connector in Claude on the web | Claude calls custom connectors from Anthropic's cloud and cannot reach a program on your laptop | Use Claude Desktop or Claude Code, or deploy the HTTP mode |
| Writing `~` in the credentials path | Google notes that many MCP hosts do not expand shell variables in JSON files | Use the absolute path of the credentials file |
| Leaving `"command": "pipx"` when Claude Desktop cannot find it | Desktop apps often do not inherit your shell PATH | Use the absolute path that `which pipx` returns |

## Frequently asked questions

### Is there an official Google Analytics MCP server?

Yes. Google publishes the Google Analytics MCP server as open source under the Apache-2.0 licence, on GitHub and on PyPI as analytics-mcp. Google's developer documentation describes setup for Antigravity, Claude Desktop, Claude Code and Cursor. The server uses the Admin API and Data API with the read-only Analytics scope by default.

### Is the Google Analytics MCP server free?

The software is free and open source. You need a Google Cloud project with the Google Analytics Admin API and Data API enabled, and a login with the Viewer role on the property. Running it on your own computer adds no hosting. A Cloud Run deployment for the HTTP mode runs in your own Google Cloud account, under Google Cloud's pricing.

### Can ChatGPT connect to Google Analytics?

Only through a remote server, so Google's local setup does not qualify. The documented options are Google's server self-hosted in HTTP mode, a hosted connector such as Superscale AI that lists Google Analytics among the accounts it reads, or the GA4 BigQuery export read through Google's BigQuery MCP server, for which Google requires a ChatGPT Business subscription.

### Can the GA4 MCP server change my Analytics settings?

Not in its default mode. Google's documentation says the server handles read requests and cannot create, modify or delete configuration. The repository's README lists three write tools for annotations, custom dimensions and key events. They load only when you start the server with the allow-write flag and grant the Analytics edit scope, so a reporting setup never has them.

## Related reading

- [Google Search Console MCP: 4 ways to connect](https://www.ad-stack.ai/blog/google-search-console-mcp/)
- [ChatGPT MCP: how to add an MCP server](https://www.ad-stack.ai/blog/how-to-add-an-mcp-server-to-chatgpt/)
- [What is an MCP connector?](https://www.ad-stack.ai/blog/what-is-an-mcp-connector/)
- [Hosted vs self-hosted MCP](https://www.ad-stack.ai/blog/hosted-vs-self-hosted-mcp/)
- [The best MCP servers for marketing](https://www.ad-stack.ai/blog/best-mcp-servers-for-marketing/)
- [Marketing attribution models explained](https://www.ad-stack.ai/blog/marketing-attribution-models-explained/)

## Sources

- [Google for Developers: Try the Google Analytics MCP server](https://developers.google.com/analytics/devguides/MCP), last updated 10 November 2026
- [GitHub: googleanalytics/google-analytics-mcp, README](https://github.com/googleanalytics/google-analytics-mcp)
- [Google Cloud: supported products for Google and Google Cloud MCP servers](https://docs.cloud.google.com/mcp/supported-products), last updated 23 November 2026
- [Google Cloud: Configure MCP in an AI application](https://docs.cloud.google.com/mcp/configure-mcp-ai-application)
- [Google Cloud: Use the BigQuery MCP server](https://docs.cloud.google.com/bigquery/docs/use-bigquery-mcp)
- [Analytics Help: BigQuery Export](https://support.google.com/analytics/answer/9358801)
- [Analytics Help: Share and export reports](https://support.google.com/analytics/answer/9317657)
- [Anthropic: Get started with custom connectors using remote MCP](https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp)
- [OpenAI: Add custom MCP server](https://developers.openai.com/api/docs/guides/custom-mcp-server)
- [OpenAI Help Center: Connecting custom MCP servers in ChatGPT](https://help.openai.com/en/articles/12584461-connecting-custom-mcp-servers-in-chatgpt)
- [Model Context Protocol: introduction](https://modelcontextprotocol.io/docs/getting-started/intro)
- [Superscale AI: features and prompts](https://superscale.ai/features), checked 24 November 2026
- [Superscale AI: how it works](https://superscale.ai/how-it-works)
- [Superscale AI: pricing](https://superscale.ai/pricing)
