AI assistant · MCP server
Audit Google Tag Manager from an AI assistant (MCP server)
The TagManifest MCP server lets an AI assistant such as Claude audit a Google Tag Manager setup: give it a website address or a container ID and it returns a health score, a grade and a list of findings with fixes, most important first. It only reads and reports: none of its 8 tools can edit, publish or delete anything in a container.
MCP (Model Context Protocol) is the standard way an AI assistant connects to an outside tool. A container is the bundle of tags, triggers and variables that Google Tag Manager loads on a site. This server comes from TagManifest, the free Google Tag Manager audit, and uses the same catalogue of 92 checks as the web scan.
The connection address
Every client connects to the same address.
https://developer.tagmanifest.com/mcpYou sign in to TagManifest with a Google account. The server does not ask for access to a Google Tag Manager account. An assistant can sign you in through the browser with OAuth, so you do not have to create an API key. An API key is the other way in, and both give the assistant the same tools.
Two setups are confirmed and shown below: the Claude.ai connector, which signs in through the browser, and Claude Code with an API key. The MCP server needs that sign-in. The web scan from a website address and the export audit on the scanner page are free and need no account.
Connect Claude.ai
- In Claude.ai, open Settings, then Connectors, and choose Add custom connector.
- Paste
https://developer.tagmanifest.com/mcpand confirm. - Claude opens a TagManifest sign-in window. Sign in with Google and approve what the connector asks for.
- You are sent back to Claude. The TagManifest tools are now available in any chat.
You never see or copy a token, and you create no API key: Claude holds a short-lived token and renews it for you. To remove access, remove the TagManifest connector in Claude's settings.
Connect Claude Code with an API key
- Sign in with Google on the account page and create a key.
- Copy the key, which starts with
tm_. It is shown once and cannot be shown again. - Run the command below, with your key in place of the example.
claude mcp add tagmanifest \
--transport http \
https://developer.tagmanifest.com/mcp \
--header "Authorization: Bearer tm_abc123…"Treat the key like a password: anyone holding it can run scans on your account. You can revoke it on the account page at any time, and it stops working immediately.
Claude Desktop, Cursor and other clients
This page does not print a config for Claude Desktop or Cursor, because a setup for each has not been confirmed here yet. See the docs for the current notes on these clients: Connect to Claude and Getting started. Any client connects to the address above and signs in with OAuth or an API key.
A first prompt to try
Use TagManifest to scan tagmanifest.com and tell me the top three issues. You should see the assistant call the scan_url tool and then explain the result. For a URL scan, the address is sent to TagManifest's server, which fetches the page and the public container file the site already serves.
What comes back
The assistant receives a structured result and puts it into words. This is the documented shape of a scan_url result, shortened to one finding. The values are the example from the docs, not a real site.
{
"container": {
"gtm_id": "GTM-K7GFJTV",
"name": "My Container",
"tag_count": 85,
"trigger_count": 42,
"variable_count": 31,
"from_cache": false
},
"findings": [
{
"rule_id": "consent-missing-default",
"title": "Consent default not set",
"severity": "critical",
"tier": "error",
"category": "consent",
"finding_count": 1,
"affected_items": ["GTM-K7GFJTV"],
"affected_items_total": 1,
"action": "add",
"recommendation": "Add a Consent Initialization trigger and set consent defaults before any tags fire."
}
],
"findings_total": 20,
"findings_truncated": false,
"by_tier": { "error": 2, "warning": 9, "optimization": 7, "info": 2 },
"health_score": { "score": 82, "grade": "B", "label": "Healthy" }
}Findings are sorted by tier (error, warning, optimization, info), then by severity. Each one names the rule, the items it affects and the recommended fix.
The 8 tools the server offers
scan_urlAudits a site from its address or a container ID. The default tool.scan_containerAudits a GTM export (the JSON file) you already have, with no page fetch.get_health_scoreReturns only the score, grade and breakdown, without the findings list.evaluate_ruleRuns one rule against a container and returns the full finding. Useful for checking a fix.compare_containersCompares two containers: findings unique to each, findings they share, and the difference in score.list_rulesLists the rule catalog, filtered by category, tier or status.get_ruleReturns the full record for one rule: description, recommendation and more.account_statusShows which account the connection belongs to and where keys are managed.
What it can do, and where your data goes
This server audits Google Tag Manager containers. It does not manage them. It tells you what is wrong and how to fix it, and leaves the changes to you.
- All 8 tools inspect or report. None of them edits Google Tag Manager.
- A scan of a public site needs no access to a GTM account: it reads the public container file the site already serves. You sign in to TagManifest, not to GTM.
- For a scan from a website address, the address goes to TagManifest's server, which fetches the page to find the container ID.
- An export you paste or upload into an assistant goes to that assistant, and from there to the TagManifest MCP server when the assistant runs the audit. This is different from the web scanner, where an export is read in your browser and is not uploaded.
- The service keeps a parsed copy of each public container it fetches, stored under the container ID. The copy is reused for up to five minutes, so repeat scans in that time do not fetch the container again. A result says when it came from that copy (
from_cache).
Full documentation
- Connect to Claude: connection notes for each client.
- Getting started: sign-in, keys and what to do if a key is lost.
- Tool reference: arguments and full results for each tool.
- Rate limits: the daily cap for each tool.
Writing code rather than prompts? The same checks are available as a REST API.