Back to Apps

Google Analytics 4 MCP
by surendranb
Directly connect Google Analytics 4 data to AI agents for analysis-ready access to traffic and user behavior.
0 stars
Works in:Gemini CLICursorVS Code Copilot
Exposes:Tools
What it does
Connects Google Analytics 4 (GA4) data to AI agents, enabling them to analyze website traffic, user behavior, and performance metrics autonomously. It provides live schema discovery and server-side aggregation to reduce data wrangling for the LLM.
Tools
get_ga4_data: Execute GA4 queries with dimensions, metrics, and filters.search_schema: Search across 200+ GA4 dimension and metric names.get_property_schema: Inspect available dimensions and metrics for a specific property.list_metric_categories: Browse User, Session, Revenue, and Event metrics.list_dimension_categories: Browse Geography, Traffic Source, and Device dimensions.get_troubleshooting_guide: Guide for IAM and filter syntax issues.
Installation
{
"mcpServers": {
"ga4-analytics": {
"command": "npx",
"args": ["-y", "google-analytics-mcp"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/absolute/path/to/service-account-key.json",
"GA4_PROPERTY_ID": "123456789"
}
}
}
}
Supported hosts
Claude, Gemini CLI, Cursor, VS Code, OpenClaw
Quick install
curl -fsSL https://ga4.builditwithai.xyz | bashInformation
- Pricing
- free
- Published
- 7/9/2026
- stars
- 0
Categories
Choose your AI client and follow the steps below.
Cursor
Add to .cursor/mcp.json using the npx command provided above.Gemini CLI
gemini extensions install github.com/surendranb/google-analytics-mcpClaude Desktop
{
"mcpServers": {
"ga4-analytics": {
"command": "npx",
"args": ["-y", "google-analytics-mcp"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/absolute/path/to/service-account-key.json",
"GA4_PROPERTY_ID": "123456789"
}
}
}
}






