G

Google Analytics 4

MCP server · by getmcpads

Data & Analytics npm v2.1.1

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

View source ↗ Website ↗ Generate config for multiple servers More servers

Install

registry version 2.1.1

npm
npx -y @getmcpads/google-analytics-mcp-server

Setup by client

Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.

claude_desktop_config.json

{
  "mcpServers": {
    "google-analytics": {
      "command": "npx",
      "args": [
        "-y",
        "@getmcpads/google-analytics-mcp-server"
      ],
      "env": {
        "GA4_CLIENT_ID": "<YOUR_GA4_CLIENT_ID>",
        "GA4_CLIENT_SECRET": "<YOUR_GA4_CLIENT_SECRET>",
        "GA4_REFRESH_TOKEN": "<YOUR_GA4_REFRESH_TOKEN>"
      }
    }
  }
}

Format verified against the official Claude Desktop docs ↗.

Environment variables

Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.

  • GA4_CLIENT_ID required — OAuth client ID.
  • GA4_CLIENT_SECRET required secret — OAuth client secret.
  • GA4_REFRESH_TOKEN required secret — OAuth refresh token, analytics.readonly scope.
  • 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.

GitHub

最近更新于 33 天前 · Apache-2.0 license

About this server

Google Analytics 4 MCP server Understand what happens after the click. Explore traffic, conversions, funnels and property configuration through a read only MCP server. Watch the film · What's new · Install · Tool reference · Try hosted getmcpads Play the 45 second film The…

Summary from the project README — github.com/get-mcp-ads/google-analytics-mcp-server

Distributed as npm, listed under Data & Analytics. Review our MCP security guide before granting access to real data.

Frequently asked questions

What does the Google Analytics 4 MCP server do?

Google Analytics 4 MCP server Understand what happens after the click. Explore traffic, conversions, funnels and property configuration through a read only MCP server. Watch the film · What's new · Install · Tool reference · Try hosted getmcpads Play the 45 second film The

How do I install Google Analytics 4?

Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.

Is Google Analytics 4 free to use?

The MCP server itself is free to install. The source is public on https://github.com/get-mcp-ads/google-analytics-mcp-server. Any third-party service it calls may require its own API key and account.

Which clients support Google Analytics 4?

Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.

Add this badge

Publish this server? Link back with a badge on your README or site — copy either snippet.

Listed on MCPNav

Markdown

[![Listed on MCPNav](https://mcpnav.net/badge/google-analytics.svg)](https://mcpnav.net/server/google-analytics/)

HTML

<a href="https://mcpnav.net/server/google-analytics/"><img src="https://mcpnav.net/badge/google-analytics.svg" alt="Listed on MCPNav" height="20"></a>