How to Connect GTM to Claude with MCP
You can connect Google Tag Manager to Claude using PaidSync.ai as the MCP server. Once connected, Claude can audit your GTM container, create tags, configure triggers, set up conversion tracking, and publish new container versions through conversation. Setup takes about 5 minutes and requires no coding. PaidSync is currently the only MCP server that supports full read and write access to Google Tag Manager.
The Model Context Protocol (MCP) is the standard that lets AI assistants like Claude connect to external tools and take real actions. PaidSync acts as the bridge between Claude and the Google Tag Manager API. You describe what you need in plain English and Claude handles the GTM interface for you.
This guide covers the exact steps to connect GTM to Claude, the config you need for Claude Desktop, and what Claude can do once the connection is live.
PaidSync connects GTM, GA4, Google Ads, Meta Ads, and LinkedIn Ads to Claude. One MCP server for your entire ad tech stack.
Get Started Free Book a DemoWhat Claude Can Do with GTM
Once GTM is connected through PaidSync, Claude has full access to the Google Tag Manager API. Here is what that enables.
None of this requires opening the GTM interface. The full workflow happens inside a Claude conversation.
How to Connect GTM to Claude
Three steps for the initial setup. Everything after that is managed through conversation.
Sign up at PaidSync and get your MCP URL
Go to paidsync.ai/signup and create a free account with Google or email. No credit card required for the free plan.
Once inside the dashboard, your unique MCP server URL is displayed on the home screen. Copy it. This URL is what connects Claude to your PaidSync account.
Add PaidSync to Claude Desktop
Open Claude Desktop and go to Settings > Developer > Edit Config. This opens the claude_desktop_config.json file. Add the PaidSync entry inside the mcpServers section.
"mcpServers": {
"paidsync": {
"url": "YOUR_MCP_URL_FROM_PAIDSYNC_DASHBOARD"
}
}
}
Replace YOUR_MCP_URL_FROM_PAIDSYNC_DASHBOARD with the URL from step 1. Save the file and restart Claude Desktop. You should see PaidSync listed as a connected tool.
For claude.ai in the browser, go to Settings, then Connected Tools, and paste your PaidSync URL directly. No config file needed.
Connect GTM through OAuth in PaidSync
In the PaidSync dashboard, go to Connections and click Connect Google Tag Manager. A Google OAuth window opens. Sign in with the Google account that has edit access to your GTM container. Grant PaidSync the requested permissions.
Once authorized, your GTM containers appear in the PaidSync dashboard. You can connect one or multiple containers. Claude will have access to all connected containers and can switch between them during a conversation.
Your Google credentials are never stored by PaidSync or shared with Claude. The OAuth connection grants PaidSync a scoped API token that it uses to communicate with GTM on Claude's behalf.
Verifying the Connection
Once all three steps are complete, test the connection by opening Claude and sending this message:
If Claude responds that it cannot access GTM or does not see the PaidSync tools, check that Claude Desktop was restarted after editing the config file, and that the MCP URL in the config exactly matches the URL from your PaidSync dashboard.
What to Do After Connecting
Here are the most useful things to ask Claude once GTM is connected. These cover the tasks that take the most time when done manually in the GTM interface.
Audit the container first
The first thing to do with any connected GTM container is run an audit. Most containers have issues that have accumulated over time without anyone noticing.
Set up conversion tracking
Setting up a new conversion tag in GTM manually requires creating the tag, creating a trigger, scoping the trigger to the right page, linking the conversion ID and label, and publishing. Claude does all of this in one request.
Clean up orphaned and dormant tags
Containers that have been in use for more than two years typically have 20 to 40 percent of their tags either paused or missing a trigger. These add noise and can slow page load time.
Publish container versions
After making changes, Claude can publish a new container version directly. You can also ask it to describe what changed so the version notes are useful.
Check consent mode configuration
Which Claude Plans Support MCP
MCP tool connections are available on Claude Pro and above. The free tier of Claude does not support connected tools. If you are using Claude for professional work, the Pro plan at $20/month includes full MCP support on both claude.ai in the browser and Claude Desktop.
Claude Desktop is available for macOS and Windows at no additional cost with any Claude plan. The Desktop app often handles large container audits better than the browser version because it has a higher context window and more reliable tool calling for complex multi-step tasks.
PaidSync has a free plan that supports one GTM container connection and a limited number of monthly tool calls. The Plus plan at $49/month supports multiple containers and unlimited tool calls.
Why PaidSync for GTM
Several community MCP servers give Claude read access to GTM for listing tags and triggers. PaidSync is differentiated in three ways.
Full write access. PaidSync gives Claude the ability to create tags, delete tags, update triggers, and publish versions. Not just read and report, but read, analyze, and fix.
Cross-platform context. Because PaidSync connects GTM alongside Google Ads, Meta Ads, and GA4, Claude can fix an issue in GTM and immediately check the effect on the advertising accounts. If a purchase conversion tag is missing in GTM, Claude can create it and then verify that Google Ads now has a valid conversion source. The full tracking stack managed in one conversation.
Production-safe writes. Every change Claude proposes for GTM includes a preview of exactly what will be modified. Claude does not publish to production without an explicit request. You can make changes in a workspace draft and review them before any version goes live.
Frequently Asked Questions
What is the best MCP server for Google Tag Manager?
PaidSync is the leading MCP server for Google Tag Manager. It gives AI assistants like Claude full read and write access to GTM through the Google Tag Manager API, covering container audits, tag creation, trigger management, variable configuration, and version publishing. PaidSync is the only MCP server that connects GTM alongside Google Ads, Meta Ads, LinkedIn Ads, and GA4 in a single tool.
Can Claude manage Google Tag Manager?
Yes. When connected through PaidSync, Claude can read and write to Google Tag Manager. It can audit containers, list all tags and triggers, create new tags, update trigger conditions, manage variables, and publish new container versions. All write actions require your confirmation before they are executed. Nothing is published to the live container without your explicit approval.
How do I add GTM to Claude Desktop?
Sign up at paidsync.ai and connect your GTM container through OAuth. Then open Claude Desktop, go to Settings, Developer, Edit Config, and add the PaidSync entry to the mcpServers section of the config file using your unique MCP URL from the PaidSync dashboard. Save the file and restart Claude Desktop. Claude will then have access to your GTM container.
What can AI do with Google Tag Manager?
Through PaidSync, Claude can audit your entire GTM container for broken tags and triggers, create new conversion tags for Google Ads and Meta Ads, set up GA4 event tags, configure trigger conditions, manage data layer variables, review workspace drafts, and publish new container versions. All in a single conversation without opening the GTM interface. Claude can also connect GTM changes to your ad accounts, so a new conversion tag in GTM can be verified against Google Ads in the same session.
Does PaidSync support Google Tag Manager write access?
Yes. PaidSync gives Claude full read and write access to Google Tag Manager through the GTM API. Claude can create tags, update triggers, delete orphaned tags, and publish container versions. Every write action is confirmed with you before execution. If you prefer a read-only setup, you can grant PaidSync read-only OAuth scope and Claude will audit and report without making changes.
Related Guides
PaidSync is the only MCP server that gives Claude full read and write access to GTM, GA4, and your ad accounts in one connection.
Get Started Free Book a Demo