@theyahia/wildberries-mcp
🗄 仓库已归档
开发已迁移至 theYahia/WWmcp —— 面向非西方 API 的 MCP 服务器单体仓库:独联体、MENA、非洲、LATAM、东南亚。公共核心
@theyahia/mcp-core,统一 CI,统一发布流水线。此处内容的当前版本位于:
servers/wildberries/npm 包不变 ——
@theyahia/wildberries-mcp,安装和使用方式与之前相同。 此处不再更新任何内容。问题和 pull request 请提交到 WWmcp。已归档 —— 开发已迁移至 theYahia/WWmcp, 这是一个面向非西方 API 的 MCP 服务器单体仓库。 该包的当前版本现位于
servers/wildberries/。 npm 包@theyahia/wildberries-mcp保持不变。 请在那里提交问题和 pull request。
@theyahia/wildberries-mcp
MCP 服务器,用于 Wildberries 卖家 API —— 提供 30 个工具,涵盖产品、价格、库存、订单、销售、FBS 供应、分析、反馈、问题、退货和广告。按类别进行主机路由,支持速率限制和 409 惩罚保护。支持 Stdio + Streamable HTTP 传输。
Related MCP server: wildberries-mcp
快速开始
npm install -g @theyahia/wildberries-mcp
# stdio transport (for Claude Desktop, Cursor, etc.)
WB_API_TOKEN=your_token wildberries-mcp
# Streamable HTTP transport
WB_API_TOKEN=your_token wildberries-mcp --httpClaude Desktop
添加到 claude_desktop_config.json:
{
"mcpServers": {
"wildberries": {
"command": "npx",
"args": ["-y", "@theyahia/wildberries-mcp"],
"env": { "WB_API_TOKEN": "your_token_here" }
}
}
}Cursor / Windsurf / VS Code (Copilot) 在其 MCP 设置中使用相同的 mcpServers 块。
Smithery
npx @smithery/cli install @theyahia/wildberries-mcp身份验证与令牌权限范围
Authorization: Bearer {WB_API_TOKEN}(JWT,有效期 180 天)。在卖家门户的 设置 → API 访问下获取你的令牌。
单个令牌可以携带多个类别权限范围。由于每个工具与不同的 API 主机通信,缺少某个权限范围的令牌会从该主机返回 401,而其他工具继续正常工作。请启用你需要的权限范围:
权限范围 | 支持的工具 |
Content |
|
Prices & discounts |
|
Marketplace |
|
Statistics |
|
Analytics |
|
Tariffs (Common) |
|
Feedbacks & questions |
|
Returns |
|
Advertising |
|
当调用失败时,错误消息会指明主机并包含 WB 的 requestId,因此缺少权限范围或主机错误的问题一目了然(例如 WB API GET advert-api.wildberries.ru/adv/v1/balance → 401: ...)。
架构 —— 按类别划分的主机
Wildberries 卖家 API 不是单一网关。seller.wildberries.ru 是 Web 控制台;API 分散在多个类别主机上。每个请求都会路由到正确的主机:
类别 | 主机 |
Content |
|
Prices & discounts |
|
Marketplace (FBS) |
|
Statistics |
|
Analytics |
|
Common / Tariffs |
|
Feedbacks & questions |
|
Returns |
|
Advertising |
|
工具(30)
产品与内容
工具 | 方法 | 主机 · 端点 |
| POST | content · |
| POST | content · |
| POST | prices · |
| PUT | marketplace · |
| POST | marketplace · |
订单与销售
工具 | 方法 | 主机 · 端点 |
| GET | marketplace · |
| GET | marketplace · |
| GET | statistics · |
| GET | statistics · |
| GET | statistics · |
仓库与 FBS 供应
工具 | 方法 | 主机 · 端点 |
| GET | marketplace · |
| GET | marketplace · |
| POST | marketplace · |
| PATCH | marketplace · |
| PATCH | marketplace · |
| GET | marketplace · |
分析
工具 | 方法 | 主机 · 端点 |
| GET | statistics · |
| GET | statistics · |
| POST | analytics · |
| GET | analytics · |
定价参考
工具 | 方法 | 主机 · 端点 |
| GET | common · |
| GET | common · |
反馈与问题
工具 | 方法 | 主机 · 端点 |
| GET | feedbacks · |
| PATCH | feedbacks · |
| GET | feedbacks · |
| PATCH | feedbacks · |
退货与广告
工具 | 方法 | 主机 · 端点 |
| GET | returns · |
| GET | advert · |
| GET | advert · |
| POST | advert · |
速率限制
Wildberries 按 API 类别计量请求,而不是作为一个全局池 —— 并对突发请求返回 409 作为惩罚。客户端为每个主机维护一个令牌桶限制器,并为最严格的端点提供更细粒度的桶:
每主机令牌桶,请求之间设有最小间隔。
409惩罚处理:读取X-Ratelimit-Retry-After/X-Ratelimit-Remaining,扣除惩罚令牌,并在重试前等待指定时长 —— 惩罚仅局限于违规类别。严格的每端点上限(付费存储创建/下载 1/分钟,状态 1/5 秒;价格约 10/6 秒)。
默认值刻意保守,在观察到你账户的实际限制后可以安全调高。无需配置。
配置
变量 | 必填 | 说明 |
| 是 | Wildberries 卖家 API 令牌(JWT)。 |
| 否 | 每个请求的超时时间(毫秒,默认 30000)。 |
| 否 | 使用 |
HTTP 端点(--http):POST /mcp(请求),GET /health({ status, version, tools })。
示例提示
“列出我目录中前 50 个产品及其当前价格。” “对最近 30 天运行 ABC 分析 —— 哪些产品贡献了 80% 的收入?” “创建 FBS 供应 'Morning 2026-06-23',附加订单 1001 和 1002,然后关闭它以便发货并获取其条形码。” “显示未回答的问题,并为第一个问题起草回复。” “我的广告余额是多少,哪些广告活动处于活跃状态?”
开发
git clone https://github.com/theYahia/wildberries-mcp.git
cd wildberries-mcp
npm install
npm run build
npm test许可证
MIT —— 参见 LICENSE。
Available Tools
30 toolsadd_orders_to_supplyC
Attach one or more assembly orders to an FBS supply
Inputs: orderIds (required), supplyId (required).
create_supplyC
Create a new FBS supply (delivery)
Inputs: name (required).
deliver_supplyA
Close an FBS supply and send it to delivery (orders move to 'in delivery')
Inputs: supplyId (required).
get_abc_analysisB
Compute ABC analysis of products by sales revenue (Pareto). A = products making up the top 80% of revenue, B = next 15%, C = bottom 5%. Identifies best-sellers and slow movers.
Inputs: dateTo (required), dateFrom (required).
get_balanceA
Get advertising account balance (balance, net account, bonuses)
Inputs: no named parameters.
get_campaign_statsC
Get full advertising statistics for one or more campaigns over a date range
Inputs: dateTo (required), dateFrom (required), campaignIds (required).
get_commissionB
Get WB commission rates per category (subject)
Inputs: locale.
get_fbw_stocksA
Get FBW stock levels (goods stored at WB warehouses) since a date
Inputs: dateFrom (required).
get_feedbacksB
Get product feedbacks (reviews)
Inputs: skip, take, order, isAnswered.
get_funnelB
Get the product sales funnel (views, add-to-cart, orders, buyouts) by period
Inputs: dateTo (required), dateFrom (required), page, nmIDs.
get_incomesC
Get FBW supply incomes (deliveries to WB warehouses) since a date
Inputs: dateFrom (required).
get_new_ordersA
Get new (unprocessed) FBS orders
Inputs: no named parameters.
get_ordersC
Get FBS orders list with filters
Inputs: next, limit, dateTo, dateFrom.
get_paid_storageB
Get the paid storage cost report for a period (async report: created, polled, then downloaded)
Inputs: dateTo (required), dateFrom (required).
get_productB
Get detailed info for specific product cards by nm IDs
Inputs: nmIDs (required).
get_questionsB
Get customer questions about products
Inputs: skip, take, order, isAnswered.
get_returnsB
Get buyer return claims (requests to return goods)
Inputs: nmId, limit, offset, isArchive.
get_salesC
Get sales report
Inputs: dateFrom (required), flag, dateTo.
get_statisticsC
Get detailed realization (sales) report by period
Inputs: dateTo (required), dateFrom (required), limit, rrdid.
get_stocksB
Get current FBS stock levels for a specific warehouse
Inputs: warehouseId (required), skus.
get_supplyC
Get FBS supplies (deliveries) list with pagination
Inputs: next, limit.
get_supply_barcodeA
Get the QR barcode for an FBS supply (available after deliver_supply)
Inputs: supplyId (required), type.
get_tariffsB
Get WB box (logistics & storage) tariffs for a date
Inputs: date.
get_warehousesA
Get list of WB warehouses (offices)
Inputs: no named parameters.
list_campaignsA
List advertising campaigns grouped by type and status (counts + IDs)
Inputs: no named parameters.
list_productsA
List seller products (cards) with pagination and optional text search
Inputs: limit, cursor, textSearch.
reply_feedbackB
Post a reply to a customer review on Wildberries
Inputs: id (required), text (required).
reply_questionB
Post an answer to a customer question on Wildberries
Inputs: id (required), text (required), state.
update_pricesB
Update product prices (creates an async upload task)
Inputs: prices (required).
update_stocksB
Update FBS product stocks at a specific warehouse
Inputs: stocks (required), warehouseId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 30 tools
Most tools are clearly distinct (e.g., get_orders vs get_new_orders), but some overlap exists between reporting tools like get_sales, get_statistics, and get_funnel; however, descriptions clarify differences.
All tool names follow a consistent verb_noun pattern (e.g., list_campaigns, get_product, update_prices), with no mixed conventions or vague verbs.
30 tools is on the high side but appropriate given the breadth of Wildberries operations (advertising, products, orders, supplies, feedback, analytics). Each tool serves a specific need, though some consolidation could reduce count.
Covers most key areas but notable gaps exist: no create/update product card, no campaign management beyond stats/list. Core order and supply workflows are complete, but product lifecycle and advertising tools are missing update/delete operations.
Related MCP Connectors
Unified MCP server for 70+ eCommerce platforms: products, orders, customers, and more.
Hosted MCP server for OTTO Market, Kaufland and Mirakl sellers: orders, stock, listings and ads.
Бесплатная русскоязычная аналитика Wildberries, SEO, калькуляторы и прогноз пополнения через MCP.
MCP server for SkuVault — products, inventory, sales, purchase orders and stock adjustments.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceMCP server for Wildberries API that enables fetching product cards with multi-cabinet support, automatic pagination, and retry logic.1-
- FlicenseNot gradedqualityDmaintenanceMCP server that turns Wildberries marketplace into a toolkit for LLM agents, enabling product search, detailed card inspection, price history, reviews, and cross-product comparison.-
- AlicenseAqualityDmaintenanceMCP server for Wildberries Seller API enabling management of products, orders, supplies, analytics, advertising, and finance through natural language commands.32MIT
- AlicenseNot gradedqualityBmaintenanceMCP server that simplifies interaction with Wildberries API, providing unified access to analytics, promotion statistics, sales funnel data, search queries, stock reports, and EVIRMA PRO report imports.MIT