Connects Claude to the RedTrack affiliate tracking platform through their REST API. Exposes 14 tools covering campaigns, click and conversion logs, aggregated reports, and entity management for offers, traffic sources, and landing pages. You can filter campaigns by status or tags, pull raw click data with IP and device info (up to 10k records per page), query conversions with full attribution and revenue metrics, or generate reports grouped by any dimension including campaign, country, or custom sub parameters. Useful if you're running affiliate campaigns in RedTrack and want to analyze performance, debug tracking issues, or automate reporting without leaving your MCP client. Setup takes one command with your API key.
MCP server for the RedTrack affiliate tracking API. Query campaigns, clicks, conversions, and reports from any MCP-compatible client (Claude Code, Claude Desktop, Cursor, etc.).
npx mcp-redtrack setup YOUR_API_KEY
This prints the config snippet for your MCP client.
claude mcp add redtrack -e REDTRACK_API_KEY=YOUR_API_KEY -- npx mcp-redtrack
Add to your MCP settings JSON:
{
"mcpServers": {
"redtrack": {
"command": "npx",
"args": ["mcp-redtrack"],
"env": {
"REDTRACK_API_KEY": "YOUR_API_KEY"
}
}
}
}
| Tool | Description |
|---|---|
get_campaigns | List campaigns with filtering by title, status, source, tags, date range |
get_campaign | Get single campaign by ID with full config |
get_campaigns_v2 | List campaigns via v2 endpoint |
| Tool | Description |
|---|---|
get_clicks | Click-level log with IP, country, device, campaign details (max 10k/page) |
get_conversions | Conversion log with payout, cost, revenue, attribution (max 10k/page) |
| Tool | Description |
|---|---|
get_report | Aggregated stats grouped by dimension (campaign, offer, country, date, sub1-20, etc.) |
| Tool | Description |
|---|---|
get_offers | List offers with filtering |
get_offer | Single offer by ID |
get_sources | List traffic sources |
get_source | Single source by ID |
get_networks | List affiliate networks |
get_landings | List landing pages |
get_settings | Account settings (timezone, currency, conversion types) |
| Variable | Required | Default | Description |
|---|---|---|---|
REDTRACK_API_KEY | Yes | — | Your RedTrack API key |
REDTRACK_ENV_FILE | No | .env | Path to .env file |
bun install # install deps
bun run dev # run MCP server
bun test # run tests
bun run lint # check formatting & lint
bun run inspect # open MCP inspector
bun run build # compile standalone binary
bun run build:npm # bundle for Node.js / npm
MIT