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.
We read the source, 1 d ago · rules 995398eba69f
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.
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.
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.
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.
claude mcp add ga4 -e 'GA4_PROPERTY_ID=<GA4_PROPERTY_ID>' -e 'GOOGLE_APPLICATION_CREDENTIALS=<GOOGLE_APPLICATION_CREDENTIALS>' -- npx -y mcp-ga4
{
"mcpServers": {
"ga4": {
"command": "npx",
"args": [
"-y",
"mcp-ga4"
],
"env": {
"GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>",
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
}
}
}
}
[mcp_servers.ga4]
command = "npx"
args = ["-y", "mcp-ga4"]
env = { GA4_PROPERTY_ID = "<GA4_PROPERTY_ID>", GOOGLE_APPLICATION_CREDENTIALS = "<GOOGLE_APPLICATION_CREDENTIALS>" }
{
"mcpServers": {
"ga4": {
"command": "npx",
"args": [
"-y",
"mcp-ga4"
],
"env": {
"GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>",
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
}
}
}
}
{
"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.
MCP server for Google Analytics 4 — reports, realtime data, and admin
Manage GA4 properties, data streams, conversions, and run reports via Admin & Data APIs.
Hosted, read-only Google Analytics 4 MCP: reports, period comparisons, realtime, custom fields.
Google Analytics 4 MCP: reports, realtime, funnels, pivots, metadata, admin lists. 17 tools.
Google Analytics 4: reports, traffic sources, landing pages, events, realtime (read-only).
Free, read-only Google Analytics 4: reports, funnels, realtime. Sign in with Google, no GCP setup.
Google Analytics MCP Pack
Google Analytics 4 MCP server: 27 read tools, no write tools.
Answers built from our own checks of this server.