Tools catalog / Google Analytics MCP
Google Analytics MCP

GA4 reports in Claude, ChatGPT and Cursor on one key, with one Google sign-in

Google publishes its own Google Analytics MCP server, which runs on your computer with Python and Google Cloud credentials. SingleBrain Gateway is a hosted Model Context Protocol (MCP) server: after one Google sign-in, Claude, ChatGPT, Cursor, VS Code and Codex can run GA4 reports on sessions, users and conversions. Read-only, free to start, no charge per call.

ClaudeChatGPTCursorClaude CodeCodexVS Code
Ask your agent

“How many sessions did we get last week, by channel?”

List Analytics propertiesSee which Google Analytics properties your account can read.
Analytics reportTraffic, users and conversions for a property over a date range.
✓ Runs on your own Google Analytics account, no charge per call

The facts

Connector address
https://gateway.singlebrain.com/mcp
Google Analytics account needed
Yes, your own. Connect it once with a Google sign-in. Your assistant sees only the GA4 properties that login can already read
Sign-in
Your SingleBrain account: a connector sign-in for claude.ai and ChatGPT, a one-time device sign-in for local assistants
Google access
Read-only (the analytics.readonly scope). The same Google connection covers Search Console
Tools
2 for GA4, both read-only, plus 2 for Search Console on the same sign-in
Price
Free to start. No charge per call: these tools run on your own Google account
Per report
Up to 10 metrics, 9 dimensions and 5 filters. Up to 1,000 rows a call, and your assistant pages through the rest
Dates
Exact days, or today, yesterday and "30daysAgo" style ranges
Works with
claude.ai, ChatGPT, Claude Code, Codex, Cursor, VS Code
Last verified
November 20, 2026

How do I connect Google Analytics to Claude, ChatGPT or Cursor?

Pick your assistant. Each one takes a single line.

Claude claude.ai and Claude Desktop

Add a custom connector and paste this address. Sign in to SingleBrain when Claude asks. Then connect Google, the step below, and your assistant can use Google Analytics with the rest of your Gateway tools.

Hosted connector (claude.ai, ChatGPT):
https://gateway.singlebrain.com/mcp

ChatGPT

Turn on Developer mode in ChatGPT's settings, add this address as a custom MCP server with OAuth and sign in to SingleBrain. ChatGPT only offers custom connectors on some plans (Verified Nov 2026), so check yours first.

Hosted connector (claude.ai, ChatGPT):
https://gateway.singlebrain.com/mcp

Claude Code

Run this command. It adds SingleBrain for your user. In a new session, run /mcp, pick singlebrain and choose Authenticate to sign in. Then ask how many sessions your site had last week to confirm the tools are there.

Claude Code:
claude mcp add --transport http singlebrain "https://gateway.singlebrain.com/mcp?sg_template=sg-tool-google-analytics-and-search-console" --scope user

Codex

Run this line. It prints a sign-in link and a code. Once you approve in the browser, run npx -y singlebrain wait --client codex: it writes the SingleBrain entry into Codex's MCP config. The tools show up in a new session of Codex.

Codex:
npx -y singlebrain start --client codex --template sg-tool-google-analytics-and-search-console

Cursor

Run this line. It prints a sign-in link and a code. Once you approve in the browser, run npx -y singlebrain wait --client cursor: it writes the SingleBrain entry into Cursor's MCP config. The tools show up in a new session of Cursor.

Cursor:
npx -y singlebrain start --client cursor --template sg-tool-google-analytics-and-search-console

VS Code

Run this line. It prints a sign-in link and a code. Once you approve in the browser, run npx -y singlebrain wait --client vscode: it writes the SingleBrain entry into VS Code's MCP config. The tools show up in a new session of VS Code.

VS Code:
npx -y singlebrain start --client vscode --template sg-tool-google-analytics-and-search-console

Connect Google

Connect Google once from your SingleBrain account. If it isn't connected yet, your assistant's first Google Analytics call comes back with a link to connect it.

What your agent can do

ToolWhat it does
List Analytics propertieslist_ga4_propertiesThe GA4 properties your Google login can read, with the property id each report needs
Analytics reportrun_ga4_reportA standard report for one property: metrics like sessions, activeUsers, screenPageViews and conversions, by dimensions like date, channel, country or page path

No charge per call. Search Console tools on the same sign-in are on the Search Console MCP page.

Example asks

