
Okala
io.github.sepehr071v0.1.0更新于 Oct 11, 2026
Unofficial read-only Okala: grocery stores that deliver to you, compare prices across stores.
概览
让助手查找可配送到波斯语地址的 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 指定登录保存位置。
安装
在 SourceWeft 中
- 打开 控制台中的 Okala,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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
Claude Desktop
Settings → Developer → Edit Config, then add:
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:
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
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)
🔎 Products and prices (6)
⚡ Deals (2)
🔑 Optional login (4)
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_priceis what you pay,priceis before discount,discount_pctis a whole percent. - Every store has its own price. A product id is the same item in every store, so
ok_comparecan line them up. - Order cost at one store = items + service fee + packaging fee + delivery fee (
ok_stores), and the basket must reach the store'sminimum_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_searchuses Okala's real search, near you or inside one store (store_id), brands and product names included (نوتلا). As a guest,ok_searchmatches your words to category names (شیر→ milk) and ranks products by name; for one store,ok_store_productswithname_containsreads 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?
Configuration
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_accountshows the state;ok_logoutdeletes the login.
Prefer a terminal? The same login works from the command line:
Restart your MCP client after a command-line login (a running server reads the login once).
فارسی
okala-mcp به دستیار هوش مصنوعی شما (Claude، Cursor، Copilot و ...) اجازه میدهد فروشگاههای اُکالا را که به آدرس شما ارسال دارند پیدا کند، قیمت یک کالا را در همهی فروشگاههای نزدیک مقایسه کند، هزینهی خدمات و بستهبندی، حداقل سفارش و زمانهای ارسال را ببیند و تخفیفهای امروز را پیدا کند.
- فقط خواندنی است: وارد حساب نمیشود، سبد خرید نمیسازد و سفارش ثبت نمیکند.
- قیمتها به تومان است.
- روی سیستم خود شما اجرا میشود و به هیچ سرور واسطی داده نمیفرستد.
نصب در Claude Code:
بعد بپرسید: «ارزانترین شیر کم چرب میهن نزدیک یوسفآباد تهران را کدام فروشگاه دارد؟»
Development
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
来源:README.md,提交 ea04023
工具
0版本历史
1- v0.1.0最新Oct 11, 2026
