Google Tag Manager
Google Tag Manager MCPAnalytics61 actions

Google Tag Manager MCP Server

Let your AI agents run Google Tag Manager for you, safely.

A hosted Google Tag Manager MCP server for Claude, ChatGPT, Cursor and CLI agents. Paste one server URL into your AI client to use its 61 actions. There is nothing to install.

  • Enable or disable every action, per account. Block your agent from doing dangerous actions.

  • Ask in plain English. Pull reports, find insights and take action in Google Tag Manager.

  • 61 read and write actions. Every Google Tag Manager task your agent needs, from reporting to making changes.

  • Built for teams. Invite your team and share one connected account.

Works with
ChatGPTChatGPTClaudeClaudeClaude CodeClaude CodeCodexCodexGemini CLIGemini CLICursorCursorMistralMistralOpenClawOpenClawHermesHermesPerplexityGrokn8nWindsurfVS CodeZed
ChatGPT
Google Tag Manager
ChatGPT
connected to Google Tag Manager MCP
Online
ChatGPT
Actions

Available Actions

61 actions available to automate your Google Tag Manager workflows.

61 actions

Google Tag Manager
Write

Create Folder

Create a folder for organizing workspace entities.

Google Tag Manager
Write

Create Tag

Create a tag in a workspace. Use type values like ua, gaawe (GA4 Event), gaawc (GA4 Config), html, gclidw, etc. Supply parameter[] entries that match the tag type's expected fields.

Google Tag Manager
Write

Create Trigger

Create a trigger in a workspace. Trigger type values include pageview, click, formSubmission, customEvent, scrollDepth, etc.

Google Tag Manager
Write

Create Variable

Create a variable. Common types: c (constant), v (DataLayer), j (custom JS), gas (GA Settings), k (1st-party cookie), u (URL), aev (Auto Event), e (Event), f (HTTP Referrer).

Google Tag Manager
Write

Create Workspace

Create a new workspace (staging area). All write operations target a workspace; nothing serves until publish_version.

Google Tag Manager
Write

Delete Folder

Delete a folder from a workspace. The folder's child tags/triggers/variables are NOT deleted. They become unfoldered.

Google Tag Manager
Write

Delete Tag

Delete a tag from a workspace. Destructive: once published, removes the tag from the live container.

Google Tag Manager
Write

Delete Trigger

Delete a trigger from a workspace. Destructive: also disables any tag whose firingTriggerId pointed at it.

Google Tag Manager
Write

Delete Variable

Delete a user-defined variable from a workspace. Destructive: any tag/trigger that references it will start returning empty values once published.

Google Tag Manager
Write

Delete Workspace

Delete a workspace. Destructive: every uncommitted change in the workspace is lost. Use revert_* to clear individual entities; use delete_workspace only when you are sure the entire workspace can go.

Google Tag Manager
Write

Disable Built In Variable

Disable one or more built-in variables in a workspace. Destructive: anything that referenced the variable will resolve to empty after publish. Pass a list of `type` values (e.g. ['errorMessage', 'errorUrl']). They are sent as repeated query params.

Google Tag Manager
Write

Enable Built In Variable

Enable one or more built-in variables in the workspace by passing their type names as a comma-separated query value or repeated 'type' params.

Google Tag Manager
Read

Get Account

Fetch a single GTM account by id.

Google Tag Manager
Read

Get Accounts

List all GTM accounts the authenticated user can access.

Google Tag Manager
Read

Get Built In Variables

List built-in variables enabled in the workspace.

Google Tag Manager
Read

Get Client

Fetch a single server-side client.

Google Tag Manager
Read

Get Clients

List server-side clients in a workspace.

Google Tag Manager
Read

Get Container

Fetch a single container by id.

Google Tag Manager
Read

Get Container Snippet

Get the install <script> snippet for a container. Useful to verify a site has GTM installed.

Google Tag Manager
Read

Get Containers

List containers in a GTM account.

