
sprawz/gtm-mcp-server 是从 https://github.com/sprawz/gtm-mcp-server. 导入的 MCP 服务器候选
概览
sprawz/gtm-mcp-server 是从 https://github.com/sprawz/gtm-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
[!重要] 托管实例https://mcp.gtmeditor.com将于2026年11月30日关闭。详情请参见#139。感谢所有使用该实例的人!
GTM MCP 服务器将 MCP 客户端连接到 Google 标签管理器 API。它可以 检查容器,创建和更新工作区实体,创建版本,以及 在明确确认后发布选定版本。
使用托管服务器:
该服务器支持基于浏览器的 Google OAuth 系统,供个人用户使用 自托管自动化的服务账户认证。
项目状态
| 物品 | 当前状态 |
|---|---|
版本见于server.json |
1.12.3 |
| 传输 | MCP 可流式 HTTP |
| 运行时工具 | 默认64个GTM工具;94个带GTM_TOOL_GROUPS=all的工具,加上2个工具工具 |
| MCP资源 | 8个资源定义 |
| MCP提示 | 6个提示 |
| 官方GTM API覆盖 | 106种方法中的101条 |
| 托管端点 | https://mcp.gtmeditor.com |
该项目实现了谷歌106方法GTM v2发现表中的101种方法。这五种accounts.user_permissions方法被有意排除,因为授予和撤销GTM访问属于安全相关,不应由大型语言模型管理。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
GTM MCP Server
[!IMPORTANT] The hosted instance at
mcp.gtmeditor.comwas shut down during the night of 20–21 November 2026. There is no longer a public endpoint: to keep using the server, self-host it. Removehttps://mcp.gtmeditor.comfrom every MCP client configuration. The domain is not being renewed, so a future owner could serve something else at that address. See #139 for background. Thanks to everyone who used it!
GTM MCP Server connects MCP clients to the Google Tag Manager API. It can inspect containers, create and update workspace entities, create versions, and publish a selected version after explicit confirmation.
The repository also ships gtm-cli, a command-line tool
that gives people and agents direct GTM access with no server to host.
It authenticates either with browser-based Google OAuth (each user acts with their own Google identity and GTM permissions) or with a Google service account (one shared identity, for automation or a single local user).
Contents
- Project status
- Command-line interface
- Choose a deployment mode
- Self-hosting
- Connect an MCP client
- Typical workflow
- Tools
- Safety model
- Resources and Prompts
- Skills
- Configuration reference
- Releases
- Development
Project status
| Item | Current state |
|---|---|
Version in server.json |
1.15.0 |
| Transport | MCP Streamable HTTP, or stdio for local service-account use |
| Runtime tools | 64 GTM tools by default; 94 with GTM_TOOL_GROUPS=all; plus 2 utility tools in both cases |
| MCP resources | 8 resource definitions (2 resources, 6 URI templates) |
| MCP prompts | 6 prompts |
| Official GTM API coverage | 101 of 106 methods |
| Hosted endpoint | None. mcp.gtmeditor.com was shut down on 20–21 November 2026 |
The project implements 101 methods from Google’s 106-method GTM v2 discovery
surface. The five accounts.user_permissions methods are intentionally
excluded: granting and revoking GTM access is security-sensitive and should not
安装
docker run -d \配置
{
"mcpServers": {
"gtm": {
"command": "/usr/local/bin/gtm-mcp-server",
"args": ["--stdio"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/sa.json",
"GTM_TOOL_GROUPS": "all"
}
}
}
}