Google Tag ManagerBLOCK
MCP server for Google Tag Manager
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://archestra.ai/mcp-catalog/stape-io__google-tag-manager-mcp-server)
An interface to the Google Tag Manager API over MCP, in two flavours: a hosted server with Google OAuth built in, and a local CLI that runs on your own credentials.
Table of Contents
- MCP Server for Google Tag Manager
- Table of Contents
- Repository layout
- Installation
- Claude Desktop
- Claude Code
- VS Code
- GitHub Copilot
- Copilot CLI
- Cursor
- Antigravity
- ChatGPT
- Other MCP clients
- Troubleshooting
- Test your changes locally
- Changes to
packages/coreorpackages/cli - Changes to
apps/worker - 1. Set up a Google Cloud OAuth client
- 2. Configure local environment variables
- 3. Start the server
- 4. Point your MCP client at the local server
- Releasing
- Development
- Useful resources
- Open Source
Repository layout
npm workspace with one app and two published packages:
5e97b0d78c4eOBSERVED · 2026-10-06Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add google-tag-manager-mcp-core -- npx -y [email protected]
{
"mcpServers": {
"google-tag-manager-mcp-core": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (21)
20 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
STAPE.AI | read | |
gtag_destination | read | |
gtm_account | read | |
gtm_auth_status | read | |
gtm_built_in_variable | read | |
gtm_client | read | |
gtm_container | read | |
gtm_environment | read | |
gtm_folder | read | |
gtm_gtag_config | read | |
gtm_guide | read | |
gtm_tag | read | |
gtm_template | read | |
gtm_transformation | read | |
gtm_trigger | write | |
gtm_user_permission | read | |
gtm_variable | read | |
gtm_version | read | |
gtm_version_header | read | |
gtm_workspace | read | |
gtm_zone | read |
Trust audit
BLOCKgrade D · trust 69/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | FAIL |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (2 observation(s))
- Network
- declared (5 observation(s))
- Shell
- declared (2 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (14)
exec(input?: (string | URLPatternInit), baseURL?: string): URLPatternResult | null;
exec(query: string): Promise<D1ExecResult>;
.prettierignore
.dev.vars.example
redirectTo: "http://127.0.0.1:4305/oauth/callback?code=c",
atob(c.req.query("state") as string),const jsonString = atob(encoded);
const payload = atob(base64Payload); // Assuming payload is base64 encoded JSON string
atob(data: string): string;
declare function atob(data: string): string;
@cloudflare/workers-oauth-provider, agents, google-tag-manager-mcp-core, hono, zod, @types/node, typescript, vitest
@changesets/cli, @eslint/js, @typescript-eslint/eslint-plugin, @typescript-eslint/parser, eslint, eslint-config-prettier, eslint-plugin-prettier, prettier
@modelcontextprotocol/server, google-tag-manager-mcp-core, zod, @types/node, typescript
@googleapis/tagmanager, @modelcontextprotocol/client, @modelcontextprotocol/server, @types/node, typescript, vitest, zod
Gates applied: no_behavioural_pass.
5e97b0d78c4efull audit observations/trust-audit/mcp-server/stape-io__google-tag-manager.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-06 | 5e97b0d78c4e | BLOCK | D | 69 | first audit |
Questions
What is the Google Tag Manager MCP server?
MCP server for Google Tag Manager
What tools does Google Tag Manager expose?
21 in total: 20 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Google Tag Manager safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (69/100) and found 2 critical or high issues in the source. Each one is listed on this page with the file and line it is on.
What credentials does Google Tag Manager need?
No credential environment variables were found in its source, so it appears to need none.
How does Google Tag Manager run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as google-tag-manager-mcp-core at 3.0.0.
How current is this page?
The grade is for one exact copy of the source (5e97b0d78c4e), read on 2026-10-06. The repository is watched and re-audited when it changes.