Google Analytics MCP server
LiveGA4 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
https://toolcargo.com/mcp/google-analyticsClaude Code
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.
Tools
| Tool | What it does | Access |
|---|---|---|
list_propertiesList GA4 properties | The Google Analytics 4 properties this connected Google account can read. | Read-only |
traffic_overviewTraffic overview | Sessions, active users, views and engagement rate for a GA4 property over a period ending yesterday. | Read-only |
top_pagesTop pages | The pages with the most views in the period, with sessions and users. | Read-only |
traffic_sourcesTraffic 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 Code | API key header | Documented, not yet tested | This endpoint has not yet been tested in this client. See the setup guide. |
| Claude (claude.ai) | OAuth sign-in | Documented, not yet tested | This endpoint has not yet been tested in this client. See the setup guide. |
| Cursor | API key header | Documented, not yet tested | This endpoint has not yet been tested in this client. See the setup guide. |
| VS Code (Copilot agent mode) | API key header | Documented, not yet tested | This endpoint has not yet been tested in this client. See the setup guide. |
| ChatGPT (developer mode) | OAuth sign-in | Documented, not yet tested | This endpoint has not yet been tested in this client. See the setup guide. |
| MCP Inspector | API key header | Documented, not yet tested | This endpoint has not yet been tested in this client. See the setup guide. |
Practical workflows
More in Analytics
Pricing
Included with Site Audit. Each report counts as one Site Audit call; listing properties is not counted.
Free
$0Try hosted tools with a shared monthly allowance.
50 shared calls/month
Pro
$12/moProposed 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/moProposed larger shared allowance; see checkout status on the pricing page.
20,000 shared calls/month