Summary
Updated 16 November 2026: This review covers the v1.13.0 release, the current README, 64 GTM tools by default, expanded permissions, and the audit kit below. No container audit was run for this update.
Hosted service closing: The maintainer says mcp.gtmeditor.com will shut down on 30 November 2026. Its health endpoint answered during this review, but a new ongoing setup needs a hosting plan. See the shutdown notice and self-hosting steps. Stape remains a separate hosted option with different tool names.
Jump to the GTM container audit kit for four audit prompts, read-only settings, and a tracking plan template.
To connect Google Tag Manager to Claude, add a GTM MCP server as a custom connector, or run claude mcp add in Claude Code, then sign in with a Google account that can access your container. There are three routes: Stape's hosted server, a self-hosted server, or GTMEditor's hosted server until 30 November 2026. Most edits land in a workspace, and publishing is a separate step.
Connecting Google Tag Manager to Claude through a hosted MCP server does not require your own Google Cloud project, OAuth client, or developer token. You need a Google account that already has access to a GTM container and a Claude account that can use custom connectors.
A GTM MCP server sits between Claude and the Google Tag Manager API. Most tag, trigger, and variable edits land in a GTM workspace. Publishing is separate. Account and container operations act directly on those resources.
Read-only auditing does not change the live container, but container data still passes through the MCP server. The practical production risk comes from approving workspace changes and then publishing them without reading the diff.
What is a GTM MCP server?
Model Context Protocol, or MCP, is an open standard that lets AI clients call external tools through a common interface.
A GTM MCP server applies that interface to Google Tag Manager. It authenticates with Google, translates tool calls into Tag Manager API requests, and returns structured results.
The request path is: you, Claude, the MCP server, the Google Tag Manager API, and your container. Claude does not contact Google Tag Manager directly.
The server works with the permissions of the connected Google account. Read access supports reads. Edit or publish access permits the corresponding actions when the server exposes and allows them.
Which GTM MCP server should you use?
Three routes are available: GTMEditor, Stape, or a self-hosted server. GTMEditor has announced a hosted shutdown on 30 November 2026. Its repository remains available for self-hosting.
| GTMEditor | Stape | Self-hosted | |
|---|---|---|---|
| Endpoint | mcp.gtmeditor.com, closing 30 November | gtm-mcp.stape.io/mcp | Your own |
| Transport | Streamable HTTP | Remote HTTP; mcp-remote bridge for stdio-only clients | Depends on server and mode |
| Cloud project needed | No for hosted use | No for hosted use | Yes |
| Documented tools | 64 GTM tools by default, 94 with all groups, plus 2 utilities | 20 GTM tools in the current README | Depends on server and enabled groups |
| Server-side GTM | 10 client and transformation tools | Client tools documented; compare its current schemas | Depends on server |
| Repository license | BSD-3-Clause | Apache-2.0 | Depends on server |
| Data path | Third-party hosted server | Third-party hosted server | Your infrastructure, Google, and the AI client |
| Hosted pricing | No price found in the reviewed README; shutdown announced | Advertised as free on Stape's setup page | Hosting and maintenance |
The counts come from each project's README, not an authenticated tool discovery on either hosted server. Tool designs differ, so the counts do not measure equivalent actions.
This guide's detailed permissions and audit kit use GTMEditor's tool names. They also apply to a self-hosted copy exposing those tools. They are not a Stape permission configuration.
Stape's current Claude Code command is:
claude mcp add --transport http gtm-mcp-server https://gtm-mcp.stape.io/mcp
For Stape's web connector, its README says to choose Sign in now and Register automatically. It does not support Claude's published OAuth identity. See Stape's current setup and hosted service description.
What do you need before connecting?
- A Google account with access to at least one GTM container
- A Claude account with custom connectors available
You do not need your own Google Cloud project, OAuth client, or developer token for a hosted connection. Self-hosting needs a Google Cloud project and either an OAuth web client or a service account. A Google Ads developer token is not part of GTM setup.
Your GTM role sets the boundary. Read access supports read operations. Edit and publish permissions can permit the corresponding tools. The server does not add GTM permissions to your Google account.
How do you connect Google Tag Manager to Claude?
The GTMEditor hosted URL below is scheduled to close on 30 November 2026. For an ongoing connection to this server, use your own HTTPS endpoint after self-hosting.
Claude web or desktop
- Open Plugins in the sidebar and find the connector controls. Accounts with the older layout show Customize > Connectors.
- Select + Add, then Add custom connector.
- Enter a name for the connector.
- Enter
https://mcp.gtmeditor.comas the server URL. - Select Continue.
- Review the detected authentication settings.
- Choose Sign in now and the supported OAuth client option.
- Select Add and complete Google sign-in when prompted.
- Enable the connector for the conversation.
Anthropic's connector article still uses Customize labels. Its separate rollout notice says Plugins replaces Customize for Free, Pro, Max, Ultra, and Team accounts; Enterprise follows on 30 November. On Team and Enterprise, an authorized owner or administrator adds the connector through Organization settings > Connectors > Add > Custom > Web, then members connect individually.
Claude Code
claude mcp add --transport http gtm https://mcp.gtmeditor.com
Run /mcp inside Claude Code to complete authentication. The command registers an HTTP server; it does not by itself prove Google authorization succeeded.
GTMEditor documents OAuth with PKCE. It does not receive your Google password, but it receives OAuth tokens after consent. Tokens remain in memory by default; an operator can persist them using TOKEN_STORE_PATH.
Confirming it worked
Run auth_status and list my GTM accounts. Do not make changes.
If the account tree comes back, the connection and Google authorization are working. Confirm the account and container before continuing.
Is it safe to give Claude write access to your GTM container?
Read operations do not change the container. They still expose container data to the connected MCP server.
GTMEditor documents these controls:
- Most entity edits affect a workspace. Creating a version and publishing it are separate actions.
- Deletes, publishing, and disabling built-in variables require
confirm: true. - Bulk updates, conflict resolution, workspace sync, folder moves and reverts, container combinations, destination links, environment reauthorization, version restoration, and setting Latest also require confirmation. Moving a tag ID requires confirmation and terms acceptance.
- Updates fetch resource fingerprints for Google's concurrency checks.
create_versionchecks for workspace changes and merge conflicts first.- Read tools distinguish the latest saved version from the published live version.
Account and container operations act directly on those resources. A workspace review does not protect an account rename, container deletion, or similar direct action. Environment operations also need their own review.
The server's confirmation field is a tool argument, not proof that a human approved it. Use client permissions and the Google account's GTM role as additional controls. Keep publish_version blocked and review the selected version in GTM before publishing.
Recommended permission configuration
These three lists cover the full README inventory: 96 tools = 39 reads and utilities + 30 ask-each-time actions + 27 blocked actions. The default runtime exposes 64 GTM tools plus 2 utilities. Optional groups add 30 GTM tools.
Apply the lists to tools your connector actually exposes. The hosted endpoint's enabled groups were not confirmed. Source code defines eight optional groups: environments, destinations, gtag, container-admin, folder-admin, workspace-admin, version-admin, and reverts.
Always allow: reads and utilities (39)
ping, auth_status, list_accounts, list_containers, lookup_container, get_container_snippet, list_workspaces, get_workspace, get_workspace_status, list_tags, get_tag, list_triggers, get_trigger, list_variables, get_variable, list_folders, get_folder, get_folder_entities, list_built_in_variables, list_zones, get_zone, list_environments, get_environment, list_destinations, get_destination, list_google_tag_configs, get_google_tag_config, list_templates, get_template, get_tag_templates, get_trigger_templates, list_clients, get_client, list_transformations, get_transformation, list_versions, get_latest_version_header, get_version, get_live_version.
Ask each time: creates and updates (30)
create_tag, update_tag, create_trigger, update_trigger, create_variable, update_variable, create_workspace, enable_built_in_variables, create_version, create_template, update_template, import_gallery_template, create_client, update_client, create_transformation, update_transformation, update_container, update_account, update_workspace, quick_preview_workspace, create_folder, update_folder, move_entities_to_folder, create_zone, update_zone, create_environment, update_environment, create_google_tag_config, update_google_tag_config, update_version.
This lane includes update_account and update_container, which act directly, plus environment changes. Read the target and proposed change before approving them. quick_preview_workspace compiles an ephemeral preview without saving or publishing.
Block until needed: deletions, reverts, and production actions (27)
create_container, delete_container, combine_containers, move_tag_id, delete_workspace, bulk_update_workspace, resolve_workspace_conflict, sync_workspace, delete_tag, delete_trigger, delete_variable, delete_folder, revert_folder, disable_built_in_variables, delete_zone, reauthorize_environment, delete_environment, link_destination, delete_google_tag_config, delete_template, delete_client, delete_transformation, publish_version, delete_version, undelete_version, set_latest_version, revert_workspace_entity.
Keeping publish_version blocked keeps version publication in the GTM interface. It does not turn the other write tools into read-only operations.
A review-first edit workflow
- Create a separate workspace for the task.
- Make the requested changes in that workspace.
- Run
get_workspace_statusand read the full diff. - Create a version.
- Publish from the GTM interface after reviewing the version.
What can Claude do with your container?
The README reports 64 GTM tools by default, 94 with GTM_TOOL_GROUPS=all, plus 2 utilities. It reports coverage of 101 of 106 GTM API methods, excluding the five user-permission methods. API methods and MCP tools are different counts.
This breakdown counts the full README tables, including optional tools:
| README category | Tools |
|---|---|
| Utility | 2 |
| Accounts and containers | 10 |
| Workspaces | 10 |
| Tags | 5 |
| Triggers | 5 |
| Variables | 5 |
| Folders and built-in variables | 11 |
| Zones | 5 |
| Environments | 6 |
| Destinations and Google tag configurations | 8 |
| Custom templates | 8 |
| Server-side containers | 10 |
| Versions and publication | 10 |
| Workspace reverts | 1 |
| Total | 96 |
The expanded areas include zones, folders, workspace reverts, saved and live version reads, and quick preview. Optional groups add environments, destinations, and Google tag configurations, along with administrative actions.
The six workflow prompts remain audit_container, best_practices_review, plan_safe_edit, generate_tracking_plan, suggest_ga4_setup, and find_gallery_template.
There are eight resource definitions: two concrete resources and six URI templates. They cover accounts, containers, workspaces, tags, triggers, variables, a best-practice topic index, and individual guidance topics. Guidance covers naming, safe edits, GA4, consent, server-side containers, and tool input formats.
Common tasks include reviewing duplicates and orphaned triggers, drafting a tracking plan, preparing GA4 event tags, proposing name changes, and managing server-side clients and transformations. A configuration review does not show what fired on a live site.
What are the limitations?
The Google API can drop autoEventFilter
The current README says GTM drops autoEventFilter for click, link-click, and form-submission triggers. It recommends filterJson for those types. That route was not tested on a disposable container for this update.
For update_trigger, the README says omitted filter fields preserve their values; the JSON string "[]" clears a field. Check click and form trigger conditions in the GTM interface after an edit.
Tag parameter structures need review
GTM's parameter format needs care, especially for GA4 events. Review generated parameters before saving. The server's gtm://best-practices/tool-input-formats resource provides examples.
Hosted servers are third parties
Google and Anthropic do not maintain these servers. Review the operator, requested OAuth scopes, token handling, and terms before connecting client-owned containers.
Hosting availability and pricing can change
GTMEditor's hosted endpoint is scheduled to close on 30 November 2026. No hosted price was found in its reviewed README. Stape advertises its GTM MCP server as free. Self-hosting has infrastructure and maintenance costs.
GTM container audit kit
The kit's read-only setup is for auditing: it allows reads and blocks the other tools in the reviewed inventory. The three lists above are for teams that start editing and add an ask-each-time lane.
These prompts were written from the server documentation and have not been run on a container for this update. They use GTMEditor tool names and also suit a self-hosted copy; they are not configured for Stape's tools.
Four audit prompts, a read-only setup and a tracking plan template. Use them after you connect Claude to Google Tag Manager through the GTM MCP server.
Checked against gtm-mcp-server 1.13.0 on 16 November 2026. Tool names can change, so compare the lists below with the tools your connector shows.
1. Make the connection read-only
Use all three layers if you can. The first one is the strongest.
Layer 1: Google Tag Manager permission
Connect with a Google account that has Read access to the container and nothing higher. Google then rejects container changes through that account. Use a non-admin account without higher inherited access; container Read access does not limit separate account-level privileges.
Layer 2: Claude on web or desktop
Open the connector's tool permissions. Allow the read tools. Block every other tool.
Allow (39 tools):
ping, auth_status, list_accounts, list_containers, lookup_container, get_container_snippet, list_workspaces, get_workspace, get_workspace_status, list_tags, get_tag, list_triggers, get_trigger, list_variables, get_variable, list_folders, get_folder, get_folder_entities, list_built_in_variables, list_zones, get_zone, list_environments, get_environment, list_destinations, get_destination, list_google_tag_configs, get_google_tag_config, list_templates, get_template, get_tag_templates, get_trigger_templates, list_clients, get_client, list_transformations, get_transformation, list_versions, get_latest_version_header, get_version, get_live_version
Block (57 tools):
update_account, create_container, update_container, delete_container, combine_containers, move_tag_id, create_workspace, update_workspace, delete_workspace, quick_preview_workspace, bulk_update_workspace, resolve_workspace_conflict, sync_workspace, create_tag, update_tag, delete_tag, create_trigger, update_trigger, delete_trigger, create_variable, update_variable, delete_variable, create_folder, update_folder, delete_folder, move_entities_to_folder, revert_folder, enable_built_in_variables, disable_built_in_variables, create_zone, update_zone, delete_zone, create_environment, update_environment, reauthorize_environment, delete_environment, link_destination, create_google_tag_config, update_google_tag_config, delete_google_tag_config, create_template, update_template, delete_template, import_gallery_template, create_client, update_client, delete_client, create_transformation, update_transformation, delete_transformation, create_version, publish_version, update_version, delete_version, undelete_version, set_latest_version, revert_workspace_entity
Your connector may show fewer tools than this. Allow the listed list_ and get_ tools, plus lookup_container, ping, and auth_status. Block the other tools in the reviewed inventory. Review new tools before allowing them.
Layer 3: Claude Code
Add this to ~/.claude/settings.json. Merge it with any rules you already have. It assumes you named the server gtm when you added it.
{
"permissions": {
"allow": [
"mcp__gtm__list_*",
"mcp__gtm__get_*",
"mcp__gtm__lookup_container",
"mcp__gtm__ping",
"mcp__gtm__auth_status"
],
"deny": [
"mcp__gtm__create_*",
"mcp__gtm__update_*",
"mcp__gtm__delete_*",
"mcp__gtm__publish_*",
"mcp__gtm__revert_*",
"mcp__gtm__enable_built_in_variables",
"mcp__gtm__disable_built_in_variables",
"mcp__gtm__import_gallery_template",
"mcp__gtm__combine_containers",
"mcp__gtm__move_tag_id",
"mcp__gtm__move_entities_to_folder",
"mcp__gtm__bulk_update_workspace",
"mcp__gtm__resolve_workspace_conflict",
"mcp__gtm__sync_workspace",
"mcp__gtm__quick_preview_workspace",
"mcp__gtm__reauthorize_environment",
"mcp__gtm__link_destination",
"mcp__gtm__undelete_version",
"mcp__gtm__set_latest_version"
]
}
}
Deny rules win over allow rules in Claude Code. Run /permissions to confirm the rules loaded. These patterns cover the current 96-tool inventory, not unknown future tools. Keep the Google account at Read access, and review new tools and existing broad allow rules before use.
2. Fill these in first
Every prompt below uses two placeholders.
[CONTAINER]: your container's public ID, such as GTM-XXXXXXX[WORKSPACE]: the workspace name, such as Default Workspace
Run the prompts in order. Each one also works on its own.
3. The four audit prompts
Prompt 1: Inventory and tags that cannot fire
Use the GTM connection. Read only: use list and get tools. Do not create, update,
delete, version or publish anything.
Container: [CONTAINER]. Workspace: [WORKSPACE].
If you cannot find them, list my accounts and containers and ask me to pick.
Do not guess IDs.
First read the server's best-practice resources. Then do these checks:
1. Count the tags, triggers, variables and folders. Count the tags by type.
2. List every tag with no firing trigger. For each one, check whether another
tag runs it as a setup or cleanup tag. If so, label it "sequenced".
3. List every paused tag.
4. List every tag where each firing trigger is also set as an exception.
5. Tell me whether the workspace has unpublished changes.
Return one table: tag name, tag ID, tag type, issue, evidence.
Then give the counts in three lines.
If you could not run a check, name it and say why.
Do not suggest fixes yet.
Prompt 2: Duplicate GA4 events
Use the GTM connection. Read only: use list and get tools. Do not create, update,
delete, version or publish anything.
Container: [CONTAINER]. Workspace: [WORKSPACE].
Do not guess IDs.
1. List every GA4 event tag with its event name, the Google tag or measurement
ID it sends to, and its firing triggers.
2. Group the tags by event name and destination. Mark a group as a duplicate
when two or more tags can fire on one trigger, or on triggers with matching
conditions.
3. List every Google tag. Mark any measurement ID that appears more than once.
4. List Custom HTML tags that contain gtag or dataLayer.push with an event
name. Label these "check by hand". Do not guess what they send.
Return one table: event name, tag names and IDs, triggers, why they overlap,
and confidence (certain, likely or check by hand).
Quote the trigger conditions you compared.
Do not change anything.
Prompt 3: Orphaned triggers and unused variables
Use the GTM connection. Read only: use list and get tools. Do not create, update,
delete, version or publish anything.
Container: [CONTAINER]. Workspace: [WORKSPACE].
Do not guess IDs.
1. List every trigger that no tag uses as a firing trigger or as an exception.
Check trigger groups before you list one.
2. List every user-defined variable that no tag, trigger or other variable
references. Search every field for the {{Variable Name}} pattern, including
Custom HTML and Custom JavaScript.
3. List every enabled built-in variable that nothing references.
4. List every empty folder.
Return one table per check: name, ID, type, and where you searched.
Label each item "review before removing". Do not label anything safe to delete.
Say which fields you could not read, such as code inside custom templates.
Do not change anything.
Prompt 4: Naming drift and a rename plan
Use the GTM connection. Read only: use list and get tools. Do not create, update,
delete, version or publish anything.
Container: [CONTAINER]. Workspace: [WORKSPACE].
Do not guess IDs.
1. List the names of all tags, triggers and variables.
2. Describe each naming pattern in use and count the items that follow it.
3. Propose one naming convention per item type. Base it on the most common
pattern and on the server's best-practice rules.
4. Group names that describe one thing in different styles, such as
"GA4 - Purchase", "ga4_purchase" and "Purchase Event NEW FINAL".
5. List any item whose name does not match what it does.
Return a rename table: current name, ID, item type, proposed name, reason.
Do not rename anything. I will decide which changes to make.
4. Tracking plan prompt and template
Use the GTM connection. Read only: use list and get tools. Do not create, update,
delete, version or publish anything.
Container: [CONTAINER]. Workspace: [WORKSPACE].
Do not guess IDs.
Write a tracking plan for this container as Markdown. Use the template below
exactly. Add one row per event. Write "not found" in a cell when the container
does not show the value. Do not invent parameters, variables or consent settings.
# Tracking plan: [container name] ([CONTAINER])
- Source: [WORKSPACE]
- Date written:
- Written from: container configuration, not from live site traffic
## Events
| Event name | What it records | Tag name (ID) | Tag type | Destination | Trigger name | Trigger type and conditions | Parameters | Consent setting | Status |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| | | | | | | | | | Active or paused |
## Data layer variables
| Variable name | Data layer key | Used by these tags and triggers | Notes |
| --- | --- | --- | --- |
| | | | |
## Gaps and questions
- Events with no firing trigger:
- Triggers with no tag:
- Parameters that point to a missing variable:
- Items to confirm in GTM Preview:
5. Limits
- The audit reads configuration. It does not prove a tag fired. Confirm in GTM Preview and Tag Assistant.
- Custom HTML tags and custom templates can send events the audit cannot read with confidence.
- Check click, link-click and form trigger conditions in the GTM interface.
- The hosted server is a third party. Your container data passes through it.
- Claude can misread a container. Every row carries a name and an ID so you can check it.
- Nothing here changes your container. You make and publish changes yourself.
How do you self-host a GTM MCP server?
The current GTMEditor README documents Go 1.26 or Docker, a Google Cloud project with the Tag Manager API enabled, and either an OAuth web client or a service account. Remote OAuth use needs HTTPS and a stable public URL.
For the Google OAuth web client, register the server callback below. Its scheme and host must match BASE_URL:
https://your-host.example/oauth/callback
For local development, the documented callback is http://localhost:8080/oauth/callback. Claude's own OAuth callback belongs to the client-to-MCP flow; it is not a replacement for this server-to-Google callback.
From the checked-out repository, the documented Docker path is:
docker build -t gtm-mcp-server .
docker run --rm \
--name gtm-mcp-server \
-p 8080:8080 \
--env-file .env \
-v gtm-mcp-tokens:/data \
gtm-mcp-server
Configure BASE_URL, your Google OAuth client values, and TOKEN_STORE_PATH=/data/tokens.json in the private environment file when using that volume. Protect the token file and keep credentials out of shared configuration.
Service-account mode is also documented. Holders of its server API key share the service account's GTM access. Local stdio mode uses service-account credentials. Review the current self-hosting instructions before deployment; no Docker deployment was tested for this update.
Key takeaways
- A hosted GTM connection avoids your own Google Cloud setup, but GTMEditor's hosted service is scheduled to close on 30 November.
- The README documents 64 GTM tools by default and 96 total tools with all groups and utilities.
- Most entity edits stay in a workspace until publication. Account and container actions operate directly.
- For audits, Google Read access adds a boundary beyond Claude's tool permissions.
- Check trigger conditions in GTM and confirm actual firing in Preview or Tag Assistant.
How we checked this guide
Reviewed on 16 November 2026 against the v1.13.0 release, published 28 October, and the current repository README and tool registration source at commit 473512f9259a4f71a02352ff82b41bc11f73b43e. The 96 README tool names were counted and matched to the permission lists. The current README may include changes after the release tag.
The GTMEditor health endpoint reported v1.13.0. The Claude Code add command succeeded in an isolated local configuration with Claude Code 2.1.319. No Google sign-in, authenticated tool discovery, live container audit, filter edit, or Docker deployment was performed. The audit prompts still need a container trial.
Sources
Sources read on 16 November 2026:
- GTMEditor README and tool inventory
- GTMEditor releases
- GTMEditor hosted shutdown notice
- GTMEditor tool group source
- Stape README
- Stape hosted setup and free service
- Google Tag Manager API v2
- Anthropic custom connector guidance
- Anthropic Plugins menu rollout
- Claude Code MCP setup
- Claude Code permissions
- MCP specification
Frequently asked questions
Do I need a Google Cloud project to connect GTM to Claude?
No, not for a hosted MCP server. GTMEditor has announced its hosted shutdown for 30 November 2026; Stape is a separate hosted option. Self-hosting needs a Google Cloud project and either an OAuth web client or a service account.
Can Claude publish changes to my live GTM container?
GTMEditor exposes publish_version, which requires confirm: true and sufficient Google permissions. Keep it blocked to publish through GTM after review. Account and container actions can act directly without version publication.
Which Claude plan do I need?
Anthropic lists custom remote connectors on Free, Pro, Max, Ultra, Team, and Enterprise plans. Free accounts are limited to one custom connector. Team and Enterprise setup depends on organization permissions.
Does this work with ChatGPT or Gemini?
The current GTMEditor README lists Gemini CLI, Cursor, ChatGPT, Codex, and Claude web, as well as Claude Code. Setup and OAuth support depend on the client. The hosted endpoint is scheduled to close on 30 November 2026.
Can Claude manage server-side GTM containers?
GTMEditor's README lists ten server-side client and transformation tools, including reads, creates, updates, and deletes. The separate revert_workspace_entity tool can discard client or transformation changes.
What happens if my Google account only has view access?
With container Read access and no higher permission, Google permits reads and rejects changes. Keep that account separate from accounts that can edit or publish when running an audit.
Is my GTM data stored by the MCP server?
GTMEditor receives Google OAuth tokens after consent. The current README says tokens stay in memory by default and can be persisted through TOKEN_STORE_PATH. Container data passes through the server. The hosted token-store configuration was not confirmed.
How much does a GTM MCP server cost?
Stape advertises its hosted GTM MCP server as free. No hosted price was found in GTMEditor's reviewed README, and its hosted endpoint is scheduled to close on 30 November 2026. Self-hosting has infrastructure and maintenance costs.
Last reviewed 16 November 2026. Documentation and public health endpoint checked on 16 November 2026. No live container audit or trigger edit was run. Hosting terms and tool lists may change.