MCP Catalogs
首页

gtm-mcp-server

by paolobietolini·86·综合分 49

Google Tag Manager MCP服务器,通过AI助手实现自然语言控制GTM容器。

developer-toolsecommerceai-llm
18
Forks
0
活跃 Issue
本月
最近提交
2 天前
收录于

概述

这是一个设计良好的MCP服务器,通过模型上下文协议将AI助手连接到Google Tag Manager。它允许用户通过自然语言命令管理GTM容器,无需手动导航GTM界面。服务器实现了OAuth身份验证,提供全面的标签、触发器和容器管理功能,以及AI驱动的工作流程,如容器审计和跟踪计划生成。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:通过自然语言建立完整的GA4电商跟踪设置
:为机构大规模管理多个客户端容器
:为现有GTM设置生成文档和审计报告
:支持哪些身份验证方法?
:可以自托管服务器吗?

什么时候选它

如果你已经在使用 Google Tag Manager 并希望通过 Claude 或 ChatGPT 等 AI 助手用自然语言管理它,请选择此服务器。

什么时候不要选它

如果你需要在没有互联网连接的情况下执行 GTM 操作,请不要选择此服务器,因为它需要连接到 Google API 和 MCP 服务器。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • list_accounts

    List all GTM accounts

  • list_containers

    List containers in an account

  • list_workspaces

    List workspaces in a container

  • list_tags

    List all tags in a workspace

  • get_tag

    Get tag details by ID

  • list_triggers

    List all triggers

  • get_trigger

    Get trigger details by ID

  • list_variables

    List all variables

  • get_variable

    Get variable details by ID

  • list_folders

    List folders in a workspace

  • get_folder_entities

    Get tags/triggers/variables in a folder

  • list_built_in_variables

    List enabled built-in variables in a workspace

可对比工具

gtm-cligoogle-tag-manager-api-wrappergtm-server

安装

安装

**Claude Desktop:**

{
  "mcpServers": {
    "gtm": {
      "url": "https://mcp.gtmeditor.com/authorize"
    }
  }
}

**Claude Code CLI:**

claude mcp add -t http gtm https://mcp.gtmeditor.com

**ChatGPT:**

  1. 转到OpenAI Apps Platform
  2. 添加MCP集成,URL为:https://mcp.gtmeditor.com

**Gemini CLI:**

gemini mcp add --transport http --url https://mcp.gtmeditor.com gtm

**自托管Docker:**

git clone https://github.com/paolobietolini/gtm-mcp-server.git
cd gtm-mcp-server
cat > .env << 'EOF'
GOOGLE_CLIENT_ID=your-client-id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your-client-secret
JWT_SECRET=$(openssl rand -base64 32)
BASE_URL=http://localhost:8080
EOF
docker compose up -

FAQ

支持哪些身份验证方法?
服务器支持OAuth 2.1与PKCE进行用户身份验证,以及服务账户模式进行编程/团队访问。
可以自托管服务器吗?
是的,服务器可以通过Docker、Google Cloud或其他基础设施进行自托管,同时支持OAuth和服务账户身份验证选项。

Hacker News 讨论

开发者社区最近的相关讨论。

gtm-mcp-server 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。