Skip to main content

🛒 okala-mcp

Let your AI agent do the grocery price check on Okala.
Find the supermarkets, bakeries and fruit shops that deliver to your address, compare the same product
across nearby stores, check fees, minimum order and delivery slots, and catch today's deals, from Claude, Cursor or Copilot.

PyPI Python CI MCP Registry License: MIT

Install in Cursor Install in VS Code

Quick start · What it can do · Tools · FAQ · فارسی


Why

On Okala every store sets its own price for the same carton of milk, and each one adds its own service and packaging fee and has its own minimum order. The site shows one store at a time, and there is no search box without logging in. An agent with okala-mcp checks every store that delivers to you in one go:

You: Where is Kalleh lactose-free milk cheapest near Yousef Abad, Tehran?

Agent: calls ok_locate(address="یوسف آباد") → ok_search(query="شیر بدون لاکتوز کاله", ...) → ok_compare(category_slug="low-fat-milk", ...)

Kalleh fat-free, lactose-free milk (1 L) is sold by 17 open stores nearby. Cheapest: یاران دریان گلریز at 147,875 Toman (12% off 169,000), 1.6 km away, first slot today 08-09, plus 10,500 service and 3,000 packaging. The dearest store asks 180,000, so you save 32,125.

Real tool output from 2026-10-07; prices change all the time. Prices are in Toman.

What it can do

  • 📍 Locate an address (Persian) and list the stores that deliver there, with rating, distance, first slot and fees
  • 🔎 Find products near you by name: Okala's own text search after an optional one-time login, otherwise matched to Okala's categories
  • 💸 Compare the same product across every nearby store, cheapest store first, with each store's fees
  • 🏪 Browse one store: a whole department sorted by price or discount, filtered by name
  • 🧾 Product details: price, discount, stock, max per order, brand, images
  • ⏰ Store details: minimum order, whether it serves your address now, every delivery slot of the day
  • ⚡ Deals: today's deal rows near you or in one store, and the biggest discounts of a store
  • 🔒 Read-only by design: no cart, no orders, no reviews posted (the optional login is only used for search)

Quick start

You need uv. No API key or account.

Claude Code
claude mcp add okala -- uvx okala-mcp
Claude Desktop

Settings → Developer → Edit Config, then add:

{
  "mcpServers": {
    "okala": { "command": "uvx", "args": ["okala-mcp"] }
  }
}
Cursor

Click Install in Cursor above, or add the Claude Desktop block to ~/.cursor/mcp.json.

VS Code (Copilot agent mode)

Click Install in VS Code above, or add to .vscode/mcp.json:

{
  "servers": {
    "okala": { "type": "stdio", "command": "uvx", "args": ["okala-mcp"] }
  }
}
Anything else

It's a standard stdio MCP server: run uvx okala-mcp, or pip install okala-mcp and run okala-mcp.

Then just ask:

  • "Which supermarkets near Vanak Square deliver within the hour, and what are their fees?"
  • "Cheapest Kalleh full-fat milk near me, and is that store's minimum order a problem for one carton?"
  • "What deals does store 11009 have today?"
  • ارزان‌ترین تن ماهی نزدیک میدان آرژانتین کدام فروشگاه است؟

How it works

  AI agent  (Claude, Cursor, Copilot, ...)
      │
      │  MCP over stdio
      ▼
  okala-mcp  (runs on your machine)
      │
      │  HTTPS
      └──────▶  apigateway.okala.com   the public JSON API of okala.com

okala-mcp runs locally and calls the same public endpoints the okala.com website uses as a guest. There's no hosted server in between, no API key, and nothing about you is sent anywhere else (only the delivery point you ask about goes to Okala).

Tools

📍 Where and who delivers (4)
Tool What it does
ok_locate Address text → coordinates (candidates) plus the street address of the best hit
ok_stores Stores that deliver to a point: type, rating, distance, first slot, service / packaging / delivery fee
ok_store One store: serves this point?, minimum order, location, every delivery slot with availability
ok_store_reviews Customer reviews of a store: stars, comment, liked / disliked reasons
🔎 Products and prices (6)
Tool What it does
ok_search Products for a query near a point or in one store: Okala's text search when logged in, matching categories as a guest; name matches first, then cheapest
ok_compare The same product across nearby stores, cheapest store first, with each store's fees
ok_store_products A whole category of one store, sorted, filtered by name (search inside one store)
ok_product One product in one store: price, discount, stock, max per order, brand, images
ok_categories Category tree with slugs, near a point or in one store
ok_brands Brand ids and slugs (featured brands, or lookup by slug)
⚡ Deals (2)
Tool What it does
ok_deals Deal rows running now near a point or in one store, with end time and top products
ok_offer One deal row in full, across stores or in one store, sorted and paged
🔑 Optional login (4)
Tool What it does
ok_login Sends an SMS code to the user's phone; asks for the code in a form when the client supports it
ok_login_verify Finishes the login with the code the user typed in the chat
ok_account Logged in or guest, and as which phone (masked)
ok_logout Deletes the saved login; the server continues as a guest

The 12 shopping tools are annotated readOnlyHint: true. ok_login, ok_login_verify and ok_logout are not (they send an SMS or change the saved login), so your client asks before running them. Every tool returns compact structured JSON, so it doesn't flood the agent's context.

