About Google Analytics
Google Analytics is an MCP server published by surendranb in the Developer Tools category: 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. Conduid read 12 tools from its source: check_for_updates, get_dimensions_by_category, get_ga4_data, get_metrics_by_category, get_property_schema, get_troubleshooting_guide and 6 more. It is published to PyPI as google-analytics-mcp and runs with uvx.
The repository has 242 stars and 47 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v2.11.3 (18 Aug 2026). It follows v2.11.2 (18 Aug 2026), and the 5 most recent releases go back to v2.10.0 (9 Aug 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include devtools.
Install
uvx google-analytics-mcppip install google-analytics-mcpgit clone https://github.com/surendranb/google-analytics-mcpTools (12)
check_for_updatesChecks PyPI for a newer release and returns upgrade instructions.get_dimensions_by_categoryReturns all dimensions in a category with API names and descriptions.| Parameter | Type | Description |
|---|---|---|
| category | any | str, required |
get_ga4_dataRuns multi-dimensional GA4 reports with automated metric totals and server-side aggregation.| Parameter | Type | Description |
|---|---|---|
| date_range_end | any | str |
| date_range_start | any | str |
| dimension_filter | any | dict |
| dimensions | any | list |
| enable_aggregation | any | bool |
| estimate_only | any | bool |
| intent | any | str |
| limit | any | int |
| metrics | any | list |
| proceed_with_large_dataset | any | bool |
get_metrics_by_categoryReturns all metrics in a category with API names and descriptions.| Parameter | Type | Description |
|---|---|---|
| category | any | str, required |
get_property_schemaReturns the full dimension and metric schema for the configured property (large; prefer `search_schema`).get_troubleshooting_guideReturns an in-server troubleshooting guide for setup, IAM/403, or schema errors.| Parameter | Type | Description |
|---|---|---|
| iam | any | |
| schema | any | |
| setup | any | |
| topic | any |
list_dimension_categoriesLists dimension categories with counts. First step of category browsing.list_metric_categoriesLists metric categories with counts. First step of category browsing.list_propertiesLists GA4 properties. When `GA4_PROPERTY_ID` is set, returns that property.| Parameter | Type | Description |
|---|---|---|
| account_id | any | str, optional |
search_schemaRanks dimensions and metrics by relevance for a keyword (up to 10). Use before pulling data.| Parameter | Type | Description |
|---|---|---|
| keyword | any | str, required |
search_skillsFetches analytical recipes and how-to guides (traffic diagnosis, attribution, ecommerce, AI referrals, bot detection).| Parameter | Type | Description |
|---|---|---|
| query | any | str, required |
setup_ga4_accessInteractively fixes a broken setup (property ID, credentials, access) and re-initializes without a restart.Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 501 words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 16 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdioga4_mcp/server.py:113
- Starts other programs
- 2 callsga4_mcp/telemetry.py:253, npm/bin/index.js:12
- Outbound network calls
- 5 callsga4_mcp/coordinator.py:262, ga4_mcp/telemetry.py:624, ga4_mcp/tools/skills.py:25
- Writes or deletes files
- 7 callsga4_mcp/telemetry.py:69, ga4_mcp/telemetry.py:75, ga4_mcp/telemetry.py:109
- Lockfile
- uv.lock
Pattern matches on the source text of 16 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 501 words, fetched a month ago. The original in the repository is authoritative.
Read full README