Skip to main content
Glama
wildberries-mcp

wildberries-mcp

by SZhukovWork

wildberries-mcp

English · Русский

An MCP server that gives LLM agents live, honestly-labelled data from Wildberries, the largest Russian marketplace: search with real pages, sorting and price windows; live product cards; per-article ratings and reviews; weekly price history; seller legal details.

Buyer side: searches the public storefront, no Wildberries account or token needed. Looking for your seller cabinet (orders, stocks, supplies via the official Seller API)? That is a different tool — theYahia/wildberries-mcp.

Why another Wildberries server

Most WB scrapers quietly return data that is not what a buyer sees. This one is built around not doing that:

Pitfall

What this server does

Search API rejects clients without WB's anti-bot token (HTTP 403/498)

Mints the token with a short headless-Chromium visit, re-mints it when WB revokes it

"Current price" taken from price history (a weekly average, often weeks old)

Live price from the same card API the site uses, per size, with pre-discount price and discount

Rating/reviews of the merged product group shown as the product's own (a group can merge 16 different models)

Article rating as shown on the product page; group rating in a separate, labelled field

New articles fail because CDN hosts are guessed from a hard-coded table

Hosts come from WB's published CDN route map

Anti-bot "decoy" answers (unrelated products, wrong region) passed on as data

Every storefront answer is sanity-checked; implausible ones are retried and, if they persist, turned into an error

Every response carries fetched_at and the delivery region it was computed for.

Related MCP server: wildberries-mcp

Tools

Tool

What it returns

search_products(query, page, sort, price_min, price_max, limit)

100 items per page; sort popular / rating / price_asc / price_desc / newest / benefit; total_found, has_more. Per item: price, pre-discount price, discount, rating & reviews (per article), stock, seller & seller rating, delivery estimate (hours), product-group id, URL

get_product(article, include_variants)

Live offer per size, stock, delivery estimate; article rating + group rating with star split; seller with legal entity, address and tax id; characteristics; description; package contents; price-history summary; other articles of the merged group with their live prices

get_price_history(article)

Weekly average prices next to the live price, with min/max and "current vs min/max"

get_reviews(article, limit, scope, sort, min_rating, max_rating)

Date, stars, text, pros, cons, bought variant, buyer tags, seller reply; scope=article or the whole group; sort=worst surfaces complaints first

compare_products(articles)

Up to 50 articles side by side in one request

Requirements

Python

≥ 3.10, with uv (or pip)

Browser

Chromium via Playwright, downloaded automatically on first run (≈300 MB download, ≈650 MB on disk in ~/.cache/ms-playwright, shared by all Playwright tools). Needed to pass WB's anti-bot check: it runs for a few seconds when a token is issued, everything else is plain HTTP

Docker

Not needed: Chromium runs as a child process of the server on the host

System libraries

Already present on desktop Linux, macOS and Windows. On a minimal Debian/Ubuntu server install them once (root): uvx --from playwright playwright install --with-deps chromium

Network

A Russian IP: WB blocks many foreign, VPN and datacenter addresses. Switch the VPN off or set WB_PROXY

Memory

The browser takes ≈0.8 GB while it runs — ≈6 s when a token is issued (measured on a cold start), then it is closed

Display

Only for the account login window (wildberries-mcp login); everything else runs headless

Tested on

Linux (CachyOS; Playwright uses its Ubuntu build there). macOS and Windows are supported by Playwright but untested

Install

Claude Code:

claude mcp add wildberries -- uvx --from git+https://github.com/SZhukovWork/wildberries-mcp wildberries-mcp

Any MCP client (claude_desktop_config.json, .mcp.json, …):

{
  "mcpServers": {
    "wildberries": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/SZhukovWork/wildberries-mcp", "wildberries-mcp"]
    }
  }
}

From a checkout: uv venv && uv pip install -e . && .venv/bin/wildberries-mcp.

Configuration (environment variables)

Variable

Default

Meaning

WB_DEST

auto

WB delivery-region id. By default WB's own IP-based detection is used (the region is reported in every answer). To match your pickup point exactly, copy dest= from any __internal/u-card request in the browser dev tools on wildberries.ru

WB_PROXY

—

Proxy URL for both HTTP and the browser, e.g. http://user:pass@host:3128

WB_MIN_INTERVAL

3.0

Seconds between storefront API calls (search, cards). WB throttles hard; lower values get 429s

WB_CACHE_DIR

~/.cache/wildberries-mcp

Where the anti-bot session is kept

WB_HEADLESS

1

0 shows the browser window while minting the token (debugging)

WB_ACCOUNT

—

1 enables the account mode (cart, wallet price) — see below

Account mode (optional): cart and your WB Wallet price

Off by default; enable it with WB_ACCOUNT=1. It adds:

Tool

What it does

account_login()

Opens a browser window on this computer; you sign in to Wildberries yourself

account_status()

Whether an account is connected, until when, its delivery region and WB Wallet discount

account_logout()

Deletes the local session and browser profile

get_cart()

Your cart with live prices, sizes, stock, totals; sold-out and removed items are marked

add_to_cart(article, size, quantity)

Puts an item into your real cart; quantity is the resulting amount (WB sets it, it does not add up)

remove_from_cart(article, size)

Removes an item (or one size) from your cart

get_product and compare_products also get price_with_wallet_rub.

Logging in. Run wildberries-mcp login in a terminal (or call account_login). A Chromium window opens on the WB login page; you type your phone number and the code into the site yourself — they never pass through the MCP client or the model. The server then copies only the access token, the device id, the delivery region and the wallet discount out of the browser profile. The token lasts about 30 days and is renewed automatically from the saved profile. wildberries-mcp status / wildberries-mcp logout manage the session.

