MCP Affiliate Server
Allows searching products and generating affiliate links for AliExpress.
Allows searching products and generating affiliate links using Amazon Creators API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Affiliate Server search for Raspberry Pi 5 across all affiliate networks"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Affiliate Server
An MCP (Model Context Protocol) server that enables AI assistants to search products and generate affiliate links across European and global affiliate networks.
Built for the maker/STEM community. Works with Claude Code, Claude Desktop, and any MCP-compatible client.
The Problem
You're building content with AI (project tutorials, product guides, comparison articles) and want to monetize with affiliate links. Currently you must:
Manually search each shop for products
Manually generate tracking links per network
Copy-paste prices and URLs into your content
Repeat for every product, every shop, every article
This server automates all of it. Ask your AI assistant to find products, and it returns affiliate-ready links with prices from multiple shops.
Related MCP server: admitad-mcp
Features
Tool | Description |
| Search across Awin, Amazon, Tradedoubler, AliExpress |
| Match a Bill of Materials to products with affiliate links |
| Convert any product URL into a tracking link |
| Show configured merchants with commission rates |
| Download and update product feeds |
Example: BOM Matching
You: "Find affiliate links for these parts: 6x STS3215 Servo, 1x ESP32 DevKit, PLA Filament 1kg"
MCP Server returns:
[
{
"name": "STS3215 Servo",
"quantity": 6,
"shops": [
{ "shopName": "Conrad", "price": "EUR 24.90", "url": "https://...", "isAffiliate": true },
{ "shopName": "Amazon.de", "price": "EUR 22.99", "url": "https://...", "isAffiliate": true }
]
},
...
]Supported Networks
Network | Merchants | Commission | API Type |
Awin | Conrad, Reichelt, 3DJake, Bambu Lab | 4-6% | Product Feeds + Batch Link Gen |
Amazon | Amazon.de | 1-7% | Creators API (search + links) |
Tradedoubler | Galaxus/Digitec | ~3% | Product Search + Feeds |
AliExpress | AliExpress | 3-8% | Product Search + Links |
Impact | Elegoo | 4.5% | REST API |
Note: Amazon PA-API 5.0 is deprecated April 30, 2026. This server uses the new Creators API.
Quick Start
1. Install
git clone https://github.com/Scientia07/Luno-MCP-Affiliate.git
cd Luno-MCP-Affiliate
npm install
npm run build2. Configure
cp .env.example .env
# Edit .env with your API keys3. Add to Claude Code
Add to ~/.claude/mcp.json:
{
"mcpServers": {
"affiliate": {
"command": "node",
"args": ["/path/to/Luno-MCP-Affiliate/dist/index.js"],
"env": {
"AWIN_API_KEY": "your_key",
"AWIN_PUBLISHER_ID": "your_id",
"AMAZON_PARTNER_TAG": "your_tag-21"
}
}
}
}4. Sync Product Feeds
In Claude Code, run:
Use the sync_feeds tool to download product catalogs5. Use It
Search for "Raspberry Pi 5" across all affiliate shopsMatch these BOM items to affiliate products: 6x STS3215 Servo, 1x ESP32-S3, PLA Filament 1kgGenerate an affiliate link for https://www.conrad.de/de/p/raspberry-pi-5-8gb-2849738.htmlArchitecture
┌─────────────────────────────────────────┐
│ MCP Client (Claude Code / Desktop) │
│ "Find products for ESP32 DevKit" │
└──────────────┬──────────────────────────┘
│ MCP Protocol (stdio)
┌──────────────▼──────────────────────────┐
│ MCP Affiliate Server │
│ ┌─────────┐ ┌──────────┐ ┌──────────┐ │
│ │ search │ │ match │ │ generate │ │
│ │ products│ │ bom │ │ link │ │
│ └────┬────┘ └────┬─────┘ └────┬─────┘ │
│ └───────────┼────────────┘ │
│ ┌────▼─────┐ │
│ │ Product │ │
│ │ Database │ (SQLite) │
│ └────┬─────┘ │
└───────────────────┼─────────────────────┘
│ synced from
┌───────────────┼───────────────┐
│ │ │
┌───▼───┐ ┌────▼────┐ ┌────▼─────┐
│ Awin │ │ Amazon │ │Tradedblr │
│ Feeds │ │Creators │ │ API │
│(CSV) │ │ API │ │(JSON) │
└───────┘ └─────────┘ └──────────┘Project Structure
src/
├── index.ts # Entry point
├── server.ts # MCP server setup (tools + resources)
├── tools/
│ ├── search.ts # Aggregated product search
│ ├── awin.ts # Awin feed search + link generation
│ ├── amazon.ts # Amazon Creators API
│ ├── tradedoubler.ts # Tradedoubler/Galaxus
│ ├── aliexpress.ts # AliExpress API
│ ├── bom-matcher.ts # BOM → affiliate links pipeline
│ ├── link-generator.ts # URL → affiliate link converter
│ └── merchants.ts # Merchant configuration
├── feeds/
│ ├── feed-manager.ts # Feed download orchestration
│ └── product-db.ts # SQLite product database
├── matching/
│ └── fuzzy-match.ts # Fuse.js fuzzy product matching
└── types/
└── index.ts # Shared TypeScript typesDevelopment Status
This project is in early development. The MCP server interface and tool definitions are complete. API integrations are stubbed with clear TODOs.
Roadmap
MCP server scaffold with 5 tools
Type system and interfaces
Merchant configuration (8 merchants across 4 networks)
Fuzzy matching with Fuse.js
Awin product feed download + SQLite storage
Awin batch link generation (100 links/request)
Amazon Creators API integration
Tradedoubler product search
AliExpress product search
Feed sync scheduling (cron-like)
MCP Inspector testing
npm publishable package
API Keys Required
Network | Where to Get | Notes |
Awin | Free signup, apply per merchant | |
Amazon | Need 10+ sales/30 days for API | |
Tradedoubler | Apply for Galaxus program | |
AliExpress | Free developer account |
Contributing
Contributions welcome! This is a LunoLabs open-source project. See CONTRIBUTING.md for guidelines.
Key areas where help is needed:
API integration implementations (see TODO comments in
src/tools/)Additional affiliate network support
Test coverage
Documentation
License
MIT - see LICENSE
Built by LunoLabs - Technologie fur alle.
Available Tools
5 toolsgenerate_affiliate_linkA
Convert a regular product URL into an affiliate tracking link. Supports Awin merchants, Amazon, and Tradedoubler.
Inputs: url (required), network.
list_merchantsA
List all configured affiliate merchants with their networks, commission rates, and feed status.
Inputs: no named parameters.
match_bomA
Match a Bill of Materials (list of components/parts) against affiliate product catalogs. Returns best matches with prices and affiliate links for each item. Ideal for project material lists.
Inputs: items (required), networks, marketplace, max_shops_per_item.
search_productsA
Search for products across affiliate networks (Awin, Amazon, Tradedoubler, AliExpress). Returns products with prices and affiliate links.
Inputs: query (required), networks, merchants, marketplace, +1 more.
sync_feedsA
Download and update product feeds from Awin and Tradedoubler. Run this to refresh the local product database.
Inputs: force, merchants.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool serves a clearly distinct purpose: searching products, matching a BOM, generating links, listing merchants, and syncing feeds. There is minimal overlap; even search_products and match_bom differ in input type (single query vs. list).
All tool names follow a consistent verb_noun pattern: search_products, match_bom, generate_affiliate_link, list_merchants, sync_feeds. No mixed conventions or vague verbs.
With 5 tools, the server is well-scoped for an affiliate marketing domain. Each tool covers a core function without unnecessary bloat or minimalism.
The tool set covers primary workflows: finding products, generating affiliate links, managing merchants, and refreshing feeds. Minor gaps exist, such as no direct product detail lookup or merchant mutation, but these are workarounds or out of scope.
Maintenance
Related MCP Connectors
AI-powered product search, affiliate links, and price negotiation for e-commerce platforms
Product price checks and affiliate link building for AI shopping agents.
AI-agent product catalog: search, lookup & purchase routing over verified merchant data.
Live product search for AI agents across Shopify merchants and major retailers.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAffiliate product search for AI agents. Indexes structured merchant feeds — real prices, live stock, affiliate links built in. Works with any MCP client.MIT
- FlicenseAqualityDmaintenanceEnables AI assistants to browse Admitad affiliate programs, discover product feeds, and search products directly from chat.82-
- AlicenseAqualityDmaintenanceEnables AI assistants to recommend Amazon products with automatic affiliate link insertion, supporting product search, deals, bestsellers, and promotional content.817 npm2MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to search products across affiliate networks, compare commissions, find arbitrage opportunities, and get auto-injected affiliate links via MCP.-