tracking-stack-mcp
Provides integration with Google Analytics 4 (GA4) Admin and Google Tag Manager (GTM), allowing users to list GA4 accounts, properties, streams, and measurement IDs; create GA4 properties with web streams; list GTM accounts and containers; and create new GTM web containers without publishing.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tracking-stack-mcp Create a new GA4 property and web stream for the Acme account"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
tracking-stack-mcp
MCP server for an agency's tracking-stack setup: WhatConverts, GA4 Admin, GTM.
Same write-safety contract as google-ads-mcp: every mutating tool is a dry-run
by default and executes only with confirmed: true; writes are rate-limited and logged
to ~/.local/state/tracking-stack-mcp/actions.jsonl.
Create-only by design. No delete, unlink, user-management, or GTM publish tools exist here. Removing things and publishing containers stays portal work.
Tools
Tool | Type | Description |
| Read | All WhatConverts accounts + profiles |
| ⚠️ Mutating | New WC account (dupe-name refusal) |
| ⚠️ Mutating | New profile; refuses if the name exists anywhere in the agency |
| Read | GA4 accounts, properties, streams + measurement IDs |
| ⚠️ Mutating | New GA4 property + web stream; returns |
| Read | GTM accounts + containers |
| ⚠️ Mutating | New web container; returns |
Related MCP server: gtm-ga4-mcp
Credentials — ~/.config/tracking-stack-mcp/.env (chmod 600)
WC_API_TOKEN=... # canonical copy lives in your secret manager
WC_API_SECRET=...
GOOGLE_CLIENT_ID=... # OAuth client (can reuse the google-ads-mcp client)
GOOGLE_CLIENT_SECRET=...
GOOGLE_REFRESH_TOKEN=... # must carry analytics.edit + tagmanager.edit.containers + tagmanager.readonly
GA4_DEFAULT_TIME_ZONE=America/Los_Angeles # optional, default UTC
GA4_INDUSTRY_CATEGORY=HOME_AND_GARDEN # optional, omitted if unsetMint the Google refresh token once with the OAuth playground or the google-ads-mcp
auth-setup pattern, adding the three scopes above. Never commit .env; never put these
values in the vault.
Safety contract
Create-only. No delete, unlink, user-management, or publish tools exist.
Dry run by default. Only a boolean
confirmed: trueexecutes;"true"does not.Validated inputs. Names are non-empty strings; ids are integers or
accounts/<id>; stream URLs must behttps://.Duplicate-name refusal across the whole agency before any create.
Rate cap of 10 writes per rolling hour per process, checked after the confirmed branch.
Append-only action log of every executed write, refusal, and failure; never previews.
No tenant values in code. Time zone and industry category come from env.
Claude Desktop wiring
"tracking-stack": {
"command": "node",
"args": ["/Users/<you>/Documents/Claude/tracking-stack-mcp/dist/index.js"]
}Build
npm install && npm run buildAvailable Tools
7 toolsga4_create_propertyA
⚠️ MUTATING — Create a GA4 property under an existing Analytics account, plus a web data stream (returns the G- measurement ID). Refuses on duplicate display name. Dry-run by default.
Inputs: website_url (required), display_name (required), analytics_account (required), confirmed, +1 more.
ga4_list_propertiesA
Read-only — list GA4 accounts and their properties (names + ids + measurement streams).
Inputs: no named parameters.
gtm_create_containerA
⚠️ MUTATING — Create a web container in an existing GTM account. Returns the GTM-XXXX id. Refuses on duplicate name. Does NOT publish anything. Dry-run by default.
Inputs: container_name (required), gtm_account_id (required), confirmed.
gtm_list_containersA
Read-only — list GTM accounts and their containers (names + public GTM-XXXX ids).
Inputs: no named parameters.
wc_create_accountA
⚠️ MUTATING — Create a WhatConverts account (one per client, matching the agency convention). Refuses if an account with the same name exists. Dry-run by default.
Inputs: account_name (required), confirmed.
wc_create_profileA
⚠️ MUTATING — Create a profile inside an existing WhatConverts account. Refuses if a profile with the same name exists anywhere in the agency (guards against the duplicate/wrong-parent mistake). Dry-run by default.
Inputs: account_id (required), profile_name (required), confirmed.
wc_list_accountsA
Read-only — list all WhatConverts agency accounts and their profiles (ids + names).
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Every tool has a unique vendor prefix (wc, ga4, gtm) combined with a distinct action/resource pair. The list_* and create_* tools are clearly separated, and wc_create_profile is unambiguous relative to wc_create_account.
All tools follow the consistent [vendor]_[verb]_[resource] pattern with lowercase snake_case. List verbs are plural and create verbs are singular, with no mixed conventions or vague action names.
Seven tools is well-scoped for a tracking-stack provisioning server covering three platforms. Each list/create pair earns its place, and the extra wc_create_profile is justified by the distinct resource type.
The set covers the core list-and-create lifecycle for WhatConverts, GA4, and GTM resources, including duplicate guards and dry-run defaults. Minor gaps exist around updates/deletes and GTM publishing, but the primary provisioning workflow is complete enough for agents to accomplish real setup tasks.
Maintenance
Related MCP Connectors
Supervised API-write gateway for AI agents with policy, human approval and execution receipts.
Runtime permission, approval, and audit layer for AI agent tool execution.
Task and sprint coordination for humans and AI agents, with scoped API keys and full audit trail.
Approval-gated Cloudflare ops for agents: DNS, email auth, Pages, cache, Turnstile, tokens.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables controlled AI-agent access to enterprise-shaped tools with a deny-by-default gated write path, human approval, dry-run execution, and append-only audit logging.1-
- AlicenseAqualityCmaintenanceEnables managing Google Tag Manager and Google Analytics 4 through natural language, with tiered read/write/destructive safety controls including dry-run writes and two-phase confirmations for destructive actions.81MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to build and manage Genesys Cloud resources such as queues, skills, users, wrap-up codes, Architect flows, and outbound campaign cadences, while deliberately preventing deletes and leaving campaigns off until humans start them.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI clients to manage Google Tag Manager accounts and containers through the Tag Manager API v2, covering account/container discovery, workspace creation and syncing, CRUD on tags, triggers, variables, and folders, built-in variable control, version snapshots, and guarded publishing. It authenticates with a user's own Google identity (or a service-account fallback), honors API quota limits, and writes a redacted SQLite debug log of every tool call and API request.1MIT