Skip to main content
Glama
andrehocsis

Rally MCP Server

by andrehocsis

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-server

Claude 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 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.

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.md

Built With

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.

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 tools
analyze_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.

ParametersJSON Schema
NameRequiredDescriptionDefault
marketplaceYes
product_idYesProduct ID (e.g., MLB12345678)

TDQS

B3.2/5.0
Behavior2/5

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.

Conciseness4/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines3/5

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
product_priceYesProduct price in BRL
commission_rateYesCommission rate (0-100)
daily_clicksYesEstimated daily clicks
conversion_rateNoConversion rate (0-1)

TDQS

B3.1/5.0
Behavior2/5

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.

Conciseness5/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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_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.

ParametersJSON Schema
NameRequiredDescriptionDefault
product_idYesProduct ID
channelYesTarget channel
toneNocasual
languageNopt-BR

TDQS

A3.8/5.0
Behavior3/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines3/5

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
marketplaceYesTarget marketplace
queryYesSearch query (product name, category, keyword)
categoryNoCategory ID (e.g., MLB1051 for phones)
sortNorelevance
limitNo

TDQS

A3.7/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters4/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 6 tool updatesv1.0.0
    • First observedanalyze_product
    • First observedcommission_calculator
    • First observedgenerate_affiliate_link
    • First observedgenerate_copy
    • First observedsearch_products
    • First observedtrending_products

TDQS

A3.8/5.0
Disambiguation5/5

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.

Naming Consistency5/5

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.

Tool Count5/5

With 6 tools, the server is well-scoped for its affiliate marketing purpose. It covers essential workflows without being overwhelming or too sparse.

Completeness5/5

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

ActivityInactive
ResponsivenessNo issues

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

Related MCP Servers

Latest Blog Posts

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