gtm-tag-architect
Audits and manages Google Ads pixels within GTM, ensuring proper tagging and consent compliance.
Provides tools for managing Google Tag Manager containers, diagnosing tag/trigger defects, enforcing Consent Mode v2, and generating dataLayer contracts.
Audits and manages Meta (Facebook) pixels, deduplicates tags, and ensures Consent Mode v2 compliance.
Integrates PostHog tracking into GTM, providing diagnostic and remediation capabilities for PostHog tags.
Click on "Install 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., "@gtm-tag-architectaudit my GTM container"
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.
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
/setupInteractive 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.tsGenerator: 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.gitAntigravity 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:
/setupThe agent will interview you about:
Site Type & Industry (E-Commerce, SaaS, Lead Gen, Content)
Required Pixels (GA4, Meta, LinkedIn, Google Ads, PostHog)
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-fixtureLicense
MIT
Maintenance
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
- FlicenseNot gradedqualityDmaintenanceAn MCP Server that provides a conversational interface to Google Tag Manager API, allowing users to manage tags, triggers, variables, and containers through natural language.
- AlicenseAqualityAmaintenanceMCP server for Google Tag Manager and GA4, enabling tag management, consent auditing, workspace versioning, and analytics reporting through natural language.18552MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for Google Tag Manager API v2, enabling programmatic management of accounts, containers, workspaces, tags, triggers, variables, and version workflows.4814MIT
- AlicenseAqualityBmaintenanceAn MCP server for the Google Tag Manager API v2 that enables AI assistants to query GTM accounts, containers, tags, triggers, variables, and unpublished changes.242Apache 2.0
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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