Google Tag Manager MCP Server
Connect Google Tag Manager to Claude, Cursor & AI assistants
Example prompts
Read + writeList all my GTM containers
What you can do
Audit GTM containers, detect duplicate conversion tracking, find unused tags and triggers, list tags without consent settings, all via AI conversation. The fastest way to clean up messy tag setups and ensure accurate measurement.
- Access
- Read + write
- MCP tools
- 4: 3 read, 1 change
- Plan
- All plans
- API version
- Tag Manager API v2
All 4 tools
Read
gtm_list_containersList all GTM accounts and containers accessible to the connected Google accountgtm_list_entitiesList GTM tags, triggers, and variables with writable paths and fingerprints for updatesgtm_auditAudit a GTM container: tag health, duplicate conversions, unused triggers and variables, and tags without consent settings
Change
gtm_manageCreate, update and delete tags, triggers and variables in a workspace, then version and publish the container
Technical specifications
- Rate limits
- 10 req/s per user. 100,000 req/day quota.
- Data freshness
- Real-time, container data reflects the current published state.
- OAuth scopes
https://www.googleapis.com/auth/tagmanager.readonlyhttps://www.googleapis.com/auth/tagmanager.edit.containers
- Container health auditing
- Duplicate conversion detection
- Unused tag/trigger identification
- Missing consent settings check
- Workspace management
- Live container versus workspace draft comparison
Real-world use cases
Duplicate conversion tags silently inflate ROAS and conversion counts. Finding them requires manually reviewing every tag and its associated triggers.
Ask Claude to audit your container for duplicate conversion tracking. Get a prioritized list of tags that may be firing the same conversion multiple times.
Audit my GTM container for duplicate conversion tags. I want to know which conversions might be getting counted twice.
Ensuring every tracking tag respects consent requires checking each tag's trigger configuration against your consent mode setup.
Run the consent check to list tags that have no consent settings, so you can review each one against your consent mode setup.
Check my GTM container for tags without consent settings. Which ones should I review first?
Over time, GTM containers accumulate unused tags, orphaned triggers, and variables that nobody remembers creating. These slow down the container and create confusion.
Get a full inventory of unused tags and triggers with recommendations for what to archive or delete.
Find all unused tags and triggers in my GTM container. Which ones can we safely remove?
Auditing a new client's GTM container to understand what's tracked, what's broken, and what's missing requires deep GTM knowledge and hours of manual review.
Run a comprehensive container audit to get an instant overview of the setup, tag types, firing rules, health score, and priority issues.
Give me a full audit of this GTM container. What's set up, what's broken, and what are the top 3 issues to fix first?
Get started in 3 steps
- 1
Sign up for Ad Superpowers
Start your 14-day trial and connect your Google Tag Manager account via OAuth. All 8 platforms included.
- 2
Get your API key
Generate an API key from your dashboard. This key authenticates your AI assistant with Ad Superpowers.
- 3
Configure your AI assistant
Add the MCP server URL and your API key to the AI tool you already work in. Setup per AI client
What is Google Tag Manager MCP Server?
The Google Tag Manager MCP Server brings AI-powered auditing to your tag management. If you're running paid ads across Meta, Google, LinkedIn, and TikTok, your GTM container is the single most important thing keeping your measurement accurate, and also the most likely source of silent data quality problems.
Read moreShow less
Duplicate conversion tags are the most common GTM issue agencies discover. A conversion fires twice, your ROAS looks twice as good as it is, and decisions get made on bad data. With the gtm_audit tool, you can detect these in seconds instead of spending hours clicking through the container.
The gtm_manage tool works in a GTM workspace: it can edit tags, triggers and variables, create a version and publish it. Publishing goes live immediately, so review the version first. You can also ask Claude to check the configuration of a specific tag or compare the live container with the draft in the default workspace.
Google Tag Manager is connected on its own on the Integrations page, with the same Google account you use for Google Ads, GA4 and Search Console.
Why use AI for Tag Manager?
GTM's interface is built for developers and technical marketers. For everyone else, finding specific tags, understanding firing rules, and auditing the container for issues requires significant expertise and time.
AI changes this. Ask "Which tags have no consent settings?" and get a direct answer, no GTM expertise required. Ask "Which conversion tags could be duplicating my GA4 and Google Ads data?" and get a prioritized list of tags to review.
For agencies managing containers across dozens of clients, AI-powered GTM auditing is transformative. A container audit that used to take 2 hours becomes a 5-minute conversation. Onboarding a new client's container, understanding what's set up, what's broken, what's missing, goes from a day-long process to a quick review.
Key capabilities
- List all GTM accounts and containers with metadata
- Container audit: health score, potential duplicates, tags without consent settings
- Unused tag and trigger identification for container cleanup
- Detection of tags without consent settings
- Workspace creation for safe, isolated tag editing
- Live container versus workspace draft comparison
Frequently asked questions
An MCP (Model Context Protocol) server connects your Google Tag Manager containers to AI assistants like Claude. Instead of clicking through the GTM interface, you can ask questions like 'Do I have duplicate Google Ads conversion tags?' or 'Which triggers are unused?' and get instant answers.
Yes. Each Google service is connected individually on the Integrations page, with the same Google account. If you already connected Google Ads, GA4 or Search Console, Google asks once more for Tag Manager access.
You can list all your GTM accounts and containers, run comprehensive audits to detect duplicate conversion tags, find unused tags and triggers, list tags without consent settings, create workspaces for safe editing, and compare the live container with the default workspace draft. The gtm_audit tool provides a health score and actionable recommendations.
Yes! Google Tag Manager is available on every plan, including the 14-day trial. All 8 platforms are included from day one.
Yes. With the gtm_manage tool the assistant can edit tags, triggers and variables in a workspace, create a container version and publish it. Publishing goes live immediately, so review the version before you ask the assistant to publish, or publish it yourself in the GTM interface.
The gtm_audit tool lists tags whose consent settings are missing or empty and flags Custom HTML tags and Custom JavaScript variables for review. It does not inspect triggers or your consent banner, so treat it as a first pass and combine it with legal review.
Works great with
Connect Google Tag Manager to your AI

