mcpbeat Sign in

Google Analytics 4 MCP Server

local only

Google Analytics 4 runs on your own machine — the client starts it, so there is no endpoint to ping. 64 installs a week from npm. Last commit 2 Nov 2026.

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

Installs per day peak 16 · avg 5 · +83% w/w
a month agotoday
64
Installs / week
npm · @mindstone/mcp-server-google-analytics
14
Stars
2 open issues
2 Nov 2026
Last commit
2 releases in 90 days
—
License
TypeScript

What the code does

We read the source, 22 h ago · rules 995398eba69f

A tool parameter reaches a dangerous call

A value the model can set ends up inside a file or shell call. That is not a flaw by itself — for a terminal server it is the job — but it is where things go wrong when it is not.

A tool parameter reaches a file or shell call replace_workspace_document.document_id → connectors/pandadoc/src/tools/documents.ts:891
          fs.writeFileSync(outFd, pdfBuffer);
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.

Runs an external command connectors/office/src/index.ts:403
    const child = spawn(process.execPath, [script], {
  if (isUnder(resolvedAbs, sshDir)) return { hit: true, reason: '~/.ssh/** is sensitive' };
Page loads a third-party script connectors/office/src/addin/taskpane.html:10
  <script src="https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js"></script>
    const entries = fs.readdirSync(workspacePath, { withFileTypes: true });

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

A tool parameter here reaches a dangerous call

That is not a flaw by itself — but it is where things go wrong when it is not the job. We re-read this code on every release. Watch it and you hear from us the day another one appears.

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 mcp-server-google-analytics -e 'GOOGLE_APPLICATION_CREDENTIALS=<GOOGLE_APPLICATION_CREDENTIALS>' -- npx -y @mindstone/mcp-server-google-analytics
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server-google-analytics": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-google-analytics"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
      }
    }
  }
}
~/.codex/config.toml
[mcp_servers.mcp-server-google-analytics]
command = "npx"
args = ["-y", "@mindstone/mcp-server-google-analytics"]
env = { GOOGLE_APPLICATION_CREDENTIALS = "<GOOGLE_APPLICATION_CREDENTIALS>" }
.cursor/mcp.json
{
  "mcpServers": {
    "mcp-server-google-analytics": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-google-analytics"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "mcp-server-google-analytics": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-google-analytics"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
      }
    }
  }
}

Put your own value in place of <GOOGLE_APPLICATION_CREDENTIALS> (Absolute path to ADC or service-account JSON file). The author’s registry entry marks it as required.

Optional settings from the registry entry, left out of the block above: GA4_PROPERTY_ID (Default GA4 property ID (e.g. 123456789)).

Alternatives to Google Analytics 4

same job, measured the same way
Google Analytics
by codechap

MCP server for Google Analytics 4 — reports, realtime data, and admin

local only
Google Analytics 4
by getmcpads

Google Analytics 4 MCP server: 27 read tools, no write tools.

571 installs/wk local only
Google Analytics 4 MCP
by scalably

Google Analytics 4 MCP: reports, realtime, funnels, pivots, metadata, admin lists. 17 tools.

97 installs/wk local only
QueryAtlas
by queryatlas

Query selected Google and Bing analytics, search, and advertising reports through MCP.

answering
Cituna MCP
by cituna

AI visibility MCP server: how 7 AI engines cite your brand daily, with Google Search Console.

1 188 installs/wk answering
Youtube Video Analyzer
by ludmila-omlopes

MCP stdio server for analyzing YouTube videos with Google Gemini

57 installs/wk local only
Google Analytics 4
by stucchi

Manage GA4 properties, data streams, conversions, and run reports via Admin & Data APIs.

112 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 — questions

Answers built from our own checks of this server.

Why is there no uptime for Google Analytics 4?
Google Analytics 4 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 npm package @mindstone/mcp-server-google-analytics was installed 64 times last week.
How do I connect Google Analytics 4?
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 @mindstone/mcp-server-google-analytics straight from npm; nothing to host, nothing to sign up for.
How many people use Google Analytics 4?
The npm package @mindstone/mcp-server-google-analytics was installed 64 times in the last week. Week over week that is +83%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Google Analytics 4 open source?
We cannot say either way: written in TypeScript, 14 stars on GitHub and 2 open issues, but we could not determine the licence, and without one the code is not open source by default.