mcpbeat Sign in

Ga4 MCP Server

local only

Ga4 runs on your own machine — the client starts it, so there is no endpoint to ping. 165 installs a week from npm. Last commit 31 Oct 2026.

Google Analytics 4 MCP: reports, realtime data, custom dimensions, data streams.

Installs per day peak 144 · avg 28 · +174% w/w
a month agotoday
165
Installs / week
npm · mcp-ga4
0
Stars
0 open issues
31 Oct 2026
Last commit
3 releases in 90 days
MIT
License
TypeScript

What the code does

We read the source, 1 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.

Runs an external command src/setup.ts:209
  execFileSync(file, args, { stdio: ["ignore", "pipe", "pipe"], encoding: "utf8" });

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

Put your own values in place of <GA4_PROPERTY_ID> (GA4 property ID (numeric)), <GOOGLE_APPLICATION_CREDENTIALS> (Path to service account JSON credentials file). The author’s registry entry marks them as required.

Alternatives to Ga4

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 stucchi

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

112 installs/wk local only
QuerySail: Google Analytics
by querysail

Hosted, read-only Google Analytics 4 MCP: reports, period comparisons, realtime, custom fields.

answering
Google Analytics 4 MCP
by scalably

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

97 installs/wk local only
SEO Tools: Google Analytics 4
by antohins

Google Analytics 4: reports, traffic sources, landing pages, events, realtime (read-only).

60 installs/wk local only
Tag Pilot GA4
by tagpilot

Free, read-only Google Analytics 4: reports, funnels, realtime. Sign in with Google, no GCP setup.

829 installs/wk local only
Google_analytics
by pipeworx-io

Google Analytics MCP Pack

382 installs/wk 48 tools answering
Google Analytics 4
by getmcpads

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

571 installs/wk local only

Ga4 — questions

Answers built from our own checks of this server.

Why is there no uptime for Ga4?
Ga4 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 mcp-ga4 was installed 165 times last week.
How do I connect Ga4?
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 mcp-ga4 straight from npm; nothing to host, nothing to sign up for.
How many people use Ga4?
The npm package mcp-ga4 was installed 165 times in the last week. Week over week that is +174%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Ga4 open source?
Yes — it is published under the MIT licence, written in TypeScript and 0 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.