Reads
Answer straight away. Nothing changes.
- Containers and workspaces
- Container audits (tags, triggers, variables)
- Exact workspace variables, triggers and tags with current fingerprints
- Version history
Analytics · 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.
Live demo
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 datagtm_create_ga4_event_tagProposes a change planAudit this container, then add a GA4 event tag for clicks on 'Book a call'.
gtm_audit_containerDone2 duplicate eventsgtm_create_ga4_event_tagWaiting for approvalplan readyTwo GA4 events fire twice on /contact, and nothing tracks the Book a call button. Here's the tag. Publishing stays a separate approval.
Staged in the workspace. The publish is waiting for its own approval.
What your AI can do
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.
Answer straight away. Nothing changes.
Each one returns a plan with a diff. Nothing moves until a person approves.
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.
| What it does | Tool id | Type |
|---|---|---|
| Containers and workspaces | gtm_list_containers | Read |
| Audit a container | gtm_audit_container | Read |
| Versions | gtm_list_versions | Read |
| Create a GA4 event tag | gtm_create_ga4_event_tag | Change |
| Pause or unpause a tag | gtm_set_tag_paused | Change |
| Publish a workspace | gtm_publish_workspace | Change |
| List workspace entities | gtm_list_workspace_entities | Read |
| Inspect exact entity | gtm_get_workspace_entity | Read |
| Propose constant variable | gtm_create_constant_variable | Change |
| Propose constant update | gtm_update_constant_variable | Change |
| Propose exact custom-event trigger | gtm_create_custom_event_trigger | Change |
| Propose exact custom-event trigger update | gtm_update_custom_event_trigger | Change |
| Propose paused GA4 tag | gtm_create_paused_ga4_tag | Change |
| Propose bounded GA4 tag update | gtm_update_paused_ga4_tag | Change |
| Inspect uncertain creation | gtm_reconcile_created_entity | Read |
Example prompts
Paste any of these into Claude, ChatGPT or Cursor once Google Tag Manager is connected.
“Audit this container: list tags with no firing trigger and duplicate GA4 events.”
“Add a GA4 event tag for clicks on any 'Book a call' button.”
“Which tags changed in the last 3 published versions?”
“Pause the old Universal Analytics tags in this container.”
“List every tag, trigger and variable in the current workspace.”
“Create a constant variable for our GA4 measurement ID.”
“Add a custom-event trigger for the 'form_submit' event.”
“Unpause the GA4 purchase tag I paused last week.”
Setup
About two minutes for Claude, ChatGPT or Cursor. Nothing to install.
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.
Every app uses the same server URL.
https://megamcp.com/api/mcpTry “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
The same loop guards every MegaMCP connection: ask, see the diff, approve, undo.
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.
Every plan lists each change with its before and after values, so you see exactly what will move before it does.
Supported changes reverse through a separately reviewed undo plan. Anything that can't be undone is marked before you approve it.
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.
| Time | Event |
|---|---|
| 09:14 | gtm_list_containers |
| 09:15 | Plan created by Claude |
| 09:16 | Approved by Ana |
Workflows
Ready-made jobs that run on a schedule and send you what they found. Anything they want to change waits for approval.
FAQ
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.
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.
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.
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.
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.
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.
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.
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.
New integrations, platform approvals, the occasional dark joke. One or two emails a month. Unsubscribe anytime.