Skip to main content
S

Shopee

@codespar/mcp-shopee Β· v0.2.0-alpha.3

🌎 Latin AmericaE-CommerceAuth · API Keybeta22 tools5 env varsprerelease

LATAM marketplace partner API β€” huge in BR, growing elsewhere. Orders, products, returns. Pairs with Mercado Libre for full marketplace reach. Alpha on npm β€” signing recipe via SDK refs.

Get started Β· freeView docs

MIT Β· runs locally or through the CodeSpar runtime

Limitations

  • v0.2.0-alpha.3 is a prerelease; npm has no stable release of this package.
Package
@codespar/mcp-shopee
Version
0.2.0-alpha.3 Β· prerelease
npm dist-tag
latest
Category
E-Commerce
Auth
API Key
Country
🌎 Latin America
License
MIT
Transport
stdio Β· streamable-http

Quickstart

Install, set the credentials, make the first call.

Pick your client. The server runs locally over stdio, or through the hosted runtime.

Add the server to your clientOne config entry. No build step, no SDK required.
Set the environment variables5 variables read by this server's code, listed below.
Restart and make the first callThe agent can call any of the 22 tools. Try get_shop_info first.
terminal
# Claude Code claude mcp add shopee -e SHOPEE_ACCESS_TOKEN=… -e SHOPEE_ENV=… -e SHOPEE_PARTNER_ID=… -e SHOPEE_PARTNER_KEY=… -e SHOPEE_SHOP_ID=… -- npx -y @codespar/mcp-shopee@0.2.0-alpha.3 # then: /mcp to confirm the server is connected
Environment variables5 variables
SHOPEE_ACCESS_TOKENMerchant access_token obtained via the shop authorization OAuth flow (expires every 4 hours; refresh via refresh_token).requiredsecret
SHOPEE_ENVEnvironment: 'sandbox' uses partner.test-stable.shopeemobile.com, 'production' (default) uses partner.shopeemobile.com.optional
SHOPEE_PARTNER_IDShopee Open Platform partner_id (integer) assigned when the app is registered.required
SHOPEE_PARTNER_KEYShopee partner_key used as the secret for HMAC-SHA256 request signing.requiredsecret
SHOPEE_SHOP_IDShop identifier (integer) returned after merchant authorization.required

Names read from the package code (@codespar/mcp-shopee@0.2.0-alpha.3). Descriptions and flags come from its manifest. Self-hosted, you hold the credentials. On the CodeSpar runtime the credential you connect is stored encrypted (AES-256-GCM, key derived per organization), and the runtime adds it to the provider call itself; the agent never receives it.

First call demoget_shop_info

"Get basic information about the authorized Shopee shop"

tools/callget_shop_inforesult returned

Tools

What your agent can call.

22 tools, as the package's tools/list returns them.

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

ship_order

Arrange shipment for an order β€” either request pickup, drop off, or pass a tracking number depending on the logistics channel.

cancel_order

Cancel an order that has not yet shipped. Seller cancellations require a cancel_reason.

list_products

List items (products) in the shop with optional status filter. Returns item_id list which can be fed into get_product_detail.

get_product_detail

Get detailed base info for up to 50 items by item_id.

update_product_stock

Update stock levels for an item (or its models/variants). Pass stock_list entries with model_id 0 for single-SKU items.

update_product_price

Update prices for an item (or its models/variants). Pass price_list entries with model_id 0 for single-SKU items.

get_shipment_list

List orders currently in shipment (status SHIPPED or in-transit). Useful for reconciling tracking and delivery status.

get_return_list

List return/refund requests on the shop, optionally filtered by status and time window.

confirm_return

Confirm (accept) a buyer-initiated return request by return_sn.

Names and descriptions come from the package's tools/list (@codespar/mcp-shopee@0.2.0-alpha.3). A kind (read, write, delete) is shown only when the package annotates its tools or each tool was verified one by one; neither exists for this server yet.

Compatibility

MCP is a protocol. Any client that speaks it can mount this server.

Through the CodeSpar runtime, codespar_discover finds this server's tools, and a tools/call runs with the credential connected in your project, a test key included.

hostedhttps://connect.codespar.dev/mcp15 meta-tools

Protocol

Any MCP client

stdio Β· streamable-http

Questions

Before you install.

How do I install the Shopee MCP server?

Run npx -y @codespar/mcp-shopee@0.2.0-alpha.3 and add the config block above to your MCP client: Claude Code, Cursor, Claude Desktop, VS Code, or any MCP-compatible client. No build step, no SDK required. Prefer hosted? Add the CodeSpar endpoint with a test key and connect Shopee in your project; codespar_discover finds its tools.

What can my agent do with Shopee?

Shopee exposes 22 tools for e-commerce. Your agent calls them directly; the full list is above.

How does Shopee authenticate, and how are credentials stored?

Shopee uses API Key. Self-hosted, you hold the credentials: the server reads them from its environment variables. On the CodeSpar runtime the credential you connect is stored encrypted for your organization, and the runtime adds it to each provider call, so the agent never handles it.

How does Shopee handle upstream API changes?

Every server is versioned independently on npm. The command on this page pins 0.2.0-alpha.3, the version whose tools are listed here; your agent keeps running it until you change the version.

Is Shopee open source? How do I report a bug?

Yes. Shopee is MIT-licensed and published on npm as @codespar/mcp-shopee, source on GitHub (link in the Details panel). Report issues on the package repository; security issues go to security@codespar.dev, and we respond within 24 hours.

Start in seconds.

On the CodeSpar runtime, the credential you connect stays encrypted for your organization and the runtime adds it to each call. You just call the tool.

Start in seconds demo
Create an account and copy a test key.
Add the hosted endpoint to your client with the config above.
Connect Shopee in your project and ask your agent for the first call.
Shopee β€” MCP server Β· 22 tools | CodeSpar