API de partner de marketplace de LatAm — gigante en BR, creciendo en otros lados. Pedidos, productos, devoluciones. Combina con Mercado Libre para alcance total de marketplace. Alpha en npm — recipe de firma vía refs de SDK.
Shopee le da a tu agente 22 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.
get_shop_info — Get basic information about the authorized Shopee shop (shop_name, region, status, auth expiry).list_orders — List orders within a time window, optionally filtered by order_status. Time window cannot exceed 15 days. Returns order_sn list which can be fed into get_order_detail.get_order_detail — Get full detail for one or more orders by order_sn (comma-separated, up to 50).// 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("get_shop_info", { /* ... */ });$ npm install @codespar/mcp-shopee@alphaAgregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).
{
"mcpServers": {
"shopee": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-shopee@alpha"
],
"env": {
"SHOPEE_PARTNER_ID": "<your_shopee_partner_id>",
"SHOPEE_PARTNER_KEY": "<your_shopee_partner_key>",
"SHOPEE_ACCESS_TOKEN": "<your_shopee_access_token>",
"SHOPEE_SHOP_ID": "<your_shopee_shop_id>"
}
}
}
}Después de reiniciar, tu agente puede llamar cualquiera de las 22 herramientas de abajo — probá get_shop_info primero.
Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.
SHOPEE_PARTNER_IDShopee Open Platform partner_id (integer) assigned when the app is registered.
SHOPEE_PARTNER_KEYShopee partner_key used as the secret for HMAC-SHA256 request signing.
SHOPEE_ACCESS_TOKENMerchant access_token obtained via the shop authorization OAuth flow (expires every 4 hours; refresh via refresh_token).
SHOPEE_SHOP_IDShop identifier (integer) returned after merchant authorization.
SHOPEE_ENVEnvironment: 'sandbox' uses partner.test-stable.shopeemobile.com, 'production' (default) uses partner.shopeemobile.com.
Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.
get_shop_infolist_ordersget_order_detailship_ordercancel_orderlist_productsget_product_detailupdate_product_stockMCP es un protocolo — cualquier framework que lo hable puede montar este server.