Start free

Google Tag Manager MCP

Google Tag Manager MCP: which server to use and how to connect it to Claude or ChatGPT

The server URLs that work today, the Tag Manager permissions that stop any of them from publishing, and a read-only audit.

AdCtrl article cover: Google Tag Manager MCP. Tag Manager, highlighted, sits on a ring with Claude and ChatGPT around the AdCtrl mark, for connecting a container's tags, triggers and variables to an AI assistant.

Short answer

  • As of 30 November 2026, Google has not published an official Google Tag Manager MCP server. Its own GitHub list of the MCP servers it publishes names an Analytics server and no Tag Manager one.
  • Before you connect any server, give the Google account it uses Read or Edit on the container and keep it a User, not an Administrator, on the Tag Manager account. Edit can make edits but not create versions or publish.
  • Stape's server runs hosted at https://gtm-mcp.stape.io/mcp or as a local CLI with the same 20 Tag Manager tools, and its code asks Google for all seven Tag Manager scopes, publish and user management included.
  • The hosted mcp.gtmeditor.com endpoint was shut down on 20–21 November 2026 and its domain is not being renewed. Remove it from every MCP config.
  • An MCP server reads the container's configuration, not what ran on your site. Check every AI-made change in Preview mode, then publish it yourself in Tag Manager.

Audit a Tag Manager container you select, read only first

Start free

3-day free trial · no card needed

A Google Tag Manager MCP server lets Claude or ChatGPT read and change a Tag Manager container. Google hasn't published one, so you use a third-party server like Stape's, at https://gtm-mcp.stape.io/mcp. Whichever you pick, sign it in with a Google account that has Read or Edit on the container and isn't an Administrator of the Tag Manager account.

I build AdCtrl, one of the five options compared here: it reads the Tag Manager containers you turn on and edits tags, triggers and variables in a workspace from Claude or ChatGPT, and leaves publishing to you. For Google's Analytics server, see the Google Analytics MCP guide.

Checked 30 November 2026 against Google's own lists, Tag Manager Help and each option's page1, 2.

  • 0 official Google Tag Manager MCP servers from Google1
  • 20 Tag Manager tools in Stape's server, hosted or local3
  • 97 operations in Markifact's Tag Manager MCP4
  • 21 Nov 2026 the hosted mcp.gtmeditor.com endpoint shut down5

Does Google Tag Manager have an official MCP server?

Google Tag Manager (GTM) has no MCP server from Google as of 30 November 2026. Google's GitHub list of the MCP servers it publishes names a Google Analytics server and nothing for Tag Manager1.

The same list leaves out Google's own Google Ads server as well, so on the same day I checked Google Cloud's table of managed MCP servers, the Tag Manager release notes and Google's GitHub organisations. None of them has a Tag Manager server.

Google's Analytics server covers Google Analytics only, and Google's guide says it handles read requests only. The Tag Manager servers below are built by other companies and developers on the Tag Manager API, and they talk to Claude and ChatGPT over MCP, the protocol those apps use to call outside tools.

How do you stop a Tag Manager MCP server from publishing?

Set the Google account's permission on the container to Read or Edit before you connect any server, and keep it a User, not an Administrator, on the Tag Manager account. A Tag Manager MCP server acts as the Google account it signs in with, and Claude's help page says a connector can access and modify data "based on your permissions"6.

Container permissionWhat Tag Manager Help says the user can doWhen to give it to the account your AI uses
ReadView the container and "browse the tags, triggers, and variables in the container, but won't have the ability to make any changes"A read-only audit
Edit"Create workspaces and make edits but not create versions or publish"AI edits you test in Preview and publish yourself
Approve"Create versions, workspaces, and make edits but not publish"Only if you want the AI to prepare versions
Publish"Full rights to create versions, workspaces, make edits, and publish"I wouldn't, on any server

Edit is the highest container permission that can't create versions or publish, so it's the level for AI changes you review.

Source: Tag Manager Help, "Managing users and permissions", read 30 November 20262.

You set it in Tag Manager under Admin, then User Management in the Container column: pick the user, change the container permission and save. Check the Account permissions in the Account column too, where the same user should be a User. If either permission shows as inherited from a user group or organization role, lower it where it was granted.

Container permissions belong to a Google account, so if your own account needs Publish, sign the server in with a second account that has Edit on the container and User on the account.

On an account with those two permissions, every server on this page stops at the workspace, so which account you sign in with matters more than whether the server has a publish tool.

The account level matters because an Administrator can change user permissions, its own included. Tag Manager Help says to "Select Administrator if the user should have the ability to create new containers and modify user permissions for accounts and containers", and Stape's server includes a user permission tool that can do it3, 2.

