独立运营 · 不出售排名位置  · 我们怎么评估工具 →
Anclum 提交收录
D

dhawalshah/google-analytics-mcp

本站为独立目录,非该工具官网;下方信息取自其公开仓库。

A Model Context Protocol (MCP) server for Google Analytics 4. (原文为英文)

装之前:命令归属未核实,仅作参考展示 · 许可证 MIT

第一步(仅参考,归属未核实):git clone https://github.com/dhawalshah/google-analytics-mcp

更新 2026-09-22
在 GitHub 查看 ↗直链 · 无中转页

我们没有可直接复制的安装命令,也没有公开的远端端点,所以不出配置。上面那条命令仅供参考,不是我们能担保的可复制命令——编一条出来比不给更糟。 各客户端的接法 →

★ 数取值
0 ★ · dhawalshah/google-analytics-mcp · 取自 GitHub 搜索 API · (2026-11-19 20:00:48 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-11-18 · 最近见到 2026-11-20 · 共见到 3 次 · 被 3 个来源列出
评分构成
综合分 300 · 3 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 dhawalshah/google-analytics-mcp;我们收录于 2026-11-18;最近见到 2026-11-20。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
README 原文(英文,未翻译) · 在 GitHub 读完整 README →

# Google Analytics MCP

以下摘录自该仓库的 README(片段)

A Model Context Protocol (MCP) server for Google Analytics 4. Connect Claude (or any MCP-compatible AI client) directly to your GA4 properties to query traffic, analyse user behaviour, inspect events, run funnel analysis, and more — all in natural language.
The server speaks the MCP authorization spec (2025-06-18), so it works as a remote connector anywhere Claude supports custom MCP servers — claude.ai (personal), Claude Desktop, and Claude Teams. Add one URL, click "Connect", sign in with Google, done. For a Teams plan, the org owner adds the URL once and each member individually authenticates on first use.
## What you can do
### Property Management
List all accessible GA4 accounts and their properties
### Reporting & Analytics
Page views, active users, events, traffic sources, and device metrics
Run fully custom reports with any GA4 metric and dimension combination
Funnel analysis — track user drop-off across multi-step flows (experimental)
### Real-time & Discovery
Active users in the last 30 minutes (Realtime API)
List all valid dimensions and metrics for a property — useful for building custom reports
## How auth works
There are two modes. Pick one.
### Mode A — Local STDIO (one user, no server)
Use this if you only want it on your own machine. setup_local_auth.py runs the Google OAuth flow once and stores your token in ~/.config/google-analytics-mcp/token.json. Claude Desktop launches server.py as a subprocess. No Firestore, no Cloud Run, no public URL.
### Mode B — Remote HTTP server (Claude Teams, claude.ai, multi-user)
The MCP server is also an OAuth 2.1 authorization server. When Claude connects:
1. Claude discovers our metadata at /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server.
2. Claude registers itself via Dynamic Client Registration (POST /oauth/register).
3. Claude redirects the user to /oauth/authorize. We delegate identification to Google OAuth.
4. After Google login, we issue our own opaque bearer token to Claude — Google credentials never leave the server.
5. On each /mcp request Claude sends our bearer; we map it server-side to the right user's stored Google credentials and call the GA4 APIs.
The ?user=email query string from older versions is gone — there are no per-user URLs to copy around.
## Prerequisites
Python 3.10+
A Google Analytics 4 property
A Google Cloud project
## Step 1 — Set up Google Cloud
### 1a. Create a project and enable the GA4 APIs
1. Go to the Google Cloud Console.
2. Create or select a project.
3. APIs & Services → Library, enable both:
Google Analytics Data API
Google Analytics Admin API
### 1b. Create OAuth 2.0 credentials
1. APIs & Services → Credentials → Create Credentials → OAuth 2.0 Client ID.
2. Application type: Web application.
3. Add Authorized redirect URIs:
http://localhost:8080/auth/callback (local dev / setup_local_auth.py)
https://YOUR-CLOUD-RUN-URL/auth/callback (remote deployment — add after deploy)
4. Click Create, then Download JSON → save as client_secret.json in the project root (gitignored). You can also copy the Client ID / Client Secret straight into env vars.
### 1c. OAuth consent screen
1. APIs & Services → OAuth consent screen.
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[![Listed on Anclum](https://anclum.com/badge/listed.svg)](https://anclum.com/zh/s/dhawalshah-google-analytics-mcp/)
来源
awesome · https://github.com/dhawalshah/google-analytics-mcp
按领域浏览
MCP 服务
收录来源
3 个独立来源
收录于
今天

更多 MCP 服务器

全部 6,555 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引