“How many sessions did we get last week, by channel?”

list_ga4_properties to find the property, then run_ga4_report with sessions by sessionDefaultChannelGroup.

Open in Claude (opens in a new tab)

“Which landing pages drove the most conversions in the last 30 days?”

run_ga4_report with conversions by pagePath from 30daysAgo to today.

Open in Claude (opens in a new tab)

“Compare organic sessions this month with the same month last year.”

run_ga4_report twice with a channel filter, one per date range. Your assistant does the comparison.

Open in Claude (opens in a new tab)

“Which countries grew fastest this quarter?”

run_ga4_report with activeUsers by country and month.

Open in Claude (opens in a new tab)

Google's own Google Analytics MCP server vs Gateway

Google publishes an official Google Analytics MCP server. It's free, read-only and covers more report types than Gateway. Here is how the two compare (Verified Nov 2026).

CompareGoing direct: Google's Analytics MCP serverSingleBrain Gateway
AccountViewer access to the GA4 propertyViewer access to the GA4 property, plus a SingleBrain account
How you connectPython 3.10 or later, pipx or uv, a Google Cloud project with the Analytics Admin and Data APIs turned on, and gcloud or service account credentials. The setup guide runs it on your computerOne hosted connector and a Google sign-in
What it can doStandard, realtime, funnel and conversions reports, property details, custom dimensions, Google Ads links and annotations. Read-onlyProperty list and standard reports. Read-only
PayingFreeFree to start, no charge per call
Your other toolsGoogle Analytics onlySearch Console on the same sign-in, DataForSEO, your HubSpot if connected, and more on the same key
Pick Google's server if you need realtime or funnel reports, or you're comfortable running Python with Google Cloud credentials.
Pick Gateway if you'd rather sign in with Google than set up a Cloud project, or you want GA4 next to Search Console and keyword data in one chat.

What Google Analytics offers was read on November 20, 2026.

Source: Google Analytics MCP guide, checked Nov 20, 2026.

Limits

  • It reads data only. It can't change GA4 settings, and it has no realtime or funnel reports.
  • One report takes up to 10 metrics and 9 dimensions, and returns up to 1,000 rows a call.
  • It sees only the GA4 properties your Google login can already read.
  • Metric and dimension names must be GA4 API names, like activeUsers. Your assistant picks them from your question.

Pairs well with Search Console and DataForSEO

GA4 shows what visitors did. Search Console shows which searches brought them, and DataForSEO shows what those searches are worth. On one Gateway connection your assistant can put it in one weekly report:

The steps
  1. run_ga4_report pulls sessions and conversions for the week.
  2. run_gsc_query adds the queries and pages behind the organic traffic.
  3. dataforseo_serp_google checks rankings for the queries that matter, at the price on the live price list.
Try it

“Write my weekly SEO report: traffic and conversions from GA4, top queries from Search Console, and where we rank now.”

Open in Claude (opens in a new tab)

This is the Weekly SEO report workflow.

Frequently asked questions

Does Google Analytics have an MCP server?

Yes. Google publishes a free, read-only Google Analytics MCP server that you run with Python and Google Cloud credentials (Verified Nov 2026). Gateway is a separate hosted connector with a Google sign-in. Source: Google's guide.

What is GA4 MCP?

A way for an assistant like Claude or ChatGPT to run Google Analytics 4 reports from a chat, over the Model Context Protocol. You ask a question, and the assistant picks the metrics, dimensions and dates.

Do I need a Google Cloud project?

Not with Gateway. You sign in with the Google account that can see your GA4 properties. Google's own server needs a Cloud project with two Analytics APIs turned on.

Can Claude change my Google Analytics settings?

No. Gateway's GA4 tools are read-only. Google's own server is read-only too.

What does it cost?

It is free to sign up, and GA4 calls have no charge per call because they run on your own Google account. Paid tools on the same key, like DataForSEO, show their price on the live price list.

Is Search Console included?

Yes. The same Google sign-in also connects Search Console. See the Search Console MCP page.

Can I use it in Cursor or VS Code?

Yes. Run npx -y singlebrain start --client cursor --template sg-tool-google-analytics-and-search-console, or use --client vscode. It prints a sign-in link and a code. Once you approve in the browser, npx -y singlebrain wait --client cursor writes the config for you.

Related

Analytics & Search Console in the tools catalog · For agents: this page as Markdown