Google Analytics MCP Server
CommunityContributed 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
{
"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."
}
]
}
}Categories
Tags
Supported AI Clients
The Google Analytics MCP server works with all MCP-compatible AI clients through McpMux:
Related MCP Servers
Grafana (Docker)
Search dashboards, query Prometheus and Loki datasources, manage alerts, and investigate incidents on any Grafana instance (self-hosted or Grafana Cloud) via Docker.
Sentry (Local)
Query and manage Sentry issues, errors, performance data, and project settings locally via npx. Supports AI-powered search with your own LLM API key.
Sentry (Remote)
Query and manage Sentry issues, errors, performance data, and project settings through Sentry's hosted remote MCP server. No local setup required.
Sentry (Self-Hosted)
Query and manage issues, errors, and performance data on your self-hosted Sentry instance. Runs locally via npx with a custom Sentry host.
Axiom (npx)
Query and manage Axiom datasets for log analysis and observability. Execute APL queries, list datasets, and ingest events.
Better Stack
Monitor uptime, manage incidents and on-call schedules, query logs and metrics, and analyze errors through Better Stack's hosted remote MCP server. Authenticates via OAuth in your browser, no local setup or token required.
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.