Install Google Analytics in Claude Code
claude mcp add surendranb-google-analytics -e GOOGLE_APPLICATION_CREDENTIALS=... -e GA4_PROPERTY_ID=... -- uvx google-analytics-mcp{
"mcpServers": {
"surendranb-google-analytics": {
"command": "uvx",
"args": [
"google-analytics-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "...",
"GA4_PROPERTY_ID": "..."
}
}
}
}Replace each ... with your own value.
Frequently asked questions
What does the Google Analytics MCP server do?
GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.
Is the Google Analytics MCP server free?
The server is free, but you will likely need an account. The server itself is free, but it connects to a service that needs an account or API key, which may have paid tiers. Check the provider for current pricing.
Does Google Analytics run locally or remotely?
Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.
How do I add Google Analytics to Claude Code?
Run: claude mcp add surendranb-google-analytics -e GOOGLE_APPLICATION_CREDENTIALS=... -e GA4_PROPERTY_ID=... -- uvx google-analytics-mcp
More marketing MCP servers
View allGoogle Tag Manager
stape-io/google-tag-manager-mcp-server
Interface to the Google Tag Manager API.
Osp Marketing Tools
open-strategy-partners/osp_marketing_tools
Marketing tools from Open Strategy Partners: writing style, editing codes and product marketing value map creation.
Google Analytics
leonardosepulvedat/mcp-google-analytics
GA4 MCP that reads AND writes: reports, funnels, audits, and server-side events. 26 tools.
AdLoop
kLOsk/adloop
Google Ads, Reddit Ads, GA4 and Tag Manager in your AI client, with a preview before every change.
Linkbreakers
linkbreakers-com/agent-skills
QR-driven customer-journey platform for tracked QR codes, short links, and analytics.
Facebook Ads
gomarble-ai/facebook-ads-mcp-server
MCP server acting as an interface to the Facebook Ads, enabling programmatic access to Facebook Ads data and management features.