better-lavka-mcp
Health Pass
- License — License: GPL-3.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 58 GitHub stars
Code Pass
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Unofficial MCP server for Yandex Lavka Uzbekistan
Better Lavka MCP 🛒
Groceries from Yandex Lavka Uzbekistan, ordered by your AI assistant.
Sign in · Checkout · Clients · Security · Contributing · GPL-3.0
What is this, really?
A local stdio MCP server that talks to the same undocumented web API as lavka.yandex.uz. Connect it to Claude, Codex, OpenCode or any MCP client, and the assistant can search the shelves, fill your cart and place a real order on your real account.
No browser automation, no cookie copy-paste: you sign in by scanning a QR code with the Yandex app. State lives in a private directory on your machine, nowhere else.
Stuff you do with it
- Ask what's on the shelf. «Chilonzorda sut bormi?» — milk and its price at the nearest Lavka.
- Build the cart by talking. «Добавь два кефира и хлеб» — done, and the assistant tells you the new total.
- Order in one sentence. "Order it home, card ending 4242" — the assistant shows the address, items and total.
- Say yes. The order goes out.
- Check on orders. «Покажи прошлые заказы», «отмени заказ».
- Peek at Russia and Kazakhstan. Browse the RU and KZ storefronts and search their products.
Three little stories
Sunday restock. You type «закажи молоко, яйца и хлеб домой, картой 4242». The assistant finds them, fills the cart, shows you the total. You say «да», and breakfast is on its way.
Recipe to cart. You paste a plov recipe and say «собери всё для этого на четверых». Rice, carrots, lamb, oil and cumin land in the cart in the right amounts. Anything out of stock, the assistant tells you and offers a swap.
Same again. «Oxirgi buyurtmalarimni ko‘rsat» The assistant lists your recent orders and answers in Uzbek, because that's how you asked.
Works today · Not yet
| ✅ Works today | 🚧 Not yet |
|---|---|
| Sign in with a QR code from the Yandex app | 3-D Secure confirmation inside the chat |
| Product and address search, cart editing | Scheduled delivery slots |
| Saved addresses and cards, order history | Live order tracking |
| Order to a saved address with a chosen card, cancel an order | |
| Browse the RU and KZ storefronts | Ordering in Russia and Kazakhstan |
Getting started
You need mise and a Unix-like system.
Once:
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 plug it into your client:
{
"mcpServers": {
"lavka": {
"type": "stdio",
"command": "/absolute/path/to/better-lavka-mcp/.venv/bin/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.
Settings:
YANDEX_LAVKA_REGION— startup country:UZ(default),RUorKZ.select_countrychanges it for this process only.YANDEX_SESSION_FILE— where the session cookies live.
Tools
Twenty tools with plain verb + noun names, so the assistant picks the right one on the first try.
| Tool | What it does |
|---|---|
search_products |
Find products and prices |
get_cart |
What's in the cart and the total |
set_cart_quantity |
Add, change or remove an item |
list_saved_addresses |
Your saved addresses |
list_saved_cards |
Your saved cards |
preview_order |
Address, card, items and total before ordering |
submit_order |
Place the order |
cancel_order |
Cancel an order |
list_active_orders |
Whether any orders are currently tracked |
list_order_history |
Past orders |
start_login · get_login_status · cancel_login |
Sign in with a QR code |
search_addresses |
Find an address by text |
get_saved_address_coordinates · check_coordinates |
Turn an address into a delivery point |
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 toolsauth/— QR sign-incart.py,payment.py,region.py— cart, saved cards, RU/KZ storefrontsorders/— preview, submit, cancel, trackingconstants.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.
Unofficial · runs on your machine · GPL-3.0-only
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found