Skip to main content
Glama
Yandex Lavka Uzbekistan MCP
by d3d0n

What is it

An MCP server for Yandex Lavka in Uzbekistan. Connect it to Claude, Codex, OpenCode or any other MCP client, and your assistant can find groceries, fill the cart and place the order for you.

You sign in once by scanning a QR code in the Yandex app. Everything runs on your computer.


Related MCP server: wegmans-mcp

Stuff you do with it

  • Say where once. "Deliver home" — the assistant picks your saved address and remembers it next time.

  • Ask what's on the shelf. "Is there milk at Chilonzor?" — milk and its price at your Lavka.

  • Shopping list in one message. "Milk, bread, six eggs" — all of it lands in the cart in one go. It takes what you bought before; for anything new it shows the options and asks which one.

  • Browse the shelves. "What's in the dairy section?" — categories and shelves with prices, like in the app.

  • Same as last time. "Repeat my last order" — everything from your last order goes back into the cart at today's prices, minus what's sold out.

  • Read the label. "How many calories are in this bread?" — calories, protein, fat, carbs, ingredients and shelf life from the product card.

  • Say yes. The assistant shows address, items, total and card; you agree, the order goes out, and if the bank wants 3-D Secure you get the link.

  • Check on orders. "What did I order last time?", "Cancel my order."

  • Peek at Russia and Kazakhstan. Browse the RU and KZ storefronts and search their products.


Three little stories

Sunday restock. You type "repeat my last order, deliver home". Potatoes, chicken, cottage cheese and the rest go back in the cart; the flatbread is sold out today, and the assistant says so. It shows the total, you say "yes", and breakfast is on its way.

Recipe to cart. You paste a plov recipe and say "get everything for four people". The assistant turns it into a list and puts rice, carrots, lamb, oil and cumin in the cart in one request. Where there are several kinds and you haven't bought one before, it asks which; anything out of stock comes back with a suggestion to swap.

Label check. "How many calories are in this bread?" The assistant opens the product card: 240 kcal per 100 g, 7.7 g protein, three days of shelf life.


Works today · Not yet

✅ Works today

🚧 Not yet

Sign in with a QR code from the Yandex app

Live order tracking (courier, ETA)

Your address and card are remembered

Scheduled delivery slots

Product search, catalog by category, product cards with nutrition, shopping lists, cart editing

Order history with items, repeat an order, order details

Order with a chosen card, payment status and 3-D Secure link, cancel an order

Browse the RU and KZ storefronts

Ordering in Russia and Kazakhstan


Getting started

You need uv. Add this to your MCP client:

{
  "mcpServers": {
    "lavka": {
      "command": "uvx",
      "args": ["better-lavka-mcp"]
    }
  }
}

Or with Claude Code: claude mcp add lavka -- uvx better-lavka-mcp.

Ask the assistant to call start_login, scan the QR in the Yandex app, and you're in. Per-client examples (Claude Code, Claude Desktop, OpenCode, Oh My Pi) are in docs/clients.md.

From source:

git clone https://github.com/d3d0n/better-lavka-mcp.git && cd better-lavka-mcp
mise trust && mise install
mise run install   # Python 3.12 + deps from uv.lock
mise run test      # offline suite, no network, no money

Then point the client at /absolute/path/to/better-lavka-mcp/.venv/bin/better-lavka-mcp.

Uninstall: uvx better-lavka-mcp uninstall deletes the sign-in, remembered address and card, and everything else the server stored, then prints how to remove the client entry and the package.

Settings:

  • YANDEX_LAVKA_REGION — startup country: UZ (default), RU or KZ. select_country changes it for this process only.

  • YANDEX_SESSION_FILE — where the session cookies live.

  • BETTER_LAVKA_MCP_OUTPUT=json — tools return raw JSON instead of the default short text. The text says what happened, lists the data, and tells the assistant what to do next; JSON is handy for scripts and debugging.

Products, orders and categories show up as short ids like amber fox wave instead of 44-character hex — about 5 tokens instead of 23. The same product always gets the same words, and tools accept either form.


Tools

Twenty-six tools with plain verb + noun names, so the assistant picks the right one on the first try.

Tool

What it does

use_address

Pick the delivery address by its saved name ("Home", "Work"); remembered next time

search_products

Find products and prices

list_categories

The catalog: groups and categories

get_category_products

Shelves and products in one category

get_product

Product card: price, pack, nutrition, ingredients, shelf life

add_to_cart

Add a whole shopping list in one go

repeat_order

Put a past order back into the cart

get_cart

What's in the cart, delivery and total

set_cart_quantity

Change or remove one item

preview_order

Address, card, items and total before ordering

submit_order

Place the order

get_payment_status

Payment status and 3-D Secure link

list_order_history

Past orders with their items

get_order

One past order in full

cancel_order

Cancel an order

list_active_orders

Whether any orders are currently tracked

list_saved_addresses

Your saved addresses

list_saved_cards

Your saved cards

start_login · get_login_status · cancel_login

Sign in with a QR code

search_addresses

Find an address by text

count_saved_addresses

How many addresses are saved

get_storefront_status

Is Lavka open, delivery time

select_country

Switch between UZ, RU and KZ

reconcile_order_attempt

Unblock ordering after a dropped connection


Under the hood

