Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, get in touch and we’ll put it right.

io.github.samarthanalytics-sj/samarth-gtm-mcp

NPM · SAMARTH-GTM-MCP · SCANNED SEP 20

Google Tag Manager + read-only GA4 MCP server. Read-only by default, gated writes, audits.

Available components

0 this week 90 Trust /100
Trust breakdown (7 categories)

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →

Supply Chain Security89
  • No malware found by supply-chain analysis.Pass
  • CVE check failed: a known high-severity CVE affects uuid 9.0.1, reached via google-auth-library > gaxios > uuid. A fixed version is available. View diagnostics → Fail
  • No install/post-install scripts declared.Pass
  • 48 of 148 dependencies flagged as unhealthy (1 deprecated). View diagnostics → Partial
Provenance & Transparency100
  • Source repository is publicly reachable at the declared URL. View diagnostics → Pass
  • Cryptographically verified build provenance (signed, bound to samarthanalytics-sj/samarth-analytics-mcp). View diagnostics → Pass
  • Clear OSI-approved license (MIT).Pass
  • Actively maintained (last published 12 days ago).Pass
  • Publishes a security disclosure policy (SECURITY.md).Pass
Schema Quality & AI Usability79
  • AI-judged instruction clarity (excellent).Pass
  • Context-footprint check failed: tool/resource definitions use about 11859 tokens (~110/item across 107 items; 107 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management93
  • Stability observed for 28 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage91
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 72% of tool parameters carry a description.Partial
Tool Safety75
  • No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
  • 0 of 14 tool(s) whose name or description implies an irreversible operation declare an MCP destructiveHint annotation; "tags_delete" implies "delete" and declares no destructiveHint at all, which the MCP spec reads as destructive by default. See how to fix → Fail
  • An AI judge read all 108 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Install

How do I install the io.github.samarthanalytics-sj/samarth-gtm-mcp server?

io.github.samarthanalytics-sj/samarth-gtm-mcp runs locally as an npm package, launched with npx -y samarth-gtm-mcp. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

npm · samarth-gtm-mcp

# add to Claude Code
claude mcp add samarthanalytics-sj-samarth-gtm-mcp -- npx -y samarth-gtm-mcp
// .cursor/mcp.json
{
  "mcpServers": {
    "samarthanalytics-sj-samarth-gtm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "samarth-gtm-mcp"
      ]
    }
  }
}
// .vscode/mcp.json
{
  "servers": {
    "samarthanalytics-sj-samarth-gtm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "samarth-gtm-mcp"
      ]
    }
  }
}
# add to Codex CLI
codex mcp add samarthanalytics-sj-samarth-gtm-mcp -- npx -y samarth-gtm-mcp
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "samarthanalytics-sj-samarth-gtm-mcp": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "samarth-gtm-mcp"
      ],
      "enabled": true
    }
  }
}
# add to OpenClaw
openclaw mcp add samarthanalytics-sj-samarth-gtm-mcp --command npx --arg -y --arg samarth-gtm-mcp
# ~/.hermes/config.yaml
mcp_servers:
  samarthanalytics-sj-samarth-gtm-mcp:
    command: "npx"
    args: ["-y", "samarth-gtm-mcp"]
