Google Analytics MCP
Google Analytics 4 data to AI agents, agentic workflows, and MCP clients. Give agents analysis-ready access to website traffic, user behavior, and performance data with schema discovery, server-side aggregation, and safe defaults that reduce data wrangling.
Google Analytics MCP is an open-source mcp server by surendranb, written mainly in Python, with 244 GitHub stars and the MIT license. Its code was last updated Oct 28, 2026. The latest PyPI release is google-analytics-mcp 2.11.9, published Nov 14, 2026, with 3,171 downloads last week.
Scan summary: scanned Nov 5, 2026 at commit bd63768. Seen able to read environment and secrets, connect to the internet. Scan policy
How to install Google Analytics MCP
Built from the start command in the project's README: uvx google-analytics-mcp. Check the README for required keys or settings.
claude mcp add google-analytics-mcp -- uvx google-analytics-mcp{
"mcpServers": {
"google-analytics-mcp": {
"command": "uvx",
"args": [
"google-analytics-mcp"
]
}
}
}{
"mcpServers": {
"google-analytics-mcp": {
"command": "uvx",
"args": [
"google-analytics-mcp"
]
}
}
}code --add-mcp '{"name":"google-analytics-mcp","command":"uvx","args":["google-analytics-mcp"]}'What Google Analytics MCP can touch
- Our checks did not find this. The tool may still do it.Run shell commandsNot seen in this scan
- Our checks did not find this. The tool may still do it.Run dynamic codeNot seen in this scan
- Our checks did not find this. The tool may still do it.Read or write filesNot seen in this scan
- Seen in this scan, either in the code or while it ran.Read environment and secretsFound in the code by our scan
- Our checks did not find this. The tool may still do it.Control a web browserNot seen in this scan
- Our checks did not find this. The tool may still do it.Connect to databasesNot seen in this scan
- Our checks did not find this. The tool may still do it.Read or send messagesNot seen in this scan
- Our checks did not find this. The tool may still do it.Touch money or tradingNot seen in this scan
- Seen in this scan, either in the code or while it ran.Connect to the internetContacted ga4.builditwithai.xyz
"Not seen" means our checks did not find it, and the tool may still do it. Covers commit bd63768, Nov 5, 2026. See the scan policy.
Before you install Google Analytics MCP
AgenticMart scanned Google Analytics MCP on Nov 5, 2026 with automated checks for hidden code, known-malicious packages, leaked secrets and vulnerable dependencies. The result covers one commit under our scan policy, so review what access you give it and check any advisories shown here.
What it can access
- An MCP server is a program your AI app starts and talks to. A local one runs with your user's permissions: it can see the files, environment variables and network your account can.
Before you install
- Pin the version you reviewed instead of always installing the latest release.
- Read the tool list or scripts before the first run, and keep approval prompts on for actions that write, send or delete.
- Maintained by surendranb on GitHub, 244 stars and 49 forks. Popularity is not proof of safety.
- Last code change: Oct 28, 2026.
- Open-source license: MIT.
Tools Google Analytics MCP exposes (12)
Listed by the server itself during our scan of commit bd63768.
check_for_updatesCheck PyPI for newer versions of this MCP server and get upgrade instructions.
list_propertiesList all GA4 properties associated with an account.
search_schemaSearch for a keyword across all dimensions and metrics for this property. Returns a ranked list of up to 10 matching fields scored by relevance. Returns: {"top_results": {"DIMENSION: api_name": score, "METRIC: api_name": score, ...}} Use this when you have a concept ("engagement",
get_property_schemaReturns the complete schema for the configured GA4 property, including all available dimensions and metrics (standard and custom). Warning: This can be a very large object (10k+ tokens). Use search_schema for most discovery tasks.
list_dimension_categoriesList all dimension categories for this GA4 property, with a count of dimensions in each category. Returns: {"dimension_categories": {"Category Name": count, ...}} Use this as the first step in dimension exploration — browse categories, then call get_dimensions_by_category with
list_metric_categoriesList all metric categories for this GA4 property, with a count of metrics in each category. Returns: {"metric_categories": {"Category Name": count, ...}} Use this as the first step in metric exploration — browse categories, then call get_metrics_by_category with the name that
get_dimensions_by_categoryReturn all dimensions in a specific category with their API names and descriptions. Returns: {"dimension_api_name": "description", ...} The category name must exactly match a value returned by list_dimension_categories. Use search_schema instead if you already have a keyword — it
get_metrics_by_categoryReturn all metrics in a specific category with their API names and descriptions. Returns: {"metric_api_name": "description", ...} The category name must exactly match a value returned by list_metric_categories. Use search_schema instead if you already have a keyword — it is faster
get_ga4_dataRetrieve GA4 data with built-in intelligence for better and safer results. Returns on success: {"data": [...], "metadata": {...}, "_skills_tip": "..."}. For multi-row pulls (a time series like ['date'], or any breakdown) the result also carries "totals": {metric: value} — GA4 s
get_troubleshooting_guideReturns the troubleshooting/setup guide for a topic, served from inside the server (no network needed). Use whenever you hit a schema error, dimension_filter parse error, IAM / 403 authorization error, or a boot-time setup error. Args: topic: One of "setup", "iam", or "
search_skillsFetch analytical recipes and how-to guides from the GA4 skills library. Skills are domain-specific playbooks for common GA4 analysis patterns — exact dimensions, metrics, filters, and interpretation logic for each use case. Call this BEFORE querying get_ga4_data for any domain-spec
setup_ga4_accessInteractively fix a broken GA4 MCP setup (missing property ID, missing or expired credentials, or missing GA4 access) by asking the user for the needed input through the client, then re-initializing without a restart. Call this whenever a configuration or authentication error is rep
Hosts it contacted while running
Google Analytics MCP is an open-source mcp server by surendranb, written mainly in Python. Google Analytics 4 data to AI agents, agentic workflows, and MCP clients. Give agents analysis-ready access to website traffic, user behavior, and performance data with schema discovery, server-side aggregation, and safe defaults that reduce data wrangling.
At a glance
- Stars
- 244
- Forks
- 49
- Language
- Python
- License
- MIT
- Created
- May 2025
- Last update
- Oct 28, 2026
- Type
- MCP Server
- Price
- Free
Topics
Questions about Google Analytics MCP
What is Google Analytics MCP?
Google Analytics 4 data to AI agents, agentic workflows, and MCP clients. Give agents analysis-ready access to website traffic, user behavior, and performance data with schema discovery, server-side aggregation, and safe defaults that reduce data wrangling.
Who maintains Google Analytics MCP?
Google Analytics MCP is maintained by surendranb on GitHub (surendranb/google-analytics-mcp). AgenticMart lists it from public repository data.
Is Google Analytics MCP safe to use?
AgenticMart scanned Google Analytics MCP on Nov 5, 2026 with automated checks for hidden code, known-malicious packages, leaked secrets and vulnerable dependencies. The result covers one commit under our scan policy, so review what access you give it and check any advisories shown here.
What license does Google Analytics MCP use?
It is published under the MIT license.
Google Analytics MCP alternatives
View more →Similar mcp servers in Research & Analysis, ranked by GitHub stars. Compare licence, recent activity and scan status before you choose.
| Name | Stars | Licence | Last updated | Scan |
|---|---|---|---|---|
| Google Analytics MCP (this page) surendranb | 244 | MIT | Oct 28, 2026 | Scanned, no flagged issues |
| Worldmonitor koala73 | 90k | AGPL-3.0 | Nov 1, 2026 | Scanned, no flagged issues |
| GPT Researcher assafelovic | 30k | Apache-2.0 | Oct 10, 2026 | Scanned, no flagged issues |
| Auto Claude Code Research In Sleep wanshuiyin | 18k | MIT | Nov 1, 2026 | Scanned, no flagged issues |
| Deep Research u14app | 4.7k | MIT | Jun 18, 2026 | Scanned, no flagged issues |
| MCP Server Chart antvis | 4.4k | MIT | Aug 27, 2026 | Scanned, no flagged issues |