What is stored. ~/.cache/wildberries-mcp/account.json (permissions 0600) and the browser profile next to it. The token gives full access to your account; treat the directory like a password. logout deletes both locally; to end the session on WB's side too, use "log out on all devices" in your account.

What it does not do. No ordering, payment or address changes — by design. Cart tools are marked as write operations, so MCP clients ask before running them, and the server instructions tell the agent to change the cart only when you ask. Every cart change is verified by re-reading the cart.

About "personal prices". On the live site the base price for a logged-in buyer was the same as for an anonymous one; the personal difference is the WB Wallet discount (the account in testing had 3 %, an anonymous visitor about 2 %). price_with_wallet_rub applies your discount — an estimate of what the site shows when paying with WB Wallet.

Automated actions on a personal account can attract WB's anti-fraud checks; use the cart tools for occasional, user-requested changes.

What the numbers mean

  • Prices are what an anonymous buyer sees in the reported region right now. With WB Wallet the site shows a few percent less; the account mode reports your own wallet price.

  • delivery_eta_hours is WB's estimate for the region (the site turns the same numbers into a date).

  • Ratings: rating/reviews are per article, as shown on the product page. group fields describe the whole merged product group. The star split from the review feed can cover fewer ratings than the card counts — the server says so when it happens.

  • Review photos: WB does not link photos to individual reviews, so no per-review photo count is reported (rather than a misleading 0).

  • Price history holds weekly averages; the last point is not the current price.

Limitations

  • Unofficial: relies on the storefront's internal endpoints, which WB can change at any time. Parsers are isolated in parse.py and covered by tests on recorded responses.

  • WB blocks many foreign, VPN and datacenter IPs. Use a Russian residential IP or WB_PROXY.

  • Search is rate-limited by WB; the server spaces calls and reports a clear error instead of looping.

  • Anonymous and read-only by default; the optional account mode can change the cart but never orders or pays.

Roadmap

  • Delivery date for your exact pickup point in cart and product answers.

  • Checkout, payment and address changes are deliberately out of scope.

Development

uv venv && uv pip install -e '.[dev]'
.venv/bin/pytest            # offline tests on recorded responses
.venv/bin/pytest -m live    # end-to-end over MCP stdio against live WB (Russian IP)

Disclaimer & credits

Not affiliated with Wildberries. Intended for personal price research; respect Wildberries' terms of use and keep request rates low. The idea of exposing WB as MCP tools was inspired by shndo1337/wildberries-mcp; this is an independent implementation.

License: MIT.

Available Tools

5 tools
compare_productsA
Read-onlyIdempotent

Live side-by-side offers for up to 50 articles in one request.

Per article: price, pre-discount price, discount, per-article rating and reviews, stock, seller and rating, delivery estimate. Articles WB has no offer for (removed or sold out in this region) are listed with a reason.

Inputs: articles (required). Returns: object

get_price_historyA
Read-onlyIdempotent

Weekly average prices WB keeps for an article, next to the live price.

Each point is WB's average price for one week (stamped with a date); weeks without data are absent. The last point is not the current price — use current_price_rub. With 0–1 points no trend can be claimed.

Inputs: article (required). Returns: object

get_productA
Read-onlyIdempotent

Full, live product card for one article.

Returns the current price (per size), stock, delivery estimate, seller with its legal entity, the article's own rating with star distribution next to the merged group rating, seller-filled characteristics, description, package contents, a weekly price-history summary and — optionally — the other articles merged into the same product group with their live prices.

Inputs: article (required), include_variants. Returns: object

get_reviewsA
Read-onlyIdempotent

Buyer reviews with date, stars, text, pros, cons, bought variant and seller reply.

Also returns the star split of this article's ratings found in the review feed and the merged group's rating, so it is clear which one a headline number refers to. The feed lists reviews that have text and may hold fewer ratings than the card counts — the card rating (get_product) is the one shown on the site.

Inputs: article (required), sort, limit, scope, +2 more. Returns: object

search_productsA
Read-onlyIdempotent

Search Wildberries like the site does: real pages, sorting and a price window.

Each item has the live price (and pre-discount price), per-article rating and review count, stock, seller with its rating, WB's delivery estimate in hours for the region, and the product-group id. Fields without data are omitted (no rating = no reviews yet); in_stock_qty 0 means sold out. total_found is how many products WB matched; has_more tells whether another page exists. Search prices come from the result feed — confirm finalists with get_product.

Inputs: query (required), page, sort, limit, +2 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 5 tools

    Disambiguation4/5

    Each tool has a clear primary purpose (fetch one product, search, history, reviews, compare), but get_product and compare_products overlap for a single article, and get_reviews vs get_product both surface rating info. Descriptions clarify the differences, so ambiguity is low but not zero.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern: get_product, search_products, get_price_history, get_reviews, compare_products. The verbs (get, search, compare) and nouns are clear and uniform.

    Tool Count5/5

    5 tools is well-scoped for a read-only product data server. Each tool addresses a distinct need—single product detail, search, price history, reviews, and multi-product comparison—without unnecessary duplication or bloat.

    Completeness5/5

    For a marketplace data retrieval server, the tool set covers the core workflows: finding products, deep-diving a product, checking price trends, reading reviews, and comparing offers. No obvious gaps for the stated purpose; it's read-only so CRUD operations are not expected.

    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
      Not graded
      quality
      B
      maintenance
      Lets AI agents read and query Wildberries, Ozon, and Yandex Market seller accounts through unified typed tools, with multi-account support, rate limiting, and encrypted credentials.
      MIT