Skip to content
ToolCargo

Google Analytics MCP server

Live

GA4 traffic, pages and sources, asked in plain language.

Connect the same Google account you use for Google Search Console, then ask for sessions, top pages, channels and a property list. Read-only: nothing is changed in Google Analytics.

Google Analytics is a hosted MCP server with 4 tools. The Claude Code command is on this page. Steps for Cursor and ChatGPT, and which clients we have tested, are in the client guides.

Connect / 4 tools

Server URL

streamable http
https://toolcargo.com/mcp/google-analytics

Claude Code

terminal
claude mcp add --transport http --scope user toolcargo-google-analytics https://toolcargo.com/mcp/google-analytics \
  --header "Authorization: Bearer YOUR_API_KEY"

Create a key in your dashboard. Other clients: setup guides.

What it helps you do

  • Sessions, users and views for a period
  • Top pages by views
  • Traffic grouped by channel and source

Built for: Marketers and agencies who already have GA4 on client sites.

Example requests

Weekly traffic

“With ToolCargo, traffic overview for GA4 property 123456789 over the last 28 days.”

Sessions, active users, views and engagement rate.

What pages work

“Top pages for that property last 28 days.”

Paths ranked by views, with sessions and users.

Where traffic comes from

“Traffic sources for that property.”

Channel and source with sessions.

Explore useful agent workflows ↗

Tools

ToolWhat it doesAccess
list_properties
List GA4 properties
The Google Analytics 4 properties this connected Google account can read.Read-only
traffic_overview
Traffic overview
Sessions, active users, views and engagement rate for a GA4 property over a period ending yesterday.Read-only
top_pages
Top pages
The pages with the most views in the period, with sessions and users.Read-only
traffic_sources
Traffic sources
Sessions and users grouped by default channel and source.Read-only

Requirements

  • • A Google account with access to a GA4 property.
  • • Connect Google Analytics once (read-only) on the Google Analytics page. Search Console uses the same Google account.
  • • While Google reviews the app, only invited test accounts can connect.

Limitations

  • • Read-only: nothing is changed in Google Analytics.
  • • Periods end yesterday. Totals cover the rows Google returns.
  • • Needs the analytics.readonly scope on ToolCargo's Google OAuth client. If connect fails on scope, the consent screen still needs that scope added.

Supported clients

“Tested” means we connected that client to this endpoint and ran a tool call ourselves. Recorded client-specific tests currently cover Site Audit. Other connectors use the documented setup until tested in that client.

Claude CodeAPI key headerDocumented, not yet testedThis endpoint has not yet been tested in this client. See the setup guide.
Claude (claude.ai)OAuth sign-inDocumented, not yet testedThis endpoint has not yet been tested in this client. See the setup guide.
CursorAPI key headerDocumented, not yet testedThis endpoint has not yet been tested in this client. See the setup guide.
VS Code (Copilot agent mode)API key headerDocumented, not yet testedThis endpoint has not yet been tested in this client. See the setup guide.
ChatGPT (developer mode)OAuth sign-inDocumented, not yet testedThis endpoint has not yet been tested in this client. See the setup guide.
MCP InspectorAPI key headerDocumented, not yet testedThis endpoint has not yet been tested in this client. See the setup guide.

Practical workflows

Pricing

Included with Site Audit. Each report counts as one Site Audit call; listing properties is not counted.

Free

$0

Try hosted tools with a shared monthly allowance.

50 shared calls/month

Pro

$12/mo

Proposed larger shared allowance; see checkout status on the pricing page.

5,000 shared calls/month

Proposed test price. See the pricing page for checkout status.

Agency

$39/mo

Proposed larger shared allowance; see checkout status on the pricing page.

20,000 shared calls/month

Full pricing and billing details