flowchart LR
  C[MCP client] -- stdio --> S[server.py<br>tools · country gate]
  S --> A[auth/<br>QR login]
  S --> K[cart · payment]
  S --> R[region.py<br>RU/KZ anonymous]
  S --> O[orders/<br>preview · guard · submit · cancel]
  O --> DB[(SQLite<br>tokens · guard)]
  A --> F[(session file)]
  K & O & R --> L[Lavka web API]

Session and order state live under ~/.local/share/yandex-lavka-mcp/.

src/better_lavka_mcp/

  • server.py — the tools

  • auth/ — QR sign-in

  • cart.py, payment.py, region.py — cart, saved cards, RU/KZ storefronts

  • orders/ — preview, submit, cancel, tracking

  • constants.py, errors.py — shared bits


What it is not

  • Not official. Not affiliated with or endorsed by Yandex. The API is undocumented and may change.

  • Not a payment processor. It never sees full card numbers.


Available Tools

21 tools
active_ordersA

Read the active tracking feed; an empty feed is not order history or reconciliation.

Inputs: no named parameters.

cancel_orderB

Cancel the exact order once only after explicit user confirmation. Refund status is unknown.

Inputs: order_id (required), explicit_confirmation (required).

checkout_previewB

Read a cart quote only; no address/card selection, confirmation, order or payment.

Inputs: latitude (required), longitude (required).

delivery_locationB

Choose coordinates for subsequent calls; no account or server state is changed.

Inputs: country (required), latitude (required), longitude (required).

detect_delivery_locationC

Use a single saved favorite or explicitly indexed favorite; coordinates are private.

Inputs: country (required), address_index.

get_cartB

Read the cart for these coordinates; does not select an address.

Inputs: latitude (required), longitude (required).

login_startA

Start login and return a QR image plus its short-lived link. Share only with the intended user; client logs may contain the link. Set replace_existing only with approval.

Inputs: replace_existing.

order_historyC

Read authenticated order history; older_than is a timezone-aware ISO timestamp.

Inputs: count, older_than.

order_previewA

Stage an exact checkout preview for a saved-address index and four-digit card suffix. Not an order.

Inputs: card_suffix (required), address_index (required).

qr_login_cancelA

Cancel pending login and delete its QR image, regardless of selected region.

Inputs: no named parameters.

qr_login_statusA

Poll QR login and verify Lavka session; never reveals credentials.

Inputs: no named parameters.

reconcile_checkoutA

Acknowledge an uncertain checkout after checking official history and payment. This cannot rule out delayed processing or duplicates; never retries or places an order.

Inputs: history_checked (required), payment_checked (required), explicit_confirmation (required), no_request_in_progress (required), +1 more.

saved_address_countA

Count saved favorite addresses without exposing their details.

Inputs: no named parameters.

saved_addressesA

List saved addresses with selection indexes; includes private address details.

Inputs: no named parameters.

saved_cardsA

List available saved cards by masked suffix only; this does not select one.

Inputs: latitude (required), longitude (required).

search_productsC

Search at supplied coordinates. RU/KZ use isolated anonymous storefronts; UZ uses the existing session.

Inputs: query (required), limit, country, latitude, +1 more.

select_regionB

Select the region for this stdio server session; does not place orders.

Inputs: country (required).

service_statusC

Get homepage storefront status. Does not confirm a specific address.

Inputs: country.

set_cart_itemB

Change cart item to an absolute quantity (0 removes). Explicit cart write; price must be from current search. Never retries ambiguous writes.

Inputs: price (required), latitude (required), quantity (required), longitude (required), +1 more.

submit_orderA

Place one paid order only after explicit user confirmation of the exact preview; never retries. Outcomes may be uncertain.

Inputs: preview_token (required), confirmed_total_uzs (required), explicit_confirmation (required).

suggest_addressC

Suggest addresses; never changes the account's delivery address.

Inputs: query (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 21 tools

    Disambiguation4/5

    Most tools target distinct lifecycle steps, but several pairs blur: checkout_preview vs order_preview, get_cart vs checkout_preview, and delivery_location vs detect_delivery_location. Detailed descriptions resolve these for a careful agent, but the names alone are not fully distinct.

    Naming Consistency3/5

    All names use snake_case, but the convention is mixed: verb-first names such as submit_order, get_cart, and search_products coexist with noun-first names such as order_preview, saved_addresses, and qr_login_status. The pattern is readable but not predictable.

    Tool Count3/5

    At 21 tools, the surface is on the heavy side for a grocery-ordering MCP. The multi-step flow justifies many operations, but tools like saved_address_count and the separate location-detection tools feel consolidatable, making the count borderline rather than clearly well-scoped.

    Completeness4/5

    Coverage is strong across authentication, region/location, saved addresses, cards, product search, cart, checkout preview, order submission, cancellation, reconciliation, and order history. Minor gaps remain around saved-address/card management and order-detail retrieval, but core workflows have no obvious dead ends.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables users to search grocery products and stores, manage a cart, sync purchase history, and predict needed items through MCP tools. It also stores food preferences as server instructions so connected agents can respect them automatically.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables product search and authenticated grocery shopping-list management, including adding items, setting quantities, removing items, emptying the list, and reading purchase history.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP-capable clients to sign in with OAuth and perform purchaser tasks such as browsing catalogues, checking inventory, managing stocktakes and recipes, drafting requisitions, updating buy lists, exporting reports, and processing invoices. It also supports supplier access for listing and inspecting connections, catalogues, products, purchase orders, invoices, and entitled reports.
      MIT