Good to know

  • Prices are in Toman. The API speaks Rial; every tool divides by 10. final_price is what you pay, price is before discount, discount_pct is a whole percent.
  • Every store has its own price. A product id is the same item in every store, so ok_compare can line them up.
  • Order cost at one store = items + service fee + packaging fee + delivery fee (ok_stores), and the basket must reach the store's minimum_order (ok_store). One basket = one store.
  • Text search needs a login. Okala only searches for logged-in users. Log in once (see Optional login) and ok_search uses Okala's real search, near you or inside one store (store_id), brands and product names included (نوتلا). As a guest, ok_search matches your words to category names (شیر → milk) and ranks products by name; for one store, ok_store_products with name_contains reads the whole department.
  • Up to 12 products per store come back from the cross-store lists; use a narrower category slug or a brand id for more precise comparisons.
  • Persian works best (شیر کم چرب, پنیر, تن ماهی). Arabic ي / ك and half-spaces are normalized.

FAQ

Can it place an order for me?

No, and that's deliberate. It never touches the cart, order, payment, address or review endpoints, even when logged in. The agent finds the best option; you buy it on okala.com.

Why does ok_search show products that don't match my words?

As a guest (mode: "category"), Okala's text search is not available, so ok_search fetches the categories whose names match your words and puts the products whose names contain your words first. Log in once to get real text search. categories in the reply shows what was used; pass a better slug to ok_compare, or search one store's department with ok_store_products.

It says no store delivers to my point

Okala covers Tehran and some other big cities. Check the coordinates with ok_locate (the first candidate can be a similar name in another district) and try again; ok_stores with open_only: false also shows stores that are closed now.

I get "Could not reach okala.com"

The server retries a dropped connection once. If it still fails, check your internet connection. System proxy variables are ignored on purpose; set OKALA_MCP_PROXY if you need a proxy.

How do I debug what the agent sees?
npx @modelcontextprotocol/inspector uvx okala-mcp

Configuration

Variable Default Meaning
OKALA_MCP_PROXY unset HTTP proxy for every request, e.g. http://user:pass@host:port
OKALA_MCP_TOKEN_FILE ~/.okala-mcp/token.json Where okala-mcp login saves the login
OKALA_MCP_TOKEN unset An Okala access token to use instead of the saved login (not refreshed)

Optional login

Everything works as a guest. Logging in only unlocks Okala's text search in ok_search (brands and product names, inside one store too). Just ask your agent:

You: Log me in to Okala, my number is 0912 123 4567

Agent: calls ok_login → Okala sends you an SMS → you type the code (in a form if your client shows one, otherwise in the chat) → logged in

  • The code is sent only when you ask, at most once every 2 minutes per number.
  • If your client supports MCP forms (elicitation), the code goes straight to the server and never passes through the model.
  • The login is saved on your machine (~/.okala-mcp/token.json), refreshes itself, is sent only to apigateway.okala.com, and never appears in a tool reply. If it stops working, the server carries on as a guest.
  • ok_account shows the state; ok_logout deletes the login.

Prefer a terminal? The same login works from the command line:

uvx okala-mcp login 09121234567          # sends the code
uvx okala-mcp login 09121234567 12345    # saves the login
uvx okala-mcp logout                     # deletes it

Restart your MCP client after a command-line login (a running server reads the login once).

فارسی

okala-mcp به دستیار هوش مصنوعی شما (Claude، Cursor، Copilot و ...) اجازه می‌دهد فروشگاه‌های اُکالا را که به آدرس شما ارسال دارند پیدا کند، قیمت یک کالا را در همه‌ی فروشگاه‌های نزدیک مقایسه کند، هزینه‌ی خدمات و بسته‌بندی، حداقل سفارش و زمان‌های ارسال را ببیند و تخفیف‌های امروز را پیدا کند.

  • فقط خواندنی است: وارد حساب نمی‌شود، سبد خرید نمی‌سازد و سفارش ثبت نمی‌کند.
  • قیمت‌ها به تومان است.
  • روی سیستم خود شما اجرا می‌شود و به هیچ سرور واسطی داده نمی‌فرستد.

نصب در Claude Code:

claude mcp add okala -- uvx okala-mcp

بعد بپرسید: «ارزان‌ترین شیر کم چرب میهن نزدیک یوسف‌آباد تهران را کدام فروشگاه دارد؟»

Development

git clone https://github.com/sepehr071/okala-mcp && cd okala-mcp
uv sync
uv run pytest            # offline, against recorded responses
uv run pytest -m live    # real okala.com
uv run ruff check .

Tools live in src/okala_mcp/stores.py, catalog.py and offers.py; each is a typed async function with a docstring that tells the agent when to use it. Issues and PRs are welcome, especially new tools and fixes for site changes.

Releases: bump the version in pyproject.toml and server.json, then push a v* tag. GitHub Actions tests, publishes to PyPI and the MCP Registry, and creates the GitHub Release.

Disclaimer

Unofficial and not affiliated with or endorsed by Okala. It uses the public endpoints of the okala.com website, which can change without notice. Please keep request rates reasonable.

License

MIT

Metadata

Release files for okala-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for okala-mcp 0.1.0
File Size Uploaded
okala_mcp-0.1.0.tar.gz 123.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for okala-mcp 0.1.0
File Interpreter ABI Platform
okala_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 156.4 kB

Release files / okala_mcp-0.1.0.tar.gz

Download URL okala_mcp-0.1.0.tar.gz
Size 123.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4c0e0afb4dec15601cdf2733be3a73b216a3358e45b594964158fbf8515d487a
BLAKE2b-256 checksum
How to use checksums
ce7b22c9916f134c195463edf0e6a48a129d17f952c7b1eda5a9cb4661453101
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Release files / okala_mcp-0.1.0-py3-none-any.whl

Download URL okala_mcp-0.1.0-py3-none-any.whl
Size 32.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c1b57237b7d0f5b85391be39f204dc8cf254e35749e0f115dd8a3917cd41ab3
BLAKE2b-256 checksum
How to use checksums
879b48348a24b0ec76d27a13d133e5831146a57fa55f639f4d9e43efbe247b60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page