Skip to content

MCP server for Google Tag Manager

Audit every container.Publish only with approval.

The GTM server lets your AI client read containers, compare versions and flag common tracking mistakes. Edits go to a dedicated adtool.ai GTM workspace, never straight to your live site, and a person approves every publish.

Server address

https://mcp-sandbox.adtool.ai/gtm

Availability: Customer access requires Google verification and may be limited by shared quota. Changes require verified edit permissions and a paid plan. Eligible workspaces can use their own Google Cloud project.

Fix the purchase trigger and publish

Requested by Cursor · Write with approval

Before: compares event with a variable name as plain text, so it never fires

After: fires when event equals purchase

Publish approved · Live version 43 read back after publishing

Sample preview, not a real account

Google Tag Manager

What it reads

  • Lists your containers and summarises the Live version, including paused tags and the last publish.
  • Reads tags, triggers and variables from the Live version, any earlier version or a GTM workspace.
  • Compares any two versions, or a draft against its base, entity by entity.
  • Audits a container for common mistakes, such as a variable reference in a trigger condition, duplicate tags or secrets in variables.

What it changes

  • Creates, updates and deletes tags, triggers and variables as a preview, with lint and reference checks.
  • Keeps every edit in a dedicated adtool.ai GTM workspace until a version is published.
  • Publishes a named version only after a person approves it, then reads the Live version back.
  • Rolls back by republishing an earlier version, through the same preview and approval.

How changes work here

Every change previewed. Every change logged.

Changes on this server follow the same three steps. Approval comes in when the access level or the risk calls for it.

  1. Preview

    The client proposes edits. adtool.ai reads the current entities, blocks known mistakes such as a variable reference in a trigger condition, and saves a change plan with the diff.

  2. Approval

    Publishing always needs approval, at every access level. So does any Custom HTML tag, custom JavaScript variable or script from a new external host, and the approver sees that code first.

  3. Apply and log

    adtool.ai syncs its GTM workspace, stops on conflicts, publishes the exact version it created and reads the Live version back. The previous Live version is kept on record for a rollback.

Tools

Every tool. Straight from the server.

This list is built from the server's own tool definitions, as AI clients receive them. A tool an operator has paused is left out of tools/list until it is back.

See the full tool catalogue
  • adtool_whoami

    Show this connection

    Read
  • gtm_list_containers

    List GTM containers

    Read
  • gtm_get_container_overview

    Get GTM container overview

    Read
  • gtm_list_entities

    List GTM entities

    Read
  • gtm_get_entity

    Get a GTM entity

    Read
  • gtm_list_versions

    List GTM versions

    Read
  • gtm_diff_versions

    Diff GTM versions

    Read
  • gtm_audit_container

    Audit a GTM container

    Read
  • gtm_get_workspace_status

    Get GTM workspace status

    Read
  • gtm_lookup_destination

    Look up a GTM destination

    Read
  • gtm_list_environments

    List GTM environments

    Read
  • adtool_list_activity

    List recent activity

    Read
  • adtool_list_source_groups

    List source groups

    Read
  • adtool_preview_source_group_change

    Preview a source-group change

    Write
  • gtm_preview_changes

    Preview GTM changes

    Write
  • gtm_preview_publish

    Preview a GTM publish

    Write
  • gtm_preview_container_create

    Preview a new GTM container

    Write
  • adtool_preview_revert

    Preview the revert of an applied plan

    Write
  • adtool_get_change_plan

    Show a change plan

    Write
  • adtool_list_change_plans

    List change plans

    Write
  • adtool_apply_change_plan

    Apply a change plan

    Write

Setup

One address per product. Your AI client.

Each Google product has its own server address. Add it to Claude, ChatGPT, Cursor, VS Code or another MCP client and sign in; the setup guide has the steps for each client.

Open the setup guide

FAQ

Questions about this server. Short answers.

Will it change my live site?

Not until a person approves a publish. Edits wait in a dedicated adtool.ai GTM workspace, and publishing a named version always needs approval, whatever the access level.

What if a publish goes wrong?

adtool.ai records the previous Live version with every publish. Republishing it is one previewed change, approved like any other publish.

When should I use my own Cloud project?

Google allows 25 Tag Manager requests per 100 seconds and 10,000 a day per Google Cloud project, shared by everyone who links through it. Agencies and heavy users can link Google through their own Cloud project to get a quota of their own.