Is there a Google Tag Manager MCP server so Claude can set up my Google Ads and LinkedIn conversion tags?
TofuAnswer by the Tofu team · checked
Not from Google. Google hasn't published a Tag Manager MCP server: its Tag Manager API docs don't mention one, and Tag Manager isn't on Google Cloud's list of MCP servers. Vendor and community servers built on the Tag Manager API do exist, including Stape's (free, open source, hosted or local), Paolo Bietolini's GTM MCP Server (open source; its hosted instance closes November 30, 2026) and Markifact (paid, hosted). Each can create tags, triggers and variables and publish containers. Let Claude build in a workspace, check it in Preview, and have a person publish.
As of October 2026.
Your options at a glance
| Option | What it does | Cost | Main limit |
|---|---|---|---|
| Tag Manager and its API (Google) | You build tags in Tag Manager, or Claude Code scripts the Tag Manager API | Free | No MCP server |
| Stape's GTM MCP server | 20 tools covering containers, workspaces, tags, triggers, variables, versions and user permissions; hosted or local | Free, per Stape; open source (Apache 2.0) | Its default scopes include publishing and user management |
| GTM MCP Server (Paolo Bietolini) | 64 tools by default; publishing and deletes need a confirm flag; no user-permission tools | Open source (BSD 3-Clause); no price listed | Hosted instance closes November 30, 2026; then you host it yourself |
| Markifact | Hosted GTM connector with 97 operations; writes wait for your approval in Markifact | Pro from $79 a month, Team from $249; trial credits | Operations use credits; the pricing page doesn't mention Tag Manager |
| Tofu Ads Agent (our product) | Sets up LinkedIn and Google conversion events for a page visit or a click | $2,500 a month, flat | Doesn't work in Tag Manager or publish containers |
1. Google's own way: Tag Manager and the Tag Manager API
Google's Tag Manager API overview (updated July 30, 2026) doesn't mention MCP, and neither Google Cloud's list of supported MCP servers (updated October 26, 2026) nor Google's list of its official MCP servers on GitHub includes Tag Manager. Google's Google Ads MCP server only reads Google Ads data, so it can't touch tags.
What Google does offer is the Tag Manager API v2, which every server here wraps. Its OAuth scopes let you grant less than everything:
| Scope | What Google says it allows |
|---|---|
tagmanager.readonly | View your Tag Manager containers |
tagmanager.edit.containers | Manage your containers |
tagmanager.edit.containerversions | Manage your container versions |
tagmanager.publish | Publish your containers |
tagmanager.manage.users | Manage user permissions |
tagmanager.delete.containers and tagmanager.manage.accounts | Delete containers; manage accounts |
Without an MCP server, Claude Code can write a script against the API in your own Google Cloud project, or Claude can draft the tag settings for you to enter in Tag Manager. The API allows 10,000 requests per project per day and 0.25 per second.
2. Stape's MCP server for Google Tag Manager
Stape's server comes in two forms with the same 20 tools. The hosted one signs you in with Google, and your data passes through Stape's server. Its README gives the address https://gtm-mcp.stape.io/mcp; Stape's help page and blog give https://gtm-mcp.stape.ai/mcp. The local one runs with npx google-tag-manager-mcp-server and a service account key, refresh token or access token you supply, so no data passes through anyone else's server. The README covers Claude, Claude Code, ChatGPT, Cursor, VS Code and others. In Claude Code:
claude mcp add --transport http gtm-mcp-server https://gtm-mcp.stape.io/mcp
Then type /mcp and sign in with Google.
Each tool covers one Tag Manager resource, with actions such as list, get, create, update and remove. The CLI README says the default scopes cover "everything the tools do, from reading containers to publishing versions." On the local version you can narrow them with GTM_SCOPES.
Limit: the README describes no confirmation step of its own before a publish, so your AI app's tool approval is the only check. Cost: Stape's blog calls it "our free GTM MCP server."
3. GTM MCP Server by Paolo Bietolini
This open-source Go server (BSD 3-Clause, version 1.12.3) covers 101 of the 106 Tag Manager API methods, with 64 tools by default and 94 when you turn on every tool group. It leaves out the five user-permission methods on purpose, so it can't grant or revoke access. Deletes, publishing and disabling built-in variables require confirm: true, updates check that nobody else changed the item first, and a quick_preview_workspace tool compiles a preview without saving or publishing.
Its hosted instance at https://mcp.gtmeditor.com "will be shut down on November 30, 2026," per the README. After that, you run it yourself with Docker or Go, plus your own Google OAuth client or a service account.
Limit: the AI sets confirm: true itself. That stops slips, not an agent that has decided to publish.
AdGurus' tag-manager-mcp is a smaller option: a local Python server (MIT license) that also requires confirm=true to publish and calls itself "internal-use."
4. Markifact
Markifact is a hosted MCP service at https://api.markifact.com/mcp. You "Sign in with Google and authorize the GTM accounts you already manage," and it works with Claude, ChatGPT, Cursor, Codex and Gemini CLI. Markifact says its Tag Manager connector has "37 reads for inspection and 60 approval-gated writes," and that it publishes "only after the workspace is clean and you approve the release." The same connection covers other platforms, including LinkedIn Ads (see the LinkedIn Ads MCP options).
Cost: Pro from $79 a month and Team from $249 a month, with trial credits and no credit card to start. MCP data operations cost credits, "typically 1 each." The pricing page doesn't mention Tag Manager.
5. Tofu Ads Agent (our product)
Tofu Ads Agent can set up conversion events on LinkedIn and Google for a page visit or a click while it plans, builds and runs your campaigns, and it runs a conversion tracking audit for Google Search. It doesn't work in Tag Manager, install the Google tag or the LinkedIn Insight Tag, or publish containers. It costs a flat $2,500 a month.
What can go wrong if an AI publishes your tags?
- Publishing is live. Google says that when you publish, "Tag Manager will make your changes active for the environment specified."
- Wrong triggers count the wrong things. A conversion tag on All Pages instead of the thank-you page turns every page view into a lead, and bidding on that conversion then chases page views.
- Sensitive pages. LinkedIn says "The Insight Tag should not be installed on web pages that collect or contain sensitive data." If you have such pages, exclude them from the All Pages trigger.
- It acts as you. Hosted servers sign in with your Google account, so the agent gets your Tag Manager rights. If you can publish or manage users, so can it.
- Workspace conflicts. When a new version is created, Google marks other workspaces out of date. In a conflict, Resolve All keeps the workspace's changes over the synced ones, which can undo a teammate's work.
How do you let Claude set up conversion tags safely?
- Give the agent its own access, without Publish. Use a separate Google account or a service account with container permission Edit (create workspaces and make edits) or Approve (also create versions), and account permission User, not Administrator. On Stape's local server, also leave
tagmanager.publishandtagmanager.manage.usersout ofGTM_SCOPES. - Use its own workspace. Regular accounts allow the default workspace plus 2 more; Tag Manager 360 allows unlimited.
- Give it exact inputs. For Google Ads, create a manual conversion action (automatic ones have no Conversion Label), open Tag setup, select Use Google Tag Manager, and pass the Conversion ID and Conversion Label for a Google Ads Conversion Tracking tag on your thank-you trigger. Add a Conversion linker tag on All Pages unless a Google tag already loads on every page. For LinkedIn, ask for the LinkedIn InsightTag 2.0 template from the Community Template Gallery with your Partner ID on All Pages; for an event-specific conversion, choose Tag manager and Event-specific when you create it in Campaign Manager, and give the agent the Conversion ID.
- Preview it yourself. In the Workspace tab, click Preview, enter your site's URL and click Connect, then submit a test form and check which tags fired in Tag Assistant.
- A person publishes. Click Submit, select Publish and Create Version, and name the version. In Tag Manager 360, Edit users can Request Approval instead.
- Check the platforms. LinkedIn shows a new conversion as Unverified until it sees traffic. If it still shows nothing, see why LinkedIn shows zero conversions with the Insight Tag installed.
- Know the undo. Under Versions, select the last good version, then Action and Publish.
How to choose
- Free, on your own machine and credentials: Stape's local server, with publishing and user-management scopes removed.
- A confirm step on publishing and no permission tools: Paolo Bietolini's server, self-hosted after November 30, 2026.
- Vendor-run approvals, with ad platforms in the same connection: Markifact.
- Conversion events created in LinkedIn and Google as part of running the campaigns: Tofu Ads Agent.
Sources (25)
- Google Tag Manager (Google Marketing Platform), checked October 28, 2026
- Google Tag Manager API: Overview (Google for Developers), checked October 28, 2026
- Authorize requests: Tag Manager API scopes (Google for Developers), checked October 28, 2026
- Tag Manager API limits and quotas (Google for Developers), checked October 28, 2026
- Supported products: Google Cloud MCP servers (Google Cloud documentation), checked October 28, 2026
- google/mcp: Google's official MCP servers (GitHub README), checked October 28, 2026
- googleads/google-ads-mcp: Google Ads MCP Server (GitHub README), checked October 28, 2026
- Managing users and permissions (Tag Manager Help), checked October 28, 2026
- Workspaces (Tag Manager Help), checked October 28, 2026
- Preview and debug containers (Tag Manager Help), checked October 28, 2026
- Publishing, versions, and approvals (Tag Manager Help), checked October 28, 2026
- Google Ads conversions (Tag Manager Help), checked October 28, 2026
- Conversion linker (Tag Manager Help), checked October 28, 2026
- Add the LinkedIn site-wide Insight Tag to Google Tag Manager (LinkedIn Marketing Solutions Help), checked October 28, 2026
- Use event-specific conversion tracking with Google Tag Manager (LinkedIn Marketing Solutions Help), checked October 28, 2026
- stape-io/google-tag-manager-mcp-server (GitHub README), checked October 28, 2026
- google-tag-manager-mcp-server CLI README (Stape, GitHub), checked October 28, 2026
- How to set up the Model Context Protocol (MCP) server for Google Tag Manager (Stape Help Center, updated September 25, 2026), checked October 28, 2026
- How to configure the MCP Server for Google Tag Manager (Stape blog, updated July 20, 2026), checked October 28, 2026
- paolobietolini/gtm-mcp-server (GitHub README), checked October 28, 2026
- AdGurus/tag-manager-mcp (GitHub README), checked October 28, 2026
- The Google Tag Manager MCP that builds and publishes (Markifact), checked October 28, 2026
- Pricing (Markifact), checked October 28, 2026
- LinkedIn Ads MCP: Run B2B Campaigns from Claude & ChatGPT (Markifact), checked October 28, 2026
- Tofu Ads Agent (llms.txt), checked October 28, 2026