mcp-gtm-ultimate

Gatescrispy/mcp-gtm-ultimate

3.2

If you are the rightful owner of mcp-gtm-ultimate and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

MCP GTM Ultimate is a comprehensive local server solution for managing Google Tag Manager with advanced automation capabilities.

Tools
5
Resources
0
Prompts
0

MCP GTM Ultimate

MCP Python Google Tag Manager

The most comprehensive local Google Tag Manager MCP server for advanced tag management and automation.

๐ŸŽฏ Overview

MCP GTM Ultimate is a powerful Model Context Protocol server that provides complete Google Tag Manager API v2 integration. Built for developers, marketers, and analysts who need programmatic control over their GTM containers, tags, triggers, and variables.

โœจ Key Features

  • ๐Ÿ”ง Complete GTM Management: 70+ tools covering all GTM API v2 functionalities
  • ๐Ÿท๏ธ Smart Tag Operations: Create, update, delete tags with intelligent defaults
  • โšก Trigger Management: Full CRUD operations on GTM triggers
  • ๐Ÿ“Š Variable Control: Manage custom and built-in variables
  • ๐Ÿ“ฆ Version Control: Handle container versions and publishing
  • ๐Ÿ‘ฅ User Permissions: Manage team access and permissions
  • ๐Ÿ›ก๏ธ Intelligent Error Handling: Categorized error responses with smart fallbacks
  • ๐Ÿ” Real-time Monitoring: Live GTM container state inspection

๐Ÿš€ Quick Start

Prerequisites

  • Python 3.8+
  • Google Cloud Project with Tag Manager API enabled
  • Service Account with appropriate GTM permissions

Installation

pip install mcp-gtm-ultimate

Configuration

  1. Enable Google Tag Manager API in your Google Cloud Console
  2. Create a Service Account with GTM permissions
  3. Download the service account JSON key
  4. Set environment variables:
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/your/service-account.json"
export GTM_ACCOUNT_ID="your-gtm-account-id"
export GTM_CONTAINER_ID="your-gtm-container-id"

Basic Usage

from mcp_gtm_ultimate import MCPGTMUltimate

# Initialize the MCP server
gtm = MCPGTMUltimate()

# Authenticate
gtm.authenticate()

# List all tags
tags = gtm.list_tags()

# Create a new tag
new_tag = gtm.create_tag_smart(
    name="Analytics Event",
    tag_type="gaawe",
    parameters=[{
        "type": "template",
        "key": "measurementIdOverride", 
        "value": "G-XXXXXXXXXX"
    }]
)

# List all containers
containers = gtm.list_containers()

๐Ÿ“Š Comparison with Existing Solutions

FeatureMCP GTM UltimateStape.io GTM MCPGoogle GTM Boilerplate
Total Tools70+158
Local Serverโœ…โŒ (Cloud only)โœ…
Tag Managementโœ… Complete CRUDโœ… Basicโš ๏ธ Read-only
Trigger Managementโœ… Full APIโš ๏ธ LimitedโŒ
Variable Managementโœ… Custom + Built-inโš ๏ธ BasicโŒ
Version Controlโœ… AdvancedโŒโŒ
User Permissionsโœ… Full ManagementโŒโŒ
Error Handlingโœ… Intelligentโš ๏ธ Basicโš ๏ธ Basic
Documentationโœ… Completeโš ๏ธ Limitedโš ๏ธ Minimal
Production Readyโœ…โŒโŒ

๐Ÿ› ๏ธ Core Functionalities

Phase 1: Core Management (15 tools)

  • Accounts: List, get, update account information
  • Containers: Complete container lifecycle management
  • Workspaces: Workspace creation and management

Phase 2: Content Management (22 tools)

  • Tags: Create, read, update, delete, revert tags
  • Triggers: Full trigger management with conditions
  • Variables: Custom and built-in variable control
  • Built-in Variables: Enable/disable system variables

Phase 3: Organization & Publishing (22 tools)

  • Versions: Version control and publishing pipeline
  • Folders: Organize tags and triggers in folders
  • Zones: Zone-based tag management (Enterprise)

Phase 4: Advanced Features (11 tools)

  • Templates: Custom template creation and management
  • User Permissions: Team access control
  • Advanced Publishing: Staged rollouts and rollbacks

๐Ÿ”ง Configuration Example

{
  "mcpServers": {
    "gtm-ultimate": {
      "command": "python",
      "args": ["-m", "mcp_gtm_ultimate"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/service-account.json",
        "GTM_ACCOUNT_ID": "your-account-id",
        "GTM_CONTAINER_ID": "your-container-id",
        "GTM_WORKSPACE_ID": "your-workspace-id"
      }
    }
  }
}

๐Ÿงช Testing

Test Results: 80% success rate on real GTM infrastructure

  • โœ… Core Management: 100% (5/5)
  • โœ… Content Management: 100% (2/2)
  • โœ… Error Handling: 100% (2/2)
  • ๐ŸŸก Advanced Features: Limited by API permissions

๐ŸŒŸ Why Choose MCP GTM Ultimate?

๐Ÿ† Most Comprehensive

  • 70+ tools vs 15 in competitors
  • Complete API v2 coverage including enterprise features
  • Real-world tested on production GTM containers

๐Ÿ”’ Privacy-First

  • 100% local execution - your data never leaves your infrastructure
  • No external dependencies on third-party services
  • Full control over your GTM operations

๐Ÿš€ Production Ready

  • Intelligent error handling with categorized responses
  • Robust authentication with Google Cloud integration
  • Comprehensive logging and monitoring capabilities

๐Ÿ› ๏ธ Developer Friendly

  • Clear documentation with examples
  • Type hints throughout the codebase
  • Extensible architecture for custom requirements

๐Ÿ“– Documentation

๐Ÿค Contributing

We welcome contributions! Please see our for details.

๐Ÿ“„ License

This project is licensed under the MIT License - see the file for details.

๐Ÿ™ Acknowledgments


MCP GTM Ultimate - Empowering advanced Google Tag Manager automation ๐Ÿš€