Wascer GTM MCP Server
Provides tools for managing Google Tag Manager accounts, containers, workspaces, tags, triggers, variables, versions, built-in variables, and server-side clients, including operations like create, get, list, update, remove, revert, publish, and more.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Wascer GTM MCP Server
MCP server that allows AI assistants (Claude, Cursor, etc.) to manage Google Tag Manager using natural language.
How to connect
With Service Account (recommended)
Claude Desktop
Settings → Developer → Edit Config:
{
"mcpServers": {
"wascer-gtm": {
"command": "bash",
"args": [
"-c",
"npx -y mcp-remote https://gtm-mcp.wascer.com/mcp --header \"X-GTM-Service-Account: $(base64 -w 0 $GTM_SERVICE_ACCOUNT_FILE)\""
],
"env": {
"GTM_SERVICE_ACCOUNT_FILE": "/path/to/service-account.json"
}
}
}
}Cursor
Settings → MCP → Add Server:
{
"mcpServers": {
"wascer-gtm": {
"command": "bash",
"args": [
"-c",
"npx -y mcp-remote https://gtm-mcp.wascer.com/mcp --header \"X-GTM-Service-Account: $(base64 -w 0 $GTM_SERVICE_ACCOUNT_FILE)\""
],
"env": {
"GTM_SERVICE_ACCOUNT_FILE": "/path/to/service-account.json"
}
}
}
}VS Code
Add to .vscode/mcp.json or user settings:
{
"mcpServers": {
"wascer-gtm": {
"command": "bash",
"args": [
"-c",
"npx -y mcp-remote https://gtm-mcp.wascer.com/mcp --header \"X-GTM-Service-Account: $(base64 -w 0 $GTM_SERVICE_ACCOUNT_FILE)\""
],
"env": {
"GTM_SERVICE_ACCOUNT_FILE": "/path/to/service-account.json"
}
}
}
}Claude Code
claude mcp add wascer-gtm \
-e GTM_SERVICE_ACCOUNT_FILE="/path/to/service-account.json" \
-- bash -c 'npx -y mcp-remote https://gtm-mcp.wascer.com/mcp --header "X-GTM-Service-Account: $(base64 -w 0 $GTM_SERVICE_ACCOUNT_FILE)"'Just replace
/path/to/service-account.jsonwith the actual path to your Service Account JSON file. The base64 encoding is handled automatically.
Without Service Account
If you don't have a Service Account, the MCP will use your Google OAuth login instead. You'll have access to GTM accounts that your Google account has permission on.
Claude Desktop / Cursor / VS Code
{
"mcpServers": {
"wascer-gtm": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://gtm-mcp.wascer.com/mcp"]
}
}
}Claude Code
claude mcp add wascer-gtm -- npx mcp-remote https://gtm-mcp.wascer.com/mcpWhen connecting, the browser opens for Google login. After authenticating, the tools become available.
Related MCP server: unboundai-gtm-mcp-server
What you can do
Using natural language, you can ask the AI to:
List GTM accounts and containers
Create web and server-side containers
Create and edit tags, triggers and variables
Enable built-in variables (Page URL, Event, Click ID, etc.)
Create server-side clients (GA4 client, etc.)
Create and publish versions
Usage example
In my GTM account, create a web container called "my-site" with:
- GA4 ID variable with value G-XXXXXXXX
- All Pages trigger
- GA4 Configuration tag pointing to the server
- Publish itThe AI executes all operations automatically via the Google Tag Manager API.
Available tools
Tool | Operations | Description |
| get, list, update | Manage GTM accounts |
| create, get, list, update, remove, snippet | Manage containers (web & server) |
| create, get, list, update, remove, createVersion, getStatus, sync | Manage workspaces and create versions |
| create, get, list, update, remove, revert | Manage tags |
| create, get, list, update, remove, revert | Manage triggers |
| create, get, list, update, remove, revert | Manage variables |
| get, live, publish, remove, setLatest, undelete, update | Manage and publish versions |
| create, list, remove, revert | Enable/disable built-in variables |
| create, get, list, update, remove, revert | Manage server-side clients |
Authentication
Google OAuth (default)
When connecting, you log in with your Google account. The MCP accesses GTM accounts that your account has permission on. No additional configuration needed.
Service Account (optional)
For platform-level access (e.g. managing client accounts), point to your Service Account JSON file in the MCP configuration (as shown in the connection examples above). The file is read locally, base64 encoded automatically, and sent via HTTP header — it never appears in chat and is never sent to the LLM.
How to get a Service Account JSON
Go to Google Cloud Console → IAM & Admin → Service Accounts
Create a Service Account (or use an existing one)
Create a JSON key and download it
Save the JSON file somewhere on your machine (e.g.
~/keys/service-account.json)Use the file path in the
GTM_SERVICE_ACCOUNT_FILEenv var in your MCP configIn Google Tag Manager, add the SA email as an admin on the accounts you want to manage
Troubleshooting
Reset authentication
rm -rf ~/.mcp-authRestart your MCP client to re-login.
"Access blocked" on Google login
Make sure your Google account has access to Tag Manager and the OAuth app has GTM scopes enabled.
Tools not showing up
Use a short server name (e.g. wascer-gtm). Some clients have a 60-character limit for name + tool.
License
Apache-2.0
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Hosted Google Tag Manager MCP server, with each action switched on or off per account.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Google Ads MCP server: run Search, Display, Demand Gen and PMax campaigns from AI.
Hosted Google Analytics 4 MCP server, with each action switched on or off per account.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP Server that provides a conversational interface to Google Tag Manager API, allowing users to manage tags, triggers, variables, and containers through natural language.-
- AlicenseAqualityDmaintenanceMCP server for Google Tag Manager API, enabling users to manage containers, tags, and triggers through natural language using Google Application Default Credentials.1894 npmApache 2.0
- AlicenseAqualityBmaintenanceMCP server for Google Tag Manager and GA4, enabling tag management, consent auditing, workspace versioning, and analytics reporting through natural language.11345 npm3MIT
- AlicenseNot gradedqualityDmaintenanceA unified MCP server that gives AI assistants direct access to Google Analytics 4, Google Search Console, Google Ads and Google Merchant Center data using OAuth2 user credentials.MIT