Google Analytics MCP

by surendranb• 244•• Scanned•Claim this listing•Request removal
Research & Analysisai agentai agentsanalyticsclaudeclaude 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 Code · Terminal
claude mcp add google-analytics-mcp -- uvx google-analytics-mcp
Claude Desktop · claude_desktop_config.json
{
  "mcpServers": {
    "google-analytics-mcp": {
      "command": "uvx",
      "args": [
        "google-analytics-mcp"
      ]
    }
  }
}
Cursor · .cursor/mcp.json
{
  "mcpServers": {
    "google-analytics-mcp": {
      "command": "uvx",
      "args": [
        "google-analytics-mcp"
      ]
    }
  }
}
VS Code · Terminal
code --add-mcp '{"name":"google-analytics-mcp","command":"uvx","args":["google-analytics-mcp"]}'

What Google Analytics MCP can touch

  • Run shell commandsNot seen in this scan
  • Run dynamic codeNot seen in this scan
  • Read or write filesNot seen in this scan
  • Read environment and secretsFound in the code by our scan
  • Control a web browserNot seen in this scan
  • Connect to databasesNot seen in this scan
  • Read or send messagesNot seen in this scan
  • Touch money or tradingNot seen in this scan
  • 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

  1. Pin the version you reviewed instead of always installing the latest release.
  2. 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_updates

    Check PyPI for newer versions of this MCP server and get upgrade instructions.

  • list_properties

    List all GA4 properties associated with an account.

  • search_schema

    Search 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_schema

    Returns 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_categories

    List 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_categories

    List 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_category

    Return 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_category

    Return 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_data

    Retrieve 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_guide

    Returns 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_skills

    Fetch 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_access

    Interactively 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

ga4.builditwithai.xyz

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

ai-agentai-agentsanalyticsclaudeclaude-mcpcursorga4gemini-cli-extensiongemini-extensiongoogle-analyticsmcpmcp-servermodel-context-protocol

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.

NameStarsLicenceLast updatedScan
Google Analytics MCP (this page)
surendranb
244MITOct 28, 2026Scanned, no flagged issues
Worldmonitor
koala73
90kAGPL-3.0Nov 1, 2026Scanned, no flagged issues
GPT Researcher
assafelovic
30kApache-2.0Oct 10, 2026Scanned, no flagged issues
Auto Claude Code Research In Sleep
wanshuiyin
18kMITNov 1, 2026Scanned, no flagged issues
Deep Research
u14app
4.7kMITJun 18, 2026Scanned, no flagged issues
MCP Server Chart
antvis
4.4kMITAug 27, 2026Scanned, no flagged issues