NestDaddy

Google Analytics Mcp

io.github.surendranb/google-analytics-mcp · v2.11.7

GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.

Connect Runs on your machine

Terminal
claude mcp add google-analytics-mcp -e GOOGLE_APPLICATION_CREDENTIALS=<GOOGLE_APPLICATION_CREDENTIALS> -e GA4_PROPERTY_ID=<GA4_PROPERTY_ID> -- uvx google-analytics-mcp==2.11.7
claude_desktop_config.json
{
  "mcpServers": {
    "google-analytics-mcp": {
      "command": "uvx",
      "args": [
        "google-analytics-mcp==2.11.7"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
        "GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "google-analytics-mcp": {
      "command": "uvx",
      "args": [
        "google-analytics-mcp==2.11.7"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
        "GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "google-analytics-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "google-analytics-mcp==2.11.7"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
        "GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>"
      }
    }
  }
}

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
GOOGLE_APPLICATION_CREDENTIALS
Required, secret
Absolute path to your Google Cloud service account JSON key with GA4 property access.
GA4_PROPERTY_ID
Required
Numeric GA4 Property ID to query, for example 123456789.

Details

Package[email protected] (PYPI, stdio)
First published28 Oct 2026
Last updated28 Oct 2026
Registry nameio.github.surendranb/google-analytics-mcp

More search and web servers See all

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