Ships in gtm-ga4. Installing the plugin adds it to Claude Code.
Copy this JSON into your .mcp.json to enable this server
Add to your .mcp.json:
{
"mcpServers": {
"gtm-ga4": {
"command": "npx",
"args": [
"-y",
"mcp-gtm-ga4"
],
"env": {
"GTM_ACCOUNT_ID": "${GTM_ACCOUNT_ID}",
"GA4_PROPERTY_ID": "${GA4_PROPERTY_ID}",
"GTM_CONTAINER_ID": "${GTM_CONTAINER_ID}",
"GOOGLE_APPLICATION_CREDENTIALS": "${GOOGLE_APPLICATION_CREDENTIALS}"
}
}
}
}Environment variables set when the server starts
GTM_ACCOUNT_ID=${GTM_ACCOUNT_ID}GA4_PROPERTY_ID=${GA4_PROPERTY_ID}GTM_CONTAINER_ID=${GTM_CONTAINER_ID}GOOGLE_APPLICATION_CREDENTIALS=${GOOGLE_APPLICATION_CREDENTIALS}Command-line arguments passed to the server process
Server configuration and connection parameters
npxFirst indexed Mar 25, 2026
npx claudepluginhub mharnett/mcp-marketing-suite --plugin gtm-ga4