Google Tag Manager
MCP

Google Tag Manager MCP Server

Connect Google Tag Manager to Claude, Cursor & AI assistants

3 MCP ToolsPro+ Plan

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.

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 lets you create workspaces and inspect configurations directly through conversation. Instead of navigating GTM's interface, ask Claude to check the configuration of a specific tag, create a workspace for upcoming changes, or compare the current container with a previous version.

Google Tag Manager shares the same Google OAuth connection as Google Ads, GA4, and Search Console — so if you're already connected on any of those, GTM is ready with no extra setup.

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 "Do I have any tags firing without a consent trigger?" 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
Comprehensive container audit: health score, duplicate detections, compliance flags
Unused tag and trigger identification for container cleanup
GDPR consent mode compliance checking
Workspace creation for safe, isolated tag editing
Version history inspection and comparison

What You Can Do

Container health auditing
Duplicate conversion detection
Unused tag/trigger identification
GDPR consent compliance check
Workspace management
Version history inspection

Available MCP Tools

3 tools
gtm_list_containersList all GTM accounts and containers accessible to the connected Google account
gtm_auditRun a comprehensive audit of a GTM container: tag health, duplicate conversions, unused triggers, consent compliance
gtm_manageCreate workspaces, manage versions, and inspect tag configurations within a container

Example Prompts

Once connected, try asking Claude these questions about your Google Tag Manager data:

List all my GTM containers
Audit my GTM container for issues
Find duplicate conversion tracking tags
Which tags are firing but not linked to any trigger?
Check my container for GDPR consent compliance
Show me all unused triggers in my container
Create a new workspace for my Q2 tracking changes
What's the health score of my GTM container?

Real-World Use Cases

Duplicate Conversion Audit

Challenge:

Duplicate conversion tags silently inflate ROAS and conversion counts. Finding them requires manually reviewing every tag and its associated triggers.

Solution:

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.

Example prompt:

Audit my GTM container for duplicate conversion tags. I want to know which conversions might be getting counted twice.

GDPR Consent Compliance Check

Challenge:

Ensuring every tracking tag respects consent requires checking each tag's trigger configuration against your consent mode setup.

Solution:

Run a consent compliance audit to identify tags that fire before consent is granted, missing consent triggers, and scripts that could collect data illegally.

Example prompt:

Check my GTM container for GDPR compliance. Which tags could be firing without user consent?

Container Cleanup

Challenge:

Over time, GTM containers accumulate unused tags, orphaned triggers, and variables that nobody remembers creating. These slow down the container and create confusion.

Solution:

Get a full inventory of unused tags and triggers with recommendations for what to archive or delete.

Example prompt:

Find all unused tags and triggers in my GTM container. Which ones can we safely remove?

New Client Onboarding

Challenge:

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.

Solution:

Run a comprehensive container audit to get an instant overview of the setup — tag types, firing rules, health score, and priority issues.

Example prompt:

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?

Technical Specifications

API Version
Tag Manager API v2
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

Get Started in 3 Steps

1

Sign up for Ad Superpowers

Create a free account and connect your Google Tag Manager account via OAuth.Note: Google Tag Manager requires the Pro plan or higher.

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 Claude, Cursor, or your preferred AI tool. Follow our installation guide for step-by-step instructions.

Frequently Asked Questions

Ready to connect Tag Manager?

Stop drowning in dashboards
Start flying with insights

Join agencies saving 10+ hours per week with AI-powered ad insights.

Free forever plan available