// ~/.netclaw/config/netclaw.json
{
  "McpServers": {
    "samarthanalytics-sj-samarth-gtm-mcp": {
      "Transport": "stdio",
      "Command": "npx",
      "Arguments": [
        "-y",
        "samarth-gtm-mcp"
      ]
    }
  }
}
# add to Vellum
assistant mcp add samarthanalytics-sj-samarth-gtm-mcp -t stdio -c npx -a -y samarth-gtm-mcp
// mcp.json
{
  "mcpServers": {
    "samarthanalytics-sj-samarth-gtm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "samarth-gtm-mcp"
      ]
    }
  }
}
Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 20 Sept 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 90 to 93. That category is still filling its 30-day observation window: 27 days of observed history at the previous scan, 28 at this one. The score rises as the window fills, whether or not the server changes.

  • 18 Sept 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 83 to 87. That category is still filling its 30-day observation window: 25 days of observed history at the previous scan, 26 at this one. The score rises as the window fills, whether or not the server changes.

  • 16 Sept 26 −3
    • Stability: pass → 0.80 functional
  • 15 Sept 26 +1
    • CVE-2026-82417 no longer affects this package security
    • CVE-2026-82562 no longer affects this package security
    • Stability: 0.97 → pass security
  • 13 Sept 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 90 to 93. That category is still filling its 30-day observation window: 27 days of observed history at the previous scan, 28 at this one. The score rises as the window fills, whether or not the server changes.

  • 11 Sept 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 83 to 87. That category is still filling its 30-day observation window: 25 days of observed history at the previous scan, 26 at this one. The score rises as the window fills, whether or not the server changes.

  • 9 Sept 26 −3
    • Stability: pass → 0.80 functional
  • 8 Sept 26 +1
    • Stability: 0.97 → pass security
    • Security disclosure: unverified → pass functional
Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 20 Sept 2026 · Analysed npm/samarth-gtm-mcp@1.19.0

Provenance Verified

A signed build attestation was found and verified, binding this exact artifact to the source repository it claims to come from.

Result Verified
Ecosystem npm
Reason Verified
Discovered via Registry attestation endpoint
Source repo samarthanalytics-sj/samarth-analytics-mcp
Certificate issuer https://token.actions.githubusercontent.com
Certificate SAN https://github.com/samarthanalytics-sj/samarth-analytics-mcp/.github/workflows/release.yml@refs/heads/main
Rekor log index 1803910685
Predicate type https://slsa.dev/provenance/v1
Subject digest sha512:ef3892684692d00cfbe075fbf1afcc4ad65ddb758a73685655672f1a827dd0ce1f0ed9292149670be40c8673cbe456319a76b39a17145865910393931

Background: How many MCP packages publish verified provenance →

Vulnerabilities 1 finding
ID CVE Severity Vector Fix available
GHSA-w5hq-g745-h8pq CVE-2026-41907 high CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N yes

Background: What a vulnerability scan can and cannot prove →

Dependencies 148 packages
Packages resolved 148
Deprecated 1
Stale 47
Tree resolution Complete

Background: SBOMs and build attestations, explained →

MCP tools · 107 exposed · ~11,055 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →

Tool Tokens
accounts_get ~33

Get details of a specific GTM account.

NameTypeReqDescription
accountIdstringyesThe GTM account ID (numeric string).

No output schema declared.

No examples provided.

accounts_list ~47

List all GTM accounts accessible to the authenticated user. Returns account IDs, names, and share-data flags.

NameTypeReqDescription
includeGoogleTagsbooleanAlso include results from the Google Tags accounts.

No output schema declared.

No examples provided.

audit_container ~84

Inspect a GTM workspace for common analytics implementation issues. Returns structured findings with severity levels (error/warning/info). This is a read-only operation — it never modifies anything.

NameTypeReqDescription
accountIdstringyes
containerIdstringyes
includeInfobooleanInclude informational findings (verbose). Default: false.
workspaceIdstringyes

No output schema declared.

No examples provided.

built_in_variables_disable ~86

[DELETE] Disable one or more built-in variables in a GTM workspace. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.

NameTypeReqDescription
accountIdstringyes
confirmbooleanyes
containerIdstringyes
typesarrayyesArray of built-in variable types to disable.
workspaceIdstringyes

No output schema declared.

No examples provided.

built_in_variables_enable ~121

[WRITE] Enable one or more built-in variables in a GTM workspace. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

NameTypeReqDescription
accountIdstringyes
confirmbooleanyes
containerIdstringyes
typesarrayyesArray of built-in variable types to enable. Known types include: pageUrl, pageHostname, pagePath, referrer, event, clickElement, clickClasses, clickId, clickTarget, clickUrl, and more.
workspaceIdstringyes

No output schema declared.

No examples provided.

built_in_variables_list ~47

List all currently enabled built-in variables in a GTM workspace.

NameTypeReqDescription
accountIdstringyes
containerIdstringyes
workspaceIdstringyes

No output schema declared.

No examples provided.

built_in_variables_revert ~89

[WRITE] Revert changes to a built-in variable in the workspace to the original container version. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

