GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.
This Model Context Protocol (MCP) server provides Google Analytics 4 (GA4) capabilities for AI agents, including real-time query exploration, schema discovery, server-side metric aggregation, and analysis-ready defaults. It also supports audience insights, using GA4 data in a form intended for downstream agent analysis.
๐ ๏ธ Key Features
Real-time query exploration
Schema discovery
Metric aggregation (server-side)
Analysis-ready defaults
Audience insights
๐ Use Cases
Let AI agents explore GA4 queries in real time
Use discovered GA4 schemas to structure analytics requests
Aggregate GA4 metrics for analysis workflows
Generate audience insight outputs for agent-driven reporting
โก Developer Benefits
MCP integration for AI agents
Schema discovery to guide request construction
Aggregated metrics suitable for downstream analysis
โ ๏ธ Limitations
Focus is specifically on Google Analytics 4 (GA4) functionality
Model Context Protocol (MCP) server for Google Analytics 4: real-time query exploration, schema discovery, metric aggregation, and audience insights for AI agents.
Dynamically loads procedural skills and analytical guides from GitHub.
Markdown
skills_list
(none)
Lists all available live GA4 analytical skills.
JSON
๐ง Dynamic Skills & Guided Playbooks
This server ships with built-in analytical recipes that load dynamically from GitHub:
traffic-diagnosis: Step-by-step root cause analysis for sudden traffic drops.
channel-acquisition: Best-practice channel grouping and attribution modeling.
ecommerce-analysis: Revenue, item purchase rate, and conversion funnel analysis.
ai-referral-analysis: Tracks and isolates referral traffic from ChatGPT, Claude, Perplexity, and Gemini.
๐ Telemetry & Privacy
This package collects anonymous, non-PII diagnostic telemetry (command executions, latency, error codes) to improve tool reliability. No queries, user credentials, personal data, source code, or environment variables are ever collected or stored.
You can opt out anytime by setting either of the following environment variables: