Free planRead every connected account, 100 reads a day, free forever.See pricing →

Analytics · MCP server

Google Tag Manager MCP server

Fix tracking without spelunking GTM.

MegaMCP is a hosted Google Tag Manager MCP server that lets Claude, ChatGPT and Cursor read containers, tags, triggers, variables and version history and propose tag, trigger and variable changes and workspace publishes that you approve.

Rolling outBuilt, and switching on as approvals land.What this meansRolling out means the code is built and the platform is still approving MegaMCP's app: Google, Meta, Microsoft and the one-click ad-platform sign-ins switch on as each approval lands.

Also searched as GTM MCP.

Tools
6 reads, 9 writes
Works with
Claude, ChatGPT, Cursor, Claude Code and VS Code
Price
Free to read, changes from $19/mo
Google Tag Manager6 reads · 9 changes
MegaMCPApproval gate
  • Claude
  • ChatGPT
  • Cursor

Live demo

Watch it work on Google Tag Manager

Ask in plain English. Your AI reads Google Tag Manager with real MegaMCP tools, then hands you a plan. Nothing moves until a person clicks Approve, and supported changes can be undone.

Tools in this example

  • gtm_audit_containerReads live data
  • gtm_create_ga4_event_tagProposes a change plan
See all 15 Google Tag Manager tools
Claude · MegaMCP + Google Tag ManagerIllustrative demo
  1. You

    Audit this container, then add a GA4 event tag for clicks on 'Book a call'.

  2. Claude
    gtm_audit_containerDone2 duplicate eventsgtm_create_ga4_event_tagWaiting for approvalplan ready

    Two GA4 events fire twice on /contact, and nothing tracks the Book a call button. Here's the tag. Publishing stays a separate approval.

    Create a GA4 event tagTag Manager · acme.com · Default Workspace3 changes
    • Add: Tag: GA4 Event · book_call_click
    • Add: Trigger: Click · Text equals “Book a call”
    • Flagged: Not live until a person approves the publish
  3. Claude

    Staged in the workspace. The publish is waiting for its own approval.

What your AI can do

Google Tag Manager MCP tools

Audit containers, find broken or duplicate tags, and stage tag changes. Publishing is its own step, and it always waits for a human. This list comes straight from the running product: 6 read tools and 9 write tools.

Reads

Answer straight away. Nothing changes.

6 tools
  • Containers and workspaces
  • Container audits (tags, triggers, variables)
  • Exact workspace variables, triggers and tags with current fingerprints
  • Version history

Changes you approve

Each one returns a plan with a diff. Nothing moves until a person approves.

9 tools
  • Create GA4 event tags
  • Review constant variables, custom-event triggers and paused GA4 event-tag drafts
  • Pause and unpause tags
  • Publish a workspace (a separate approval)

Google Tag Manager guardrail

Tag edits and publishing are separate plans. Nothing reaches your live site until someone approves the publish.

Plus complete diff previews, human approvals and the flight recorder on every connection. Live changes require a paid plan.

All 15 Google Tag Manager tools6 reads, 9 changes · straight from the running product
What it doesTool idType
Containers and workspacesgtm_list_containersRead
Audit a containergtm_audit_containerRead
Versionsgtm_list_versionsRead
Create a GA4 event taggtm_create_ga4_event_tagChange
Pause or unpause a taggtm_set_tag_pausedChange
Publish a workspacegtm_publish_workspaceChange
List workspace entitiesgtm_list_workspace_entitiesRead
Inspect exact entitygtm_get_workspace_entityRead
Propose constant variablegtm_create_constant_variableChange
Propose constant updategtm_update_constant_variableChange
Propose exact custom-event triggergtm_create_custom_event_triggerChange
Propose exact custom-event trigger updategtm_update_custom_event_triggerChange
Propose paused GA4 taggtm_create_paused_ga4_tagChange
Propose bounded GA4 tag updategtm_update_paused_ga4_tagChange
Inspect uncertain creationgtm_reconcile_created_entityRead

Example prompts

Google Tag Manager MCP prompts

Paste any of these into Claude, ChatGPT or Cursor once Google Tag Manager is connected.

More Google Tag Manager prompts
  1. “Audit this container: list tags with no firing trigger and duplicate GA4 events.”

  2. “Add a GA4 event tag for clicks on any 'Book a call' button.”

  3. “Which tags changed in the last 3 published versions?”

  4. “Pause the old Universal Analytics tags in this container.”

  5. “List every tag, trigger and variable in the current workspace.”

  6. “Create a constant variable for our GA4 measurement ID.”

  7. “Add a custom-event trigger for the 'form_submit' event.”

  8. “Unpause the GA4 purchase tag I paused last week.”

Setup

Google Tag Manager MCP setup in 3 steps

About two minutes for Claude, ChatGPT or Cursor. Nothing to install.

  1. Connect Google Tag Manager

    Start a free workspace, open Connections and sign in to Google Tag Manager with one click. Then switch on the accounts your AI may use. No API keys to copy.

  2. Add MegaMCP to your AI app

    Every app uses the same server URL.

    MCP server URL
    https://megamcp.com/api/mcp
  3. Ask in plain English

    Try “Audit this container: list tags with no firing trigger and duplicate GA4 events.” Reports answer straight away. Anything that changes Google Tag Manager comes back as a plan for you to approve.

Safety

Hand AI the keys. Keep the brakes.

The same loop guards every MegaMCP connection: ask, see the diff, approve, undo.

Approval before every change

Google Tag Manager write tools never touch Google Tag Manager directly. They return a plan, and a person approves it in the dashboard, or in chat if an admin allows it.

Approval requestedGoogle Tag Manager · 1 plan waitingDashboard · just now

A diff first

Every plan lists each change with its before and after values, so you see exactly what will move before it does.

Plan previewGoogle Tag Manager1 change
  • Change: ValueBeforeAfter
  • Check passed: Checked again right before it applies

Undo for supported changes

Supported changes reverse through a separately reviewed undo plan. Anything that can't be undone is marked before you approve it.

Undo plan readyRestores the previous valuesReviewed like any other change

Receipts for everything

Platform checks stop stale edits, and the flight recorder logs every tool call, plan and approval, with who did it and from which AI app.

TimeEvent
09:14gtm_list_containers
09:15Plan created by Claude
09:16Approved by Ana

FAQ

Google Tag Manager MCP server questions

Is there an official Google Tag Manager MCP server?

Not that we could find. As of October 2026, Google does not publish a Tag Manager MCP server; the ones available come from third parties. MegaMCP's Tag Manager connection audits containers and stages tag changes, and keeps publishing as its own separate approval.

What is a Google Tag Manager MCP server?

An MCP (Model Context Protocol) server lets AI assistants such as Claude, ChatGPT and Cursor use Google Tag Manager through tools. MegaMCP's hosted Google Tag Manager MCP server gives your assistant 6 read tools and 9 write tools for containers, tags, triggers, variables and version history, and every change waits for a human approval.

Does the Google Tag Manager MCP server work with ChatGPT?

Yes. MegaMCP is a remote MCP server with OAuth sign-in, so one URL works in ChatGPT (as an app, with developer mode on), Claude (as a custom connector), Cursor, Claude Code and VS Code. Your AI app's own plan decides whether it can add custom MCP servers.

Can it make changes to my Google Tag Manager account?

Yes, with your approval. It can propose tag, trigger and variable changes and workspace publishes changes. Each one comes back as a plan with a line-by-line diff and waits for a human before anything moves. Tag edits and publishing are separate plans. Nothing reaches your live site until someone approves the publish.

How do I connect Google Tag Manager to Claude or ChatGPT?

Start a free MegaMCP workspace, connect Google Tag Manager with one-click sign-in on the Connections page, and switch on the accounts your AI may use. Then add MegaMCP to your AI app with one URL. No API keys to copy, no code.

What does the Google Tag Manager MCP server cost?

Reading Google Tag Manager is free on MegaMCP's Free plan (100 reads a day, no card). Approved changes are included in every paid plan, from $19/month after a 5-day free trial, with unlimited runs and no credits. MegaMCP adds no markup: any subscription or API usage with the vendor stays between you and them.

Is my Google Tag Manager data safe?

Your Google Tag Manager credentials are encrypted at rest (AES-256-GCM) and bound to their connection, and MegaMCP never trains AI models on your data. Your AI only sees the accounts you switch on, members limited to certain clients only see those clients, and every tool call lands in the flight recorder.

5 days. On the house.

Put Mega to work. Your ad budget stays yours.

No credit card to start. Every workspace comes with a sandbox ad account, so you can watch the whole ask, diff, approve, undo loop before you connect anything real.

Get launch updates

New integrations, platform approvals, the occasional dark joke. One or two emails a month. Unsubscribe anytime.

Want early access? Join the waiting list →