Rally MCP Server
Provides tools for searching products, generating affiliate links, analyzing products, and checking trends on Shopee's affiliate platform.
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., "@Rally MCP Serversearch 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.
| Name | Required | Description | Default |
|---|---|---|---|
| marketplace | Yes | ||
| product_id | Yes | Product ID (e.g., MLB12345678) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are present, so the description carries the full burden. It states what the tool analyzes and returns but does not disclose behavioral traits such as side effects, authentication needs, or rate limits. It is unclear whether this is a read-only operation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences that are concise and front-loaded. However, the first sentence contains a minor inaccuracy by restricting to Mercado Libre when the schema allows Shopee. Still, every sentence adds value and there is no fluff.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given two parameters and no output schema, the description explains what the tool does and what it analyzes but does not fully describe the output format or clarify the marketplace scope discrepancy. It is minimally complete for straightforward use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 50% (product_id has a description). The description adds context about the analysis (title, photos, etc.) but does not explain the marketplace parameter or its values. It provides some added meaning but not parameter-specific detail.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly identifies the tool's purpose: 'Get a quality score (0-100) for any Mercado Libre product.' It distinguishes from siblings (commission, affiliate links, etc.). However, it mentions only Mercado Libre while the schema includes Shopee, causing a slight inconsistency.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for evaluating product quality but does not explicitly state when to use it versus alternatives like search_products or trending_products. No exclusions or when-not-to-use guidance is provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
commission_calculatorB
Calculate expected affiliate earnings for a product based on clicks, conversion rate, and commission percentage.
| Name | Required | Description | Default |
|---|---|---|---|
| product_price | Yes | Product price in BRL | |
| commission_rate | Yes | Commission rate (0-100) | |
| daily_clicks | Yes | Estimated daily clicks | |
| conversion_rate | No | Conversion rate (0-1) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations, so description must cover behavioral traits. It doesn't state that this is a read-only computation, nor does it disclose any assumptions or side effects. Default values are in schema but not mentioned.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Single sentence, no redundant information. Efficiently conveys purpose.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Lacks output format description and edge cases. With no output schema, more detail on return value would be helpful. Adequate but incomplete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema covers all parameters with descriptions (100% coverage). Description adds no extra meaning beyond listing inputs; baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Description clearly states it calculates expected affiliate earnings with specific inputs (clicks, conversion rate, commission percentage). While it doesn't explicitly differentiate from siblings, the purpose is specific and unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool vs alternatives like analyze_product. No when/when-not instructions provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
generate_affiliate_linkB
Generate a tracked affiliate link for any Mercado Libre or Shopee product. Appends your affiliate tracking ID to the URL.
| Name | Required | Description | Default |
|---|---|---|---|
| marketplace | Yes | ||
| product_url | Yes | Original product URL | |
| campaign | No | Campaign tag for tracking (optional) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description bears full responsibility. It only states that a tracking ID is appended, but does not disclose details like URL validation, error handling, or whether the link is returned immediately.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two concise sentences that front-load the purpose. No extraneous text.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With 3 parameters, no output schema, and no annotations, the description lacks details about return format, prerequisites, and errors. Incomplete for a tool of this complexity.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 67% (missing description for marketplace). Description adds context about tracking ID but does not explain the campaign parameter beyond the schema's basic tag. Adequate but not exceptional.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Generate'), the resource ('tracked affiliate link'), and the scope ('Mercado Libre or Shopee product'), distinguishing it from siblings like analyze_product or search_products.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus alternatives (e.g., commission_calculator or trending_products). The description implies usage for generating links but lacks when-not or prerequisite context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | Product ID | |
| channel | Yes | Target channel | |
| tone | No | casual | |
| language | No | pt-BR |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It discloses the output format (text with hashtags and CTA) and that it is AI-powered, but does not mention destructive behavior, authentication needs, rate limits, or other behavioral traits.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two concise sentences, front-loaded with the main purpose and outcome. No wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the absence of an output schema, the description mentions the return type (text with hashtags and CTA) which is helpful. However, it lacks details about side effects, authentication, or limitations. Still reasonably complete for a straightforward generation tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 50% (2 out of 4 parameters have descriptions). The description mentions channels explicitly but adds little beyond the schema, such as explaining the 'tone' or 'language' parameters. Baseline 3 is appropriate as the description does not significantly compensate for the missing schema descriptions.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states it generates marketing copy for a product, optimized for specific channels, and returns ready-to-post text with hashtags and CTA. It distinguishes from sibling tools like analyze_product or commission_calculator.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides context by listing target channels, but does not explicitly state when to use this tool versus alternatives or provide any exclusions or prerequisites.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| marketplace | Yes | Target marketplace | |
| query | Yes | Search query (product name, category, keyword) | |
| category | No | Category ID (e.g., MLB1051 for phones) | |
| sort | No | relevance | |
| limit | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Discloses that the tool is a search operation that returns a list of products with specific fields, including commission estimates. No annotations provided, but description accurately implies read-only behavior. Does not mention pagination or rate limits.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Single sentence that is front-loaded with the core action and efficiently packs all key information: target marketplaces, commission estimates, and returned fields. No wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no output schema and no annotations, the description explains the output format (list with specific fields) and the main input parameters. However, lacks details on pagination, error handling, or optional parameter behavior, which are partially covered by the input schema.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Adds meaning beyond schema by describing return fields (title, price, image, commission rate, estimated earnings) and implicitly linking 'marketplace' to the two enums. Compensates for 60% schema description coverage by providing output context.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Clearly states the tool searches products on Mercado Libre or Shopee and returns commission estimates. Identifies specific fields in results. However, does not distinguish itself from sibling 'trending_products' which may also search products.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus alternatives like 'trending_products', 'analyze_product', or 'commission_calculator'. Lacks explicit when-to-use or when-not-to-use instructions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
trending_productsA
Get trending products on Mercado Libre or Shopee by category. Returns top products ranked by sales velocity with commission estimates.
| Name | Required | Description | Default |
|---|---|---|---|
| marketplace | Yes | ||
| category | No | Category ID | |
| period | No | 7d |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It explains the output includes top products by sales velocity and commission estimates, but does not mention any side effects, authentication needs, or rate limits. The tool appears to be read-only, but this is not explicitly stated.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence that conveys all essential information without any redundancies. It is efficiently structured and front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (3 required parameters, no output schema, no nested objects), the description provides sufficient context on what it returns (top products by sales velocity with commission estimates). However, it could be improved by listing example return fields.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is only 33%, with only 'category' having a description ('Category ID'). The description adds 'by category' but does not explain the marketplace enum, period values, or default behavior. The low coverage is not adequately compensated.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool is for getting trending products from Mercado Libre or Shopee by category, with ranking by sales velocity and commission estimates. It is distinct from sibling tools like search_products or analyze_product.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for retrieving trending products but does not explicitly state when to use versus alternatives or provide any exclusion criteria. Lacks guidance on when not to use.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
6 tool updates
v1.0.0- First observed
analyze_product - First observed
commission_calculator - First observed
generate_affiliate_link - First observed
generate_copy - First observed
search_products - First observed
trending_products
TDQS
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.
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 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.
MCP server for Midjourney AI image generation and editing
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for managing affiliate and referral programs. Track referrals, manage affiliates, process conversions, and handle payouts through AI assistants like Claude, Cursor, and ChatGPT.18742MIT
- AlicenseAqualityBmaintenanceMCP server to search and retrieve public ads from OLX Brasil and Mercado Livre Brasil with automatic anti-bot bypass.4MIT
- FlicenseNot gradedqualityCmaintenanceMCP server for searching Shopee products in Singapore or Indonesia and generating affiliate links via the Shopee Affiliate Open API.-
- AlicenseAqualityCmaintenanceMCP server for Brazilian marketplace product search across Mercado Livre, Shopee, and AliExpress, with automatic x402 micropayments.471MIT
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/andrehocsis/rally-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server