NameTypeReqDescription
accountIdstringyes
confirmbooleanyes
containerIdstringyes
typestringyesThe built-in variable type to revert.
workspaceIdstringyes

No output schema declared.

No examples provided.

clients_create ~125

[WRITE] Create a new GTM client. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Pass the full resource as a JSON string in bodyJson.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
bodyJsonstringyesFull clients resource as a JSON string (e.g. {"name":"...","type":"..."}).
confirmbooleanyesMust be true to confirm this write operation.
containerIdstringyesThe GTM container ID.
workspaceIdstringyesThe GTM workspace ID.

No output schema declared.

No examples provided.

clients_delete ~98

[DELETE] Delete a GTM client. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
clientIdstringyesThe clients ID to delete.
confirmbooleanyesMust be true to confirm this delete operation.
containerIdstringyesThe GTM container ID.
workspaceIdstringyesThe GTM workspace ID.

No output schema declared.

No examples provided.

clients_get ~65

Get a specific GTM client.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
clientIdstringyesThe clients ID.
containerIdstringyesThe GTM container ID.
workspaceIdstringyesThe GTM workspace ID.

No output schema declared.

No examples provided.

clients_list ~114

List all GTM clients in a workspace. Automatically follows pagination.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
containerIdstringyesThe GTM container ID.
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.
workspaceIdstringyesThe GTM workspace ID.

No output schema declared.

No examples provided.

clients_revert ~122

[WRITE] Revert workspace changes to a GTM client back to its last container-version state. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
clientIdstringyesThe clients ID to revert.
confirmbooleanyesMust be true to confirm this write operation.
containerIdstringyesThe GTM container ID.
fingerprintstringCurrent fingerprint (for optimistic locking).
workspaceIdstringyesThe GTM workspace ID.

No output schema declared.

No examples provided.

clients_update ~138

[WRITE] Update an existing GTM client. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Pass the full resource as a JSON string in bodyJson.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
bodyJsonstringyesFull clients resource as a JSON string.
clientIdstringyesThe clients ID to update.
confirmbooleanyesMust be true to confirm this write operation.
containerIdstringyesThe GTM container ID.
fingerprintstringCurrent fingerprint (for optimistic locking).
workspaceIdstringyesThe GTM workspace ID.

No output schema declared.

No examples provided.

containers_combine ~151

[WRITE] Combine (merge) another container into this one. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. ⚠️ This merges the source container identified by containerIdToCombine into the target container.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
allowUserPermissionFeatureUpdatebooleanAllow updating the user-permission feature during combine.
confirmbooleanyesMust be true to confirm this write operation.
containerIdstringyesThe target container ID (the surviving container).
containerIdToCombinestringyesThe container ID to merge into the target.
settingSourcestringWhich container's settings to keep.

No output schema declared.

No examples provided.

containers_create ~103

[WRITE] Create a new GTM container. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
confirmbooleanyesMust be true to confirm this write operation.
domainNamearrayAssociated domain names.
namestringyesContainer name.
notesstringOptional notes.
usageContextarrayyesUsage context(s) for the container.

No output schema declared.

No examples provided.

containers_get ~43

Get details of a specific GTM container.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
containerIdstringyesThe GTM container ID.

No output schema declared.

No examples provided.

containers_list ~94

List all GTM containers within a GTM account. Automatically follows pagination to return all containers.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

No output schema declared.

No examples provided.

containers_lookup ~56

Look up a GTM container by its linked destination ID (e.g. a GA4 measurement ID or tag ID).

NameTypeReqDescription
destinationIdstringyesThe destination/tag ID to look up (e.g. "G-XXXXXXX").

No output schema declared.

No examples provided.

containers_move_tag_id ~162

[WRITE] Move a Tag ID out of a container into a new container. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
allowUserPermissionFeatureUpdateboolean
confirmbooleanyesMust be true to confirm this write operation.
containerIdstringyesThe source container ID.
copySettingsbooleanWhether to copy container settings.
copyTermsOfServicebooleanWhether to copy terms of service.
copyUsersbooleanWhether to copy users.
tagIdstringyesThe Tag ID to move.
tagNamestringName for the new tag created in the destination container.

