SuperAPI AI Directory

gam-seller-mcp-node

Exposes Google Ad Manager inventory to buyer agents: read-only product discovery, firm prices and revocable commitments, with every decision audited.

Open website

About this tool

Purpose

gam-seller-mcp-node is a governed, read-only Model Context Protocol (MCP) server prototype for sell-side ad inventory discovery. It is designed to let buyer AI agents safely query ad inventory without directly granting API access to ad servers such as Google Ad Manager (GAM), thereby reducing the risk of exposing commercially sensitive data and personal data.

Main capabilities

  • Read-only discovery and pricing: Buyer agents can perform product family discovery, obtain coarse-grained availability forecasts (Low/Mid/High buckets), and firm pricing information.
  • Buyer-scoped soft commitment primitives: Provides create_intent and revoke_intent, supports TTL expiration, is the only write surface, and is strictly limited to the buyer's own scope.
  • Five-tool interface: Provides five tools, of which three are read-only, one creates commitments, and one revokes commitments. Every request passes through a unified pipeline: authentication → policy → rate limiting → domain logic → audit.
  • Default-Deny policy: Every request is denied by default unless explicitly allowed by an entitlement; without configured entitlements, access is impossible.
  • Disclosure gate: Every authenticated tool must declare a strict response schema; responses containing undeclared fields are intercepted and replaced with a generic error (INTERNAL_ERROR), and are counted in the metric mcp_disclosure_rejected_total.
  • Audit first: All allow/deny decisions are written to the audit ledger before the response is sent; buyer buyer_id is pseudonymized using HMAC-SHA256 before being added to the chain.
  • Tamper resistance and persistence: The ledger is append-only, atomically written, has persisted rotation state, and fails closed on load; corrupted or tampered ledgers are detected at startup and service is refused. Head hashes can be anchored to third parties (RFC 3161 timestamps or S3 Object Lock).
  • GDPR data subject rights (DSR) toolkit: Implements export, restriction, and deletion of buyer audit data (GDPR Art. 15/17/18/20).
  • Optional GAM live read-only forecasting: Via the optional gam.json uses GAM ForecastService's getAvailabilityForecast, refreshed at startup and every 30 minutes, using expected line items that are never stored in GAM; no outbound network calls are made within the buyer request path. Raw availability data never leaves the node.
  • Configuration-driven: Four JSON files (deployment.json, catalog.json, entitlements.json, pricing.json) drive all publisher-related behavior without code changes. Invalid configuration fails closed.

Usage

  • Install in an MCP client via npx: The server can be added to an MCP client (such as Claude Desktop, Claude Code, Cursor, etc.), or run directly (stdio transport is the default).
  • Demo mode: When there is no configuration of your own, the node starts with the built-in pilot-publisher example, announces demo mode on stderr, and prints the available demo buyer token at startup; copy that token and pass it as the token parameter to discover_products / get_forecast to try it out.
  • Real deployment: Point MCP_CONFIG_DIR to a directory containing your own deployment.json、catalog.json、entitlements.json、pricing.json .
  • Full buyer agent walkthrough: Run the scripted demo, driving the five native tools through a real in-process MCP transport, including governed denials (fail-closed authentication, Default-Deny, fail-closed pricing) and a verified audit chain.
  • Docker deployment: The node listens by default on 127.0.0.1:3900, with well-known documentation at /.well-known/seller-mcp-capabilities, the persistent volumes for keys and audit data are preconfigured in docker-compose.yml.
  • Connect real inventory (non-real-time GAM): done via configuration—optional forecast.json can be used to seed with availability data exported by the publisher from GAM reports, or via gam.json to connect to GAM real-time forecasting. Priority: gam.json > forecast.json > synthetic data.
  • Handoff closed loop: via MCP_INTENT_HANDOFF=file submitted intents are persisted locally as JSONL for the operator to forward; no outbound calls are made, and URL values are rejected.
  • Hardening:MCP_REQUIRE_OPERATOR_CONFIG=1(refuses to start under the demo configuration),MCP_ANCHOR_SINK=tsa(anchors the audit chain to a third party).

Applicable scenarios

Suitable for scenarios where ad sellers (such as publishers and broadcasters) want to expose ad inventory to buyer AI agents in a governed, auditable, read-only manner. Suitable as a seller control plane prototype in AI-driven ad trading, balancing protection of commercially sensitive data, compliance auditing, and GDPR data subject rights.

Limitations

  • This is a working prototype, not a production-ready system.
  • The GAM connection is used only for forecasting: the real-time adapter reads availability from ForecastService, but the catalog product families and their GAM targeting (ad units, sizes, environments) are still manually mapped by configuration, and prices remain static list prices. Without gam.json , forecasts are synthetic or seeded data and are marked synthetic: true.
  • Buyer request handling does not make outbound network calls; real-time GAM forecasting only calls Google OAuth and the Ad Manager SOAP API at startup and in a 30-minute cycle, and is not within the buyer request path.
  • The audit chain's buyer_id and request_id are stored in each audit entry, but are not included in the canonical input of the hash chain (audit/event.ts:50) and are not covered by the chain's tamper-proof guarantee.
  • The machine-readable well-known document does not currently include attributes such as data_source、anchor_store、deployment_mode , so buyer agents cannot yet programmatically distinguish demo from production deployments.
  • The node does not make legal judgments; determinations such as legal basis and validity of consent belong to the controller (the broadcaster).
  • Specific pricing, charges, platforms, and usage steps are not fully provided in the materials.