McpMux
Back to Registry

Google Analytics MCP Server

Community

Contributed by Google Analytics

Query Google Analytics accounts, properties, and run core, realtime, and funnel reports through the Google Analytics MCP server.

About the Google Analytics MCP Server

The Google Analytics MCP server is a local (stdio) Model Context Protocol server available in the McpMux registry. Query Google Analytics accounts, properties, and run core, realtime, and funnel reports through the Google Analytics MCP server. This is a community-contributed MCP server by Google Analytics.

Install the Google Analytics MCP server with one click using McpMux. It works with Cursor, Claude Desktop, Claude Code, VS Code, ChatGPT, Windsurf, JetBrains, and any MCP-compatible AI client. This server requires OAuth authentication — McpMux securely stores your credentials with AES-256-GCM encryption.

Transport Configuration

Transport Configuration
{
  "type": "stdio",
  "command": "pipx",
  "args": [
    "run",
    "analytics-mcp"
  ],
  "env": {
    "GOOGLE_APPLICATION_CREDENTIALS": "${input:GOOGLE_APPLICATION_CREDENTIALS}",
    "GOOGLE_PROJECT_ID": "${input:GOOGLE_PROJECT_ID}",
    "GRPC_DNS_RESOLVER": "native"
  },
  "metadata": {
    "inputs": [
      {
        "id": "GOOGLE_APPLICATION_CREDENTIALS",
        "label": "Google Application Default Credentials (ADC) Path",
        "type": "file_path",
        "required": true,
        "secret": true,
        "placeholder": "~/.config/gcloud/application_default_credentials.json",
        "description": "Path to your application_default_credentials.json (generated via gcloud) or a Service Account JSON key file.",
        "obtain": {
          "url": "https://console.cloud.google.com/apis/credentials",
          "instructions": "1. Create an OAuth 2.0 Client ID (Desktop app) in Google Cloud Console and download the JSON.\n2. Run: gcloud auth application-default login --scopes=https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/cloud-platform --client-id-file=PATH_TO_CLIENT_JSON\n3. Provide the generated path (%APPDATA%\\gcloud\\application_default_credentials.json on Windows, or ~/.config/gcloud/application_default_credentials.json on macOS/Linux).",
          "button_label": "Open Cloud Console"
        }
      },
      {
        "id": "GOOGLE_PROJECT_ID",
        "label": "Google Cloud Project ID",
        "type": "text",
        "required": true,
        "description": "The Google Cloud Project ID where Google Analytics Admin and Data APIs are enabled."
      }
    ]
  }
}
Details
TransportLocal (stdio)
Hostinglocal
Authoauth
Capabilities
Tools

Categories

Tags

googleanalyticsga4reportsmetrics

Supported AI Clients

The Google Analytics MCP server works with all MCP-compatible AI clients through McpMux:

CursorClaude DesktopClaude CodeVS CodeChatGPTWindsurfJetBrainsZedClineGemini CLIAmazon Q

Related MCP Servers

Install Google Analytics with McpMux

One-click install from the McpMux desktop app. Auto-configures for Cursor, Claude, VS Code, ChatGPT, Windsurf, JetBrains, and any MCP-compatible client.