Skip to main content
Glama
@theyahia/wildberries-mcp

@theyahia/wildberries-mcp

by theYahia

🗄 リポジトリはアーカイブされました

開発は theYahia/WWmcp に移転しました — 非西洋API向けMCPサーバーのモノレポ: CIS、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

Wildberries Seller API 用のMCPサーバー — 商品、価格、在庫、注文、売上、FBS供給、分析、フィードバック、質問、返品、広告にわたる 30ツール。カテゴリ別ホストルーティング、レート制限、409ペナルティ保護付き。Stdio + Streamable HTTP トランスポート。

npm License: MIT

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 --http

Claude 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アクセス で取得できます。

1つのトークンに複数の カテゴリスコープ を持たせることができます。各ツールは異なるAPIホストと通信するため、スコープが不足しているトークンは その ホストから 401 を返しますが、他のツールは引き続き動作します。必要なスコープを有効にしてください:

スコープ

対象ツール

コンテンツ

list_products, get_product

価格・割引

update_prices

マーケットプレイス

update_stocks, get_stocks, get_orders, get_new_orders, get_warehouses, get_supply, create_supply, add_orders_to_supply, deliver_supply, get_supply_barcode

統計

get_sales, get_incomes, get_fbw_stocks, get_statistics, get_abc_analysis

アナリティクス

get_funnel, get_paid_storage

料金 (共通)

get_commission, get_tariffs

フィードバック・質問

get_feedbacks, reply_feedback, get_questions, reply_question

返品

get_returns

広告

get_balance, list_campaigns, get_campaign_stats

呼び出しが失敗すると、エラーメッセージにホスト名とWBの requestId が含まれるため、スコープ不足やホスト違いの問題が明確にわかります (例: WB API GET advert-api.wildberries.ru/adv/v1/balance → 401: ...)。

アーキテクチャ — カテゴリ別ホスト

Wildberries Seller API は 単一の ゲートウェイではありません。seller.wildberries.ru はWeb管理画面であり、APIはカテゴリ別ホストに分割されています。各リクエストは適切なホストにルーティングされます:

カテゴリ

ホスト

コンテンツ

content-api.wildberries.ru

価格・割引

discounts-prices-api.wildberries.ru

マーケットプレイス (FBS)

marketplace-api.wildberries.ru

統計

statistics-api.wildberries.ru

アナリティクス

seller-analytics-api.wildberries.ru

共通 / 料金

common-api.wildberries.ru

フィードバック・質問

feedbacks-api.wildberries.ru

返品

returns-api.wildberries.ru

広告

advert-api.wildberries.ru

ツール (30)

商品・コンテンツ

ツール

メソッド

ホスト · エンドポイント

list_products

POST

content · /content/v2/get/cards/list

get_product

POST

content · /content/v2/get/cards/detail

update_prices

POST

prices · /api/v2/upload/task

update_stocks

PUT

marketplace · /api/v3/stocks/{warehouseId}

get_stocks

POST

marketplace · /api/v3/stocks/{warehouseId}

注文・売上

ツール

メソッド

ホスト · エンドポイント

get_orders

GET

marketplace · /api/v3/orders

get_new_orders

GET

marketplace · /api/v3/orders/new

get_sales

GET

statistics · /api/v1/supplier/sales

get_incomes

GET

statistics · /api/v1/supplier/incomes

get_fbw_stocks

GET

statistics · /api/v1/supplier/stocks

倉庫・FBS供給

ツール

メソッド

ホスト · エンドポイント

get_warehouses

GET

marketplace · /api/v3/offices

get_supply

GET

marketplace · /api/v3/supplies

create_supply

POST

marketplace · /api/v3/supplies

add_orders_to_supply

PATCH

marketplace · /api/v3/supplies/{id}/orders/{orderId}

deliver_supply

PATCH

marketplace · /api/v3/supplies/{id}/deliver

get_supply_barcode

GET

marketplace · /api/v3/supplies/{id}/barcode

アナリティクス

ツール

メソッド

ホスト · エンドポイント

get_statistics

GET

statistics · /api/v5/supplier/reportDetailByPeriod

get_abc_analysis

GET

statistics · reportDetailByPeriod (パレート計算)

get_funnel

POST

analytics · /api/v2/nm-report/detail

get_paid_storage

GET

analytics · /api/v1/paid_storage (非同期レポート)

価格リファレンス

ツール

メソッド

ホスト · エンドポイント

get_commission

GET

common · /api/v1/tariffs/commission

get_tariffs

GET

common · /api/v1/tariffs/box

フィードバック・質問

ツール

メソッド

ホスト · エンドポイント

get_feedbacks

GET

feedbacks · /api/v1/feedbacks

reply_feedback

PATCH

feedbacks · /api/v1/feedbacks

get_questions

GET

feedbacks · /api/v1/questions

reply_question

PATCH

feedbacks · /api/v1/questions

返品・広告

ツール

メソッド

ホスト · エンドポイント

get_returns

GET

returns · /api/v1/claims

get_balance

GET

advert · /adv/v1/balance

list_campaigns

GET

advert · /adv/v1/promotion/count

get_campaign_stats

POST

advert · /adv/v2/fullstats

レート制限

Wildberries はリクエストをグローバルなプールではなく APIカテゴリごとに 計測し、バーストに対するペナルティとして 409 を返します。クライアントは ホストごとに 1つのトークンバケットリミッターを保持し、最も厳しいエンドポイントにはさらに細かいバケットを用意しています:

  • リクエスト間の最小間隔を持つホスト別トークンバケット。

  • 409 ペナルティ処理: X-Ratelimit-Retry-After / X-Ratelimit-Remaining を読み取り、ペナルティトークンを差し引き、指定された時間待機してから再試行します — ペナルティは問題のカテゴリにのみ適用されます。

  • エンドポイントごとの厳格な上限 (paid-storage 作成/ダウンロード 1/分、ステータス 1/5秒、価格 ~10/6秒)。

デフォルト値は意図的に控えめに設定されており、アカウントの実際の制限を確認したら安全に引き上げられます。設定は不要です。

設定

変数

必須

説明

WB_API_TOKEN

はい

Wildberries Seller API トークン (JWT)。

WB_TIMEOUT_MS

いいえ

リクエストごとのタイムアウト (ms) (デフォルト 30000)。

PORT

いいえ

--http で実行する場合のHTTPポート (デフォルト 3000)。

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 tools
add_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

    B3.2/5.0

    Scored across 30 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (e.g., list_campaigns, get_product, update_prices), with no mixed conventions or vague verbs.

    Tool Count4/5

    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.

    Completeness3/5

    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.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server that turns Wildberries marketplace into a toolkit for LLM agents, enabling product search, detailed card inspection, price history, reviews, and cross-product comparison.
      -
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for Wildberries Seller API enabling management of products, orders, supplies, analytics, advertising, and finance through natural language commands.
      3
      2
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP 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