google-analytics-4-mcp
MCP server to connect AI with Google Analytics 4
Documentation
Google Analytics 4 MCP by Two Minute Reports
Ask questions about your website traffic and user behavior in plain English โ no GA4 exploration reports, no SQL.
GA4's interface is powerful but notoriously complex. This MCP server connects your Google Analytics 4 properties to your AI client so you can skip the exploration reports and just ask what you want to know.
> _"How many new users did we get last month and which channels drove the most?"_
>
> _"What are my top 10 landing pages by sessions in the last 30 days?"_
>
> _"Show me my conversion rate trend week over week for the last quarter."_
๐ฌ See It in Action
https://github.com/user-attachments/assets/096063ba-60b4-45cd-af8f-02bbf36c5704
> ๐ฅ _Can't see the video? Watch on YouTube โ_
Why Use This
GA4 is powerful, but building exploration reports, configuring dimensions and metrics, and navigating its notoriously steep learning curve turns simple questions into lengthy investigations. This MCP server cuts through all of that.
What you get:
- Instant website analytics โ ask about traffic, sessions, conversions, and user behavior without building GA4 exploration reports.
- No setup complexity โ no GA4 API credentials or service account setup required; connect through Two Minute Reports in minutes.
- Multi-property support โ analyze multiple GA4 properties and websites from a single conversation.
- Cross-platform context โ combine with 22+ other sources like Google Ads, HubSpot, and Shopify to connect traffic with revenue.
๐ Learn more about the Google Analytics 4 connector โ
Quick Start
Prerequisites
- A Two Minute Reports account (trial or paid) with your Google Analytics 4 account connected. Don't have one? Sign up free โ
- An AI client that supports MCP (e.g., Claude Pro/Team, ChatGPT Plus, or any MCP-compatible app).
Connection Guides
| AI Client | Guide |
|---|---|
| Claude.ai | How to connect on Claude โ |
| ChatGPT | How to connect on ChatGPT โ |
MCP Server URL (you'll need this during setup):
https://mcp.twominutereports.com/mcpWhat You Can Ask
Traffic & Sessions
How many sessions did we have last month vs the same month last year?Show me daily sessions for the last 30 days broken down by device type.Acquisition & Channels
Which channels drove the most new users last month?What is my organic search traffic trend over the last 6 months?Landing Page Performance
What are my top 20 landing pages by sessions this quarter?Which landing pages have the highest bounce rate this month?Conversions & Goals
What was my overall conversion rate last month and how does it compare to last quarter?Which traffic channels have the highest conversion rate this year?User Behavior
What is the average session duration by channel for the last 30 days?Which pages have the highest exit rate this month?Audience Insights
What are the top countries by sessions in the last 90 days?Show me my new vs returning user ratio week over week for the last 12 weeks.E-commerce (if applicable)
What was my e-commerce revenue last month by traffic source?Which product pages have the highest add-to-cart rate this quarter?TMR Google Analytics 4 MCP vs. Self-Hosted Alternatives
| Feature | TMR GA4 MCP | Self-Hosted |
|---|---|---|
| GA4 Data API access | โ Handled by TMR | โ Requires Google Cloud service account |
| OAuth authentication | โ Secure, one-click | โ Manual credential configuration |
| Multi-property support | โ All GA4 properties | โ ๏ธ Separate setup per property |
| AI client compatibility | โ Claude ยท ChatGPT | โ ๏ธ Varies by implementation |
| Natural language queries | โ Ask anything | โ Must write API queries or SQL |
| Maintenance & updates | โ Managed by TMR | โ Self-maintained |
| Cross-source reporting | โ 22+ connectors | โ GA4 data only |
Who This Is For
- Digital marketers who want quick, plain-English answers from GA4 without navigating the complex exploration interface.
- SEO and content teams tracking organic traffic, landing page performance, and user behavior.
- Growth teams monitoring conversion rates and funnel performance across channels.
- E-commerce managers correlating website traffic with sales and product page performance.
- Agencies managing multiple GA4 properties for clients who need fast, reliable reporting.
Security & Privacy
- OAuth 2.0 authentication โ sign in securely with your Google account.
- No data stored by the MCP server โ data flows directly from your sources through TMR to your AI assistant.
๐ Privacy Policy ยท ๐ Data Security ยท ๐ Terms of Service
Support
๐ง support@twominutereports.com ยท ๐ซ Submit a ticket
About Two Minute Reports
Two Minute Reports is a marketing data platform that connects 22+ data sources to Google Sheets, Looker Studio, and AI assistants. Built for agencies, marketers, and ecommerce brands.
๐ twominutereports.com ยท ๐ MCP Server
GA4 has all the answers โ now you can actually ask the questions. ๐
Frequently asked questions
What is google-analytics-4-mcp?
google-analytics-4-mcp is MCP server to connect AI with Google Analytics 4
How do I install google-analytics-4-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is google-analytics-4-mcp open source?
Yes โ it is hosted on GitHub at https://github.com/twominutereports/google-analytics-4-mcp.
Related MCP tools
Model Context Protocol Servers
Pre-indexed code knowledge graph, auto syncs on code changes, for Claude Code, Codex, Gemini, Cursor, OpenCode, AntiGravity, Kiro, CoPilot, and Hermes Agent โ fewer tokens, fewer tool calls, 100% local
an open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM
The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
The Open-Source Multimodal AI Agent Stack: Connecting Cutting-Edge AI Models and Agent Infra
Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory across sessions with a self-hosted knowledge graph engine.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP