Route x402 payments, Pyrimid affiliate splits, and referral links. Vendor-neutral, adapter-based.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Vendor-neutral monetization routing for agent tools. One MCP server that discovers, routes, and attributes revenue across paid APIs, referral links, and affiliate programs.
Source: https://github.com/forgemeshlabs/affiliate-router-mcp
The router is not tied to any single payment network or affiliate system. Adapters are pluggable. The registry is a local JSON file you control.
Status: experimental Β· v0.1.10
Disclaimer: This MCP does not guarantee payouts. It routes attribution data according to each vendor/program's rules. Commission distribution is enforced by the vendor's payment system, not by this router.
Agents need a way to call monetizable tools without hardcoding every affiliate
or payment system. affiliate-router-mcp provides:
| Tool | Cost | Description |
|---|---|---|
search_opportunities | Free | Find products by category or keyword |
list_affiliate_programs | Free | List all vendors and their programs |
get_opportunity_details | Free | Full details on a specific vendor/product |
get_best_route | Free | Recommend the best route for an intent |
generate_affiliate_link | Free | Build a tracked referral URL |
call_affiliate_product | varies | Pay and call a product with attribution |
estimate_commission | Free | Project monthly earnings at a call volume |
get_affiliate_telemetry | Free | View local attribution log |
Each payment or attribution system is a separate adapter. Adding a new one does not affect existing adapters.
| Adapter | How it works | Payment | Status |
|---|---|---|---|
x402_pyrimid | Approve USDC β routePayment on-chain β retry with tx hash | On-chain USDC split | Tested |
x402_direct | EIP-3009 transferWithAuthorization via Coinbase facilitator | On-chain USDC to vendor | Implemented |
referral_link / query_param_link | Inject affiliate param into URL; supports optional_params (e.g. a VIN) and a fixed_link mode for pre-tracked URLs that must not be mutated | None β program-dependent | Implemented |
awin_link | Wraps a product's destination_url behind Awin's cread.php redirect with the vendor's awinmid/awinaffid | None β program-dependent | Implemented |
Pyrimid is the first fully tested paid affiliate adapter. It is not the only supported model. Future adapters may include: PartnerStack, Rewardful, Impact, Commission Junction, coupon/promo code injection, API-key partner programs, and other emerging agent commerce protocols.
Or with Claude Code / any MCP client:
| Variable | Required | Notes |
|---|---|---|
WALLET_PRIVATE_KEY | For call_affiliate_product with x402 adapters | Base wallet with USDC + ETH for gas |
PYRIMID_AFFILIATE_ID | No | Default affiliate ID for Pyrimid-registered products |
GUMROAD_AFFILIATE_ID | No | Gumroad tracking ID |
PARTNERSTACK_CODE | No | PartnerStack referral code |
CoinOpAI (x402_pyrimid) β crypto intelligence API on Base mainnet
Gumroad (referral_link) β digital product marketplace, ~30% commission per product
PartnerStack (referral_link) β SaaS affiliate programs
fixed_link, no extra params)Ledger (referral_link, fixed_link) β hardware wallets, 10% commission
DigitalOcean (awin_link) β cloud hosting, 10% recurring commission for 12 months, 30-day cookie
cread.phpAmazon Influencer Storefront (referral_link, fixed_link) β ai_tinkers storefront, standard Associates rates, no per-product tagging
ForgeMesh Vehicle History Reports (referral_link) β tracked forgemesh.io/go/ redirects, 25% per sale
extra_params: {vin: "..."} to generate_affiliate_link to prefill the VINThese are independent concerns.
Package updates (this repo):
Product/catalog updates (registry.json):
Adding a vendor to registry.json does not require a package release.
Releasing a new package version does not require products to be re-registered.
Edit registry.json. No code changes needed for referral-link vendors.
x402 vendors require a funded wallet. Pyrimid vendors additionally require
on-chain registration to obtain a vendor_id and per-product pyrimid_product_id.
All call_affiliate_product calls append to logs/affiliate-telemetry.jsonl:
Infrastructure for monetized agent ecosystems.
| Package | What | Install |
|---|---|---|
| affiliate-router-mcp | Vendor-neutral monetization routing (this package) | npm i affiliate-router-mcp |
| coinopai-mcp | Paid crypto intelligence via x402 | npm i coinopai-mcp |
| forgemesh-imagegen | Paid image generation MCP | npm i forgemesh-imagegen |
Each package works standalone. No shared dependency required.
MIT β CoinOpAI
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/affiliate-router-mcp)<a href="https://allmcps.com/mcp/affiliate-router-mcp"><img src="https://allmcps.com/api/badge/affiliate-router-mcp?style=directory" alt="Affiliate Router MCP on AllMCPs" /></a>