GTM MCP Server

The MCP is currently under review by Google and may be temporarily unavailable.

You can try running a local instance instead, see the project on GitHub.

Google Tag Manager MCP

Model Context Protocol Server for AI assistants. Manage your GTM containers with Claude, Cursor and other AI tools.

Getting Started

Connect your Google Tag Manager account in four simple steps
  1. Click "Sign in with Google" below to authorize access to your GTM account
  2. Your session URL will be shown on the account page
  3. Copy the URL and add it to your AI assistant configuration
  4. Your session is permanent and works across re-logins

Configuration for Claude Desktop, Cursor or any Desktop LLM App

Add this to your Claude Desktop configuration file
{
  "mcpServers": {
    "gtm-editor": {
      "type": "sse",
      "url": "YOUR_SESSION_URL_HERE"
    }
  }
}

Features

Full access to your Google Tag Manager data
  • List GTM accounts, containers, and workspaces
  • View and manage tags, triggers, and variables
  • Create and publish container versions
  • Full read/write access to your GTM configuration

Tools

Tools availabe to your LLM
  • gtm_list_accounts
  • gtm_update_account
  • gtm_list_containers
  • gtm_list_tags
  • gtm_get_tag
  • gtm_create_tag
  • gtm_update_tag
  • gtm_list_triggers
  • gtm_create_trigger
  • gtm_list_variables
  • gtm_create_variable
  • gtm_publish_container