# ai tag debugger

> ai tag debugger is an open-source MCP server for developer tools. AI-driven QA for site analytics, ad pixels and consent tags, run from chat or CI. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/analitikisler/ai-tag-debugger
- **MCP Registry name:** io.github.analitikisler/ai-tag-debugger
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [analytics and data](https://ai-powered.com/categories/analytics-and-data), [browser automation](https://ai-powered.com/categories/browser-automation)
- **Listing updated:** 2026-11-23

## About

An AI model drives a real browser through your key journeys, such as product to cart to checkout or a lead form, while the tool records every tracking hit and dataLayer push. It then checks them against your measurement plan and Consent Mode setup and writes a plain-language report in English or Turkish. The pitch is that tracking breaks silently after redesigns or consent banner changes, and this makes the check a command you can run in CI.

Findings include missing events or parameters, invalid purchase value or currency, duplicates, GA4 and Meta purchase mismatches, pixels firing before consent, personal data sent to ad platforms, dropped campaign parameters and bot challenges shown instead of the page. With a GTM container export, a broken event is traced to the tag and trigger that should send it. That trigger analysis runs from the captured dataLayer with no AI model.

Checked platforms range from GA4, Google Ads, Meta and TikTok to LinkedIn, Microsoft Ads, Criteo, Adobe, Matomo and others. From a terminal you bring your own key for Claude, OpenAI, Gemini or an OpenAI-compatible API; from an MCP chat app the app's own model drives the audit.

## Features

- **Browser journey audits:** A model walks checkout and lead-form journeys while hits are captured.
- **Consent checks:** Flags pixels firing before consent, missing Consent Mode v2 signals and rejects that do nothing.
- **Measurement plan comparison:** Sorts planned events into implemented, missing, missing parameters or wrong values.
- **GTM tag tracing:** Names the tag and trigger behind each broken event using a container export.
- **Broad platform coverage:** GA4, Google Ads, Meta, TikTok, LinkedIn, Microsoft Ads, Criteo, Adobe and more.
- **Terminal, CI or chat:** Run with your own API key or let an MCP chat app's model drive it.

## Good for

- Run a tracking QA pass after each site release
- Find pixels that fire before cookie consent
- Catch purchase events with wrong value or currency
- Compare GA4 and Meta purchase values for the same order
- Trace a missing event back to its GTM trigger

## Install

### Claude Code (Terminal)

```sh
claude mcp add ai-tag-debugger -- npx -y @analitikisler/ai-tag-debugger
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "ai-tag-debugger": {
      "command": "npx",
      "args": [
        "-y",
        "@analitikisler/ai-tag-debugger"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "ai-tag-debugger": {
      "command": "npx",
      "args": [
        "-y",
        "@analitikisler/ai-tag-debugger"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "ai-tag-debugger": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@analitikisler/ai-tag-debugger"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "ai-tag-debugger": {
      "command": "npx",
      "args": [
        "-y",
        "@analitikisler/ai-tag-debugger"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "ai-tag-debugger": {
      "command": "npx",
      "args": [
        "-y",
        "@analitikisler/ai-tag-debugger"
      ]
    }
  }
}
```

## Tools

- `start_audit`: Starts a tracking audit, optionally with chosen platforms.
- `run_audit`: Runs a tracking audit, optionally with chosen platforms.

## FAQ

### Do I need an API key?

From a terminal or CI, yes, for Anthropic, OpenAI, Gemini or an OpenAI-compatible API. From an MCP chat app, no.

### Which tools does the MCP expose?

The README names start_audit and run_audit.

### What languages are the reports in?

English or Turkish.

### What licence is ai tag debugger?

MIT.

### Can I limit which platforms are checked?

Yes, with --platforms, a providers setting in the config, or the providers argument on the MCP tools.

### Is ai tag debugger free?

Yes. ai tag debugger is open source, so you can use and self-host it for free.

### How do I add ai tag debugger to Claude Code?

Run this command in your terminal: claude mcp add ai-tag-debugger -- npx -y @analitikisler/ai-tag-debugger

### What are the best alternatives to ai tag debugger?

The closest alternatives to ai tag debugger are REA, Browser Use, Scrapling MCP Server, Context7 and Chrome DevTools MCP.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Browser Use](https://ai-powered.com/mcp/browser-use): Browser Use is a freemium MCP server for browser automation.
- [Scrapling MCP Server](https://ai-powered.com/mcp/scrapling-mcp-server): Scrapling MCP Server is an open-source MCP server for web search and scraping.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/ai-tag-debugger
