forgemeshlabs avatar

Affiliate Router Mcp

forgemeshlabs/affiliate-router-mcp

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.

tools
9
auth
Secret needed
transport
STDIO
env var
1
last updated
Nov 2, 2026

Tools

9 tools

Public tool metadata for what this MCP can expose to an agent.

list_toolsEvery x402 Router tool with its live price — a plain fetch of `GET https://router.forgemesh.io/menu`, no wallet

Every x402 Router tool with its live price — a plain fetch of `GET https://router.forgemesh.io/menu`, no wallet

No parameter schema in public metadata yet.

search_opportunitiesFind products by category or keyword

Find products by category or keyword

No parameter schema in public metadata yet.

list_affiliate_programsList all vendors and their programs

List all vendors and their programs

No parameter schema in public metadata yet.

get_opportunity_detailsFull details on a specific vendor/product

Full details on a specific vendor/product

No parameter schema in public metadata yet.

get_best_routeRecommend the best route for an intent

Recommend the best route for an intent

No parameter schema in public metadata yet.

generate_affiliate_linkBuild a tracked referral URL

Build a tracked referral URL

No parameter schema in public metadata yet.

call_affiliate_productPay and call a product with attribution

Pay and call a product with attribution

No parameter schema in public metadata yet.

estimate_commissionProject monthly earnings at a call volume

Project monthly earnings at a call volume

No parameter schema in public metadata yet.

get_affiliate_telemetryView local attribution log

View local attribution log

No parameter schema in public metadata yet.

Sponsors

Configuration

WALLET_PRIVATE_KEY*secret

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

Readme

affiliate-router-mcp

M8ven Verified

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

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:


View the full README on GitHub

Details

Repository
github.com/forgemeshlabs/affiliate-router-mcp
Package
affiliate-router-mcp
Transport
STDIO
Auth
Required
Registry
MCP registry, active

More from forgemeshlabs