How to configure the MCP Server for Google Tag Manager

Written by

Uliana Lesiv

Updated Jul 20, 2026 comments
  1. 1.
  2. 2.
  3. 3.
  4. 4.
  5. 5.

Still managing GTM manually?

How does the MCP Server work?

How MCP Server works
How MCP Server works

Before starting

How to set up an 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"

Troubleshooting MCP server configuration

rm -rf ~/.mcp-auth

Conclusion

Want to start on the server side?

Try for free

Written by

Uliana Lesiv

Content writer

Uliana is a Content Manager at Stape, specializing in analytics and integration setups. She breaks down complex tracking concepts into clear insights, helping businesses optimize data collection.

Was this article helpful?

Comments

Recommended for you

Solutions

Stape MCP server

Stape MCP server connects your AI app to Stape, so you can manage Stape containers by typing what you need instead of writing API requests.

Sep 14, 2026

Turn better tracking into better marketing performance

Try for free