{
  "markdown": "# agentfuse-mcp\n\nMCP server for [AgentFuse](https://agentfuse.io) -- the affiliate API middleware for AI agents.\n\nLets any MCP-compatible AI agent (Claude Code, Cowork, custom agents) browse affiliate\nprograms, generate tracked links, and record conversions without writing HTTP code.\n\n---\n\n## Tools\n\n| Tool | Description |\n|---|---|\n| `list_affiliate_programs` | Browse all programs in the catalog (filterable by category) |\n| `get_affiliate_program` | Get full details for one program by slug |\n| `generate_tracked_link` | Create an attribution-tagged short link for a user |\n| `get_stats` | Dashboard summary: clicks, signups, commissions |\n| `record_signup` | Log a conversion event when a user signs up |\n| `list_tracked_links` | List all tracked links generated for your users |\n| `record_commission` | Log a commission event (purchase or renewal) |\n\n---\n\n## Requirements\n\n- Node.js >= 18\n- An AgentFuse API key -- get one at [agentfuse.io](https://agentfuse.io)\n\n---\n\n## Usage\n\n### Option 1 -- Claude Code (recommended)\n\nAdd to your project's `.claude/mcp.json` (or your global `~/.claude/mcp.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"agentfuse\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"agentfuse-mcp\"],\n      \"env\": {\n        \"AGENTFUSE_API_KEY\": \"af_live_your_key_here\"\n      }\n    }\n  }\n}\n```\n\nOr, if you've cloned this repo locally:\n\n```json\n{\n  \"mcpServers\": {\n    \"agentfuse\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/agentfuse-mcp/src/index.js\"],\n      \"env\": {\n        \"AGENTFUSE_API_KEY\": \"af_live_your_key_here\"\n      }\n    }\n  }\n}\n```\n\n### Option 2 -- Run directly\n\n```bash\nnpm install\nAGENTFUSE_API_KEY=af_live_... node src/index.js\n```\n\n### Option 3 -- Test the tool list (no API key needed)\n\n```bash\nnode src/index.js --test\n```\n\n---\n\n## Example agent interactions\n\n**Browse programs:**\n> \"List all affiliate programs in the AI tools category\"\n> -> calls `list_affiliate_programs({ category: \"ai-voice\" })`\n\n**Generate a link:**\n> \"Create a tracked Webflow affiliate link for user alice@example.com\"\n> -> calls `generate_tracked_link({ program_slug: \"webflow\", end_user_id: \"alice@example.com\" })`\n\n**Check stats:**\n> \"How many clicks and signups have we had this month?\"\n> -> calls `get_stats()`\n\n---\n\n## Environment variables\n\n| Variable | Required | Default | Description |\n|---|---|---|---|\n| `AGENTFUSE_API_KEY` | Yes | -- | Your AgentFuse API key (`af_live_...`) |\n| `AGENTFUSE_API_URL` | No | `https://api.agentfuse.io` | Override the API base URL |\n\n---\n\n## License\n\nMIT (c) AgentFuse / GSK AIOrch LLC\n",
  "bytes": 2550,
  "sha": "30611bc8a76bd1bde6e932812168b056b7e5fd5b77958e5834e2098645d52457",
  "repo_slug": "sai4447/agentfuse-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_sai4447_agentfuse_mcp_5936ac8e/readme"
}