MCP Affiliate Server
Enables AI assistants to search products and generate affiliate links across European and global affiliate networks, automating product discovery and link creation for monetization.
README
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.
Features
| Tool | Description |
|---|---|
search_products |
Search across Awin, Amazon, Tradedoubler, AliExpress |
match_bom |
Match a Bill of Materials to products with affiliate links |
generate_affiliate_link |
Convert any product URL into a tracking link |
list_merchants |
Show configured merchants with commission rates |
sync_feeds |
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 build
2. Configure
cp .env.example .env
# Edit .env with your API keys
3. 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 catalogs
5. Use It
Search for "Raspberry Pi 5" across all affiliate shops
Match these BOM items to affiliate products: 6x STS3215 Servo, 1x ESP32-S3, PLA Filament 1kg
Generate an affiliate link for https://www.conrad.de/de/p/raspberry-pi-5-8gb-2849738.html
Architecture
┌─────────────────────────────────────────┐
│ 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 types
Development Status
This project is in early development. The MCP server interface and tool definitions are complete. API integrations are stubbed with clear TODOs.
Roadmap
- [x] MCP server scaffold with 5 tools
- [x] Type system and interfaces
- [x] Merchant configuration (8 merchants across 4 networks)
- [x] 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 | awin.com | Free signup, apply per merchant |
| Amazon | partnernet.amazon.de | Need 10+ sales/30 days for API |
| Tradedoubler | tradedoubler.com | Apply for Galaxus program |
| AliExpress | portals.aliexpress.com | 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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。