Samarth GTM MCP Server
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DRY_RUN | No | Simulate all writes without calling the API. | false |
| GOOGLE_CLIENT_ID | No | Legacy OAuth client ID. | |
| GTM_MCP_HTTP_PORT | No | HTTP server port (http transport only; falls back to PORT). | 3001 |
| GTM_MCP_RETRY_MAX | No | Retry attempts for transient read failures (408/429/5xx, network). 0 disables retries. Mutations are never auto-retried. | 3 |
| GTM_MCP_TRANSPORT | No | Transport: stdio or http. | stdio |
| GTM_MCP_TOKEN_FILE | No | Path to the local OAuth token file written by npm run auth:google (gitignored). | ./.gtm-mcp-tokens.json |
| GOOGLE_ACCESS_TOKEN | No | Current OAuth access token. Env vars take precedence over the token file. | |
| GOOGLE_REDIRECT_URI | No | Legacy OAuth redirect URI. | |
| GOOGLE_CLIENT_SECRET | No | Legacy OAuth client secret. | |
| GOOGLE_REFRESH_TOKEN | No | OAuth refresh token (long-lived). Env vars take precedence over the token file. | |
| GTM_MCP_ENABLE_WRITES | No | Allow create/update operations. | false |
| GOOGLE_OAUTH_CLIENT_ID | No | OAuth client ID (preferred). Falls back to GOOGLE_CLIENT_ID. | |
| GTM_DEFAULT_ACCOUNT_ID | No | Optional default accountId. | |
| GTM_MCP_ENABLE_DELETES | No | Allow delete operations. | false |
| GTM_MCP_ENABLE_PUBLISH | No | Allow publish operations. | false |
| GTM_MCP_HTTP_AUTH_TOKEN | No | Bearer token gating /mcp (http transport). Required before exposing the server beyond localhost; unset = open + startup warning. | |
| GTM_DEFAULT_CONTAINER_ID | No | Optional default containerId. | |
| GTM_DEFAULT_WORKSPACE_ID | No | Optional default workspaceId. | |
| GOOGLE_OAUTH_REDIRECT_URI | No | OAuth redirect URI. Falls back to GOOGLE_REDIRECT_URI. | http://localhost:3001/oauth/callback |
| GOOGLE_OAUTH_CLIENT_SECRET | No | OAuth client secret (preferred). Falls back to GOOGLE_CLIENT_SECRET. | |
| GTM_MCP_RETRY_MAX_DELAY_MS | No | Cap on a single backoff sleep (exponential backoff with jitter). | 30000 |
| GTM_MCP_RETRY_TOTAL_TIMEOUT_MS | No | Cap on total wall time from first request to last retry. | 60000 |
| SAMARTH_GOOGLE_OAUTH_CLIENT_ID | No | Hosted-only. Samarth-owned public OAuth client. Takes precedence over self-hosted vars when set. | |
| GOOGLE_SERVICE_ACCOUNT_KEY_FILE | No | Path to service account JSON key (see limitations above). | |
| SAMARTH_GOOGLE_OAUTH_CLIENT_SECRET | No | Hosted-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
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
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