Skip to content
appsgit

Google Tag Manager MCP Server

Google Tag Manager MCP Server is an MCP server that adds tools to AI assistants such as Claude Desktop, Claude Code and Cursor. MCP server for Google Tag Manager. It has 226 GitHub stars, is released under the Apache-2.0 license and runs locally with npx -y google-tag-manager-mcp-server.

github.com/stape-io/google-tag-manager-mcp-server (opens in a new tab)

  • Official
  • Needs API key
  • Other
  • Apache-2.0
  • Actively maintained

Install Google Tag Manager MCP Server

Generated from the server's published package. Replace your-value with your own values.

Claude Desktop

claude_desktop_config.json
{
  "mcpServers": {
    "google-tag-manager-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "google-tag-manager-mcp-server"
      ],
      "env": {
        "GOOGLE_ACCESS_TOKEN": "your-value"
      }
    }
  }
}

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

Claude Code

claude mcp add --env GOOGLE_ACCESS_TOKEN=your-value --transport stdio google-tag-manager-mcp-server -- npx -y google-tag-manager-mcp-server

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "google-tag-manager-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "google-tag-manager-mcp-server"
      ],
      "env": {
        "GOOGLE_ACCESS_TOKEN": "your-value"
      }
    }
  }
}

Project file; use ~/.cursor/mcp.json to enable it in every project.

VS Code

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "google_access_token",
      "description": "GOOGLE_ACCESS_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "google-tag-manager-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "google-tag-manager-mcp-server"
      ],
      "env": {
        "GOOGLE_ACCESS_TOKEN": "${input:google_access_token}"
      }
    }
  }
}

Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

Environment variables

Variables the server reads at startup.

NameRequiredDescription
GOOGLE_ACCESS_TOKENsecretNoShown in the README's example configuration.

About Google Tag Manager MCP Server

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.

  • gtm
  • gtm-server-side
  • mcp
  • mcp-server
  • stape

FAQ

Google Tag Manager MCP Server FAQ

Still curious? Email info@appsgit.com.

What is Google Tag Manager MCP Server?

Google Tag Manager MCP Server is an MCP server that adds tools to AI assistants such as Claude Desktop, Claude Code and Cursor. MCP server for Google Tag Manager. It has 226 GitHub stars, is released under the Apache-2.0 license and runs locally with npx -y google-tag-manager-mcp-server. The source code is at github.com/stape-io/google-tag-manager-mcp-server.

How do I install the Google Tag Manager MCP Server MCP server?

Add the command npx -y google-tag-manager-mcp-server to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is Google Tag Manager MCP Server free?

The server is open source under the Apache-2.0 license, so running it is free. It needs credentials (GOOGLE_ACCESS_TOKEN) for the service it connects to, which may require a paid account.

Is Google Tag Manager MCP Server actively maintained?

The most recent commit was on Oct 6, 2026. The latest release is google-tag-manager-mcp-server@6.0.0, published Oct 6, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.