Skip to main content
Glama
impactdotcom-mcp

impactdotcom-mcp

by gblush

impactdotcom-mcp

A local MCP server that wraps the Impact.com partner REST API so you can query and act on your affiliate/partnership data from Claude Code, Claude Desktop, or any MCP client.

Its primary focus is diagnosing publisher tracking problems — most importantly "I'm getting clicks but no revenue" — by exposing the full click → action → revenue funnel, tracing individual orders, and filing dispute (action inquiry) tickets when conversions don't track.

Why a custom server? Impact.com ships a hosted MCP at https://mcp.impact.com/mcp, but it can't be connected from Claude Code: its OAuth server doesn't support Dynamic Client Registration (RFC 7591) and the static client id is unpublished. This server talks to Impact's REST API directly with an API key, sidestepping the OAuth blocker entirely.

What it can do

  • Diagnose tracking — one call (diagnose_tracking) pulls clicks, actions (across PENDING/APPROVED/REVERSED), and revenue for a window and explains, in plain English, why you're seeing clicks but no revenue.

  • Trace a specific order — find an action by OrderId, see its state and reversal reason, or confirm a click recorded.

  • Run reports — list/run any report your token can access (Performance by Brand, Action Listing, etc.).

  • File disputes — open UNTRACKED/INCORRECT/DECLINED action inquiries for orders that didn't track (gated behind a write flag).

  • Generate tracking links and reach any endpoint via fenced escape-hatch tools.

Related MCP server: Refgrow MCP Server

Example: "clicks but no revenue"

Ask Claude "why am I getting clicks but no revenue this month?" and diagnose_tracking returns something like:

{
  "diagnosis": {
    "summary": "Clicks are landing but there are NO actions in any state. Your conversions are not reaching Impact.",
    "counts": { "clicks": 10, "actionsTotal": 0, "pending": 0, "approved": 0, "reversed": 0 },
    "likelyCauses": [
      "The conversion tag/postback isn't firing, or fires without the click id (irclickid) — so Impact can't attribute it.",
      "Mobile clicks that complete the purchase in the retailer's app or a new browser session lose the irclickid.",
      "Reporting delay: actions can take up to 48 hours to appear."
    ],
    "nextChecks": [
      "Run export_clicks for the click day(s) to inspect each click's DeviceType and irclickid.",
      "Click the tracking link → complete checkout in the SAME session, and confirm the order carries that irclickid.",
      "Take a recorded irclickid to support (or file an ActionInquiry) and ask why no action was created."
    ]
  }
}

From there you can export_clicks to see device/irclickid detail, find_action_by_order to trace a test order, and — if conversions genuinely didn't track — create_action_inquiry to file the dispute.

Requirements

  • Node ≥ 20 (uses native fetch).

  • An Impact.com account and API credentials (Settings → API → Account SID + Auth Token). A scoped token is recommended; grant the APIs you need (Actions, Reports, Clicks/ClickExport, ActionInquiries, etc.).

Quick start

git clone https://github.com/gblush/impactdotcom-mcp.git
cd impactdotcom-mcp
npm install
cp .env.example .env      # then fill in your real credentials (see below)
npm run build
npm run inspect           # optional: open the MCP Inspector to try the tools

Configuration

Set these in .env (gitignored) or your environment:

Variable

Required

Default

Description

IMPACT_ACCOUNT_SID

yes

—

Basic-auth username (your Account SID, starts with IR)

IMPACT_AUTH_TOKEN

yes

—

Basic-auth password (secret)

IMPACT_ACCOUNT_TYPE

no

Mediapartners

API persona: Mediapartners (publisher) or Advertisers (brand)

IMPACT_BASE_URL

no

https://api.impact.com

API base URL override

IMPACT_ENABLE_WRITES

no

false

set true to register the write tools

IMPACT_MAX_CONCURRENCY

no

4

max concurrent API requests (rate-limit guardrail, 1–16)

Register with Claude Code

