Gtm MCP Server
G

Gtm MCP Server

The GTM MCP Server is a tool based on the Model Context Protocol that allows users to manage Google Tag Manager containers in natural language through AI assistants (such as Claude, ChatGPT, Gemini), enabling functions such as tag creation, configuration auditing, tracking plan generation, and change publishing.
2.5 points
5.1K

What is GTM MCP Server?

GTM MCP Server is a bridge that connects AI assistants (such as Claude, ChatGPT, Gemini) with the Google Tag Manager API. It allows you to manage website tracking codes through natural language conversations without manually clicking on the GTM interface. Just tell the AI what you want to achieve, and it will automatically create tags, set triggers, manage variables, etc.

How to use GTM MCP Server?

It's very simple to use: 1) Add the MCP connector to the AI assistant; 2) Authorize access to your Google account; 3) Start managing GTM with natural language. For example, tell the AI 'Create a GA4 event tag for form submission', and it will automatically complete all technical configurations.

Use cases

Suitable for website administrators, digital marketers, data analysts, developers, and marketing agencies. Especially suitable for scenarios such as quickly setting up new website tracking, batch - managing multiple containers, standardizing tracking implementation, generating tracking documents, and integrating third - party tools.

Main features

Tag management
Create and modify any GTM tag types, including GA4 configurations, e - commerce events, custom HTML, custom images, etc. The AI will automatically configure the correct parameters according to your description.
Trigger management
Build triggers for various scenarios: page views, custom events, click tracking, form submissions, timers, etc. Support complex condition combinations.
Container audit
Automatically analyze the workspace, detect naming inconsistencies, duplicate tags, orphaned triggers, security issues, etc., and provide improvement suggestions.
Tracking plan generation
Automatically generate a tracking plan document in Markdown format, including all event, trigger, and variable definitions and implementation instructions.
Server - side container support
Fully support server - side GTM containers, including advanced functions such as client - side management and conversion rule settings.
Community template library
Import templates directly from the Google community template library, such as Cookie consent management, Facebook Pixel, etc. The AI will automatically search and install them.
Bulk operations
Rename, update, or organize dozens of tags and triggers in batches through simple instructions to improve management efficiency.
Version control
All changes are first made in the workspace. Only after creating a version can you publish the changes, ensuring security and controllability.
Advantages
No technical knowledge required: Describe your requirements in natural language, and the AI will handle the technical details.
Save time: Complete manual configurations that originally took hours in just a few minutes.
Reduce errors: The AI follows best practices to avoid human - made configuration errors.
Unified standards: Ensure consistency in the implementation of all containers.
Real - time collaboration: Interact with the AI in a conversational way and adjust configurations immediately.
Safe and controllable: Deletion or publishing operations require confirmation before execution.
Multi - platform support: Compatible with mainstream AI assistants such as Claude, ChatGPT, and Gemini.
Limitations
Google account authorization required: You must authorize access to the GTM API.
Network dependency: A stable network connection is required.
Learning curve: You need to understand basic GTM concepts and terms.
API limitations: Subject to the rate limits of the Google Tag Manager API.
Specific function limitations: Some advanced trigger conditions need to be configured manually.

How to use

Select an AI assistant
Select the AI assistant you use: Claude (web version or desktop version), ChatGPT, or Gemini CLI.
Add the MCP connector
Add a custom MCP connector in the settings of the AI assistant and enter the server URL: https://mcp.gtmeditor.com
Authorize your Google account
Click the authorization button, log in with your Google account, and grant access to the GTM API. Your credentials will not be stored.
Start conversational management
Now you can manage GTM with natural language. For example: 'List all my containers' or 'Create a GA4 tag for purchase events'.
Review and publish
The AI will first make changes in the workspace. You can review them and then decide whether to create a version and publish it to the production environment.

Usage examples

Complete e - commerce tracking setup
Set up complete GA4 e - commerce tracking for a newly launched e - commerce website, including all standard events such as product browsing, adding to cart, starting checkout, and purchasing.
Consent management integration
Integrate a consent management platform (such as OneTrust) with website tracking to ensure that analytics tags are only triggered when the user gives consent.
Bulk renaming and organization
Add a unified prefix to dozens of tags and triggers in a large container and organize them into folders to improve maintainability.
Import tools from the template library
Import third - party tools from the Google community template library, such as Cookie consent management or social media pixels.
Generate a tracking plan document
Generate a detailed tracking implementation document for the development team, explaining all events, data layer requirements, and implementation steps.

Frequently Asked Questions

Is my Google account credential secure?
Will the AI directly publish changes to the production environment?
Which AI assistants are supported?
Do I need technical knowledge?
Can I manage containers for multiple clients?
Are there API rate limits?
Can I undo the changes made by the AI?
Does it support server - side GTM?

Related resources

GitHub repository
Complete source code, issue tracking, and contribution guidelines
GTM API reference
GTM API documentation optimized for LLMs, including request templates and validation rules
MCP protocol specification
Official documentation and specification of the Model Context Protocol
Google Tag Manager API
Official Google Tag Manager API documentation
Docker image
Official Docker container image
Issue feedback
Report issues, request features, or provide feedback

Installation

Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
5.0K
4.5 points
M
Moltbrain
MoltBrain is a long-term memory layer plugin designed for OpenClaw, MoltBook, and Claude Code, capable of automatically learning and recalling project context, providing intelligent search, observation recording, analysis statistics, and persistent storage functions.
TypeScript
5.5K
4.5 points
B
Bm.md
A feature-rich Markdown typesetting tool that supports multiple style themes and platform adaptation, providing real-time editing preview, image export, and API integration capabilities
TypeScript
3.9K
5 points
S
Security Detections MCP
Security Detections MCP is a server based on the Model Context Protocol that allows LLMs to query a unified security detection rule database covering Sigma, Splunk ESCU, Elastic, and KQL formats. The latest version 3.0 is upgraded to an autonomous detection engineering platform that can automatically extract TTPs from threat intelligence, analyze coverage gaps, generate SIEM-native format detection rules, run tests, and verify. The project includes over 71 tools, 11 pre-built workflow prompts, and a knowledge graph system, supporting multiple SIEM platforms.
TypeScript
5.3K
4 points
P
Paperbanana
Python
7.5K
5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
6.1K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
7.6K
5 points
A
Apify MCP Server
The Apify MCP Server is a tool based on the Model Context Protocol (MCP) that allows AI assistants to extract data from websites such as social media, search engines, and e-commerce through thousands of ready-to-use crawlers, scrapers, and automation tools (Apify Actors). It supports OAuth and Skyfire proxy payment and can be integrated into MCP clients such as Claude and VS Code through HTTPS endpoints or local stdio.
TypeScript
7.4K
5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
34.6K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
72.6K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
20.5K
4.5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
25.7K
4.3 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
63.8K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
31.5K
5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
22.1K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
48.5K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase