Skip to main content
Glama
GTM Data MCP

GTM Data MCP

by kenlim-mops

GTM Data MCP

GTM Data MCP is Runpod's governed context layer for go-to-market operations. It gives compatible AI clients one place to find owners, teams, agencies, vendors, platform accounts, integrations, measurement assets, data definitions, runbooks, lineage, and safe bulk-change templates.

The server is deliberately independent from the Runpod UTM Builder. Either product can operate alone. When UTM_BUILDER_URL and UTM_BUILDER_TOKEN are configured, the MCP adds an optional UTM module that calls the builder's governed /api/v1 interface for reference data, search, preview, and approved issuance.

What V1 includes

  • A searchable GTM catalog with typed records and relationships.

  • Ownership, personnel, agency, vendor, account, measurement, and lineage lookups.

  • Business-term and technical-field data dictionaries.

  • Readiness checks that surface unverified, stale, conflicted, or pending information.

  • Governed bulk-change templates with CSV generation and offline validation.

  • A scheduled Notion reconciliation connector that proposes changes for review.

  • PostgreSQL persistence, version checks, source evidence, locks, and an audit log.

  • Local STDIO and remote Streamable HTTP MCP transports.

  • A Slackbot MCP Client endpoint with request verification, org/workspace allowlisting, per-user identity, restricted-record controls, and invocation auditing.

  • An optional, separately authenticated UTM Builder adapter.

V1 does not store credentials inside catalog records, write directly to advertising platforms, silently copy every Notion edit into the catalog, or make the UTM Builder depend on this server.

Related MCP server: Marketing Brain

Architecture

flowchart LR
  C[Codex or Claude Code] -->|MCP: HTTP or STDIO| M[GTM Data MCP]
  M --> P[(PostgreSQL catalog and audit log)]
  N[Approved Notion sources] -->|scheduled reconciliation| P
  A[GTM administrator] -->|review and import| P
  M -. optional API adapter .-> U[Independent UTM Builder]
  U --> R[(UTM registry)]

The failure boundary is intentional: catalog queries continue if the UTM Builder is unavailable; the UTM Builder and already-issued URLs continue if the MCP is unavailable.

Tool inventory

Area

Tools

Discovery

gtm_module_status, gtm_search_catalog, gtm_get_record

Ownership

gtm_resolve_ownership, gtm_get_personnel_map, gtm_get_account_context

Measurement

gtm_get_measurement_inventory, gtm_trace_lineage, gtm_get_data_definition

Operations

gtm_find_runbooks, gtm_check_readiness, gtm_list_source_updates

Bulk work

gtm_list_bulk_templates, gtm_generate_bulk_template, gtm_validate_bulk_change

Optional UTM

utm_list_reference_data, utm_search_links, utm_preview_link, utm_issue_link, utm_issue_batch

All catalog and template tools are read-only. UTM issuance tools are only registered when the UTM API is configured, require an explicit confirmed=true, and use the independent builder's validation and registry.

Quick start

Requirements: Node.js 20 or newer.

npm install
cp .env.example .env
npm run typecheck
npm test
npm run build

The bundled data/catalog.json supports a database-free local evaluation:

GTM_CATALOG_PATH=./data/catalog.json npm run dev

For local HTTP testing:

GTM_MCP_BEARER_TOKEN="replace-with-a-secret" npm run dev:http

The endpoints are http://localhost:8787/mcp and http://localhost:8787/health.

Slack access

The production deployment exposes two independent MCP entry points:

  • /api/mcp uses a bearer token for Codex, Claude Code, and other approved MCP clients.

  • /api/slack/mcp accepts only Slack-signed Streamable HTTP requests and reads the verified caller from _meta.slack.

Connect the Slack endpoint to the shared Runpod GTM Ops Slack app using Slack identity auth. Users can then ask Slackbot questions such as “Who owns Google Ads and what is the escalation runbook?” without configuring an MCP client locally. Tool calls are attributed to the Slack enterprise/workspace/user identity and recorded in gtm_audit_events; tool arguments are deliberately excluded from the invocation audit payload.

The canonical Slack app manifest and deterministic /utm workflow live in the companion UTM Builder repository. See Slack setup and operations.

Codex and Claude Code compatibility

Yes. The server uses the open Model Context Protocol rather than a client-specific API. Both Codex and Claude Code support local STDIO and remote HTTP MCP servers; only their client configuration differs. The shared deployment recommendation is remote Streamable HTTP with HTTPS and authentication. See the OpenAI MCP documentation and Claude Code MCP documentation.

Codex remote configuration in ~/.codex/config.toml:

[mcp_servers.gtm_data]
url = "https://gtm-data-mcp.example.com/api/mcp"
bearer_token_env_var = "GTM_DATA_MCP_TOKEN"

Claude Code remote configuration:

claude mcp add --transport http gtm-data \
  https://gtm-data-mcp.example.com/api/mcp \
  --header "Authorization: Bearer ${GTM_DATA_MCP_TOKEN}"

Local STDIO is also available after npm run build:

claude mcp add --transport stdio gtm-data -- node /absolute/path/to/gtm_data_mcp/dist/src/index.js

For Codex, use command = "node" and args = ["/absolute/path/to/gtm_data_mcp/dist/src/index.js"] under [mcp_servers.gtm_data].

Data model

Supported record types are person, team, agency, vendor, system, account, integration, data_term, data_field, measurement_asset, runbook, policy, and report. Relationships express responsibilities and lineage without embedding the same fact in many records.

Every record carries lifecycle, sensitivity, verification state, source evidence, version, and update timestamps. restricted records are excluded by default. Secrets belong in the deployment secret store and are referenced by environment-variable name, never copied into the catalog.

Administration and deployment

Security posture

  • Standard remote requests require a fixed bearer token in V1; Slack requests use Slack signatures and Slack identity instead.

  • Slack calls enforce timestamp-based replay protection and can be limited to approved enterprise/workspace IDs. Restricted records require a separate per-user allowlist.

  • Source updates are review-first. Auto-apply is possible only for existing records and an explicit per-connector top-level field allowlist.

  • Proposal approval uses optimistic version checks so a stale proposal cannot overwrite a newer catalog update.

  • UTM tokens and Notion tokens remain server-side.

  • Bulk tools generate and validate files but do not upload them to third-party platforms.

Repository status

This is a V1 foundation. The starter catalog contains verified UTM identifier definitions and several draft platform templates. Draft templates must be certified against a current export and current platform documentation before production use.

Available Tools

15 tools
gtm_check_readinessCheck GTM readinessB
Read-onlyIdempotent

Check lifecycle, verification, ownership, runbook linkage, and pending source updates.

Inputs: recordId (required).

gtm_find_runbooksFind GTM runbooksC
Read-onlyIdempotent

Find active operating, incident, escalation, and recovery runbooks.

Inputs: limit, query.

gtm_generate_bulk_templateGenerate bulk-change CSVB
Read-onlyIdempotent

Generate safe CSV headers/examples; draft templates require verification against a current platform export.

Inputs: templateKey (required).

gtm_get_account_contextGet GTM account contextC
Read-onlyIdempotent

Find platform account IDs, contacts, APIs, owners, agencies/vendors, integrations, runbooks, and systems.

Inputs: query (required), limit.

gtm_get_data_definitionGet GTM data definitionC
Read-onlyIdempotent

Find governed business-term and technical-field definitions.

Inputs: query (required), limit.

gtm_get_measurement_inventoryGet GTM measurement inventoryB
Read-onlyIdempotent

Return measurement assets, systems, integrations, reports, ownership, and lineage.

Inputs: limit, query.

gtm_get_personnel_mapGet GTM personnel mapA
Read-onlyIdempotent

Return people, teams, agencies, and vendors with active responsibility relationships.

Inputs: limit, query.

gtm_get_recordGet GTM recordA
Read-onlyIdempotent

Get one governed record by ID or key with active relationships.

Inputs: id, key, recordType.

gtm_list_bulk_templatesList GTM bulk-change templatesB
Read-onlyIdempotent

List governed mass-change templates, constraints, documentation, and verification state.

Inputs: operation, platformKey.

gtm_list_source_updatesList detected source updatesA
Read-onlyIdempotent

List reviewable changes detected by source reconciliation; this tool cannot approve or apply them.

Inputs: limit, status, connectorKey.

gtm_module_statusGTM Data module statusA
Read-onlyIdempotent

Describe the enabled catalog backend, UTM integration availability, and restricted-data policy.

Inputs: no named parameters.

gtm_resolve_ownershipResolve GTM ownershipC
Read-onlyIdempotent

Resolve owners, operators, approvers, backups, agencies, vendors, and escalation contacts.

Inputs: query, recordId.

gtm_search_catalogSearch GTM data catalogA
Read-onlyIdempotent

Search people, teams, agencies, vendors, systems, accounts, integrations, definitions, measurement assets, runbooks, policies, and reports.

Inputs: limit, query, lifecycle, recordTypes, +1 more.

gtm_trace_lineageTrace GTM data lineageA
Read-onlyIdempotent

Trace governed upstream and downstream relationships up to four levels.

Inputs: recordId (required), depth, direction.

gtm_validate_bulk_changeValidate bulk-change CSVB
Read-onlyIdempotent

Validate columns, required values, allowed values, and row limits without uploading or changing a platform.

Inputs: csv (required), templateKey (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 15 tools

    Disambiguation3/5

    Several read-oriented tools overlap in scope: resolve_ownership and get_personnel_map both return responsibility relationships, and get_measurement_inventory, get_account_context, and get_record all offer relationship-rich snapshots. The descriptions generally clarify the primary focus of each tool, but an agent could still struggle to pick between them.

    Naming Consistency4/5

    Tool names are overwhelmingly snake_case with a consistent gtm_ prefix and verb-first structure, e.g., get_, list_, search_, generate_, validate_. The only notable deviation is gtm_module_status, which uses a noun phrase rather than a verb_noun pattern, though it remains readable.

    Tool Count4/5

    Fifteen tools is within a reasonable range for a broad data governance domain, and most tools serve a distinct read or validation purpose. However, the count feels slightly high because some tools could be consolidated or aligned more tightly around core entities.

    Completeness3/5

    The server is strong on read, search, lineage, readiness, and bulk-change validation coverage, so most query-oriented workflows are supported. However, there are no lifecycle or mutation tools: source updates can be listed but not approved/applied, records cannot be created or updated, and bulk changes can be generated and validated but not submitted. This leaves notable workflow dead ends, even if the read-only boundary is intentional.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to autonomously manage and improve execution processes for repetitive task types by storing reusable task contexts with associated artifacts (practices, rules, prompts, learnings) and providing full-text search across historical best practices.
      8
      1
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Provides standardized brand guidelines and structured content templates for marketing assets like blogs, emails, and social media. It serves as a central source of truth for brand voice and strategy through an extensible file-based system.
      1
      -
    • F
      license
      A
      quality
      D
      maintenance
      Exposes marketing catalogs (offers, assets, campaigns, and computed metrics) to MCP clients, enabling natural language queries and AI-driven marketing analysis.
      8
      -