samarth gtm mcp for Cursor
io.github.samarthanalytics-sj/samarth-gtm-mcp
Google Tag Manager + read-only GA4 MCP server. Read-only by default, gated writes, audits.
client:Cursor
transport:stdio
runtime:npm
Install samarth gtm mcp in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"samarth-gtm-mcp": {
"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>",
"GTM_MCP_ENABLE_WRITES": "<GTM_MCP_ENABLE_WRITES>",
"GTM_MCP_ENABLE_PUBLISH": "<GTM_MCP_ENABLE_PUBLISH>",
"GTM_MCP_ENABLE_DELETES": "<GTM_MCP_ENABLE_DELETES>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs