Okala

io.github.sepehr071v0.1.0更新於 Oct 11, 2026

Unofficial read-only Okala: grocery stores that deliver to you, compare prices across stores.

已驗證STDIO僅桌面位置與生活商業與電商

概覽

AI 產生的概覽

讓助理找出可外送到波斯語地址的 Okala 雜貨店,並比較附近各店的價格、費用與外送時段。

功能
在本機執行,以訪客身分呼叫 Okala 的公開 JSON 介面:定位地址、列出可外送到某地點的商店,並顯示評分、距離、各項費用、最低訂購金額與外送時段。可搜尋商品、以最便宜優先跨店比較同一商品、瀏覽某店分類,並查看商品細節與目前優惠。選用登入可啟用 Okala 的真正文字搜尋,否則查詢會比對到分類名稱。
適用情境
適合讓助理在德黑蘭及其他涵蓋的伊朗城市比價買菜,把同一商品在各店之間比較(含服務費、包裝費與外送費),或查找某地址附近的當日優惠。價格以托曼計價,波斯語查詢效果最好。
執行需求
需要本機 Python 執行環境與 uv(以 uvx okala-mcp 執行,或 pip install okala-mcp)。不需要 API 金鑰或帳號,但需要能連線到 okala.com。選用變數:OKALA_MCP_PROXY 指定 HTTP 代理,OKALA_MCP_TOKEN 提供存取權杖,OKALA_MCP_TOKEN_FILE 指定登入儲存位置。
安裝前請注意
設計上僅供讀取:不碰購物車、訂單、付款、地址或評論端點,因此無法下單購買。選用登入會傳送簡訊驗證碼到手機號碼並在本機儲存權杖;OKALA_MCP_TOKEN 保存的憑證不會自動更新。你查詢的外送地點會傳送給 Okala,且此伺服器為非官方專案,端點可能隨時變動。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Okala,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

🛒 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
bash
claude mcp add okala -- uvx okala-mcp
Claude Desktop

Settings → Developer → Edit Config, then add:

json
{  "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:

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

text
  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)
ToolWhat it does
ok_locateAddress text → coordinates (candidates) plus the street address of the best hit
ok_storesStores that deliver to a point: type, rating, distance, first slot, service / packaging / delivery fee
ok_storeOne store: serves this point?, minimum order, location, every delivery slot with availability
ok_store_reviewsCustomer reviews of a store: stars, comment, liked / disliked reasons
🔎 Products and prices (6)
ToolWhat it does
ok_searchProducts 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_compareThe same product across nearby stores, cheapest store first, with each store's fees
ok_store_productsA whole category of one store, sorted, filtered by name (search inside one store)
ok_productOne product in one store: price, discount, stock, max per order, brand, images
ok_categoriesCategory tree with slugs, near a point or in one store
ok_brandsBrand ids and slugs (featured brands, or lookup by slug)
⚡ Deals (2)
ToolWhat it does
ok_dealsDeal rows running now near a point or in one store, with end time and top products
ok_offerOne deal row in full, across stores or in one store, sorted and paged
🔑 Optional login (4)
ToolWhat it does
ok_loginSends an SMS code to the user's phone; asks for the code in a form when the client supports it
ok_login_verifyFinishes the login with the code the user typed in the chat
ok_accountLogged in or guest, and as which phone (masked)
ok_logoutDeletes 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?
bash
npx @modelcontextprotocol/inspector uvx okala-mcp

Configuration

VariableDefaultMeaning
OKALA_MCP_PROXYunsetHTTP proxy for every request, e.g. http://user:pass@host:port
OKALA_MCP_TOKEN_FILE~/.okala-mcp/token.jsonWhere okala-mcp login saves the login
OKALA_MCP_TOKENunsetAn 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:

bash
uvx okala-mcp login 09121234567          # sends the codeuvx okala-mcp login 09121234567 12345    # saves the loginuvx 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:

bash
claude mcp add okala -- uvx okala-mcp

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

Development

bash
git clone https://github.com/sepehr071/okala-mcp && cd okala-mcpuv syncuv run pytest            # offline, against recorded responsesuv run pytest -m live    # real okala.comuv 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

來源:README.md,提交 ea04023

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v0.1.0最新Oct 11, 2026