Skip to main content
Glama

atb-mcp

Unofficial Model Context Protocol (MCP) server for ATB Market (Ukraine), powered by atb-api. Gives Claude and other AI assistants fast search across ATB stores, normalized UAH/kg unit prices, promo campaigns, cart management, pickup slot previews, and order history using pure HTTP (~40 MB RAM).

Educational & Community Wrapper Built as an unofficial integration over ATB's mobile APIs (curl_cffi TLS impersonation + OIDC PKCE). Upstream API changes or Cloudflare rule updates can break calls at any time; tools surface explicit HTTP/auth errors gracefully. Pickup checkout (submit_pickup_order) and cancellation (cancel_order) default to staging/preview (confirm_purchase=False) and refuse to mutate real orders without explicit confirmation flags.

Tools

Tool

Purpose

Auth Required

search_products

Search ATB inventory via multisearch with price, UAH/kg or UAH/L unit cost, badges, and stock (md, html, json)

No (shop_id needed)

search_multi

Search up to 20 items concurrently in one call for cross-store price comparison

No (shop_id needed)

browse_categories

Inspect ATB's category tree or list items inside a category with ATB Card prices

No (city_id + shop_id)

get_product

Fetch extended item info (inStockQuantity, cardPrice, old/new price, unit text)

No

get_promos

List active ATB promotional campaigns for a store

No

find_shops

Search ATB stores by city/street or list pickup shops in a city_id

No

set_pickup_shop

Pin city_id / shop_id locally and sync active server self-pickup location

Yes (for server sync)

manage_cart

View, add, update (quantity=0 removes), or clear the live ATB shopping cart

Yes

preview_checkout_and_slots

Preview cart checkout metadata (if_no_product, cash paymethod), profile readiness, and slots

Yes

submit_pickup_order

Stage or submit ATB store pickup (paymethod="cash" / Оплата в магазині) behind confirm_purchase=True

Yes

get_orders_and_receipts

Read active/completed orders (with Ukrainian status labels + pickup codes) and e-receipts

Yes

cancel_order

Inspect ATB cancel reasons or cancel an order behind confirm_cancel=True

Yes

Related MCP server: Rohlik MCP Server

Quick Setup

1. Install

pip install git+https://github.com/ArturLys/atb-mcp.git

2. Configure Claude / MCP Client

{
  "mcpServers": {
    "atb": {
      "command": "atb-mcp",
      "env": {
        "ATB_CITY_ID": "433",
        "ATB_SHOP_ID": "1679"
      }
    }
  }
}

3. Optional Login (for live cart, pickup slots, and orders)

Find your store with atb shops --city ..., then log in once via SMS OTP:

atb set-shop --city-id <CITY_ID> --shop-id <SHOP_ID>
atb login --phone +380XXXXXXXXX

Tokens stay locally in ~/.config/atb/session.json.

Available Tools

12 tools
browse_categoriesC

List ATB category tree, or inspect live items with ATB Card prices inside category_id.

Inputs: page, format, city_id, shop_id, +1 more. Returns: result

cancel_orderC

List ATB cancel reasons or cancel an active order when confirm_cancel=True after approval.

Inputs: text, reason, order_id, confirm_cancel. Returns: result

find_shopsC

Find ATB Market stores by city/street (set pickup_only=True with city_id for pickup locations).

Inputs: city, limit, format, street, +2 more. Returns: result

get_orders_and_receiptsB

Fetch active/completed ATB orders (with status labels and pickup code) and digital receipts.

Inputs: limit, include_receipts. Returns: result

get_productB

Fetch extended details (exact stock, ATB Card price, unit price, origin) by productCode.

Inputs: product_code (required), format, city_id, shop_id. Returns: result

get_promosC

List active ATB promotional campaigns for the selected store.

Inputs: format, city_id, shop_id. Returns: result

manage_cartA

Read, add/update/remove items, or clear the live ATB cart (never places orders).

Inputs: clear, items, action, format, +2 more. Returns: result

preview_checkout_and_slotsC

Preview ATB cart checkout options, payment modes, profile readiness, and pickup slots.

Inputs: day, city_id, shop_id. Returns: result

search_multiC

Search up to 20 ATB items concurrently in one call for fast price comparison.

Inputs: queries (required), shop_id, limit_per_query. Returns: result

search_productsC

Search ATB store products via multisearch with price, UAH/kg unit cost, promo badge, and stock.

Inputs: query (required), page, limit, format, +1 more. Returns: result

set_pickup_shopB

Pin city_id and pickup shop_id in local config and update the live ATB receiving store.

Inputs: city_id (required), shop_id (required). Returns: result

submit_pickup_orderB

Stage or submit ATB store pickup ('Оплата в магазині'). Preview with confirm_purchase=False first.

Inputs: day, note, slot, city_id, +9 more. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 12 tools

    Disambiguation4/5

    Most tools target clearly different resources or lifecycle steps, such as cart management versus checkout preview versus order cancellation. The main overlap is between search_products and search_multi, where single-item versus batch search could be confused, though the descriptions make the distinction reasonably clear.

    Naming Consistency4/5

    The set uses snake_case and mostly follows a verb_noun pattern, making names predictable overall. Minor deviations like search_multi (which omits the searched object) and compound names such as get_orders_and_receipts are still readable but keep it from perfect consistency.

    Tool Count5/5

    Twelve tools is well-scoped for a grocery-store shopping MCP server. The surface is broad enough to cover search, stores, cart, checkout, and orders without feeling bloated.

    Completeness4/5

    The lifecycle is largely covered: product discovery, store/pickup setup, cart management, checkout preview, order submission, receipts, and cancellation. Minor gaps exist around explicit account/profile management and more granular payment/slot inspection outside the checkout preview, but core workflows are supported.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to search the catalog, manage a cart and usual orders, find delivery slots, and handle favorites, shopping lists, past orders, and item remarks through the store's API, with login and payment left to the user on the website.
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to shop groceries across Rohlik Group platforms by searching products, managing carts, analyzing purchase history for personalized suggestions, and accessing account, order, delivery, and discount information.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to search grocery products, manage shopping carts, and access account, order, delivery, and discount information across multiple Rohlik Group online grocery platforms in several European countries.
      -
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to search grocery products, manage shopping carts, and access account and order information across multiple online grocery platforms. It also supports smart shopping suggestions, deals, delivery slots, and order history.
      MIT