No output schema declared.

No examples provided.

containers_snippet ~52

Get the GTM installation snippet (HTML/JS tagging code) for a container.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
containerIdstringyesThe GTM container ID.

No output schema declared.

No examples provided.

destinations_get ~54

Get details of a specific GTM destination.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
containerIdstringyesThe GTM container ID.
destinationIdstringyesThe destination ID.

No output schema declared.

No examples provided.

destinations_link ~115

[WRITE] Link a destination (Google tag / GA4 destination) to a GTM container. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
allowUserPermissionFeatureUpdateboolean
confirmbooleanyesMust be true to confirm this write operation.
containerIdstringyesThe GTM container ID.
destinationIdstringyesThe destination ID to link (e.g. "G-XXXXXXX").

No output schema declared.

No examples provided.

destinations_list ~52

List all destinations (linked Google tags / GA4 destinations) for a GTM container.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
containerIdstringyesThe GTM container ID.

No output schema declared.

No examples provided.

environments_create ~118

[WRITE] Create a new GTM environment. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
confirmbooleanyesMust be true to confirm this write operation.
containerIdstringyesThe GTM container ID.
descriptionstringEnvironment description.
enableDebugbooleanWhether to enable debug by default.
namestringyesEnvironment name.
urlstringDefault preview page URL for the environment.

No output schema declared.

No examples provided.

environments_delete ~87

[DELETE] Delete a GTM environment. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
confirmbooleanyesMust be true to confirm this delete operation.
containerIdstringyesThe GTM container ID.
environmentIdstringyesThe GTM environment ID to delete.

No output schema declared.

No examples provided.

environments_get ~56

Get details of a specific GTM environment.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
containerIdstringyesThe GTM container ID.
environmentIdstringyesThe GTM environment ID.

No output schema declared.

No examples provided.

environments_list ~101

List all environments in a GTM container. Automatically follows pagination.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
containerIdstringyesThe GTM container ID.
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

No output schema declared.

No examples provided.

environments_reauthorize ~119

[PUBLISH] Re-generate the authorization code for a GTM environment. Requires GTM_MCP_ENABLE_PUBLISH=true and confirm=true. ⚠️ This rotates the environment auth token; any embedded snippet using the old token stops working until updated.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
confirmbooleanyesMust be true to confirm this high-impact operation.
containerIdstringyesThe GTM container ID.
environmentIdstringyesThe GTM environment ID to reauthorize.

No output schema declared.

No examples provided.

environments_update ~145

[WRITE] Update an existing GTM environment. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
confirmbooleanyesMust be true to confirm this write operation.
containerIdstringyesThe GTM container ID.
descriptionstringNew description.
enableDebugbooleanWhether to enable debug by default.
environmentIdstringyesThe GTM environment ID to update.
fingerprintstringCurrent fingerprint (for optimistic locking).
namestringNew environment name.
urlstringNew default preview page URL.

No output schema declared.

No examples provided.

export_container ~111

Export a full GTM workspace summary as structured JSON. Returns all tags, triggers, variables, folders, and built-in variables. This is a read-only operation. Use this for documentation, auditing, or feeding container data to other tools.

NameTypeReqDescription
accountIdstringyes
containerIdstringyes
formatstring"full" = all fields, "summary" = key fields only, "names_only" = just names and IDs
workspaceIdstringyes

No output schema declared.

No examples provided.

folders_create ~75

[WRITE] Create a GTM folder. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

NameTypeReqDescription
accountIdstringyes
confirmbooleanyes
containerIdstringyes
namestringyes
notesstring
workspaceIdstringyes

No output schema declared.

No examples provided.

folders_delete ~83

[DELETE] Delete a GTM folder. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true. Contents of the folder will be unfoldered, not deleted.

NameTypeReqDescription
accountIdstringyes
confirmbooleanyes
containerIdstringyes
folderIdstringyes
workspaceIdstringyes

No output schema declared.

No examples provided.

folders_entities ~57

List all entities (tags, triggers, variables) within a specific GTM folder.

NameTypeReqDescription
accountIdstringyes
containerIdstringyes
folderIdstringyes
workspaceIdstringyes

