# mcp-mercado-libre

Wires Mercado Libre into your coding agent: product search, orders, shipments, buyer questions and reviews. Useful if you sell on the marketplace and work from chat.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 274
- Author: codespar
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/codespar/mcp-dev-latam/tree/HEAD/packages/payments/mercado-libre
- Updated: 2026-09-27
- HTML: https://affpapa.org/en/nevibecode/mcp/mcp-mercado-libre

## What it does

The server exposes 22 tools from the Mercado Libre API. Product search and item details, category lookup plus category prediction from a title, trending searches, order handling and shipment tracking, shipping labels as PDF or ZPL.

Seller-side actions are there too: change stock, price, status or title on a listing, reply to a buyer question, message a buyer after the sale, set up a price discount promotion. Seller reputation and a product's average rating are readable as well.

Auth runs on OAuth2, so you need an access token from the developer portal and the `MELI_ACCESS_TOKEN` variable before anything works. The optional `MELI_SITE_ID` defaults to MLB for Brazil; switch it to MLA for Argentina or MLM for Mexico.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `MELI_ACCESS_TOKEN` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add mcp-mercado-libre -e MELI_ACCESS_TOKEN=<MELI_ACCESS_TOKEN> -- npx -y @codespar/mcp-mercado-libre
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add mercado-libre --env MELI_ACCESS_TOKEN=<MELI_ACCESS_TOKEN> -- npx -y @codespar/mcp-mercado-libre
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mercado-libre": {
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-mercado-libre"
            ],
            "env": {
                "MELI_ACCESS_TOKEN": "<MELI_ACCESS_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mercado-libre": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-mercado-libre"
            ],
            "env": {
                "MELI_ACCESS_TOKEN": "<MELI_ACCESS_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e MELI_ACCESS_TOKEN=<MELI_ACCESS_TOKEN> mercado-libre npx -y @codespar/mcp-mercado-libre
```
Replace <…> with your own values

## When to use it
- look up products and categories on Mercado Libre from the agent chat
- change listing stock or price without opening the seller dashboard
- track shipment status and pull a shipping label
- answer buyer questions on an item
- create a discount promotion for a listing

## Example prompts
- Search Mercado Libre for bluetooth earbuds and list the first five with prices
- Set stock on this listing to 40 units and change the price to 199.90
- Fetch the tracking history for this shipment and tell me where it is now

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

From the same set: [codespar/mcp-dev-latam](https://affpapa.org/en/nevibecode/by/codespar/mcp-dev-latam.md) — 124 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
