Skip to content
MCP server

Tag Pilot GTM

Read-only Google Tag Manager access with diffs against live and a container audit

Runs locallyStatus and history
Install
Pricing
Free
Platforms
CLI
Runs
Locally
Version
0.1.0
Listing updated
3 days ago

About Tag Pilot GTM

Tag Pilot GTM is a free MCP server for marketing and seo. It runs locally on your machine and is started by your AI client.

Tag Pilot's GTM server needs no Google Cloud project, OAuth client or service account. The first question starts a device sign-in, like gh auth login, where you approve a code in a browser and grant the read-only tagmanager.readonly scope. Tag Manager data goes from your machine straight to Google and is not stored by Tag Pilot, which only brokers the token exchange.

Tools read the live published version by default, or a workspace or older version on request. Beyond listing accounts, containers and workspaces, it can show what references a variable or trigger, diff a workspace against live, and run audit_container, whose rule-of-thumb checks flag missing triggers, duplicate Google tags, tags without consent settings, unused triggers and paused tags. The server only sends GET requests.

Install

Run in a terminal

claude mcp add gtm-mcp --env TAGPILOT_API_KEY='<TAGPILOT_API_KEY>' -- npx -y @tagpilot/gtm-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "gtm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@tagpilot/gtm-mcp"
      ],
      "env": {
        "TAGPILOT_API_KEY": "<TAGPILOT_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "gtm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@tagpilot/gtm-mcp"
      ],
      "env": {
        "TAGPILOT_API_KEY": "<TAGPILOT_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "gtm-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@tagpilot/gtm-mcp"
      ],
      "env": {
        "TAGPILOT_API_KEY": "<TAGPILOT_API_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "gtm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@tagpilot/gtm-mcp"
      ],
      "env": {
        "TAGPILOT_API_KEY": "<TAGPILOT_API_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "gtm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@tagpilot/gtm-mcp"
      ],
      "env": {
        "TAGPILOT_API_KEY": "<TAGPILOT_API_KEY>"
      }
    }
  }
}

Configuration

  • TAGPILOT_API_KEYOptional. Leave unset: the first question connects this device to your free Tag Pilot account in the browser. Set a gtm:mcp key (tpk_…) only for CI or headless setups.
  • GTM_MCP_NO_BROWSERSet to 1 to only return the Google sign-in link (open it in any browser) instead of opening a browser.
  • GTM_MCP_AUTH_WAIT_SECONDSHow long a tool call waits for the browser sign-in before returning the link.

Tools this server provides (14)

Taken from the project documentation; the running server may differ.

list_accounts
Tag Manager accounts you can read.
list_containers
Containers in an account.
list_workspaces
Workspaces of a container.
get_container
Tags, triggers, variables, templates and folders of a container.
get_tag
One tag in full.
get_trigger
One trigger in full.
get_variable
One variable in full.
find_references
What uses a variable, trigger, tag, template or folder.
list_versions
Versions, newest first.
get_live_version
The published version.
diff
Workspace versus live version or another version.
audit_container
Offline checks over one read of the container.
connect
Starts the device connection.
connection_status
Reports connection state.

What it does

Container inspection
get_container returns tags, triggers, variables, templates and folders, compact by default.
Reference tracing
find_references shows what uses a variable, trigger, tag, template or folder.
Diff against live
diff lists entities added, changed or deleted compared with the live or another version.
Container audit
audit_container flags missing triggers, duplicate Google tags and consent gaps.
Version history
list_versions and get_live_version show history and the published contents.
Simple sign-in
Device approval in the browser, or a tpk_ key for CI.

Good for

  • Audit a container before a publish
  • See what changes a workspace would make live
  • Find everything that depends on a variable
  • Check which tags lack consent settings

Pricing

Free

Free; connects through a free Tag Pilot account

Prices change. Check tagpilot.io before you buy.

Tag Pilot GTM FAQ

Can it edit my container?

No. It requests only tagmanager.readonly and sends only GET requests.

Do I need a Google Cloud project?

No GCP project, OAuth client or service account is needed.

What about CI?

Create a gtm:mcp key and set TAGPILOT_API_KEY in the environment.

Does Tag Pilot see my data?

Data goes from your machine to Google; Tag Pilot only brokers the token exchange and stores no Google tokens.

Is Tag Pilot GTM free?

Yes. Tag Pilot GTM is free to use.

How do I add Tag Pilot GTM to Claude Code?

Run this command in your terminal: claude mcp add gtm-mcp --env TAGPILOT_API_KEY='<TAGPILOT_API_KEY>' -- npx -y @tagpilot/gtm-mcp

What are the best alternatives to Tag Pilot GTM?

The closest alternatives to Tag Pilot GTM are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP, World Monitor and Calven.

Alternatives to Tag Pilot GTM

  1. Open-source analytics app where an AI agent builds charts and dashboards from your data

    • Remote
    • Open source
    • 7.7K GitHub stars
    • Analytics and data
  2. Hosted MCP connector for managing Google Ads, Meta Ads, GA4 and Search Console from chat

    • 8 tools
    • Remote
    • Freemium
    • 8.1K GitHub stars
    • Marketing and SEO
  3. Indian NSE and BSE stock market data for AI assistants through 48 MCP tools

    • 17 tools
    • Remote
    • Freemium
    • 150 GitHub stars
    • Finance and payments
  4. World Monitor

    MCP server

    Live geopolitical intelligence dashboard with an API and MCP server for agents

    • Remote
    • Freemium
    • Analytics and data
  5. Calven

    MCP server

    Product marketing context from Calven delivered into Claude, ChatGPT and other AI tools

    Not checked yet
    • Remote
    • Free trial
    • 3 GitHub stars
    • Marketing and SEO
  6. CompanyData

    MCP server

    Search and enrich company records from official registers via the CompanyData API

    • 3 tools
    • Remote
    • Paid
    • 3 GitHub stars
    • Analytics and data