Samarth GTM MCP Server
Production-grade MCP server for the Google Tag Manager API v2 with read-only GA4 (Admin + Data API) tooling. 107 tools covering the full GTM surface, including server-side containers. Ships read-only: writes, publishes, and deletes are each gated behind separate opt-in flags, every mutation requires per-call confirmation, and a dry-run mode simulates changes. Includes container audits
Install
npx -y samarth-gtm-mcp
Paste the configuration above into your MCP client config (claude_desktop_config.json for Claude Desktop) and restart the client.
{
"mcpServers": {
"samarth-analytics-mcp": {
"command": "npx",
"args": [
"-y",
"samarth-gtm-mcp"
],
"env": {
"DRY_RUN": "<DRY_RUN>",
"GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
"GTM_MCP_HTTP_PORT": "<GTM_MCP_HTTP_PORT>",
"GTM_MCP_RETRY_MAX": "<GTM_MCP_RETRY_MAX>",
"GTM_MCP_TRANSPORT": "<GTM_MCP_TRANSPORT>",
"GTM_MCP_TOKEN_FILE": "<GTM_MCP_TOKEN_FILE>",
"GOOGLE_ACCESS_TOKEN": "<GOOGLE_ACCESS_TOKEN>",
"GOOGLE_REDIRECT_URI": "<GOOGLE_REDIRECT_URI>"
}
}
}
}Paste the configuration above into your MCP client config (claude_desktop_config.json for Claude Desktop) and restart the client.
Sources: public MCP Server directories. This is an independent third-party directory with no affiliation to or endorsement from the maintainers of the listed servers.