CAT
/MCP
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Cross AI Tools

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by @mertduzgun

Independent project, not affiliated with Anthropic

Affiliate Router Mcp

forgemeshlabs/affiliate-router-mcp
authSTDIOregistry active
Summary

This is routing middleware for agent monetization. It sits between your MCP client and paid API calls, handling x402 payments on Base, Pyrimid affiliate splits with on-chain USDC commission routing, and referral link generation across multiple vendor programs. You get eight tools for discovery, route selection, link building, and attributed payment execution. Ships with CoinOpAI crypto intelligence products, Gumroad, and PartnerStack stubs in a local JSON registry you control. The adapter system is pluggable, so you can wire in new payment networks or affiliate programs without touching existing routes. Logs every attributed call to local telemetry. Reach for this if you're building agents that need to call paid tools and track who gets credit without hardcoding each vendor's attribution scheme.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →

affiliate-router-mcp

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.6

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.


What it does

Agents need a way to call monetizable tools without hardcoding every affiliate or payment system. affiliate-router-mcp provides:

  • Discovery — find vendors and products by category or intent
  • Routing — choose the right payment/attribution path automatically
  • Calling — execute payments with affiliate attribution
  • Link generation — inject tracking params into referral URLs
  • Telemetry — log every attributed call locally for tracking

8 Tools

ToolCostDescription
search_opportunitiesFreeFind products by category or keyword
list_affiliate_programsFreeList all vendors and their programs
get_opportunity_detailsFreeFull details on a specific vendor/product
get_best_routeFreeRecommend the best route for an intent
generate_affiliate_linkFreeBuild a tracked referral URL
call_affiliate_productvariesPay and call a product with attribution
estimate_commissionFreeProject monthly earnings at a call volume
get_affiliate_telemetryFreeView local attribution log

Adapters

Each payment or attribution system is a separate adapter. Adding a new one does not affect existing adapters.

AdapterHow it worksPaymentStatus
x402_pyrimidApprove USDC → routePayment on-chain → retry with tx hashOn-chain USDC splitTested
x402_directEIP-3009 transferWithAuthorization via Coinbase facilitatorOn-chain USDC to vendorImplemented
referral_linkInject affiliate param into URLNone — program-dependentImplemented

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.


Install

npm install -g affiliate-router-mcp

Or with Claude Code / any MCP client:

{
  "mcpServers": {
    "affiliate-router": {
      "command": "affiliate-router-mcp",
      "env": {
        "WALLET_PRIVATE_KEY": "0x...",
        "PYRIMID_AFFILIATE_ID": "af_your_id",
        "GUMROAD_AFFILIATE_ID": "your-gumroad-id"
      }
    }
  }
}

Environment Variables

VariableRequiredNotes
WALLET_PRIVATE_KEYFor call_affiliate_product with x402 adaptersBase wallet with USDC + ETH for gas
PYRIMID_AFFILIATE_IDNoDefault affiliate ID for Pyrimid-registered products
GUMROAD_AFFILIATE_IDNoGumroad tracking ID
PARTNERSTACK_CODENoPartnerStack referral code

Included Vendors

CoinOpAI (x402_pyrimid) — crypto intelligence API on Base mainnet

  • Kronos Signals — $0.05/call, 20% commission
  • Kronos Decision — $0.15/call, 20% commission
  • Trade Preflight — $0.05/call, 20% commission
  • Trade Audit — $0.07/call, 20% commission
  • Image Generation — $0.10/call, 20% commission

Gumroad (referral_link) — digital product marketplace, ~30% commission per product

PartnerStack (referral_link) — SaaS affiliate programs stub (add your own products)


Routing Logic

call_affiliate_product(vendor_id, product_id, params, affiliate_id?)
    ↓
resolve affiliate_id: tool arg → env var → null
    ↓
adapter = vendor.affiliate_system
    ↓
x402_pyrimid + affiliate_id present?
  cache VALID   → Pyrimid split flow (affiliate earns commission)
  cache INVALID → x402_direct fallback (vendor gets 100%)
  cache UNKNOWN → try Pyrimid → cache result → fallback on failure

x402_direct → EIP-3009 payment, no affiliate split
referral_link → inject tracking param, no payment

Package vs. Product Updates

These are independent concerns.

Package updates (this repo):

  • Adding or fixing adapters
  • Updating tool schemas
  • Changing routing or caching logic
  • Dependency bumps

Product/catalog updates (registry.json):

  • Registering new vendor endpoints
  • Changing prices or commission rates
  • Enabling affiliate eligibility on a product
  • Assigning network-specific product IDs (e.g. Pyrimid product IDs)

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.


Adding a Vendor

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.

{
  "id": "my_vendor",
  "name": "My Vendor",
  "affiliate_system": "referral_link",
  "affiliate_config": {
    "tracking_param": "ref",
    "affiliate_id_env": "MY_VENDOR_REF_CODE",
    "commission_pct": 25
  },
  "products": [...]
}

Telemetry

All call_affiliate_product calls append to logs/affiliate-telemetry.jsonl:

{
  "ts": "2026-05-14T17:07:01Z",
  "vendor_id": "coinopai",
  "product_id": "kronos_signals",
  "amount_usd": 0.05,
  "affiliate_id": "af_your_id",
  "payment_type": "x402_pyrimid",
  "commission_est_usd": 0.0099,
  "status": "success",
  "tx_hash": "0x..."
}

What's Not in v0

  • Remote registry sync
  • PartnerStack / Impact.com / Rewardful API integrations
  • Web dashboard
  • Multi-level commissions
  • Server-side redirect tracking for links

Part of the ForgeMesh Ecosystem

Infrastructure for monetized agent ecosystems.

PackageWhatInstall
affiliate-router-mcpVendor-neutral monetization routing (this package)npm i affiliate-router-mcp
coinopai-mcpPaid crypto intelligence via x402npm i coinopai-mcp
forgemesh-imagegenPaid image generation MCPnpm i forgemesh-imagegen

Each package works standalone. No shared dependency required.


License

MIT — CoinOpAI

Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →

Configuration

WALLET_PRIVATE_KEY*secret

Dedicated low-balance Base wallet private key for x402 USDC micropayments. Do not use your primary wallet.

PYRIMID_AFFILIATE_ID

Your Pyrimid affiliate wallet address for on-chain commission splits (optional).

Registryactive
Packageaffiliate-router-mcp
TransportSTDIO
AuthRequired
UpdatedMay 17, 2026
View on GitHub