Stape's code requests all seven Tag Manager scopes, including publish, delete containers and manage users. Read the consent screen of whichever server you connect, mine included, but rely on the Tag Manager permissions: they hold whatever the server asks for.

Keep the ceiling low because whatever the AI does runs with that account's rights, whether it misread your request or followed an instruction it shouldn't have. Claude's help page warns that malicious MCP servers "may include hidden instructions that try to make Claude perform unintended actions"6.

On an Edit account that isn't an account Administrator, the worst a server can do to your live site is leave an unpublished change in a workspace. It can still read everything in the container, Custom HTML included. The MCP security guide for ad accounts covers that risk in more depth.

  • The AI's Google account has Read or Edit on this container, not Approve or Publish
  • The AI's account is a User, not an Administrator, on the Tag Manager account
  • That account has no access to containers outside the job
  • You've read the scopes on Google's consent screen
  • You know who runs the server and where your Google sign-in is held
  • No config still points at mcp.gtmeditor.com
  • Your first request is read only
  • You know where to remove the account in the container's User Management

Which Google Tag Manager MCP servers can you use today?

The five routes compared here reach a Tag Manager container from Claude or ChatGPT today, and they differ most in who holds your Google sign-in and whether they can publish. On the account set up above, publishing is off the table for all of them.

OptionHow you connectStrength, per its own pageCan it publish?Who holds the Google sign-in
Stape, hostedPaste the URL into Claude or ChatGPT, or run one command in Claude CodeOpen-source code; 20 Tag Manager tools, versions and user permissions includedYesStape; data passes through gtm-mcp.stape.io
Stape, local CLIRuns on your computer with a service account key or tokenThe same 20 tools, with no data through anyone else's serverYesYou
MarkifactHosted; in Claude's connector directory and ChatGPT's plugins marketplace, or added by URL, per its page37 reads and 60 approval-gated writes; web, server, AMP and mobile containersYes, after you approve the releaseMarkifact
gtm-mcp-server (Paolo Bietolini)Self-host only; the hosted instance is shut downPublic code you run yourself, with tools for server-side containers; in maintenance modeYes, a selected version after explicit confirmationYou
AdCtrlIts Claude directory listing or ChatGPT plugin, or a URL for manual setup; needs a Claude or ChatGPT plan and at least one Google Ads or Meta ad accountReviews containers, tags, triggers and variables; edits tags, triggers and variables in a workspace; reads back each approved changeNo, publishing stays with you in Tag ManagerAdCtrl

Four of the five options can publish a container version, and none of them can on an account with Edit on the container and User on the Tag Manager account.

Source: Each option's own README, product page or docs, read 30 November 20263, 4, 5, 7.

A hosted server holds your Google sign-in on the vendor's side and sees your container data on its way to the AI. Stape's README says its hosted data "passes through gtm-mcp.stape.io" and offers the local CLI for anyone who wants no data going through anyone else's server3.

The same is true of every hosted option on this page, AdCtrl and Markifact included: your Tag Manager data passes through the vendor's server.

Claude's help page tells you to connect only to servers "built and hosted by organizations and applications you trust", and says you can revoke access by disconnecting the connector in Claude or in the service's own security settings.

In Tag Manager, removing the account from the container's User Management takes away its direct access to that container, and with it the access of every server signed in as that account. Permissions inherited from a user group or organization role have to be removed where they were granted6, 2.

Choose Stape if

  • you want open-source code you can read
  • you can run the local CLI, or accept data passing through Stape
  • you also work in Claude Code, Cursor or VS Code

Choose Markifact if

  • you need server, AMP or mobile containers covered
  • you want publishing behind a release you approve
  • you want one connection for its other marketing integrations

Choose AdCtrl if

  • you want Google Ads, Meta, Analytics and Search Console in the same chat
  • you want each approved change read back from Tag Manager
  • you want publishing kept out of the chat
Screenshot of the gtm-mcp-server README on GitHub with the line highlighted saying the hosted instance at mcp.gtmeditor.com was shut down during the night of 20–21 November 2026.

The project's own README announces the shutdown. Self-hosting the code still works; the old hosted address has to come out of every client config.

What is the Google Tag Manager MCP server URL?

Stape's hosted Google Tag Manager MCP server URL is https://gtm-mcp.stape.io/mcp3. Markifact and AdCtrl are usually added from a directory listing, and both also offer a URL for manual setup; the local and self-hosted servers have no shared URL.

  • Stape, hosted: https://gtm-mcp.stape.io/mcp, with Google sign-in through Stape

    (Hosted)

  • Stape, local CLI: No URL. The server runs on your computer with your own credentials

    (Local)

  • gtm-mcp-server: Your own address once you deploy it. The old mcp.gtmeditor.com is gone

    (Self-hosted)

  • Markifact: Added from Claude's connector directory or ChatGPT's plugins marketplace, or by the URL on its page

    (Directory)

