MCP Catalogs
Home

gtm-mcp-server

by paolobietolini·86·Score 49

Google Tag Manager MCP server that enables natural language control of GTM containers through AI assistants.

developer-toolsecommerceai-llm
18
Forks
0
Open issues
this month
Last commit
2d ago
Indexed

Overview

This is a well-designed MCP server that connects AI assistants to Google Tag Manager via the Model Context Protocol. It allows users to manage GTM containers through natural language commands, eliminating the need to navigate the GTM interface manually. The server implements proper OAuth authentication and provides comprehensive tag, trigger, and container management capabilities along with AI-powered workflows like container audits and tracking plan generation.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Build complete GA4 ecommerce tracking setups through natural language
you:Manage multiple client containers at scale for agencies
you:Generate documentation and audit reports for existing GTM setups
you:What authentication methods are supported?
you:Is it possible to self-host the server?

When to choose this

Choose this if you're already using Google Tag Manager and want to manage it through natural language with AI assistants like Claude or ChatGPT.

When NOT to choose this

Don't choose this if you need GTM operations without an internet connection, as it requires connectivity to Google APIs and the MCP server.

Tools this server exposes

12 tools extracted from the README
  • 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

Comparable tools

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

Installation

Installation

**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. Go to OpenAI Apps Platform
  2. Add MCP integration with URL: https://mcp.gtmeditor.com

**Gemini CLI:**

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

**Self-hosted 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

What authentication methods are supported?
The server supports OAuth 2.1 with PKCE for user-based authentication and Service Account mode for programmatic/team-based access.
Is it possible to self-host the server?
Yes, the server can be self-hosted via Docker, Google Cloud, or other infrastructure with both OAuth and Service Account authentication options.

On Hacker News

Recent discussion from the developer community.

Compare gtm-mcp-server with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.