mcpbeat Sign in

Google Analytics MCP Server

local only

Google Analytics MCP runs on your own machine — the client starts it, so there is no endpoint to ping. 1 398 installs a week from pypi. Last commit 1 Nov 2026.

GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.

Installs per day peak 1 221 · avg 327 · -52% w/w
a month agotoday
1 398
Installs / week
pypi · google-analytics-mcp
244
Stars
2 open issues
1 Nov 2026
Last commit
from GitHub
MIT
License
Python

What the code does

We read the source, 6 d ago · rules 995398eba69f

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

            or os.path.exists("/.dockerenv")):
            out = subprocess.check_output(

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add google-analytics-mcp -e 'GOOGLE_APPLICATION_CREDENTIALS=<GOOGLE_APPLICATION_CREDENTIALS>' -e 'GA4_PROPERTY_ID=<GA4_PROPERTY_ID>' -- uvx google-analytics-mcp
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "google-analytics-mcp": {
      "command": "uvx",
      "args": [
        "google-analytics-mcp"
      ],
      "env": {
        "GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
      }
    }
  }
}
~/.codex/config.toml
[mcp_servers.google-analytics-mcp]
command = "uvx"
args = ["google-analytics-mcp"]
env = { GOOGLE_APPLICATION_CREDENTIALS = "<GOOGLE_APPLICATION_CREDENTIALS>", GA4_PROPERTY_ID = "<GA4_PROPERTY_ID>" }
.cursor/mcp.json
{
  "mcpServers": {
    "google-analytics-mcp": {
      "command": "uvx",
      "args": [
        "google-analytics-mcp"
      ],
      "env": {
        "GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "google-analytics-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "google-analytics-mcp"
      ],
      "env": {
        "GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
      }
    }
  }
}

Put your own values in place of <GOOGLE_APPLICATION_CREDENTIALS> (Absolute path to your Google Cloud service account JSON key with GA4 property access), <GA4_PROPERTY_ID> (Numeric GA4 Property ID to query, for example 123456789). The author’s registry entry marks them as required.

Alternatives to Google Analytics MCP

same job, measured the same way
Google Search Console MCP Server
by conorbronsdon

Google Search Console for AI agents: search analytics, sitemaps, URL inspection.

58 installs/wk local only
Vosik Signals Google Analytics 4
by vosikkk

Read-only Google Analytics 4 MCP server for AI assistants.

answering
Google Analytics 4
by mindstone

Google Analytics 4 MCP server with reporting, schema discovery, and admin visibility tools

49 installs/wk local only
Samarth Gtm MCP
by samarthanalytics-sj

Google Tag Manager + read-only GA4 MCP server. Read-only by default, gated writes, audits.

169 installs/wk local only
MCP Veo
by acedatacloud

MCP server for Google Veo AI video generation

1 241 installs/wk answering
Cortexpad
by cortexpad

Google Keep-style notes app with an MCP server for AI agents to read/write notes.

answering
Gpc MCP Server
by muhammetali

Google Play Console MCP Server for AI coding agents

49 installs/wk local only
Geonode MCP Server
by geonode

Web data for agents. Extract web pages, crawl websites, discover URLs, and search the web.

16 tools answering

Google Analytics MCP — questions

Answers built from our own checks of this server.

Why is there no uptime for Google Analytics MCP?
Google Analytics MCP runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the pypi package google-analytics-mcp was installed 1 398 times last week.
How do I connect Google Analytics MCP?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls google-analytics-mcp straight from pypi; nothing to host, nothing to sign up for.
How many people use Google Analytics MCP?
The pypi package google-analytics-mcp was installed 1 398 times in the last week. Week over week that is -52%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Google Analytics MCP open source?
Yes — it is published under the MIT licence, written in Python, 244 stars on GitHub and 2 open issues. The source link is on this page, so you can read exactly what it does with your data before you connect it.