samarth-gtm-mcp
About
Google Tag Manager + read-only GA4 MCP server. Read-only by default, gated writes, audits.
Use this server
Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.
Transportstdio (runs a local command)
Env vars
GOOGLE_OAUTH_CLIENT_ID GOOGLE_OAUTH_CLIENT_SECRET GTM_MCP_ENABLE_WRITES GTM_MCP_ENABLE_PUBLISH GTM_MCP_ENABLE_DELETESClaude Code
claude mcp add --env GOOGLE_OAUTH_CLIENT_ID= --env GOOGLE_OAUTH_CLIENT_SECRET= --env GTM_MCP_ENABLE_WRITES= --env GTM_MCP_ENABLE_PUBLISH= --env GTM_MCP_ENABLE_DELETES= samarth-gtm-mcp -- npx samarth-gtm-mcp
Cursor
If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.
VS Code
code --add-mcp '{"name":"samarth-gtm-mcp","command":"npx","args":["samarth-gtm-mcp"],"env":{"GOOGLE_OAUTH_CLIENT_ID":"","GOOGLE_OAUTH_CLIENT_SECRET":"","GTM_MCP_ENABLE_WRITES":"","GTM_MCP_ENABLE_PUBLISH":"","GTM_MCP_ENABLE_DELETES":""}}'
JSON
{
"mcpServers": {
"samarth-gtm-mcp": {
"command": "npx",
"args": [
"samarth-gtm-mcp"
],
"env": {
"GOOGLE_OAUTH_CLIENT_ID": "",
"GOOGLE_OAUTH_CLIENT_SECRET": "",
"GTM_MCP_ENABLE_WRITES": "",
"GTM_MCP_ENABLE_PUBLISH": "",
"GTM_MCP_ENABLE_DELETES": ""
}
}
}
}
Environment variables are listed by name only — fill in your own values. Entries never carry secrets.