Shopee MCP Server
Provides tools for managing a Shopee shop: viewing shop info, listing/adding/updating products, managing orders, uploading images, and handling logistics channels. It integrates with Shopee Open Platform API v2.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Shopee MCP Server show my recent orders"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Shopee MCP Server
MCP server cho Shopee Open Platform API v2 — quản lý shop bán hàng: xem shop, sản phẩm, đơn hàng; đăng bài sản phẩm; cập nhật giá & tồn kho. Chạy dạng STDIO (npx từ GitHub), thiết kế để ai cũng dùng được — chỉ cần điền thông tin shop, không sửa code.
15 tools: get_shop_info, get_item_list, get_item_base_info, get_category, get_attributes, upload_image, add_item, update_item, update_price, update_stock, unlist_item, get_channel_list, get_order_list, get_order_detail.
PHẦN A — ĐĂNG KÝ SHOPEE OPEN PLATFORM (lấy credential)
Bạn cần 5 thông tin: partner_id, partner_key, shop_id, access_token, refresh_token.
A1. Tạo tài khoản & App
Vào https://open.shopee.com → Log In → Sign up (dùng email doanh nghiệp).
Vào Console → App Management → App List → Create App.
Chọn loại tài khoản phù hợp (thường: Seller nếu bán hàng, hoặc ISV nếu làm dịch vụ cho nhiều shop).
Điền tên app, mô tả, và Redirect URL (ví dụ
https://example.com/callback— nhớ URL này, dùng ở bước OAuth).Sau khi tạo, mở app → lấy Partner ID (= App ID) và Partner Key (= Secret Key). Lưu Partner Key an toàn (Shopee ít hiện lại).
Trong app, thêm quyền (API modules) cần dùng: Shop, Product, Logistics, Order, MediaSpace.
⚠️ App mới thường phải chờ Shopee duyệt/kích hoạt các module ghi (đăng bài). Có thể test trước trên môi trường test-stable trước khi lên live.
A2. Uỷ quyền shop & lấy token (chạy 1 lần)
Sau khi clone repo và build (Phần B), chạy công cụ lấy token:
# Bước 1 — sinh link uỷ quyền
SHOPEE_PARTNER_ID=123456 SHOPEE_PARTNER_KEY=shpk_xxx SHOPEE_REDIRECT_URL=https://example.com/callback \
npm run auth -- link→ Mở link in ra, đăng nhập shop, bấm đồng ý. Shopee chuyển về Redirect URL kèm ?code=XXX&shop_id=YYY.
# Bước 2 — đổi code lấy token
SHOPEE_PARTNER_ID=123456 SHOPEE_PARTNER_KEY=shpk_xxx \
npm run auth -- token XXX YYY→ In ra SHOPEE_SHOP_ID, SHOPEE_ACCESS_TOKEN, SHOPEE_REFRESH_TOKEN. Copy 3 giá trị này.
(access_token hết hạn ~4 giờ — MCP tự refresh bằng refresh_token, bạn không cần làm lại bước này.)
Related MCP server: Shopee Agentic MCP Server
PHẦN B — CÀI & CHẠY
B1. Chạy trực tiếp từ GitHub bằng npx (khuyên dùng cho Evose)
Không cần cài gì, npx tự build từ GitHub. Xem cấu hình import ở PHẦN C.
B2. Chạy local (để test / lấy token)
git clone https://github.com/<user>/shopee-mcp-server.git
cd shopee-mcp-server
npm install
npm run buildPHẦN C — TÍCH HỢP VÀO EVOSE (STDIO npx)
Vào Evose → thêm MCP mới → Import Configuration via JSON, dán:
{
"mcpServers": {
"shopee": {
"command": "npx",
"args": ["-y", "github:<user>/shopee-mcp-server"],
"env": {
"SHOPEE_PARTNER_ID": "123456",
"SHOPEE_PARTNER_KEY": "shpk_xxxxxxxx",
"SHOPEE_SHOP_ID": "222222",
"SHOPEE_ACCESS_TOKEN": "xxxxxxxx",
"SHOPEE_REFRESH_TOKEN": "xxxxxxxx"
}
}
}
}Hoặc điền tay theo form: Server Type = STDIO, Command Tool = npx, Command Parameters = -y github:<user>/shopee-mcp-server, rồi thêm 5 Environment Variables ở trên. Execution Timeout để 120s (lần đầu npx build hơi lâu).
(Thay <user> bằng GitHub username của bạn sau khi push repo lên.)
PHẦN D — QUY TRÌNH ĐĂNG BÀI (add_item) — làm đúng thứ tự
Đăng bài Shopee phức tạp hơn Etsy, cần 4 bước:
get_category→ chọncategory_idđúng ngành hàng.get_attributesvớicategory_idđó → lấy các thuộc tính bắt buộc → chuẩn bịattribute_list.upload_imagevới URL ảnh → lấyimage_id(làm nhiều lần cho nhiều ảnh).get_channel_list→ lấylogistics_channel_idsshop đang bật.add_itemvới đủ: item_name, description, category_id, original_price, seller_stock, weight, image_id_list, logistics_channel_ids, attribute_list.
GHI CHÚ QUAN TRỌNG
Host: live =
https://partner.shopeemobile.com. Test =https://partner.test-stable.shopeemobile.com(đặt qua envSHOPEE_HOST).Vùng: cấu hình này cho shop Việt Nam.
Bảo mật: không commit Partner Key / token lên GitHub công khai. Chỉ để trong env khi chạy.
MCP tự tính chữ ký HMAC-SHA256 và tự refresh token — người dùng không cần bận tâm.
License
MIT
Available Tools
14 toolsadd_itemC
ĐĂNG BÀI sản phẩm mới. Cần category_id (get_category), image_id (upload_image), logistics_channel_ids (get_channel_list), attribute_list (get_attributes).
Inputs: weight (required), item_name (required), category_id (required), description (required), +5 more.
get_attributesB
Lấy thuộc tính bắt buộc của category_id — cần khi đăng bài.
Inputs: category_id (required), language.
get_categoryB
Lấy cây danh mục — cần trước khi đăng bài để có category_id.
Inputs: language.
get_channel_listA
Lấy danh sách kênh vận chuyển — cần logistics_channel_ids khi đăng bài.
Inputs: no named parameters.
get_item_base_infoC
Lấy chi tiết sản phẩm theo item_id.
Inputs: item_id_list (required).
get_item_listC
Lấy danh sách sản phẩm của shop.
Inputs: offset, page_size, item_status.
get_order_detailC
Lấy chi tiết đơn hàng theo order_sn.
Inputs: order_sn_list (required).
get_order_listC
Lấy danh sách đơn hàng theo thời gian và trạng thái.
Inputs: time_to, page_size, time_from, order_status, +1 more.
get_shop_infoA
Lấy thông tin shop (tên, khu vực, loại shop, trạng thái).
Inputs: no named parameters.
unlist_itemC
Ẩn/hiện sản phẩm.
Inputs: unlist (required), item_id (required).
update_itemD
Cập nhật thông tin sản phẩm.
Inputs: item_id (required), item_name, category_id, description.
update_priceC
Cập nhật giá sản phẩm.
Inputs: item_id (required), price_list (required).
update_stockC
Cập nhật tồn kho.
Inputs: item_id (required), stock_list (required).
upload_imageC
Upload ảnh từ URL, trả về image_id để đăng bài.
Inputs: image_url (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Each tool targets a unique resource and action (e.g., price, stock, orders, items, categories, attributes, images), with no overlap in purpose. Descriptions clearly distinguish their roles.
All tool names follow a consistent verb_noun pattern using underscores (e.g., update_price, get_order_list, add_item), with predictable verbs like get, update, add, unlist.
14 tools are well-scoped for an e-commerce server, covering product lifecycle, orders, logistics, and shop info without being excessive or sparse.
The set covers full product CRUD (create via add_item, read via get_item_list/base_info, update via update_item/price/stock, delete via unlist_item) and order retrieval, with necessary prerequisites like category, attributes, and image upload.
Related MCP Connectors
Read Sapo store products, orders, customers and stock levels; edit order notes and stock.
Read EasyStore orders, products and customers; manage stock, fulfillments and customer records.
Manage one storefront: listings, bulk catalogue sync, analytics and webhooks.
Manage products, orders, customers, inventory, and store configuration
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Shopify store data via the GraphQL Admin API to manage products, customers, orders, and collections. Supports multi-store configurations and provides comprehensive management tools for e-commerce administration in both local and remote environments.18 npm1MIT
- FlicenseNot gradedqualityDmaintenanceConnects AI agents to the Shopee platform for real-time product searches and category mapping via the Affiliate and Seller Center APIs. It enables users to filter products by keyword, category, and commission rates directly through natural language.1-
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to automate product listing on Shopee via the Shopee Open Platform API, including OAuth2 authentication, product creation, image upload, and category lookup, with a mock mode for testing.-
- FlicenseCqualityBmaintenanceEnables automated product management on Shopee, TikTok Shop, and Lazada by controlling an existing Chrome or Edge browser session, intercepting internal APIs for fast updates, and pausing for captcha resolution.321-