No output schema declared.

No examples provided.

folders_get ~47

Get a specific GTM folder.

NameTypeReqDescription
accountIdstringyes
containerIdstringyes
folderIdstringyes
workspaceIdstringyes

No output schema declared.

No examples provided.

folders_list ~103

List all GTM folders in a workspace. Automatically follows pagination to return all folders.

NameTypeReqDescription
accountIdstringyes
containerIdstringyes
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.
workspaceIdstringyes

No output schema declared.

No examples provided.

folders_move_entities ~114

[WRITE] Move tags/triggers/variables into a folder. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

NameTypeReqDescription
accountIdstringyes
confirmbooleanyes
containerIdstringyes
folderIdstringyesThe destination folder ID.
tagIdarrayTag IDs to move.
triggerIdarrayTrigger IDs to move.
variableIdarrayVariable IDs to move.
workspaceIdstringyes

No output schema declared.

No examples provided.

folders_update ~90

[WRITE] Update a GTM folder. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

NameTypeReqDescription
accountIdstringyes
confirmbooleanyes
containerIdstringyes
fingerprintstring
folderIdstringyes
namestring
notesstring
workspaceIdstringyes

No output schema declared.

No examples provided.

ga4_account_summaries_list ~113

List GA4 account summaries accessible to the authenticated user. Each summary includes the account plus a lightweight list of its property summaries (property ID + display name). Best starting point to discover available GA4 accounts and properties. Read-only.

NameTypeReqDescription
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

No output schema declared.

No examples provided.

ga4_custom_dimensions_list ~119

List custom dimensions configured on a GA4 property (parameter name, display name, scope: EVENT/USER/ITEM). Read-only.

NameTypeReqDescription
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.
propertystringyesGA4 property ID, e.g. "123456789" or "properties/123456789".

No output schema declared.

No examples provided.

ga4_custom_metrics_list ~121

List custom metrics configured on a GA4 property (parameter name, display name, measurement unit, scope, restricted-metric type). Read-only.

NameTypeReqDescription
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.
propertystringyesGA4 property ID, e.g. "123456789" or "properties/123456789".

No output schema declared.

No examples provided.

ga4_data_retention_get ~65

Get the data retention settings for a GA4 property (event data retention duration and whether retention resets on new activity). Read-only.

NameTypeReqDescription
propertystringyesGA4 property ID, e.g. "123456789" or "properties/123456789".

No output schema declared.

No examples provided.

ga4_data_streams_list ~141

List data streams for a GA4 property (web, Android, iOS). Web streams include the measurement ID and default URI; app streams include package name / bundle ID. Use this to audit measurement IDs and stream config. Read-only.

NameTypeReqDescription
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.
propertystringyesGA4 property ID, e.g. "123456789" or "properties/123456789".

No output schema declared.

No examples provided.

ga4_enhanced_measurement_get ~122

Get the enhanced measurement settings for a specific WEB data stream (scrolls, outbound clicks, site search, video engagement, file downloads, form interactions). Only valid for web streams. Served via the Admin API v1alpha surface (not yet in v1beta). Read-only.

NameTypeReqDescription
dataStreamIdstringyesThe data stream ID (numeric) or full "dataStreams/{id}" suffix.
propertystringyesGA4 property ID, e.g. "123456789" or "properties/123456789".

No output schema declared.

No examples provided.

ga4_google_ads_links_list ~120

List Google Ads links for a GA4 property (linked customer ID, personalized-advertising and auto-tagging flags). Read-only.

NameTypeReqDescription
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.
propertystringyesGA4 property ID, e.g. "123456789" or "properties/123456789".

No output schema declared.

No examples provided.

ga4_key_events_list ~131

List key events (formerly "conversion events") for a GA4 property — the current Admin API naming. Returns event name, counting method, and whether the event is deletable. Read-only.

NameTypeReqDescription
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.
propertystringyesGA4 property ID, e.g. "123456789" or "properties/123456789".

No output schema declared.

No examples provided.

ga4_properties_list ~142

List GA4 properties under a given parent account. Returns full property records (display name, time zone, currency, industry, service level). Read-only.

