Rally MCP Server
Provides tools for searching products, generating affiliate links, analyzing products, and checking trends on Shopee's affiliate platform.
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., "@Rally MCP Server search for fone bluetooth on Mercado Libre"
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.
Rally MCP Server — Marketplace Affiliate Tools
The first Model Context Protocol (MCP) server for Mercado Libre & Shopee affiliates.
Built by André Hocsis — Creator of Rally de Vendas, the leading AI-powered platform for Brazilian e-commerce sellers and affiliates.
What is this?
An MCP server that gives AI assistants (Claude, ChatGPT, Cursor, etc.) direct access to marketplace affiliate tools:
Search products on Mercado Libre and Shopee with commission estimates
Generate affiliate links with tracking
Analyze products (quality score 0-100, photos, title, price competitiveness)
Generate marketing copy for TikTok, Reels, WhatsApp, Telegram, Blog
Check trending products by category and season
Related MCP server: mcp-brazil-marketplaces
Why?
Mercado Libre has no affiliate API. Shopee's API is complex. This MCP server abstracts both into a simple, unified interface that any AI agent can use.
Quick Start
# Install
npm install @rally-vendas/mcp-server
# Or run directly
npx @rally-vendas/mcp-serverClaude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"rally-affiliates": {
"command": "npx",
"args": ["@rally-vendas/mcp-server"],
"env": {
"ML_AFFILIATE_ID": "your_matt_tool_id",
"SHOPEE_APP_ID": "your_app_id",
"SHOPEE_SECRET": "your_secret"
}
}
}
}Available Tools
search_products
Search products across marketplaces with affiliate commission estimates.
{
"marketplace": "mercadolibre",
"query": "fone bluetooth",
"category": "MLB1051",
"sort": "relevance",
"limit": 20
}Returns: Product list with title, price, image, commission rate, estimated earnings, affiliate link.
generate_affiliate_link
Generate a tracked affiliate link for any product.
{
"marketplace": "mercadolibre",
"product_url": "https://www.mercadolivre.com.br/produto-xyz/p/MLB12345",
"campaign": "tiktok_maio"
}Returns: Affiliate URL with tracking parameters.
analyze_product
Get a quality score (0-100) for any marketplace product.
{
"marketplace": "mercadolibre",
"product_id": "MLB12345"
}Returns: Score breakdown (title, photos, description, attributes, price), problems found, improvement suggestions.
generate_copy
AI-powered marketing copy for any channel.
{
"product_id": "MLB12345",
"channel": "tiktok",
"tone": "casual",
"language": "pt-BR"
}Returns: Ready-to-post copy with hashtags, emojis, and CTA.
trending_products
Get trending products by category with commission data.
{
"marketplace": "mercadolibre",
"category": "MLB1051",
"period": "7d"
}Returns: Top products by sales velocity, with commission estimates.
commission_calculator
Calculate expected earnings for a product.
{
"marketplace": "mercadolibre",
"product_id": "MLB12345",
"estimated_daily_clicks": 50,
"conversion_rate": 0.02
}Returns: Daily/monthly/yearly estimated commission in BRL.
Supported Marketplaces
Marketplace | Search | Links | Analytics | Reports |
Mercado Libre (Brazil) | ✅ | ✅ (matt_tool) | ✅ (Raio-X) | Estimated |
Shopee (Brazil) | ✅ | ✅ (API) | ✅ | ✅ Real-time |
Amazon (coming soon) | ⏳ | ⏳ | ⏳ | ⏳ |
Architecture
rally-mcp-server/
├── src/
│ ├── index.ts — MCP server entry point
│ ├── tools/
│ │ ├── search.ts — Product search (ML + Shopee)
│ │ ├── links.ts — Affiliate link generation
│ │ ├── analyze.ts — Product analysis (Raio-X)
│ │ ├── copy.ts — AI copy generation
│ │ └── trending.ts — Trending products
│ ├── adapters/
│ │ ├── mercadolibre.ts — ML API adapter
│ │ └── shopee.ts — Shopee API adapter
│ └── utils/
│ ├── commission.ts — Commission calculator
│ └── cache.ts — Request caching
├── package.json
├── tsconfig.json
└── README.mdBuilt With
Model Context Protocol SDK — Anthropic's MCP
Mercado Libre API — Product data
Shopee Affiliate API — Affiliate operations
About Rally de Vendas
Rally de Vendas is a Brazilian AI-powered e-commerce platform that helps:
Sellers: Manage Mercado Libre listings with AI optimization, Raio-X diagnostics, bulk management
Affiliates: Discover products, generate tracked links, create content with AI, automate WhatsApp/Telegram
Agencies: Multi-account management, centralized inbox, dynamic pricing
500+ routes · 90+ controllers · AI-powered (Claude + Gemini) · ISO 9001 + 27001 compliant
Author
André Hocsis — E-commerce specialist, AI developer, creator of Rally de Vendas.
Website: andrehocsis.com.br
Platform: rallydevendas.com.br
Affiliates: afiliados.rallydevendas.com.br
License
MIT — Free to use, modify, and distribute. Attribution appreciated.
⭐ Star this repo if you find it useful! First MCP server for marketplace affiliates in Brazil.
Available Tools
6 toolsanalyze_productB
Get a quality score (0-100) for any Mercado Libre product. Analyzes title, photos, description, attributes, price, and sales. Returns score breakdown and improvement suggestions.
Inputs: marketplace (required), product_id (required).
commission_calculatorB
Calculate expected affiliate earnings for a product based on clicks, conversion rate, and commission percentage.
Inputs: product_price (required), commission_rate (required), daily_clicks (required), conversion_rate.
generate_affiliate_linkB
Generate a tracked affiliate link for any Mercado Libre or Shopee product. Appends your affiliate tracking ID to the URL.
Inputs: marketplace (required), product_url (required), campaign.
generate_copyA
Generate AI-powered marketing copy for a product, optimized for specific channels (TikTok, Reels, WhatsApp, Telegram, Blog). Returns ready-to-post text with hashtags and CTA.
Inputs: product_id (required), channel (required), tone, language.
search_productsA
Search products on Mercado Libre or Shopee with affiliate commission estimates. Returns product list with title, price, image, commission rate, and estimated earnings.
Inputs: marketplace (required), query (required), category, sort, +1 more.
trending_productsA
Get trending products on Mercado Libre or Shopee by category. Returns top products ranked by sales velocity with commission estimates.
Inputs: marketplace (required), category, period.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool serves a distinct function: product analysis, commission calculation, link generation, copy generation, product search, and trending products. There is no functional overlap, and descriptions clearly differentiate them.
All tool names follow a consistent verb_noun pattern with underscores (e.g., analyze_product, generate_copy). No mixing of conventions such as camelCase or spaces, making them predictable and easy to parse.
With 6 tools, the server is well-scoped for its affiliate marketing purpose. It covers essential workflows without being overwhelming or too sparse.
The tool surface covers the full lifecycle of product promotion: discovering products (search, trending), evaluating them (analyze, commission calculator), generating promotional assets (copy, affiliate link). No obvious gaps for the intended domain.
Related MCP Connectors
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
An MCP server that integrates with Discord to provide AI-powered features.
MCP server for building and testing AI agents with multi-model experimentation and insights.
SEO MCP server for keyword research, live SERPs, backlinks, site audits and AI visibility.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for managing affiliate and referral programs. Track referrals, manage affiliates, process conversions, and handle payouts through AI assistants like Claude, Cursor, and ChatGPT.18238 npm2MIT
- AlicenseAqualityDmaintenanceMCP server to search and retrieve public ads from OLX Brasil and Mercado Livre Brasil with automatic anti-bot bypass.41MIT
- FlicenseNot gradedqualityCmaintenanceMCP server for searching Shopee products in Singapore or Indonesia and generating affiliate links via the Shopee Affiliate Open API.-
- AlicenseAqualityDmaintenanceMCP server for Brazilian marketplace product search across Mercado Livre, Shopee, and AliExpress, with automatic x402 micropayments.469 npmMIT