MCP For Gtm MCP Server

A Model Context Protocol (MCP) server that integrates Google Tag Manager with Claude, enabling automated GTM configuration and component creation

Local serverstdioPython

What is the MCP For Gtm MCP server?

If you already use MCP For Gtm, the mcp for gtm mcp server is the piece that lets your assistant work with it directly. A Model Context Protocol (MCP) server that integrates Google Tag Manager with Claude, enabling automated GTM configuration and component creation through natural language prompts.

What the server does

  • GTM API Integration — Full Google Tag Manager API integration for creating and managing tags, triggers, and variables
  • Component Templates — Pre-built templates for common tracking scenarios (GA4, Facebook Pixel, conversion tracking)
  • Workflow Automation — Complete workflow creation for different site types (ecommerce, lead generation, content sites)
  • Claude Integration — Natural language interface for GTM configuration through Claude

Credentials and setup notes

Configuration is passed through the environment: GTM_CREDENTIALS_FILE, GTM_TOKEN_FILE. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Where it fits

This sits in the payments and commerce group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. It is maintained by neep305; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against MCP For Gtm's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How to install the MCP For Gtm MCP server

{
  "mcpServers": {
    "gtm": {
      "command": "python",
      "args": ["/path/to/mcp-for-gtm/server.py"],
      "env": {
        "GTM_CREDENTIALS_FILE": "/path/to/mcp-for-gtm/credentials.json",
        "GTM_TOKEN_FILE": "/path/to/mcp-for-gtm/token.json"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
GTM_CREDENTIALS_FILEConfiguration value read at startup.Optional
GTM_TOKEN_FILECredential the server authenticates with.Yes

Frequently asked questions

It connects MCP For Gtm to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with MCP For Gtm directly.