Google Tag Manager
Read

Get Destination

Fetch a single destination.

Google Tag Manager
Read

Get Destinations

List destinations linked to a container.

Google Tag Manager
Read

Get Environment

Fetch a single environment.

Google Tag Manager
Read

Get Environments

List environments configured for a container.

Google Tag Manager
Read

Get Folder

Fetch a single folder.

Google Tag Manager
Read

Get Folder Entities

Return tags / triggers / variables that live inside a folder.

Google Tag Manager
Read

Get Folders

List folders in a workspace.

Google Tag Manager
Read

Get Gtag Config

Fetch a single Google Tag config.

Google Tag Manager
Read

Get Gtag Configs

List Google Tag (gtag.js) configurations in a workspace.

Google Tag Manager
Read

Get Latest Version Header

Fetch the most recent version header.

Google Tag Manager
Read

Get Live Version

Fetch the version currently published to live.

Google Tag Manager
Read

Get Tag

Fetch a single tag.

Google Tag Manager
Read

Get Tags

List all tags in a workspace.

Google Tag Manager
Read

Get Template

Fetch a single custom template.

Google Tag Manager
Read

Get Templates

List custom templates in a workspace.

Google Tag Manager
Read

Get Transformation

Fetch a single transformation.

Google Tag Manager
Read

Get Transformations

List server-side transformations in a workspace.

Google Tag Manager
Read

Get Trigger

Fetch a single trigger.

Google Tag Manager
Read

Get Triggers

List all triggers in a workspace.

Google Tag Manager
Read

Get Variable

Fetch a single variable.

Google Tag Manager
Read

Get Variables

List user-defined variables in a workspace.

Google Tag Manager
Read

Get Version

Fetch a single container version including all entities at that point in time.

Google Tag Manager
Read

Get Version Headers

List lightweight version headers (id, name, entity counts) without full entity payloads.

Google Tag Manager
Read

Get Workspace

Fetch a single workspace.

Google Tag Manager
Read

Get Workspace Status

Show pending changes in a workspace and any merge conflicts vs the latest container version.

Google Tag Manager
Read

Get Workspaces

List workspaces (staging areas) in a container.

Google Tag Manager
Read

Get Zone

Fetch a single zone.

Google Tag Manager
Read

Get Zones

List zones in a workspace.

Google Tag Manager
Read

Lookup Container

Look up a container by its public id (e.g. GTM-XXXXXX). Returns the container record without requiring account id.

Google Tag Manager
Write

Move Entities To Folder

Move tags / triggers / variables into a folder. Pass entity ids as repeated query params: tagId, triggerId, variableId.

Google Tag Manager
Read

Quick Preview Workspace

Generate a debug-mode preview of a workspace without saving it as a version. Read-only side-effect.

Google Tag Manager
Write

Resolve Conflict

Resolve a merge conflict surfaced by sync_workspace by picking which side wins for a given entity.

Google Tag Manager
Write

Revert Folder

Discard a folder's uncommitted workspace changes.

Google Tag Manager
Write

Revert Tag

Discard a tag's uncommitted workspace changes, reverting it to the live container state.

Google Tag Manager
Write

Revert Trigger

Discard a trigger's uncommitted workspace changes.

Google Tag Manager
Write

Revert Variable

Discard a variable's uncommitted workspace changes.

Google Tag Manager
Write

Sync Workspace

Pull the latest container changes into a workspace, surfacing conflicts that need manual resolution.

Google Tag Manager
Write

Update Folder

Update a folder.

Google Tag Manager
Write

Update Tag

Update a tag. Pass a fingerprint to enforce optimistic concurrency.

Google Tag Manager
Write

Update Trigger

Update a trigger.

Google Tag Manager
Write

Update Variable

Update a variable.

Overview

What you can do with the Google Tag Manager MCP