A project-scoped .mcp.json is included. With .env in place and npm run build done, open the project in Claude Code and approve the server. Or register it explicitly (use --scope user to make it available everywhere):

claude mcp add impactdotcom --scope local -- node /absolute/path/to/impactdotcom-mcp/dist/index.js

Tools

Diagnostics (the point of this server)

  • diagnose_tracking — pull the clicks → actions → revenue funnel for a window and explain why you may see clicks but no revenue.

  • list_actions — conversions/commissions; scans PENDING + APPROVED + REVERSED by default so test/reversed orders surface.

  • get_action — full detail for one action.

  • find_action_by_order — trace an order by OrderId (incl. reversal reason) via the Advanced Action Listing report.

  • get_click / export_clicks — confirm a click recorded / list a day's clicks (device, irclickid, landing page).

  • list_action_inquiries / get_action_inquiry — view dispute tickets you've filed.

Reporting & catalog

  • list_reports, get_report_metadata, run_report, run_report_export

  • list_campaigns, get_campaign, list_catalogs, list_catalog_items, get_account

  • impact_api_get — read-only escape hatch: GET any persona-scoped endpoint.

Writes (only when IMPACT_ENABLE_WRITES=true)

  • create_action_inquiry — file an UNTRACKED/INCORRECT/DECLINED dispute for an order.

  • create_tracking_link — generate a tracking/deep link for a program.

  • impact_api_request — write escape hatch (POST/PUT/DELETE).

