citilink-mcp
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., "@citilink-mcp Search for iPhone 16 128GB in Moscow and show the lowest price."
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.
citilink-mcp
English · Русский
An MCP server that gives LLM agents live, honestly-labelled data from Citilink, a large Russian electronics and appliance retailer: search with real pages, sorting, price windows and availability filters; full product cards for a chosen city; the product's own rating next to its variant group's; Citilink's stores and pickup points; reviews; questions and answers; markdown (used / damaged) units.
Plain HTTP to the site's own GraphQL endpoint — no browser, no account.
Why this server
Citilink's data is easy to fetch and easy to misread. This server is built around not passing on numbers that are not what a buyer in your city sees:
Citilink pitfall | What this server does |
The city lives in a "sticky" cookie; a stale or bogus value silently gives Moscow prices | Sets the city on every request and checks the city Citilink says it answered for; an answer for another city is retried once, then refused |
Price, club price, strikethrough price, assortment, stock and delivery differ by city | Every answer carries |
The API holds a club price even when the site hides it ( | The club price is returned only when the site shows it, and always labelled as conditional (signed-in Club members) |
An empty price string ( |
|
Bonus points ("До 537 бонусов") look like a discount | Returned separately as points for future purchases; never subtracted |
Items sold only in boxes: the site's big number is |
|
Search tiles and the card header show the rating of the whole variant group (1, 2 and 4 TB together) |
|
"Pickup from 1560 stores" — 1548 of them are partner outlets across several regions, some with a paid fee | Citilink's own stores and pickup points listed with dates; partner points only as a labelled summary with the paid count and fee range |
| Pages are always 48; |
A numeric sort id is silently ignored (relevance stays) | Sorts are sent by slug; the server checks the sort, price window, availability and category Citilink says it applied and refuses an answer that ignored them |
An unknown id silently disappears from a batch; an over-long one wipes out the whole batch | Ids are validated first; unknown ones are listed in |
In group mode every review is flagged | Reviews say which other variant they are about ( |
A star filter recomputes the review summary (a 4.9 product shows 3.8) | Headline ratings in |
Reviews imported from Yandex Market sit among Citilink's own | Each review has |
Dates come as midnight UTC | Returned as calendar dates ( |
Citilink's own anti-bot challenge (HTTP 429 + JS page) now shows up on the API too | Solved in Python once per call (no 512 MB allocation), the cookie is kept for its hour; a repeated challenge is an error, not a loop |
GraphQL answers can carry data and errors at once | Data is kept, failed fields are listed in |
Related MCP server: wildberries-mcp
Tools
Tool | What it returns |
| 48 items per page; sort |
| Everything above plus payment terms (prepayment, loan, instalment), star split for the product and its group, Citilink's review digest, part number ( |
| Date, stars, pros, cons, text, variant, source, votes; |
| Questions with their answers as threads; answers by Citilink experts and brand representatives are marked; no author names |
| Markdown / used units of a category or of one product: price, reason, completeness, wear, damage, warranty, the new product's id, pickup date |
| Up to 20 products side by side in one request, with |
| City ids from Citilink's directory (8,465 cities), e.g. |
product accepts an id (1896626), a markdown id (M00295786) or a product URL.
city accepts an id (ekat_cl, ekat_cl:5x0029236) or a name (Екатеринбург, Кировск, Мурманская).
Requirements
Measured on Linux (CachyOS, Python 3.12, a home connection in Russia):
Python | ≥ 3.10, with uv (or pip). Dependencies: |
Browser | Not needed. No Playwright, no Chromium |
Docker | Not needed |
Display | Not needed |
Memory | ≈ 73 MB resident when idle, ≈ 84 MB peak after a 48-item search and a full card |
Cold start | 0.5 s from launch to the tool list with |
Disk | ≈ 40 MB for the uv environment; ≈ 1.2 MB cache ( |
Request time | 0.1–1.1 s per request to Citilink (a 48-item search 0.7–1.1 s, once 2.9 s; a full card 0.2–0.7 s; reviews and questions 0.1–0.3 s), plus the 2.5 s spacing between requests |
Network | A Russian IP. From a home IP everything works; a third-party report says datacenter IPs get HTTP 429 for the whole domain (not verified here). Use |
Install
Claude Code:
claude mcp add citilink -- uvx --from git+https://github.com/SZhukovWork/citilink-mcp citilink-mcpAny MCP client (claude_desktop_config.json, .mcp.json, …):
{
"mcpServers": {
"citilink": {
"command": "uvx",
"args": ["--from", "git+https://github.com/SZhukovWork/citilink-mcp", "citilink-mcp"]
}
}
}From a checkout: uv venv && uv pip install -e . && .venv/bin/citilink-mcp
(or uvx --from /path/to/citilink-mcp citilink-mcp).
Configuration (environment variables)
Variable | Default | Meaning |
|
| Default city: an id or a name ( |
|
| Seconds between requests to Citilink (plus up to 0.5 s jitter). Calls from parallel agents queue up |
| — | Proxy URL, e.g. |
|
| City directory (refreshed weekly) and session cookies (file mode 0600, directory 0700) |
What the numbers mean
price_rub— the regular price anyone sees on the site without signing in, in the city fromcity.nullwithprice_note: Citilink does not sell the item there now.old_price_rub,discount_percent— the strikethrough price and the discount the site shows; absent when there is none.club_price_rub— the Citilink Club price, applied at checkout to orders placed signed in with a Club card (the card comes with a free registration). Conditional, so never a replacement forprice_rub. Returned only when the site shows it (display typePRICE_IN_RUB, checked against the rendered page); theDIFF_IN_RUB/DIFF_IN_PERCENT/WANT_TO_KNOWdisplay types follow the site's render code and are marked "not seen live".bonuses— Club points for future purchases:base(entry status),extra_for_sbp_payment(paying via SBP),site_shows_up_to(the «До N бонусов» figure). Not a discount on this item.lot— the item is sold only in lots. The site's big number is the lot price (checked on the page: «3050 ₽ · 305 ₽×10 шт. в коробке · Клубная цена 2430 ₽ · До 50 бонусов»);price_rubstays per unit.promo_codes— badges such as «Промокод ИГРАЙ −2000₽»: typed in at checkout, not verified and not subtracted.payment.credit/installment— loan terms, not prices.prepayment_required— the site demands payment in advance («Предоплата»).Ratings —
rating.this_productis the product's own reviews (the site's «Этот вариант товара» tab);group/group_shown_on_site/shown_on_cardcover all variants of the group (the site's default «Все отзывы» and the number on tiles). A product without variants is its own group.nullrating = no reviews yet.site_review_digestis Citilink's machine-written summary.Availability —
units_in_city_stores: units on the shelves of Citilink stores in the city's delivery area right now (">50"is the site's own wording). 0 does not rule out pickup today: items also come from the warehouse.pickup/pickup_earliest_date: dates the item can be collected.own_stores: Citilink's own stores and pickup points with dates andunits_in_store_now.partner_points: other companies' outlets across Citilink's delivery area (several regions),paid_countof them charge a fee.courier: "from" price and date for the city; the final fee depends on the address.Markdown — ids starting with
M, names ending with «(Б/У)»: used or damaged units.condition/markdownquote Citilink: reason, completeness, wear, damage, warranty (often 1 month).original_product_idis the new item.
Limitations
Unofficial. It uses the storefront's internal GraphQL API, which Citilink can change at any time. Queries are minimal and every field was checked live; a changed schema produces a clear
SchemaChangederror naming the field.Anonymous prices only. Personal prices, closed promotions and your own bonus rate need a signed-in account; the server never signs in. Whether the club price is exactly what checkout charges was not verified.
No price history, no sellers, no barcodes. Citilink has no public price history, sells its own stock (no marketplace sellers) and does not publish EAN codes in its characteristics;
mpn(part number) andmodelare there.Promo codes are shown as badges only; their terms are Citilink's.
Unverified display types.
DIFF_*/WANT_TO_KNOWclub-price display types were not seen live; their labels follow the site's code.Search facets are Citilink's.
availability=in_store_nowis the site's «Забрать через 5 минут» filter and can include items with 0 units on shelves;total_foundcan exceed the category facet count (it seems to count unavailable items too).Anti-bot. Citilink's JS challenge is solved in Python; if its layout changes the server says so instead of guessing. Datacenter and VPN IPs may be refused (HTTP 403/429).
Throttling. Requests are serialised and spaced; on a rate-limit error the server pauses once and then reports it — wait minutes, do not loop.
If Citilink starts requiring x-ad-mark
The site's own GraphQL client (a Rust/WASM module) adds an x-ad-mark header
to every request. Citilink does not check it today. If it starts to, the
server answers «Ситилинк начал требовать подпись запроса (x-ad-mark); нужен
запасной путь из README» with the HTTP status. Planned fallbacks:
Run the site's
graphql_bg.wasmin Node with small shims — its imports are onlyfetch,getRandomValues,location.origin,HeadersandJSON.stringify, so no browser is needed.As in ozon-mcp: a long-lived headless page that calls the site's own client (≈ 1.3–1.8 GB RAM for Chromium, ≈ 1 s per navigation).
Roadmap
Optional account mode (your personal prices, your club price and bonus rate) and the cart — later.
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 answers
.venv/bin/pytest -m live # end-to-end over MCP stdio against live citilink.ru (11–12 requests, ~35 s)Parsers are pure functions in parse.py; the request policy is analyse() in
client.py; GraphQL documents are in queries.py. Fixtures in
tests/fixtures/ are real answers recorded once: a test checks that the JSON
ones hold no author names, cookies or page HTML, and the recorded anti-bot
challenge page has its cookie chunks replaced with dummies.
Disclaimer
Not affiliated with Citilink. An unofficial client of the site's internal API for personal price research: keep request rates human (the default spacing is 2.5 s) and respect Citilink's terms of use.
License: MIT.
Available Tools
7 toolscompare_productsARead-onlyIdempotent
Up to 20 products side by side for one city, in one request.
Per product: regular price and the other labelled prices, the product's own
rating next to the group rating the site shows, units in the area's stores,
earliest pickup date, courier fee and date, badges and promo codes.
Ids Citilink does not know are listed in not_found; malformed ones in
invalid.
Inputs: products (required), city. Returns: object
find_markdownARead-onlyIdempotent
Markdown and used units («Уценка», "(Б/У)") in a city: by category, or copies of one product.
Per item: price, strikethrough price, why it is marked down, completeness, wear, damage, warranty (often 1 month), the id of the new product, units in the area's stores and the earliest pickup date. Store-level detail: get_product with the M-id. Plain search rarely shows these items.
Inputs: city, page, sort, product, +1 more. Returns: object
get_productARead-onlyIdempotent
Full live card of one product for a city.
Prices with labels (regular, strikethrough, club price only when shown on
the site, bonuses, lot), payment terms, the product's own rating with star
split next to the variant-group rating the header shows, Citilink's review
digest, manufacturer part number (mpn), model, warranty, country,
variants (capacity/colour) with their ids, courier dates and fees, pickup
dates, Citilink's own stores and pickup points, partner points (summary),
markdown condition for used items, badges, promo codes and promotions.
Inputs: product (required), city, include_specs, include_stores. Returns: object
get_questionsARead-onlyIdempotent
Customer questions with their answers («Вопрос-ответ»), grouped into threads.
Answers are marked when written by a Citilink expert or a brand representative, and when the author bought the product. Author names are never returned.
Inputs: product (required), page, sort, limit. Returns: object
get_reviewsARead-onlyIdempotent
Customer reviews: date, stars, pros, cons, text, which variant was bought, source, votes.
Also returns the product's own rating and its group's rating (both
unfiltered), so it is clear what a headline number covers. source
YAMARKET marks reviews Citilink imported from Yandex Market.
Inputs: product (required), page, sort, limit, +2 more. Returns: object
resolve_cityARead-onlyIdempotent
Look up Citilink city ids by name (Citilink's own directory, cached for a week).
Use an id as city in the other tools. delivery_area is Citilink's
area the city belongs to (stores and stock are shared inside an area).
Inputs: name (required). Returns: object
search_productsARead-onlyIdempotent
Search Citilink like the site does: pages of 48, sorting, price window, category, availability.
Per item: regular price (null = not sold in the city), strikethrough price,
club price only when the site shows it, bonuses (not a discount), lot size
when sold in lots, the product's own rating next to the group rating the
site shows, units in the area's stores, earliest pickup date, badges and
promo codes, markdown flag. total_found is Citilink's match count;
has_more whether another page exists; categories lists categories of
the matches (use an id as category_id, a slug with find_markdown);
price_range_rub is the site's price-filter span for the query (handy
for cutting price windows).
Inputs: query (required), city, page, sort, +5 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose: search, product details, reviews, questions, markdown, comparison, and city resolution. No two tools overlap in functionality, making misselection unlikely.
All tool names follow a consistent verb_noun snake_case pattern (get_questions, search_products, get_product, get_reviews, find_markdown, compare_products, resolve_city). The naming is uniform and predictable.
With 7 tools, the set is well-scoped for a product information and search server. Each tool covers a distinct aspect of the domain without redundancy or bloat.
The surface covers core workflows: searching, viewing details, reviews, Q&A, markdown items, comparisons, and city resolution. Minor gaps exist (e.g., no explicit category listing or promotions tool), but search returns categories and badges/promos are included in product details, so agents can work around them.
Maintenance
Related MCP Connectors
Agent-native product catalog: 300M+ products, 150,000+ stores, deliver_to ranking.
AI-agent product catalog: search, lookup & purchase routing over verified merchant data.
Verify live product price, currency, stock, variants and published shipping evidence for AI agents.
Product search for AI shopping agents: prices and buy links from big retailers. No key needed.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides grocery price and nutritional information search capabilities, allowing AI agents to search for food products, compare prices, and analyze nutritional content across different grocery stores.1-
- AlicenseAqualityBmaintenanceEnables LLM agents to query live Wildberries marketplace data — product search with pages, sorting, price filters, per-article ratings and reviews, weekly price history, and seller legal details — with honest, sanity-checked answers and automatic anti-bot handling.5MIT
- AlicenseAqualityCmaintenanceEnables LLM agents to retrieve live, accurately-labelled product data from Ozon's public storefront, including search with pagination and sorting, all price variants, delivery dates, seller legal details, variants, and SKU-specific ratings and reviews, all without an Ozon account.41MIT
- AlicenseAqualityCmaintenanceEnables LLM agents to retrieve live, accurately labeled data from DNS (dns-shop.ru) — city-specific pricing, product search with filters, ratings, reviews, store stock, and price history — while avoiding common data misinterpretations.51MIT