Skip to main content
Glama
tracking-stack-mcp

tracking-stack-mcp

by jayweezy247

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

wc_list_accounts

Read

All WhatConverts accounts + profiles

wc_create_account

⚠️ Mutating

New WC account (dupe-name refusal)

wc_create_profile

⚠️ Mutating

New profile; refuses if the name exists anywhere in the agency

ga4_list_properties

Read

GA4 accounts, properties, streams + measurement IDs

ga4_create_property

⚠️ Mutating

New GA4 property + web stream; returns G- measurement ID

gtm_list_containers

Read

GTM accounts + containers

gtm_create_container

⚠️ Mutating

New web container; returns GTM- id; never publishes

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 unset

Mint 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: true executes; "true" does not.

  • Validated inputs. Names are non-empty strings; ids are integers or accounts/<id>; stream URLs must be https://.

  • 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 build

Available Tools

7 tools
ga4_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

    A4.4/5.0

    Scored across 7 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables 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
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      8
      1
      MIT
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables 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
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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.
      1
      MIT