by sprawz
An MCP server for Google Tag Manager. Connect it to your LLM, authenticate once, and start managing GTM through natural language.
# Add to your Claude Code skills
git clone https://github.com/sprawz/gtm-mcp-serverGuides for using mcp servers skills like gtm-mcp-server.
Last scanned: 7/12/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-07-12T06:31:49.134Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}gtm-mcp-server is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by sprawz. An MCP server for Google Tag Manager. Connect it to your LLM, authenticate once, and start managing GTM through natural language. It has 157 GitHub stars.
Yes. gtm-mcp-server passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/sprawz/gtm-mcp-server" and add it to your Claude Code skills directory (see the Installation section above).
gtm-mcp-server is primarily written in Go. It is open-source under sprawz on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh gtm-mcp-server against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
An AI assistant can control your Google Tag Manager containers.
The server connects an AI assistant to the Google Tag Manager API. You give instructions in usual language. The assistant creates tags, examines configurations, writes tracking plans, and publishes changes.
URL: https://mcp.gtmeditor.com
| Client | Transport | Authentication | Status |
|---|---|---|---|
| Claude (Web and Desktop) | Streamable HTTP | OAuth 2.1 and PKCE | Supported |
| Claude Code (CLI) | Streamable HTTP | OAuth 2.1 and PKCE | Supported |
| ChatGPT | Streamable HTTP | OAuth 2.1 and PKCE | Supported |
| Gemini CLI | Streamable HTTP | OAuth 2.1, PKCE and DCR | Supported |
| Cursor | Streamable HTTP | OAuth 2.1 and PKCE | Supported |
The server does not require a specified client. Each MCP client that has OAuth 2.1 with PKCE on an HTTP transport can connect to the server. This includes clients with Dynamic Client Registration (RFC 7591) and clients without it.
Give these instructions to your AI assistant:
You do not use the GTM interface for these tasks. You do not copy configurations manually. You give the instruction in usual language.
For Claude.ai:
https://mcp.gtmeditor.comFor Claude Code (CLI), use this command:
claude mcp add -t http gtm https://mcp.gtmeditor.com
https://mcp.gtmeditor.comgemini mcp add --transport http --url https://mcp.gtmeditor.com gtm
https://mcp.gtmeditor.com/authorizeAs an alternative, add this configuration to your .cursor/mcp.json file:
{
"mcpServers": {
"gtm": {
"url": "https://mcp.gtmeditor.com/authorize"
}
}
}
The server creates and changes all GTM tag types:
The server creates triggers for these conditions:
The server has full support for server-side GTM containers:
The server imports templates from the Google Community Template Gallery. Give instructions such as these:
The AI assistant finds the template and its GitHub repository. Then the assistant imports the template automatically.
Container examination. Give the instruction "Examine my container for problems". The assistant examines the workspace for these conditions:
Tracking plan. Give the instruction "Write a tracking plan". The assistant writes a markdown document with this content:
GA4 recommendations. Give the instruction "Help me set up GA4 for ecommerce". The assistant recommends the tags, the triggers, the necessary variables, and the dataLayer code.
The assistant can make a full GA4 ecommerce implementation. Give the instruction "Set up GA4 ecommerce tracking for my store". The assistant then does these steps:
You can connect privacy tools such as OneTrust to your tracking. Give the instruction "Make GA4 fire only when the user gives consent for analytics". The assistant then does these steps:
You can control containers that have many items. Give instructions such as these:
The assistant can change or move many items in one operation.
You can make complex tracking logic. Give instructions such as these:
The assistant makes custom JavaScript variables and dataLayer variables.
The server connects AI assistants to the Google Tag Manager API. It uses the Model Context Protocol. When you give an instruction, the server does these steps:
The server does not keep your Google password. The server uses tokens. You can cancel a token at any time from your Google account.
More than one MCP server for Google Tag Manager is available. The most usual alternative is [stape-io/google-tag-manage