mcpbeat Sign in

Google Analytics 4 MCP Server

by getmcpads owner confirmed
local only

Google Analytics 4 runs on your own machine — the client starts it, so there is no endpoint to ping. 206 installs a week from npm.

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

The linked repository no longer exists on GitHub — it was deleted or made private.

Installs per day peak 248 · avg 31 · +40% w/w
a month agotoday
206
Installs / week
npm · @getmcpads/google-analytics-mcp-server
—
Stars
on GitHub
—
Last commit
5 releases in 90 days
—
License
language unknown

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

Put your own values in place of <GA4_CLIENT_ID> (OAuth client ID), <GA4_CLIENT_SECRET> (OAuth client secret), <GA4_REFRESH_TOKEN> (OAuth refresh token, analytics.readonly scope). The author’s registry entry marks them as required.

Optional settings from the registry entry, left out of the block above: GA4_PROPERTY_ID (Default GA4 property ID), GA4_PROPERTY_IDS (Comma-separated property IDs every tool is limited to. Optional in 2.x, required in 3.0.0).

What the code does

We have not read this server's code yet, 65 d ago · rules 3dff92dd89df

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.

Package points at a different repository get-mcp-ads/google-analytics-mcp-server
пакет @getmcpads/google-analytics-mcp-server ссылается на getmcpads-com/google-analytics-mcp-server

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

Alternatives to Google Analytics 4

same job, measured the same way
MCP Gsheets
by freema

MCP server for Google Sheets API — read, write, format, batch operations.

5 068 installs/wk local only
MCP Google Analytics
by leonardosepulvedat

GA4 MCP that reads AND writes: reports, funnels, audits, and server-side events. 26 tools.

1 860 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.

909 installs/wk local only
MCP Google Search Console
by crunchtools

Secure MCP server for Google Search Console analytics, sitemaps, and URL inspection

753 installs/wk local only
Ga4
by mharnett

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

753 installs/wk local only
GA4 + Google Search Console + Bing
by kkvlabs

Google Analytics 4 (GA4), Google Search Console (GSC) and Bing Webmaster Tools. Local, read only.

629 installs/wk local only
Google Sheets MCP
by a1-x-tech

MCP server for the Google Sheets API: read and write ranges, sheets, formatting, charts, sharing.

622 installs/wk local only
Gemini
by pavelguzenfeld

MCP server that exposes Google Gemini as tools for Claude Code

323 installs/wk local only

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 @getmcpads/google-analytics-mcp-server was installed 206 times last week.
Is Google Analytics 4 still maintained?
The linked repository no longer exists on GitHub — it was deleted or made private. We show this because it changes what you can expect: an unmaintained server may keep answering for months and then stop without warning.
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 @getmcpads/google-analytics-mcp-server straight from npm; nothing to host, nothing to sign up for.
How many people use Google Analytics 4?
The npm package @getmcpads/google-analytics-mcp-server was installed 206 times in the last week. Week over week that is +40%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.