Skip to main content
ME

Mercado Libre

v0.2.1OAuth2

LatAm's largest marketplace: product listing, order management, seller metrics, and shipping labels. Your agent sells across 18 countries.

22 tools1 env vars🌎 LATAMstable on npm

What your agent can do

Mercado Libre gives your agent 22 tools it calls directly β€” pick the ones it needs, in Claude, Cursor, or any MCP client.

  • search_products β€” Search products in Mercado Libre marketplace
  • get_product β€” Get detailed product information by item ID
  • get_product_description β€” Get product description text by item ID
Example call
// Your agent calls a tool directly β€” no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("search_products", { /* ... */ });

Install

terminal
$ npm install @codespar/mcp-mercado-libre

Quickstart

Add this entry to your claude_desktop_config.json (or any MCP-compatible client config).

claude_desktop_config.json
{
  "mcpServers": {
    "mercado-libre": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-mercado-libre"
      ],
      "env": {
        "MELI_ACCESS_TOKEN": "<your_meli_access_token>"
      }
    }
  }
}

After restart, your agent can call any of the 22 tools below β€” try search_products first.

Environment variables Β· 1

Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.

MELI_ACCESS_TOKEN
requiredsecret

API key/token for mercado-libre

Available tools Β· 22

Each tool is independent β€” your agent loads only what it needs to reduce context and response time.

READsearch_products
Search products in Mercado Libre marketplace
READget_product
Get detailed product information by item ID
READget_product_description
Get product description text by item ID
READlist_categories
List all marketplace categories for the site
READget_category
Get category details and children
READpredict_category
Predict the best category for a product title (domain_discovery)
READget_trends
Get trending searches in the marketplace
READlist_listings
List seller's active product listings

Compatible frameworks

MCP is a protocol β€” any framework that speaks it can mount this server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Any MCP clientProtocol

Frequently asked questions

Run `npx -y @codespar/mcp-mercado-libre` and add the config block above to your MCP client β€” Claude, Cursor, VS Code, or any MCP-compatible client. No build step, no SDK required. Prefer hosted? CodeSpar's managed tier runs it for you with auth handled.
Mercado Libre β€” MCP server Β· 22 tools | CodeSpar