Install Google Analytics 4 in Claude Code
claude mcp add google-analytics-4 -e GA4_CLIENT_ID=... -e GA4_CLIENT_SECRET=... -e GA4_REFRESH_TOKEN=... -- npx -y @getmcpads/google-analytics-mcp-server{
"mcpServers": {
"google-analytics-4": {
"command": "npx",
"args": [
"-y",
"@getmcpads/google-analytics-mcp-server"
],
"env": {
"GA4_CLIENT_ID": "...",
"GA4_CLIENT_SECRET": "...",
"GA4_REFRESH_TOKEN": "..."
}
}
}
}Replace each ... with your own value.
Frequently asked questions
What does the Google Analytics 4 MCP server do?
Google Analytics 4 MCP server: 27 read tools, no write tools.
Is the Google Analytics 4 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 4 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 4 to Claude Code?
Run: claude mcp add google-analytics-4 -e GA4_CLIENT_ID=... -e GA4_CLIENT_SECRET=... -e GA4_REFRESH_TOKEN=... -- npx -y @getmcpads/google-analytics-mcp-server
More marketing MCP servers
View allUsertour
usertour/usertour
Official Usertour MCP Server for in-app onboarding: flows, checklists, surveys, and analytics.
Meta Ads Remote
pipeboard-co/meta-ads-mcp
Remote MCP server to interact with Meta Ads API - access, analyze, and manage Facebook, Instagram, and other Meta platforms advertising campaigns.
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.
AdLoop
kLOsk/adloop
Google Ads, Reddit Ads, GA4 and Tag Manager in your AI client, with a preview before every change.
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
surendranb/google-analytics-mcp
GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.