How it works

  • src/client.ts is the only module that talks HTTP — auth, JSON negotiation, pagination (@nextpageuri), retries, and async jobs (ClickExport/ReportExport) all live here.

  • src/diagnostics.ts encodes Impact's attribution rules and reversal codes so diagnose_tracking can interpret the funnel.

  • src/tools/* is one file per domain; writes are gated in src/tools/index.ts.

A few Impact.com quirks the server handles for you (verified against the live API):

  • Paths are persona-prefixed: /{IMPACT_ACCOUNT_TYPE}/{AccountSID}/…. If every call 403s, the account type is likely wrong (Mediapartners vs Advertisers).

  • The API defaults to XML; the client always sends Accept: application/json.

  • Date formats differ by endpoint: tool inputs are YYYY-MM-DD, but /Actions and /ActionInquiries need full ISO-8601 datetimes (the server converts them), while report filters take bare dates.

  • Report ids and filter names vary per report — call get_report_metadata first.

  • Rate limits: the API enforces an hourly quota (and exports like ClickExport are expensive). The client caps concurrent requests (IMPACT_MAX_CONCURRENCY), and on a 429 it retries only if the reset is within 30s — otherwise it fails fast with the reset time rather than blocking the call for hours.

Security

Real credentials live only in the gitignored .env. No secrets or PII belong in any tracked file (.env.example, .mcp.json, and docs use placeholders). Run npm run check:secrets before committing — it scans the tree against your real .env values and fails if anything leaks.

Development

npm run dev          # watch-mode run via tsx
npm run typecheck    # tsc --noEmit
npm run lint         # eslint (enforces no stray console.log; stdout is JSON-RPC only)
npm run check:secrets

License

MIT © 2026 Eric Blush

Available Tools

18 tools
diagnose_trackingDiagnose Tracking (clicks → revenue)A

PRIMARY diagnostic. For a date window, pulls the click → action → revenue funnel and returns a plain-English read of why you might see clicks but no revenue: whether conversions are reaching Impact at all, and in what state (PENDING / APPROVED / REVERSED, incl. TEST_ACTION). Optionally narrow by campaign/SubId or trace a specific test OrderId. Max 45-day range.

Inputs: endDate (required), startDate (required), subId, orderId, +1 more.

export_clicksExport ClicksA

List clicks for a single day (optionally filtered by program/SubId) via Impact's async ClickExport job. Returns click rows once the export completes.

Inputs: date (required), subId, programId, timeoutMs.

find_action_by_orderFind Action by OrderIdA

Trace a specific order (e.g. a test order) by its OrderId via the Advanced Action Listing report, including the action's Status and reversal reason (Status Detail / DispositionCode). The plain Actions endpoint can't filter by OrderId.

Inputs: orderId (required), endDate, startDate.

get_accountGet AccountA

Get the account summary for the configured AccountSID — name, id, and the list of REST APIs this token can access. Smallest call; useful to confirm auth, the persona prefix, and which scoped APIs are available.

Inputs: no named parameters.

get_actionGet ActionA

Get a single Action by its Id, with all fields (State, Oid, SubId, Payout, EventDate, LockingDate).

Inputs: actionId (required).

get_action_inquiryGet Action InquiryA

Get a single action inquiry by its Id, including its status and resolution.

Inputs: inquiryId (required).

get_campaignGet CampaignB

Get details for a single program/campaign by its CampaignId.

Inputs: campaignId (required).

get_clickGet ClickA

Get a single click by its id (irclickid / im_ref) — landing page, referring URL, campaign, device, SubId. Use to confirm a specific click was recorded.

Inputs: clickId (required).

get_report_metadataGet Report MetadataA

Get a report's available filters and columns. Call this before run_report to learn the parameter names.

Inputs: reportId (required).

impact_api_getImpact API GET (escape hatch)A

Fallback read tool: GET any persona-scoped Impact endpoint not covered by a curated tool. Prefer curated tools first. Read-only.

Inputs: path (required), query, paginate.

list_action_inquiriesList Action InquiriesA

List action inquiries (disputes for missing/incorrect/rejected actions) you've submitted.

Inputs: pageSize.

list_actionsList ActionsA

List Actions (conversions/commissions). With no state, scans PENDING + APPROVED + REVERSED so test/reversed orders surface. ActionDateStart/End filter by event date; StartDate/End by last-modified. Max 45-day range; defaults to last 7 days if no dates given. No Page/PageSize on this endpoint.

Inputs: state, endDate, startDate, campaignId, +2 more.

list_campaignsList CampaignsA

List the programs/campaigns this partner has joined. Optionally filter by status (Active or Expired).

Inputs: status, pageSize.

list_catalog_itemsList Catalog ItemsB

List items in a product catalog by CatalogId.

Inputs: catalogId (required), pageSize.

list_catalogsList CatalogsA

List product catalogs available to this partner.

Inputs: pageSize.

list_reportsList ReportsA

List the reports this Impact.com account can run. Only reports with ApiAccessible=true can be run via run_report.

Inputs: no named parameters.

run_reportRun Report (sync)A

Run a report synchronously and return its rows. Params vary by report (commonly StartDate, EndDate, ProgramId/SUBAID) — use get_report_metadata to discover them. Dates are YYYY-MM-DD.

Inputs: reportId (required), params.

run_report_exportRun Report Export (async)A

Start an asynchronous report export (CSV/JSON) and poll until the result is ready. Use for large reports. Returns the result rows, or a job URI if it is still running at timeout.

Inputs: reportId (required), params, timeoutMs.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 18 tools

    Disambiguation4/5

    Most tools are clearly separated by resource and action (list vs get). The fallback impact_api_get is intentionally generic but well described as a last resort; run_report and run_report_export could be confused but their sync/async distinction is clear.

    Naming Consistency4/5

    The vast majority follow a consistent verb_noun pattern (list_*, get_*). The fallback impact_api_get deviates slightly from the pattern, but it's a unique name that's still readable.

    Tool Count4/5

    At 18 tools, the server is on the heavier side but still well-scoped for the Impact.com API's breadth. Each tool addresses a distinct resource or mode (sync vs async, individual vs list).

    Completeness4/5

    The core read-only surface is well covered: campaigns, catalogs, actions, clicks, action inquiries, and reports. Missing write operations (e.g., create action inquiry) are a minor gap, partially mitigated by the fallback read tool, but the server appears focused on diagnostics and reporting.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers