MCP server providing Google Tag Manager API access with built-in Google OAuth for remote connections.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent ā or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag ā we're steadily working through the catalog.
š” Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by 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.
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.ai: 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.
This server comes in two flavours: Hosted server and Local CLI. Both give you the same 18 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.ai | 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.
Pick your client below. The hosted server needs the mcp-remote bridge on clients whose MCP support doesn't complete Google's OAuth flow natively; where a client does that itself, it connects straight to https://gtm-mcp.stape.ai/mcp.
Hosted server ā Claude Desktop connects to remote HTTP MCP servers natively, no bridge needed. Go to Settings ā Connectors ā Add custom connector, set the name to gtm-mcp-server and the URL to https://gtm-mcp.stape.ai/mcp, then save. Click the new connector to complete the Google OAuth flow in the browser window that opens.
mcp-remoteis also possible for the hosted server, for anyone who'd rather configure it through the JSON config file (Settings -> Developer -> Edit Config) instead of the Connectors UI ā less recommended, but still supported:
Local CLI ā no OAuth flow, no data through anyone else's server, you supply a service account key or a refresh token. Open Settings -> Developer -> Edit Config and add:
See the CLI README for every credential option.
Claude Code speaks HTTP directly, including the OAuth handshake, so the hosted server needs no bridge.
Hosted server:
A browser window opens for the Google OAuth flow the first time a tool is used. Run /mcp inside Claude Code to confirm it connected.
Local CLI:
Both write into .mcp.json / your Claude Code MCP config.
VS Code's MCP client supports HTTP servers and their OAuth flow natively, no mcp-remote needed. Add this to .vscode/mcp.json:
Hosted server:
Local CLI:
GitHub Copilot Chat in VS Code uses VS Code's own MCP client, so it reads the same .vscode/mcp.json file ā see VS Code above. No separate configuration is needed.
Copilot CLI also completes OAuth natively for remote HTTP servers. Add this to ~/.copilot/mcp-config.json:
Hosted server:
Local CLI:
See GitHub's docs for the equivalent copilot mcp add subcommand.
Cursor speaks HTTP directly too, no mcp-remote needed. Add this to .cursor/mcp.json (project-level) or ~/.cursor/mcp.json (global ā Settings ā MCP ā Add new global MCP server):
Hosted server:
A browser window opens for the Google OAuth flow the first time a tool is used.
Local CLI:
Antigravity's own OAuth support for remote HTTP servers doesn't reliably reach a token to the server yet (antigravity-cli#25), so use mcp-remote for the hosted server here too. Add this to ~/.gemini/config/mcp_config.json (global) or .agents/mcp_config.json (workspace-local) ā accessible from the editor's agent panel via ⦠ā MCP Servers ā Manage MCP Servers ā View raw config:
Hosted server:
Local CLI:
https://gtm-mcp.stape.ai/mcp.ChatGPT only reaches servers over the public internet, it can't spawn a local process ā so there's no Local CLI option here, only the hosted server.
Any other MCP-compatible client that expects a stdio-style command/args config can use the same mcp-remote block for the hosted server:
Or the local CLI directly, with your credentials:
Factual signals from GitHub, npm, and our automated checks ā not a rating.
No reviews yet ā be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/stape-io-google-tag-manager-mcp-server)<a href="https://allmcps.com/mcp/stape-io-google-tag-manager-mcp-server"><img src="https://allmcps.com/api/badge/stape-io-google-tag-manager-mcp-server?style=directory" alt="Google Tag Manager MCP Server on AllMCPs" /></a>