Skip to content

Google Tag Manager MCP Server

MCP server for Google Tag Manager

Install

One-click install

Remote server
Claude Code (no install link, copy and run)
$claude mcp add --transport http gtm-mcp-server https://gtm-mcp.stape.io/mcp

Buttons open the app on your computer and ask you to confirm before anything is added.

$claude mcp add --transport http gtm-mcp-server https://gtm-mcp.stape.io/mcp
mcp.json (Cursor, Claude Desktop, Windsurf)
{
  "mcpServers": {
    "gtm-mcp-server": {
      "url": "https://gtm-mcp.stape.io/mcp"
    }
  }
}

Install command taken from the project's README or registry entry. Always review code before running it.

MCP Server for Google Tag Manager

An interface to the Google Tag Manager API over MCP, in two flavours: a hosted server with Google OAuth built in, and a local CLI that runs on your own credentials.

Table of Contents

Repository layout

npm workspace with one app and two published packages:

Path Package What it is
apps/worker (private) The hosted Cloudflare Worker at gtm-mcp.stape.io: Google OAuth, the approval flow, the public pages, session removal.
packages/cli google-tag-manager-mcp-server The npm package: a local MCP server over stdio, authenticating with credentials you supply.
packages/core google-tag-manager-mcp-core Every GTM tool and schema, independent of how credentials are obtained.

Tools reach Google through a GtmAuthProvider (getAccessToken(): Promise<string>) rather than through any particular session, which is what lets the same tool set back both servers — and a private one with your own auth. See the core package README.

Installation

This server comes in two flavours: Hosted server and Local CLI. Both give you the same 20 GTM tools; the difference is who handles Google auth.

Hosted server Local CLI
Auth Google OAuth in your browser, handled for you You supply a service account key, refresh token, or access token
Data Passes through gtm-mcp.stape.io Only ever leaves your machine
Setup None Set one environment variable

If you're a contributor testing an unreleased change rather than just using the tools, skip everything below and see Test your changes locally instead.

Similar plugs

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发

MCP serverDatabases+13 this week

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…

Explore related