NestDaddy

Mcp Google Analytics

io.github.leonardosepulvedat/mcp-google-analytics ยท v1.3.0

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

Connect Runs on your machine

Terminal
claude mcp add mcp-google-analytics -e GA_SERVICE_ACCOUNT_JSON=<GA_SERVICE_ACCOUNT_JSON> -e GA_PROPERTY_ID=<GA_PROPERTY_ID> -e GA_MEASUREMENT_ID=<GA_MEASUREMENT_ID> -e GA_API_SECRET=<GA_API_SECRET> -- npx -y [email protected]
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-google-analytics": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "GA_SERVICE_ACCOUNT_JSON": "<GA_SERVICE_ACCOUNT_JSON>",
        "GA_PROPERTY_ID": "<GA_PROPERTY_ID>",
        "GA_MEASUREMENT_ID": "<GA_MEASUREMENT_ID>",
        "GA_API_SECRET": "<GA_API_SECRET>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-google-analytics": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "GA_SERVICE_ACCOUNT_JSON": "<GA_SERVICE_ACCOUNT_JSON>",
        "GA_PROPERTY_ID": "<GA_PROPERTY_ID>",
        "GA_MEASUREMENT_ID": "<GA_MEASUREMENT_ID>",
        "GA_API_SECRET": "<GA_API_SECRET>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "mcp-google-analytics": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "GA_SERVICE_ACCOUNT_JSON": "<GA_SERVICE_ACCOUNT_JSON>",
        "GA_PROPERTY_ID": "<GA_PROPERTY_ID>",
        "GA_MEASUREMENT_ID": "<GA_MEASUREMENT_ID>",
        "GA_API_SECRET": "<GA_API_SECRET>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
GA_SERVICE_ACCOUNT_JSON
Optional, secret
Service account JSON for reading reports: file path or inline JSON (needed for read tools)
GA_PROPERTY_ID
Optional
Numeric GA4 property ID, e.g. 123456789 (needed for read tools)
GA_MEASUREMENT_ID
Optional
Measurement ID of the data stream, e.g. G-XXXXXXXXXX (needed for event-sending tools)
GA_API_SECRET
Optional, secret
Measurement Protocol API secret (needed for event-sending tools)

Details

Package[email protected] (NPM, stdio)
First published21 Aug 2026
Last updated21 Aug 2026
Registry nameio.github.leonardosepulvedat/mcp-google-analytics

More data and analytics servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.