yandex-lavka-mcp — Claude Code MCP server: order Yandex Lavka
Hands your assistant the Lavka catalog, cart and checkout, running on your own browser session. No charge happens until you confirm a previewed total.
claude mcp add yandex-lavka-mcp -- uvx yandex-lavka-mcpWhat yandex-lavka-mcp does
Yandex Lavka has no public API, so this server talks to the private web API behind lavka.yandex.ru using your cookies. Log in at the site first, then get the session into ~/.config/yandex-lavka-mcp/config.json: import_cookies.py takes a Cookie header copied from DevTools, and on macOS a separate script pulls cookies out of Chrome. Sessions expire, and once calls fail with an authorization error you have to import them again.
Delivery location scopes everything — catalog, prices, cart. Pick a saved address by name or type any address with its city; until a point is set, product search returns nothing. Tools cover catalog search, product details with nutrition per 100 g and per portion, quantity edits, cart totals, saved cards, live orders and history.
Spending is gated. checkout_preview lays out items, subtotal, discount, delivery, ETA and total without touching your card. confirm_order refuses unless a preview was just run and you echo back its exact total; editing the cart makes that preview void. Banks that demand 3-D Secure will not settle a headless charge — you get a redirect link to finish payment yourself. It is unofficial and rides a private API, so expect breakage, and Lavka's terms likely forbid this route.
What it helps with
- Search the catalog for a specific delivery address
- Build a cart and fix item quantities
- See the full order total before paying
- Check saved cards and track active orders
- Cancel an order by its id
Example prompts for the agent
- Run
lavka_statusand tell me which delivery point is currently set - Find milk and buckwheat in the catalog and put one of each in the cart
- Do a
checkout_previewand show me the total without ordering
How to install yandex-lavka-mcp
Platform CLI
claude mcp add yandex-lavka-mcp -- uvx yandex-lavka-mcpuvx runs the command named after the package; if the README names another one, use uvx --from yandex-lavka-mcp <command>
Platform CLI
codex mcp add yandex-lavka-mcp -- uvx yandex-lavka-mcpuvx runs the command named after the package; if the README names another one, use uvx --from yandex-lavka-mcp <command>
Config file
{
"mcpServers": {
"yandex-lavka-mcp": {
"command": "uvx",
"args": [
"yandex-lavka-mcp"
]
}
}
}uvx runs the command named after the package; if the README names another one, use uvx --from yandex-lavka-mcp <command>
Config file
{
"servers": {
"yandex-lavka-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"yandex-lavka-mcp"
]
}
}
}uvx runs the command named after the package; if the README names another one, use uvx --from yandex-lavka-mcp <command>
Platform CLI
gemini mcp add yandex-lavka-mcp uvx yandex-lavka-mcpuvx runs the command named after the package; if the README names another one, use uvx --from yandex-lavka-mcp <command>
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about yandex-lavka-mcp
How do I install yandex-lavka-mcp in Claude Code?
Run claude mcp add yandex-lavka-mcp -- uvx yandex-lavka-mcp. Import your Lavka cookies into the config and set a delivery point before the first call.
What does yandex-lavka-mcp do?
It exposes Lavka tools to the assistant: catalog search, cart changes, checkout preview, card payment and cancellation. Everything runs under your own logged-in session.
Can it place an order by accident?
No. confirm_order needs a fresh checkout_preview and the exact total it returned, and any cart edit invalidates that preview.