MC

mcp google analytics MCP Server

Published by leonardosepulvedat

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

CATEGORY
More to explore
DEPLOYMENT
Local package
LATEST SOURCE VERSION
1.3.0
SOURCE CHECKED
Nov 30, 2026

Quick answers

How do I add mcp google analytics MCP Server to Claude Code, Cursor or Codex?

Claude CodeCommand

Run this in your terminal:

claude mcp add --env 'GA_SERVICE_ACCOUNT_JSON=<your-ga-service-account-json>' --env 'GA_API_SECRET=<your-ga-api-secret>' --transport stdio google-analytics -- npx -y mcp-google-analytics

Replace the <your-…> placeholder with your own GA_SERVICE_ACCOUNT_JSON and GA_API_SECRET.

Claude Code setup guide
CursorConfig

Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:

{
  "mcpServers": {
    "google-analytics": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-analytics"
      ],
      "env": {
        "GA_SERVICE_ACCOUNT_JSON": "<your-ga-service-account-json>",
        "GA_API_SECRET": "<your-ga-api-secret>"
      }
    }
  }
}

Replace the <your-…> placeholder with your own GA_SERVICE_ACCOUNT_JSON and GA_API_SECRET.

Cursor setup guide
CodexCommand

Run this in your terminal:

codex mcp add google-analytics --env 'GA_SERVICE_ACCOUNT_JSON=<your-ga-service-account-json>' --env 'GA_API_SECRET=<your-ga-api-secret>' -- npx -y mcp-google-analytics

Replace the <your-…> placeholder with your own GA_SERVICE_ACCOUNT_JSON and GA_API_SECRET.

Codex setup guide
VS CodeConfig

Add this to .mcp.json at the root of your workspace:

{
  "mcpServers": {
    "google-analytics": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-analytics"
      ],
      "env": {
        "GA_SERVICE_ACCOUNT_JSON": "<your-ga-service-account-json>",
        "GA_API_SECRET": "<your-ga-api-secret>"
      }
    }
  }
}

Replace the <your-…> placeholder with your own GA_SERVICE_ACCOUNT_JSON and GA_API_SECRET.

VS Code setup guide
Claude DesktopConfig

Add this to claude_desktop_config.json, then restart Claude:

{
  "mcpServers": {
    "google-analytics": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-analytics"
      ],
      "env": {
        "GA_SERVICE_ACCOUNT_JSON": "<your-ga-service-account-json>",
        "GA_API_SECRET": "<your-ga-api-secret>"
      }
    }
  }
}

Replace the <your-…> placeholder with your own GA_SERVICE_ACCOUNT_JSON and GA_API_SECRET.

Claude Desktop setup guide
ChatGPTNot available

ChatGPT can't add it from its published details: it connects from the cloud and needs a public address, and this server runs on your computer.

ChatGPT setup guide

Which apps can use mcp google analytics MCP Server?

Claude Code, Cursor, Codex, VS Code and Claude Desktop can add it from its published details. ChatGPT can't: it connects from the cloud and needs a public address, and this server runs on your computer.

Does mcp google analytics MCP Server need an API key?

To run it on your computer, set GA_SERVICE_ACCOUNT_JSON and GA_API_SECRET first, with values from the publisher.

Is mcp google analytics MCP Server official?

It's published by leonardosepulvedat. The Official MCP Registry accepts names under io.github.leonardosepulvedat only from the GitHub account or organisation leonardosepulvedat. We last checked its listing on Nov 30, 2026. A listing shows where a server comes from; it isn't a security review.

Published packages

npm · mcp-google-analytics@1.3.0
View source repository