mcpdirectory.dev
9,129 servers · updated 23 Sept

Google Tagmanager MCP server

official from A1 X Tech Active last commit 2 d
{
  "mcpServers": {
    "a1-x-tech-google-tagmanager": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-tagmanager@latest"
      ],
      "env": {
        "GOOGLE_TAGMANAGER_CLIENT_ID": "<google_tagmanager_client_id>",
        "GOOGLE_TAGMANAGER_CLIENT_SECRET": "<google_tagmanager_client_secret>",
        "GOOGLE_TAGMANAGER_REFRESH_TOKEN": "<google_tagmanager_refresh_token>",
        "GOOGLE_TAGMANAGER_ACCESS_TOKEN": "<google_tagmanager_access_token>"
      }
    }
  }
}
file .mcp.json (in your project root)install npx -y mcp-google-tagmanagerversion 1.1.0

What it does

MCP server for Google Tag Manager API v2 that lets you inspect and manage GTM containers, workspaces, tags, triggers, and variables through plain language. Designed for developers and marketers who need to read GTM configuration, draft changes in workspaces, and publish versions deliberately.

  • Query which tags fire on specific triggers across your GTM containers without making changes.
  • Create new GA4 configuration tags or other tags in a draft workspace, then compile and publish a version when ready.
  • Inspect and modify built-in variables, triggers, and container settings through conversation with an AI assistant.

Tools this server exposes

ToolDoes
listAccountsList all Google Tag Manager accounts accessible to you.
getAccountGet details about a specific account.
listContainersList all containers in a specific account.
getContainerGet details about a specific container.
listWorkspacesList all workspaces in a specific container.
getWorkspaceGet details about a specific workspace.
listTagsList all tags in a specific workspace.
getTagGet details about a specific tag.
createTagCreate a new tag in a workspace.
updateTagUpdate an existing tag in a workspace.
deleteTagDelete a tag from a workspace.
listTriggersList all triggers in a specific workspace.
getTriggerGet details about a specific trigger.
createTriggerCreate a new trigger in a workspace.
updateTriggerUpdate an existing trigger in a workspace.
listVariablesList all variables in a specific workspace.
getVariableGet details about a specific variable.
updateBuiltInVariableEnable or disable a built-in variable in a workspace.
listVersionsList all versions of a container.
createVersionCompile a workspace into a new container version.
publishVersionPublish a container version to production.

Before you enable it

An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.