Skip to main content Switch to mobile version better-lavka-mcp 0.5.2 MCP server for ordering groceries from Yandex Lavka Uzbekistan with an AI assistant
pip install better-lavka-mcp==0.5.2 Copy PIP instructions
Groceries from Yandex Lavka Uzbekistan, ordered by your AI assistant.
Sign in · Checkout · Clients · Security · Contributing · GPL-3.0
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.
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.
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.
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.
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.
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.
Twenty-six tools with plain verb + noun names, so the assistant picks the right one on the first try.
flowchart LR C[MCP client] -- stdio --> S[server.py
tools · country gate] S --> A[auth/
QR login] S --> K[cart · payment] S --> R[region.py
RU/KZ anonymous] S --> O[orders/
preview · guard · submit · cancel] O --> DB[(SQLite
tokens · guard)] A --> F[(session file)] K & O & R --> L[Lavka web API] Session and order state live under ~/.local/share/yandex-lavka-mcp/.
cart.py, payment.py, region.py — cart, saved cards, RU/KZ storefronts
orders/ — preview, submit, cancel, tracking
constants.py, errors.py — shared bits
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
Both files in this release have provenance metadata.
GPL-3.0-only View SPDX License List
mcp model-context-protocol yandex lavka uzbekistan groceries
Programming Language Python :: 3
Release files for better-lavka-mcp 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 163.3 kB
Release files / better_lavka_mcp-0.5.2.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Release files / better_lavka_mcp-0.5.2-py3-none-any.whl
Security for better-lavka-mcp 0.5.2
Both files in this release have been uploaded with provenance metadata.
With provenance better_lavka_mcp-0.5.2.tar.gz Nov 23, 2026
Attestation for better_lavka_mcp-0.5.2.tar.gz
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 24, 2026 2 release files Full provenance
Nov 23, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