The InsightfulPipe Google Tag Manager MCP server is a hosted Model Context Protocol server that connects your GTM accounts to AI assistants such as Claude, ChatGPT, Cursor, Claude Code, Gemini CLI and Codex. You sign in with Google, choose Read-only or Read & Write access and paste one server URL into your AI client.

ClaudeGoogle Tag ManagerAcme StoreRead-only
Ask about your Google Tag Manager account…
01Audit a container

Audit a container

List every tag, trigger and variable, then find paused tags, tags without firing triggers, duplicate tracking and naming problems.

See all Google Tag Manager actions
ClaudeGoogle Tag ManagerAcme StoreRead-only
Ask about your Google Tag Manager account…
02Draft new tracking in a workspace

Draft new tracking in a workspace

Create GA4 event tags, triggers and data layer variables in a new workspace, ready for you to preview and publish.

See all Google Tag Manager actions
ClaudeGoogle Tag ManagerAcme StoreRead-only
Ask about your Google Tag Manager account…
03Review what changed

Review what changed

Compare the live version with an earlier version, or check a workspace's pending changes before publishing.

See all Google Tag Manager actions
61
actions
one server URL
38
read actions
reports, audits, research
23
write actions
create, update, manage
Setup

How to connect the Google Tag Manager MCP server

Add the server URL to your AI client, then sign in with your InsightfulPipe account to authorize access. The server is hosted, so there is nothing to install.

MCP server URL

https://google-tag-manager.insightfulmcp.com/

Connect Google Tag Manager to Claude

Fastest: add InsightfulPipe from the Claude Directory

One click connects the full InsightfulPipe MCP with all your connected accounts. To add a server scoped to Google Tag Manager only, follow the steps below.

Open Claude Directory

Or add the Google Tag Manager server manually:

  1. 01
    Copy the server URL:
    https://google-tag-manager.insightfulmcp.com/
  2. 02
    Open Claude connector settings (Customize > Connectors), click + and then Add custom connector.
  3. 03
    Paste the URL and click Add.
  4. 04
    Click Connect, then click Authorize access in the browser.

Start a new chat, click +, open Connectors and turn the connector on to use it.

The Free plan can add one custom connector. On Team and Enterprise plans, an Owner first adds it under Organization settings > Connectors, then each member clicks Connect in Customize > Connectors.

Watch the setup tutorial

Playbook

Prompts and skills that run on the Google Tag Manager MCP

Copy a prompt into any connected client, or install a Claude skill that chains the actions for you.

Prompt

“List all tags in the Default Workspace of GTM-ABC1234 with their firing triggers”

Reads tags and triggers in a workspace

Skill

Analytics Tracking

Claude skill for analytics tracking: event naming, GA4 setup, Google Tag Manager structure, UTM rules, consent and debugging a tracking plan.

Prompt

“Find paused tags and tags that have no firing trigger”

Audits tag configuration

Skill

Privacy-First Targeting Strategist

Claude skill for advertising with less tracking data: first-party data, server-side tracking, Conversions API, consent and contextual targeting.

Prompt

“Which user-defined variables are not referenced by any tag or trigger?”

Cross-checks variables against tags and triggers

Prompt

“In a new workspace, create a GA4 event tag for form_submit that fires on form submissions”

Creates a workspace, trigger and tag on a Read & Write connection

Prompt

“What changed between the live version and the previous version?”

Compares two container versions

Prompt

“Show pending changes and conflicts in the Q3 tracking workspace”

Reads workspace status

Prompt

“Move all Meta Pixel tags into a folder called Meta”

Creates a folder and moves tags into it

HAVE QUESTIONS?

Frequently asked questions

A Google Tag Manager MCP server connects GTM to AI assistants through the Model Context Protocol (MCP), an open standard for giving AI tools access to data and actions. Once connected, you can ask Claude, ChatGPT or Cursor to audit containers and draft tags, triggers and variables instead of clicking through the GTM interface.

Ready to connect your data?

Join hundreds of agencies and brands using InsightfulPipe to connect marketing data to AI.

Start a trial today.