Clients that read a JSON file, such as Claude Desktop, Cursor and VS Code, need the URL wrapped in their own format. Paste it into the MCP config generator and copy the block for your client instead of hand-editing JSON.

How do you connect a Tag Manager MCP server to Claude, Claude Code or ChatGPT?

Claude and ChatGPT take the hosted URL in their settings, and Claude Code takes one command in a terminal. Claude Free allows one custom connector6. On Claude Team and Enterprise, an Owner adds the connector for the organisation first. For ChatGPT plans, OpenAI's help article on custom MCP servers lists which plans can connect one and which get read-only access.

  1. Claude, on the web or in the desktop app.

    Manual: Open Plugins (Customize > Connectors where your plan doesn't have the Plugins page yet), choose + Add, then Add custom connector. Name it, paste https://gtm-mcp.stape.io/mcp, and if it asks for an OAuth client, choose Register automatically. Select Add, then Connect, and sign in with the Google account that has Read or Edit on the container and User on the Tag Manager account.

    With AdCtrl: Open the AdCtrl listing in Claude's connector directory, select Add if shown, then Connect and sign in to AdCtrl.

  2. Claude Code.

    Manual: In a terminal, in the project folder where you use Claude Code, run claude mcp add --transport http gtm-mcp-server https://gtm-mcp.stape.io/mcp. Then type /mcp inside Claude Code and sign in with Google; claude mcp list shows whether it connected. The command adds the server to that project only, and --scope user adds it to every project3.

  3. ChatGPT, on the web.

    Manual: Open Plugins, select +, then Add custom MCP server. Paste the Stape URL, set authentication to OAuth, confirm the risk warning, create it as a plugin, then install it and sign in with Google. Only the hosted server works here: ChatGPT connects to remote MCP servers, and Stape's README offers no local option for it.

    With AdCtrl: Open the AdCtrl listing in ChatGPT and install the plugin, select Connect if prompted, then sign in to AdCtrl.

  4. Pick the containers.

    Manual: Sign the server in with the Read or Edit account from earlier, so it reaches only the containers that account can open.

    With AdCtrl: Connect Tag Manager, which asks for its own Google permission, then turn on the containers your AI may use. Anything you leave off stays invisible to your AI.

The local CLI skips the browser sign-in and needs a service account key, refresh token or access token instead, so plan on someone with Google Cloud access setting it up. Stape's README has the exact config for each client.

For a first read with any server, ask for something you can check by eye. In Claude with the Stape server, type: "List the containers I can access and the workspaces in each. Read only, change nothing."

How do you audit a Tag Manager container with AI, read-only first?

Audit a Tag Manager container with the Read account first: inventory, then problems, then one change at a time, so nothing moves until you've checked the list. Changes go into a workspace, you test them in Preview and you publish them yourself.

Diagram of a safe Tag Manager routine with an AI assistant: 1 a read-only audit of containers, tags, triggers and variables, 2 edits land in a workspace, 3 test the draft in Tag Manager's Preview mode, 4 you publish in Tag Manager yourself.

The AI does the first two stages. Preview and publishing happen in Tag Manager, and you do them.

Start with the inventory and keep the container's Tags, Triggers and Variables tabs open next to the answer. If the AI's tag count doesn't match the Tags tab, find out why before you trust any finding.

The same request works on other servers. In Claude with the Stape server, type: "For the container named Main website, list every tag with its type, firing triggers and whether it's paused. Read only, change nothing."

In AdCtrl, write: only reads your accounts
List the tags, triggers and variables in my selected Tag Manager container. Flag tags with no firing trigger, paused tags and any Custom HTML tags. Read only.

Then go through the problems a tracking person would look for, one kind at a time. Two tags that send the same conversion to Google Analytics or Google Ads on the same trigger can count it twice, and the conversion discrepancy guide covers how to confirm that across platforms.

In AdCtrl, write: only reads your accounts
In my selected Tag Manager container, group the tags by where they send data, such as Google Analytics, Google Ads and Meta. Flag any conversion that more than one tag sends on the same trigger, show each tag's consent settings, and list variables no tag or trigger uses. Read only.
  • The AI's counts match the Tags, Triggers and Variables tabs
  • Every active tag has a firing trigger
  • Each paused tag is either needed or listed for removal
  • No two tags send the same conversion on the same trigger
  • Each tag's consent settings match your consent setup
  • Data layer variables used in triggers are checked for what happens when the value is missing
  • Every Custom HTML tag has someone who knows what it does
  • Unused variables are listed for cleanup

The audit can't tell you whether any of this ran on your site; the next section covers that. Once the list matches the tabs, ask for one change at a time and write it down first ("add a note to this paused tag") so you can check the result against it.

A wrong change can be reverted before anyone publishes it: Markifact's page, for one, says its revert operations "can discard workspace changes for tags, triggers, variables" and other workspace items4.

In AdCtrl, that change appears as a preview in the chat with the before and after. Claude or ChatGPT asks you to approve it when its permission settings are set to ask, then the change is applied in a workspace and read back from Tag Manager7. The card below uses example data for a fictional container.

AdCtrl preview card with example data for a fictional container: a Tag Manager tag change adds a note to a paused test tag, shown before and after. The edit goes into a workspace; nothing is published and publishing stays in Tag Manager.

Example data for a fictional container, not a real account. The card adds a note to a paused test tag and shows it before and after, marked as a preview that isn't applied yet; publishing still happens in Tag Manager.

In AdCtrl, write: prepares a change preview you approve
In my selected Tag Manager container, add this note to the paused test tag in the workspace: "Paused test tag. Check it in Preview before anyone publishes." Show me the preview first and don't publish.

Can an MCP server tell you whether a tag actually fired?

No. A Tag Manager MCP server reads the container's configuration through the API and never sees your site load. Google's Preview mode runs the draft: it lets you browse your site "as if the current container draft was deployed", so you can test a change before it is published8.

What the MCP server reads

The workspace: each tag, trigger and variable with its settings, and whether a tag is paused. That tells you what is set up to happen.

What Preview shows

Your site running the current container draft in a new Google Tag Assistant tab. Open it from the Workspace tab with Preview, top right.

To see which Tag Manager container and Google IDs a live page loads at all, paste the page into the tracking checker. It lists the containers, Google Analytics and Google Ads IDs and pixels it finds on the page, which tells you whether you're auditing the container the site actually uses.

Frequently asked questions

Do you need a paid Claude plan to add a Tag Manager MCP server?

No. Claude's Free plan allows one custom connector, so a Tag Manager server fits, but a second custom connector needs a paid plan6.

Can AI publish Tag Manager changes?

Only if the Google account it signs in with has Publish permission, or is an account Administrator that can change its own permissions. Markifact publishes "only after the workspace is clean and you approve the release"4, and Stape's version tool includes publish, but an account with Edit on the container and User on the account can't create versions or publish through either.

Does a Tag Manager MCP server work with server-side containers?

Markifact's page says it covers web, server, AMP and mobile containers, and the self-hosted gtm-mcp-server README lists tools for server-side containers. Stape's README doesn't say either way, so check its tool list before you point it at a server container.

What happened to mcp.gtmeditor.com?

The hosted instance shut down on 20–21 November 2026 and the domain is not being renewed. The project is in maintenance mode and points users to Stape's server; you can still self-host its code.

Does Google's Analytics MCP server read Tag Manager?

No. Google's Analytics server covers Google Analytics only, so it has no tools for tags, triggers or variables.

What to do next

Give one Google account Read on one container and User, not Administrator, on its Tag Manager account, connect one server with it and run the inventory prompt. Once the count matches the Tags tab, switch that account to Edit, make one change in a workspace, test it in Preview and publish it yourself.

To learn more, Claude connectors for marketing compares connectors across platforms, MCP vs API explains when a direct API is the better fit, and the Google Ads MCP guide and Search Console MCP guide cover the ads and organic side of the same site.

To try it, connect AdCtrl (you need a Claude or ChatGPT plan and at least one Google Ads or Meta ad account), turn on one Tag Manager container and run the audit prompt. Start with a free Solo trial, no card needed.

Sources

  1. google/mcp: Google's official MCP servers, Google. Accessed 30 November 2026.
  2. Managing users and permissions, Google (Tag Manager Help). Accessed 30 November 2026.
  3. MCP Server for Google Tag Manager (stape-io/google-tag-manager-mcp-server), Stape. Accessed 30 November 2026.
  4. Google Tag Manager MCP: Full GTM Management with AI, Markifact. Accessed 30 November 2026.
  5. GTM MCP Server (paolobietolini/gtm-mcp-server), Paolo Bietolini (GitHub). Accessed 30 November 2026.
  6. Get started with custom connectors using remote MCP, Anthropic (Claude Help Center). Accessed 30 November 2026.
  7. AdCtrl docs: Google Ads and Meta Ads in Claude or ChatGPT, AdCtrl, 30 November 2026. Accessed 30 November 2026.
  8. Preview and debug containers, Google (Tag Manager Help). Accessed 30 November 2026.

Keep going