Samarth Gtm MCP Server
by samarthanalytics-sjio.github.samarthanalytics-sj/samarth-gtm-mcpv1.19.0
Google Tag Manager + read-only GA4 MCP server. Read-only by default, gated writes, audits.
context tax
queued
security
queued
cold start
queued
freshness
Active5d ago
Install Samarth Gtm MCP server
Install in Claude Code
claude mcp add samarth-gtm -e GOOGLE_OAUTH_CLIENT_ID='<google-oauth-client-id>' -e GOOGLE_OAUTH_CLIENT_SECRET='<google-oauth-client-secret>' -- npx -y samarth-gtm-mcpInstall in Cursor
{
"mcpServers": {
"samarth-gtm": {
"command": "npx",
"args": [
"-y",
"samarth-gtm-mcp"
],
"env": {
"GOOGLE_OAUTH_CLIENT_ID": "<google-oauth-client-id>",
"GOOGLE_OAUTH_CLIENT_SECRET": "<google-oauth-client-secret>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"samarth-gtm": {
"command": "npx",
"args": [
"-y",
"samarth-gtm-mcp"
],
"env": {
"GOOGLE_OAUTH_CLIENT_ID": "<google-oauth-client-id>",
"GOOGLE_OAUTH_CLIENT_SECRET": "<google-oauth-client-secret>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"samarth-gtm": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"samarth-gtm-mcp"
],
"env": {
"GOOGLE_OAUTH_CLIENT_ID": "<google-oauth-client-id>",
"GOOGLE_OAUTH_CLIENT_SECRET": "<google-oauth-client-secret>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"samarth-gtm": {
"command": "npx",
"args": [
"-y",
"samarth-gtm-mcp"
],
"env": {
"GOOGLE_OAUTH_CLIENT_ID": "<google-oauth-client-id>",
"GOOGLE_OAUTH_CLIENT_SECRET": "<google-oauth-client-secret>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| GOOGLE_OAUTH_CLIENT_ID | yes | — | Your Google OAuth 2.0 client ID (Desktop app type) |
| GOOGLE_OAUTH_CLIENT_SECRET | yes | yes | Your Google OAuth 2.0 client secret |
| GTM_MCP_ENABLE_WRITES | — | — | Set to 'true' to allow create/update operations (default: read-only) |
| GTM_MCP_ENABLE_PUBLISH | — | — | Set to 'true' to allow publish operations (default: disabled) |
| GTM_MCP_ENABLE_DELETES | — | — | Set to 'true' to allow delete operations (default: disabled) |
Freshness
Active — last maintenance signal 5d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-05 · 5d ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-06-12 · 4mo ago · official registry · v1.19.0
FAQ
›How do I install the Samarth Gtm MCP server in Claude Code?
Run: claude mcp add samarth-gtm -e GOOGLE_OAUTH_CLIENT_ID='<google-oauth-client-id>' -e GOOGLE_OAUTH_CLIENT_SECRET='<google-oauth-client-secret>' -- npx -y samarth-gtm-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Samarth Gtm require an API key?
Yes. It expects GOOGLE_OAUTH_CLIENT_ID, GOOGLE_OAUTH_CLIENT_SECRET, of which 1 is a secret.
›Can I use Samarth Gtm as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Samarth Gtm in the official MCP registry?
Yes, as io.github.samarthanalytics-sj/samarth-gtm-mcp.