/Documentation

How to set up the Model Context Protocol (MCP) server for Google Tag Manager

Updated Sep 25, 2026

Note:

Before you begin

How to set up the MCP server for GTM

  1. 1.
  2. 2.

How to configure the MCP server using HTTP connection

Add a custom connector
Set name and URL
Authentication and OAuth client
Click Connect
Continue connecting
MCP authorized

How to configure the MCP server using mcp-remote

Claude's JSON configuration file
{ "mcpServers": { "google-tag-manager-mcp-server": { "command": "npx", "args": [ "-y", "mcp-remote", "https://gtm-mcp.stape.ai/mcp" ] } } }
configuration
OAuth login page
grant Claude access to your MCP server
the tools will become available for you to use
if it works, the status must be "running"

Testing

Troubleshooting

MCP Server name length limit

The MCP cache

Was this article helpful?

Comments

Can’t find what you are looking for?