Google Analytics MCP
ListedConnect Google Analytics 4 to Claude, Cursor, and other MCP clients. Query GA4 traffic, user behavior, and conversion data using natural language. Supports 200+ dimensions and metrics via the GA Data API.
Install on your platform
Showing MCP (generic).
- 1
Use the upstream install command
terminal$ pip install google-analytics-mcp
What we know about this skill
Publisher
surendranb
Taken from the source listing. We haven't verified who controls this account.
Install target
Pinned to 791103c9
Installs fetch a stored snapshot of that commit, so the code can't change after the fact.
Automated safety checks
We could not read this skill's source, so none of the checks below were run.
About this skill
What it does
The Google Analytics MCP Server connects Google Analytics 4 (GA4) data to AI agents, enabling them to analyze website traffic, user behavior, and performance. It provides analysis-ready outputs through server-side aggregation, automatically discovers the schema for each GA4 property, and uses context-safe defaults to handle large datasets efficiently. This allows agents to focus on answering questions rather than data wrangling.
When to use it
- Performance Analysis: An agent needs to analyze website traffic trends over a specific period to identify potential issues or opportunities.
- User Behavior Insights: An agent is tasked with understanding how users interact with key pages on a website, including bounce rates and conversion paths.
- Campaign Effectiveness: An agent requires data to assess the performance of marketing campaigns and their impact on website traffic.
- Automated Reporting: Automate the generation of regular reports summarizing key GA4 metrics for stakeholders.
Key capabilities
- Schema discovery for GA4 properties (dimensions & metrics)
- Server-side aggregation of data
- Context-safe defaults for handling large datasets
- Compatibility with various agent runtimes (Claude, ChatGPT, Cursor, Windsurf, and custom hosts)
Example prompts
- "What was the total number of users on our website last week?"
- "Show me a breakdown of traffic sources for the month of July."
- “Compare conversion rates between mobile and desktop users.”
- "Identify pages with high bounce rates and suggest potential improvements."
Tips & gotchas
A Google Analytics 4 property with data is required. You'll also need to create a service account with access to the Google Analytics Data API and your GA4 property.
Requirements
Required binaries
Environment variables
This skill expects these to be set in its environment — it will have access to their values.