Skip to main content
Glama
samarthanalytics-sj

Samarth GTM MCP Server

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DRY_RUNNoSimulate all writes without calling the API.false
GOOGLE_CLIENT_IDNoLegacy OAuth client ID.
GTM_MCP_HTTP_PORTNoHTTP server port (http transport only; falls back to PORT).3001
GTM_MCP_RETRY_MAXNoRetry attempts for transient read failures (408/429/5xx, network). 0 disables retries. Mutations are never auto-retried.3
GTM_MCP_TRANSPORTNoTransport: stdio or http.stdio
GTM_MCP_TOKEN_FILENoPath to the local OAuth token file written by npm run auth:google (gitignored)../.gtm-mcp-tokens.json
GOOGLE_ACCESS_TOKENNoCurrent OAuth access token. Env vars take precedence over the token file.
GOOGLE_REDIRECT_URINoLegacy OAuth redirect URI.
GOOGLE_CLIENT_SECRETNoLegacy OAuth client secret.
GOOGLE_REFRESH_TOKENNoOAuth refresh token (long-lived). Env vars take precedence over the token file.
GTM_MCP_ENABLE_WRITESNoAllow create/update operations.false
GOOGLE_OAUTH_CLIENT_IDNoOAuth client ID (preferred). Falls back to GOOGLE_CLIENT_ID.
GTM_DEFAULT_ACCOUNT_IDNoOptional default accountId.
GTM_MCP_ENABLE_DELETESNoAllow delete operations.false
GTM_MCP_ENABLE_PUBLISHNoAllow publish operations.false
GTM_MCP_HTTP_AUTH_TOKENNoBearer token gating /mcp (http transport). Required before exposing the server beyond localhost; unset = open + startup warning.
GTM_DEFAULT_CONTAINER_IDNoOptional default containerId.
GTM_DEFAULT_WORKSPACE_IDNoOptional default workspaceId.
GOOGLE_OAUTH_REDIRECT_URINoOAuth redirect URI. Falls back to GOOGLE_REDIRECT_URI.http://localhost:3001/oauth/callback
GOOGLE_OAUTH_CLIENT_SECRETNoOAuth client secret (preferred). Falls back to GOOGLE_CLIENT_SECRET.
GTM_MCP_RETRY_MAX_DELAY_MSNoCap on a single backoff sleep (exponential backoff with jitter).30000
GTM_MCP_RETRY_TOTAL_TIMEOUT_MSNoCap on total wall time from first request to last retry.60000
SAMARTH_GOOGLE_OAUTH_CLIENT_IDNoHosted-only. Samarth-owned public OAuth client. Takes precedence over self-hosted vars when set.
GOOGLE_SERVICE_ACCOUNT_KEY_FILENoPath to service account JSON key (see limitations above).
SAMARTH_GOOGLE_OAUTH_CLIENT_SECRETNoHosted-only. Inject from your platform secret manager. Never commit.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/samarthanalytics-sj/samarth-analytics-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server