{
  "markdown": "<p align=\"center\">\n  <img src=\"logo.svg\" alt=\"mcp-redtrack\" width=\"280\" />\n</p>\n\n<h1 align=\"center\">mcp-redtrack</h1>\n\n<p align=\"center\">MCP server for the <a href=\"https://redtrack.io\">RedTrack</a> affiliate tracking API. Query campaigns, clicks, conversions, and reports from any MCP-compatible client (Claude Code, Claude Desktop, Cursor, etc.).</p>\n\n## Quick start\n\n```bash\nnpx mcp-redtrack setup YOUR_API_KEY\n```\n\nThis prints the config snippet for your MCP client.\n\n### Claude Code\n\n```bash\nclaude mcp add redtrack -e REDTRACK_API_KEY=YOUR_API_KEY -- npx mcp-redtrack\n```\n\n### Claude Desktop / Cursor\n\nAdd to your MCP settings JSON:\n\n```json\n{\n  \"mcpServers\": {\n    \"redtrack\": {\n      \"command\": \"npx\",\n      \"args\": [\"mcp-redtrack\"],\n      \"env\": {\n        \"REDTRACK_API_KEY\": \"YOUR_API_KEY\"\n      }\n    }\n  }\n}\n```\n\n## Tools (14)\n\n### Campaigns\n| Tool | Description |\n|------|-------------|\n| `get_campaigns` | List campaigns with filtering by title, status, source, tags, date range |\n| `get_campaign` | Get single campaign by ID with full config |\n| `get_campaigns_v2` | List campaigns via v2 endpoint |\n\n### Logs\n| Tool | Description |\n|------|-------------|\n| `get_clicks` | Click-level log with IP, country, device, campaign details (max 10k/page) |\n| `get_conversions` | Conversion log with payout, cost, revenue, attribution (max 10k/page) |\n\n### Reports\n| Tool | Description |\n|------|-------------|\n| `get_report` | Aggregated stats grouped by dimension (campaign, offer, country, date, sub1-20, etc.) |\n\n### Entities\n| Tool | Description |\n|------|-------------|\n| `get_offers` | List offers with filtering |\n| `get_offer` | Single offer by ID |\n| `get_sources` | List traffic sources |\n| `get_source` | Single source by ID |\n| `get_networks` | List affiliate networks |\n| `get_landings` | List landing pages |\n| `get_settings` | Account settings (timezone, currency, conversion types) |\n\n## Environment variables\n\n| Variable | Required | Default | Description |\n|----------|----------|---------|-------------|\n| `REDTRACK_API_KEY` | Yes | — | Your RedTrack API key |\n| `REDTRACK_ENV_FILE` | No | `.env` | Path to .env file |\n\n## Development\n\n```bash\nbun install          # install deps\nbun run dev          # run MCP server\nbun test             # run tests\nbun run lint         # check formatting & lint\nbun run inspect      # open MCP inspector\nbun run build        # compile standalone binary\nbun run build:npm    # bundle for Node.js / npm\n```\n\n## License\n\nMIT\n",
  "bytes": 2484,
  "sha": "2566a1426df92970f20e3dc956f67001647d58e7dad6b0e9b439cb42fd15d826",
  "repo_slug": "pijusz/mcp-redtrack",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_pijusz_mcp_redtrack_dd7dc723/readme"
}