Skip to main content
Glama
jarnielcataluna

gtm-tag-architect

gtm-tag-architect

A public, production-ready plugin for Google Antigravity and Claude Code that connects to Google Tag Manager via MCP.

It provides an interactive /setup command that interviews developers/marketers about their site, diagnoses container defects (duplicates, missing triggers, Consent Mode v2 violations), and generates optimized tracking taxonomies and dataLayer contracts.


Features

  • /setup Interactive Command: Guides you through a 3-stage interview and audit workflow.

  • Deep Container Diagnostics: Audits duplicate GA4/Meta tags, orphaned triggers, unconsented marketing pixels, and render-blocking scripts.

  • Automated Remediation: Deduplicates tags and enforces Google Consent Mode v2 across all tags.

  • Industry Tracking Matrices: Pre-built taxonomy runbooks for E-Commerce, SaaS/PLG, and B2B Lead Gen.

  • Developer dataLayer.d.ts Generator: Generates typed event contracts and helper push functions for React, Next.js, and vanilla apps.

  • Dual-Mode MCP Server: Runs live against Google Tag Manager REST API v2 or audits local exported container JSON files offline.


Related MCP server: mcp-gtm-ga4

Installation & Setup

For Google Antigravity

Clone or place this repository into your workspace or global customizations directory:

# In your project's .agents/plugins/ or ~/.gemini/config/plugins/
git clone https://github.com/jarnielcataluna/gtm-tag-architect.git

Antigravity will automatically discover the plugin, expose the /setup slash command, and register the MCP server defined in mcp_config.json.

For Claude Code / Standalone MCP

Register the server in your claude_desktop_config.json or project MCP settings:

{
  "mcpServers": {
    "gtm-tag-architect": {
      "command": "node",
      "args": ["/path/to/gtm-tag-architect/bin/gtm-mcp.js"]
    }
  }
}

Usage

Run the /setup Command

Inside Antigravity or Claude Code:

/setup

The agent will interview you about:

  1. Site Type & Industry (E-Commerce, SaaS, Lead Gen, Content)

  2. Required Pixels (GA4, Meta, LinkedIn, Google Ads, PostHog)

  3. Privacy Requirements (GDPR / Consent Mode v2)

It then performs a diagnostic audit and presents you with an action menu to fix defects, apply consent rules, or export a clean dataLayer.d.ts.


Testing & Local Audit

You can run the offline diagnostic test harness against the included test fixture:

npm install
npm run audit-fixture

License

MIT

Install Server
F
license - not found
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    MCP server for Google Tag Manager and GA4, enabling tag management, consent auditing, workspace versioning, and analytics reporting through natural language.
    18
    55
    2
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server for Google Tag Manager API v2, enabling programmatic management of accounts, containers, workspaces, tags, triggers, variables, and version workflows.
    48
    14
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    An MCP server for the Google Tag Manager API v2 that enables AI assistants to query GTM accounts, containers, tags, triggers, variables, and unpublished changes.
    24
    2
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.

  • MCP server for AI access to Swagger by SmartBear.

  • MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jarnielcataluna/gtm-tag-architect'

If you have feedback or need assistance with the MCP directory API, please join our Discord server