
stape-io/google-tag-manager-mcp-server 是从 https://github.com/stape-io/google-tag-manager-mcp-server. 导入的 MCP 服务器候选。
概览
stape-io/google-tag-manager-mcp-server 是从 https://github.com/stape-io/google-tag-manager-mcp-server. 导入的 MCP 服务器候选。
概述(AI 翻译)
这是一个通过MCP连接Google Tag Manager API的接口,有两种版本:内置Google OAuth的托管服务器,以及基于你自身凭证运行的本地CLI。
目录
- Google 标签管理器的 MCP 服务器
- 目录
- 仓库布局
- 安装
- Claude桌面
- 克劳德密码
- VS 代码
- GitHub Copilot
- 副驾驶CLI
- 光标
- 反重力
- ChatGPT
- 其他MCP客户端
- 故障排除
- 本地测试你的更改
- 更改为
packages/core或packages/cli - 对[[T2]的更改
- 1.搭建一个 Google Cloud OAuth 客户端
- 2.配置本地环境变量
- 3.启动服务器
- 4.将你的MCP客户端指向本地服务器
- 释放
- 发展
- 有用资源
- 开源
仓库布局
NPM Workspace,包含一个应用和两个已发布的软件包:
| 路径 | 包裹 | 它是什么 |
|---|---|---|
apps/worker |
(private) | 托管的Cloudflare Worker在gtm-mcp.stape.io:Google OAuth、审批流程、公共页面、会话移除。 |
packages/cli |
google-tag-manager-mcp-server |
npm包:通过stdio的本地MCP服务器,用你提供的凭证进行认证。 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MCP Server for Google Tag Manager
An interface to the Google Tag Manager API over MCP, in two flavours: a hosted server with Google OAuth built in, and a local CLI that runs on your own credentials.
Table of Contents
- MCP Server for Google Tag Manager
Repository layout
npm workspace with one app and two published packages:
| Path | Package | What it is |
|---|---|---|
apps/worker |
(private) | The hosted Cloudflare Worker at gtm-mcp.stape.io: Google OAuth, the approval flow, the public pages, session removal. |
packages/cli |
google-tag-manager-mcp-server |
The npm package: a local MCP server over stdio, authenticating with credentials you supply. |
packages/core |
google-tag-manager-mcp-core |
Every GTM tool and schema, independent of how credentials are obtained. |
Tools reach Google through a GtmAuthProvider (getAccessToken(): Promise) rather than through any particular session, which is what lets the same tool set back both servers — and a private one with your own auth. See the core package README.
Installation
This server comes in two flavours: Hosted server and Local CLI. Both give you the same 20 GTM tools; the difference is who handles Google auth.
| Hosted server | Local CLI | |
|---|---|---|
| Auth | Google OAuth in your browser, handled for you | You supply a service account key, refresh token, or access token |
| Data | Passes through gtm-mcp.stape.io |
Only ever leaves your machine |
| Setup | None | Set one environment variable |
安装
npx -y mcp-remote https://gtm-mcp.stape.io/mcp配置
{
"mcpServers": {
"gtm-mcp-server": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://gtm-mcp.stape.io/mcp"
]
}
}
}