impactdotcom-mcp
A local MCP server that wraps the Impact.com partner REST API for querying and acting on affiliate/partnership data, with focus on diagnosing publisher tracking problems.
README
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/DECLINEDaction inquiries for orders that didn't track (gated behind a write flag). - Generate tracking links and reach any endpoint via fenced escape-hatch tools.
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_exportlist_campaigns,get_campaign,list_catalogs,list_catalog_items,get_accountimpact_api_get— read-only escape hatch: GET any persona-scoped endpoint.
Writes (only when IMPACT_ENABLE_WRITES=true)
create_action_inquiry— file anUNTRACKED/INCORRECT/DECLINEDdispute 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.tsis the only module that talks HTTP — auth, JSON negotiation, pagination (@nextpageuri), retries, and async jobs (ClickExport/ReportExport) all live here.src/diagnostics.tsencodes Impact's attribution rules and reversal codes sodiagnose_trackingcan interpret the funnel.src/tools/*is one file per domain; writes are gated insrc/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/Actionsand/ActionInquiriesneed 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_metadatafirst. - Rate limits: the API enforces an hourly quota (and exports like
ClickExportare expensive). The client caps concurrent requests (IMPACT_MAX_CONCURRENCY), and on a429it 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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。