affiliate-marketplace-mcp
Click on "Install 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., "@affiliate-marketplace-mcpfind winning products under 500k with high affiliate score on Shopee"
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.
π Affiliate Marketplace Connector (affiliate-marketplace-connector)
Affiliate Marketplace Connector (CLI: afflite, MCP: affiliate-marketplace-mcp) is an orchestration hub and dedicated Model Context Protocol (MCP Server) for the multi-platform affiliate marketing ecosystem (Affiliate E-Commerce Intelligence) (Shopee & TikTok Shop).
The system enables AI Agents (Antigravity, Claude Code, Cursor, Codex, OpenClaw) to fully automate the workflow:
Search for Win products & cluster prices across platforms.
Assess store reputation & health (Merchant Health Score).
Deep-extract PDP specs & classify SKUs via the "Select options" drawer.
Curate 10+ high-quality seed reviews with video/photos to drive conversion (Seed Social Proof).
Generate 45s video scripts & visual prompts per Google Flow (Veo 3.1) standards.
Package directly into VideoFactory project folders (AIEV / HyperFrames) with a real-time Web Preview interface.
π See the Comprehensive Playbook: MMO Batch Automation Playbook & 5 Real-World JTBDs
π― 5 JTBD Maps (Jobs-To-Be-Done) & 100x Automation MMO Mindset
The system is designed around 5 core problems (Jobs-To-Be-Done) for affiliate marketers and large-scale MMO operators:
JTBD | Situation & Motivation | Expected Outcome | Execution Command ( |
1. Hunt for Win Products | Need to find hot products with high sales volume in the fast-conversion price range (150k - 500k). | Filter out the top 5-10 products with Affiliate Win Score > 9.0 within 3 seconds. |
|
2. Vet Stores | Avoid stores with slow shipping, counterfeit goods, or high cancellation rates that wipe out commissions. | Only partner with stores having Seller Health Score > 85/100 and an on-time delivery rate >98%. |
|
3. Extract Pain Points & Reviews | Need to write scripts that hit psychological triggers without having a sample product in hand. | Automatically deep-dive into 10-15 real reviews with video/photos, tagging pain points and reasons customers praise the product. |
|
4. Mass-Produce 45s Videos | Need to cover 20-50 videos/day across a channel matrix without spending on actors or production crews. | Generate 6-scene CRO scripts with Veo 3.1 prompts and package into a VideoFactory AIEV folder. |
|
5. 24/7 Multi-Agent Operations | Want the system to run autonomously in the background and scale without headcount limits. | AI Agents automatically coordinate via 9 MCP JSON-RPC 2.0 tools. |
|
Related MCP server: Commerce-MCP
π System Architecture
graph TD
subgraph AI Clients & Agents
AG[Google Antigravity]
CC[Claude Code / Desktop]
CR[Cursor IDE / Codex]
VF_API[VideoFactory Web Router]
end
subgraph MCP Server & Orchestration Layer
MCP[affiliate-marketplace-mcp<br/>JSON-RPC 2.0 Stdio]
CLI[afflite CLI Orchestrator]
end
subgraph Core Intelligence Engines
ShopeeEngine[Shopee Research Suite]
TikTokEngine[TikTok Shop Suite]
end
subgraph Data Processing & Scorer
SearchCluster[Search & Price Clustering]
SellerAuditor[Merchant Health & Trust Scorer]
PDPExtractor[Deep PDP & SKU Options Extractor]
ReviewCurator[Seed Review & Media Curator]
end
subgraph Storage & Export Pipeline
DB[(SQLite Database<br/>products.db)]
PromptGen[AI Video Storyboard & Veo 3.1 Engine]
VFBridge[VideoFactory AIEV Bridge]
end
AG -->|MCP Tools/Call| MCP
CC -->|MCP Tools/Call| MCP
CR -->|MCP Tools/Call| MCP
VF_API -->|Direct Call| CLI
MCP --> ShopeeEngine
MCP --> TikTokEngine
CLI --> ShopeeEngine
CLI --> TikTokEngine
ShopeeEngine --> SearchCluster & SellerAuditor & PDPExtractor
TikTokEngine --> SearchCluster & SellerAuditor & PDPExtractor
SearchCluster & SellerAuditor & PDPExtractor & ReviewCurator --> DB
DB --> PromptGen & VFBridge
VFBridge -->|Generate Folder| VFBundles["VideoFactory Projects (/video-projects/<slug>)<br/>β’ meta.json β’ index.html β’ assets/hero.jpg β’ transcript_tts.txt"]β‘ 9 Native MCP Tools (tools/list)
When connecting to the affiliate-marketplace-mcp MCP server, AI Agents get direct access to 9 tools:
Tool Name | Function | Key Parameters |
| Search for potential products simultaneously on Shopee & TikTok Shop, expand keywords, and score Win. |
|
| Audit store credibility (Mall/Official), on-time delivery rate, cancellation rate, discount codes. |
|
| Extract detailed specs, 5 SKUs from the Select options drawer, and 10+ reviews with video/photo attachments. |
|
| Extract seed reviews classified by Pain Points & Objections to serve as social proof. |
|
| Create a complete VideoFactory (AIEV) project folder with standard |
|
| Generate 45s AI video scripts (PAS/AIDA) with ultra-detailed image description prompts for Veo 3.1. |
|
| Query the SQLite |
|
| Comprehensively diagnose system health: SQLite database, VideoFactory engine, Chrome automation session, MCP configs. |
|
| Automatically repair SQLite tables, fix VideoFactory folder permissions, and sync MCP configs for AI clients. |
|
π¦ Installation Guide
1. Install Source Code & CLI
# Clone repository tα»« GitHub
git clone https://github.com/tody-agent/affiliate-marketplace-connector.git
cd affiliate-marketplace-connector
# CΓ i ΔαΊ·t dαΊ‘ng package phΓ‘t triα»n (Editable Mode)
pip install -e .After installation, the system registers the following console commands in your Terminal:
afflite: All-in-one CLI for multi-platform affiliate management & VideoFactory.affiliate-marketplace-mcp: MCP JSON-RPC 2.0 server over Stdio.shopee-cli: Dedicated CLI for Shopee Research & Cross-Audit.shopee-research: Shopee scanning and extraction toolkit.tiktok-research: TikTok Shop scanning and extraction toolkit.
2. Configure Environment Variables (Optional)
The system automatically uses relative paths within the source directory. To customize, you can set:
# ΔΖ°α»ng dαΊ«n file SQLite lΖ°u trα»― dα»― liα»u
export AFFLITE_DB_PATH="/path/to/your/data/products.db"
# ThΖ° mα»₯c xuαΊ₯t dα»± Γ‘n VideoFactory (AIEV)
export VIDEOFACTORY_PROJECTS_DIR="/path/to/your/VideoFactory/video-projects"3. Register the MCP Server for AI Assistants
A. For Google Antigravity CLI
Add to Antigravity's MCP config file (~/.gemini/antigravity-cli/mcp_config.json):
{
"mcpServers": {
"affiliate-marketplace": {
"command": "affiliate-marketplace-mcp"
}
}
}B. For Claude Desktop App
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"affiliate-marketplace": {
"command": "affiliate-marketplace-mcp"
}
}
}C. For Cursor IDE
Add to ~/.cursor/mcp.json or the Cursor Settings > MCP section:
{
"mcpServers": {
"affiliate-marketplace": {
"command": "affiliate-marketplace-mcp"
}
}
}π» CLI Usage Guide (afflite)
1. Search for Potential Products (search)
# QuΓ©t cαΊ£ 2 sΓ n Shopee & TikTok Shop
afflite search all "chuα»t cΓ΄ng thΓ‘i hα»c"
# QuΓ©t riΓͺng Shopee
afflite search shopee "bΓ n phΓm cΖ‘ khΓ΄ng dΓ’y"
# QuΓ©t riΓͺng TikTok Shop
afflite search tiktok "ΔΓ¨n rgb mini quay video"2. Audit Store Credibility (seller)
# ThαΊ©m Δα»nh gian hΓ ng Shopee Mall
afflite seller shopee "Ugreen Official Mall"
# ThαΊ©m Δα»nh gian hΓ ng TikTok Shop
afflite seller tiktok "Photoolex Official Store"3. Extract Product & Variant SKUs (product)
# Tα»± Δα»ng nhαΊn diα»n Shopee hay TikTok Shop tα»« link hoαΊ·c ID
afflite product "https://shopee.vn/product-url"
afflite product "https://www.tiktok.com/view/product/1729463065317050819"4. Run the Full Automated Pipeline (pipeline)
# Tα»± Δα»ng bung tα»« khΓ³a -> Lα»c top sαΊ£n phαΊ©m -> ThαΊ©m Δα»nh Shop -> BΓ³c tΓ‘ch SKU & Reviews -> LΖ°u DB
afflite pipeline all "phα»₯ kiα»n setup gΓ³c lΓ m viα»c"5. Generate Video Scripts & Integrate VideoFactory (make-video)
# XuαΊ₯t kα»ch bαΊ£n 6 cαΊ£nh vΓ prompt Veo 3.1 ra mΓ n hΓ¬nh terminal
afflite video-prompt "shopee_ugreen_mouse_44426785177"
# TαΊ‘o trα»n gΓ³i thΖ° mα»₯c dα»± Γ‘n VideoFactory (AIEV)
afflite make-video "tiktok_prod_1729463065317050819"
# Liα»t kΓͺ danh sΓ‘ch tαΊ₯t cαΊ£ cΓ‘c dα»± Γ‘n VideoFactory ΔΓ£ sinh
afflite video-projects6. Reports & Data Export (report / export)
# Xem bΓ‘o cΓ‘o tα»ng hợp cΓ‘c sαΊ£n phαΊ©m vΓ biαΊΏn thα» trong SQLite
afflite report
# XuαΊ₯t dα»― liα»u kα»ch bαΊ£n dαΊ‘ng Markdown hoαΊ·c JSON
afflite export "shopee_ugreen_mouse_44426785177" --format mdπ Using via Python Code (Programmatic API)
from afflite import (
run_shopee_search,
run_shopee_seller,
run_shopee_product,
run_tiktok_search,
run_tiktok_seller,
run_tiktok_product,
generate_video_prompt_package,
get_connection
)
from afflite.video_factory_bridge import create_videofactory_project
# 1. Tìm kiếm sản phẩm TikTok Shop
tiktok_results = run_tiktok_search("ΔΓ¨n rgb mini nam chΓ’m")
print(f"TΓ¬m thαΊ₯y {tiktok_results['total_found']} sαΊ£n phαΊ©m tiα»m nΔng.")
# 2. BΓ³c tΓ‘ch sαΊ£n phαΊ©m & reviews
prod_data = run_tiktok_product("https://www.tiktok.com/view/product/1729463065317050819")
print(f"ΔΓ£ lΖ°u sαΊ£n phαΊ©m: {prod_data['product_name']} (Δiα»m Win: {prod_data['win_potential_score']}/10)")
# 3. TαΊ‘o thΖ° mα»₯c dα»± Γ‘n VideoFactory
vf_project = create_videofactory_project(prod_data["product_id"])
print(f"ΔΓ£ tαΊ‘o VideoFactory Project tαΊ‘i: {vf_project['project_path']}")
print(f"Xem preview tαΊ‘i: {vf_project['web_ui_url']}")π SQLite Database Structure (products.db)
The system manages relational data following 3NF normalization standards:
βββββββββββββββββββββββββββ βββββββββββββββββββββββββββ
β products β β shops β
βββββββββββββββββββββββββββ βββββββββββββββββββββββββββ
β id (PK) β β shop_id (PK) β
β platform (Shopee/TikTok)βββββ β shop_name, username β
β shop_id (FK) ββββββββββββΌββββΌβββΊβ rating_star, followers β
β product_name, brand β β β response_rate, score β
β sale_price_min, max β β ββββββββββββββ¬βββββββββββββ
β total_sold, rating_scoreβ β β
β win_potential_score β β βΌ
ββββββββββββββ¬βββββββββββββ β βββββββββββββββββββββββββββ
β β β shop_vouchers β
ββββββββββββββββββΌβββΊβββββββββββββββββββββββββββ
β β β voucher_code, discount β
βΌ β βββββββββββββββββββββββββββ
βββββββββββββββββββββββββββ β βββββββββββββββββββββββββββ
β product_variants β β β search_sessions β
βββββββββββββββββββββββββββ β βββββββββββββββββββββββββββ
β sku_name, color, price β β β id (PK), seed_idea β
β connectivity, status β β ββββββββββββββ¬βββββββββββββ
βββββββββββββββββββββββββββ β β
β β βΌ
βΌ β βββββββββββββββββββββββββββ
βββββββββββββββββββββββββββ β β search_results β
β product_reviews β β βββββββββββββββββββββββββββ
βββββββββββββββββββββββββββ β β keyword, price_tier β
β username, rating β β β affiliate_win_score β
β review_text, media_type β β βββββββββββββββββββββββββββ
β pain_point_tag, score β β
βββββββββββββββββββββββββββ β
β β
βΌ β
βββββββββββββββββββββββββββ β
β ai_marketing_insights β β
βββββββββββββββββββββββββββ β
β target_audience, USP β β
β hook_drama, PAS, AIDA β β
βββββββββββββββββββββββββββ β
β β
βΌ β
βββββββββββββββββββββββββββ β
β product_media β β
βββββββββββββββββββββββββββ β
β source_url, local_path βββββ
ββββββββββββββββββββββββββββ FAQ β Frequently Asked Questions
Q1: What mechanism does the affiliate-marketplace-mcp MCP server run on?
The server uses the Model Context Protocol (MCP) standard over Stdio (JSON-RPC 2.0). When AI Assistants (Antigravity, Claude, Cursor) launch, the server automatically establishes a connection via standard input/output without opening any auxiliary network ports, ensuring security and millisecond-level response times.
Q2: How does the SKU variant extraction mechanism in TikTok Shop's "Select options" work?
TikTok Shop PDPs hide variants behind the interactive "Select options" drawer. The system activates a Chrome Automation session to open the drawer, decodes the price structure by each classification (Combo, Color, Power Source), and fully extracts floor/ceiling prices into the
product_variantstable.
Q3: What does the generated VideoFactory (AIEV) project folder include?
When running
afflite make-video <product_id>, the project folder is automatically generated at/Volumes/Agency/VideoFactory/video-projects/<slug>and includes:
meta.json: Standard VideoFactory JSON format with 6 CRO scenes (Hook, Problem, Reveal, USP, Social Proof, CTA).
hyperframes.json&index.html: HTML5/CSS3 HyperFrames motion graphics structure at 1080x1920 30fps.
assets/hero.jpg: Sharp original product image.
assets/transcript_tts.txt: Vietnamese voice-over transcript with per-second timestamps for use with VieNeu-TTS / OmniVoice.
Q4: How do I change the SQLite products.db file when running on another machine?
Simply set the environment variable:
export AFFLITE_DB_PATH="/duong_dan_moi/products.db"All CLI tools and the MCP Server will automatically point to the new path without any code changes.
Q5: What formulas are used to calculate the Affiliate Win Score and Seller Health Score?
Affiliate Win Score (0 - 10): Calculated based on 4 weighted factors: Verified sales count (35%), Star rating score (25%), Impulse Buy fast-conversion price range 150k-500k (20%), and Shopee Mall / Official Shop store status (20%).
Seller Health Score (0 - 100): Assessed based on: Average star rating (35 pts), On-time delivery rate (25 pts), Low cancellation rate under 1% (20 pts), Chat response speed & follower count (20 pts).
Q6: Is there support for video generation commands for Google Flow (Veo 3.1)?
Yes. The 6-scene scripts in
video-promptandmake-videoare specially designed with detailed visual prompts (Extreme close-up, 3D panning, 8k photorealistic, lighting setup) that are 100% compatible with Google Flow (gflow CLI Veo 3.1).
π§ͺ Automated Testing (Unit Testing)
Run the test suite with 18 test scenarios:
python3 -m unittest discover testsResults:
..................
----------------------------------------------------------------------
Ran 18 tests in 4.228s
OKπ Copyright & License
The project is distributed under the MIT License. Developed and maintained by tody-agent.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceConnects AI agents to the Shopee platform for real-time product searches and category mapping via the Affiliate and Seller Center APIs. It enables users to filter products by keyword, category, and commission rates directly through natural language.1
- AlicenseDqualityDmaintenanceEnables natural-language control of e-commerce operations including product management, order processing, inventory tracking, customer service, content generation, and advertising analytics through 15 integrated MCP tools. Provides a local-first commerce automation solution with SQLite storage and extensible channel adapters for end-to-end online store workflows.153MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to search, compare, buy, and sell products across multiple e-commerce platforms through 13 marketplace tools.1MIT
- FlicenseNot gradedqualityCmaintenanceEnables automated generation and publishing of TikTok Shop Affiliate videos using 7 AI agents. Integrates research, script writing, video production, and publishing through the MCP protocol.11
Related MCP Connectors
Hosted MCP with 91 agent tools: X, domains, SEO, Maps, Trends, Search, YouTube, TikTok, and more.
100+ MCP tools for AI agents: content metadata, trade intelligence, business-expertise analysis.
Free public MCP for AI agents β 193 tools, 44 workflows. No API key.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tody-agent/affiliate-marketplace-connector'
If you have feedback or need assistance with the MCP directory API, please join our Discord server