NameTypeReqDescription
accountIdstringyesParent GA4 account ID, e.g. "123456" or "accounts/123456".
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.
showDeletedbooleanInclude soft-deleted (trashed) properties in the results.

No output schema declared.

No examples provided.

ga4_property_get ~65

Get a single GA4 property by ID, including display name, time zone, currency, industry category, and service level. Read-only.

NameTypeReqDescription
propertystringyesGA4 property ID, e.g. "123456789" or "properties/123456789".

No output schema declared.

No examples provided.

ga4_run_realtime_report ~159

Run a read-only GA4 Data API Realtime report (events in roughly the last 30 minutes). Useful to confirm a tag is firing right now during live QA. Read-only — never writes. Requires the analytics.readonly scope.

NameTypeReqDescription
dimensionsarrayDimension names, e.g. ["eventName","date"]. Max 9. Omit for a metric-only report.
limitintegerMax rows to return (default 100).
metricsarrayyesMetric names, e.g. ["eventCount","totalUsers"]. At least 1, max 10.
propertystringyesGA4 property ID, e.g. "123456789" or "properties/123456789".

No output schema declared.

No examples provided.

ga4_run_report ~273

Run a read-only GA4 Data API report for a property over a date range. Returns dimension/metric rows (e.g. event counts by eventName). Useful for reconciling configured GTM/GA4 events against events GA4 actually reports (zero reported activity for a configured event is a red flag). Read-only — never writes. Requires the analytics.readonly scope.

NameTypeReqDescription
dimensionsarrayDimension names, e.g. ["eventName","date"]. Max 9. Omit for a metric-only report.
endDatestringEnd date: YYYY-MM-DD, "NdaysAgo", "today", or "yesterday".
limitintegerMax rows to return (default 250).
metricsarrayyesMetric names, e.g. ["eventCount","totalUsers"]. At least 1, max 10.
offsetintegerRow offset for paging (default 0).
orderByMetricstringMetric name to order by (descending). Optional.
propertystringyesGA4 property ID, e.g. "123456789" or "properties/123456789".
startDatestringStart date: YYYY-MM-DD, "NdaysAgo", "today", or "yesterday".

No output schema declared.

No examples provided.

gtag_config_create ~131

[WRITE] Create a new GTM gtag config. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Pass the full resource as a JSON string in bodyJson.

NameTypeReqDescription
accountIdstringyesThe GTM account ID.
bodyJsonstringyesFull gtag configs resource as a JSON string (e.g. {"name":"...","type":"..."}).
confirmbooleanyesMust be true to confirm this write operation.
containerIdstringyesThe GTM container ID.
workspaceIdstringyesThe GTM workspace ID.

No output schema declared.

No examples provided.

Common questions

What is the io.github.samarthanalytics-sj/samarth-gtm-mcp server?

io.github.samarthanalytics-sj/samarth-gtm-mcp is listed in the public MCP registry as io.github.samarthanalytics-sj/samarth-gtm-mcp. Google Tag Manager + read-only GA4 MCP server. Read-only by default, gated writes, audits. This page covers its npm package (samarth-gtm-mcp).

Is the io.github.samarthanalytics-sj/samarth-gtm-mcp server safe to use?

io.github.samarthanalytics-sj/samarth-gtm-mcp scores 90 out of 100 on VerifyMCP. We recorded 1 known advisory against it as of 20 September 2026. It declares no install or post-install scripts. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

What tools does the io.github.samarthanalytics-sj/samarth-gtm-mcp server expose?

io.github.samarthanalytics-sj/samarth-gtm-mcp exposes 107 tools: accounts_list, accounts_get, containers_list, containers_get, containers_create, and 102 more. Their descriptions and schemas cost roughly 11,055 tokens of context every time the server is loaded.

Is the io.github.samarthanalytics-sj/samarth-gtm-mcp server still maintained?

io.github.samarthanalytics-sj/samarth-gtm-mcp is still listed as active in the MCP registry. We last reached this channel on 20 September 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

What licence is the io.github.samarthanalytics-sj/samarth-gtm-mcp server under?

io.github.samarthanalytics-sj/samarth-gtm-mcp declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.