
MasterKala
io.github.sepehr071v0.1.0更新於 Oct 3, 2026
Unofficial read-only MasterKala: search gadgets, compare prices and specs, stock, delivery, deals.
概覽
唯讀查詢 MasterKala 數位配件商店:價格、規格、庫存、配送時段與優惠,無需登入或下單。
- 功能
- 把 masterkala.com 的公開端點包裝成唯讀工具:關鍵字搜尋、最便宜且有庫存的匹配、依分類/品牌/標籤瀏覽並支援篩選,以及折扣頁。針對單一商品可回傳價格、折扣、庫存、顏色、評分、評論、並排規格比較、配送時段與運費,以及實體門市資訊。另有兩個部落格工具取得購買指南與讀者留言。所有工具都標註為唯讀,回傳精簡 JSON。
- 適用情境
- 適合讓助理比較數位配件價格與規格、確認商品是否可下單及到貨時間,或查看 MasterKala 目前折扣。適用於比價與商品研究類問題,而非任何交易操作。
- 執行需求
- 以 stdio 方式在本機執行;需要 uv(uvx masterkala-mcp)或 pip install masterkala-mcp。無需帳號或 API 金鑰。需要能連線 masterkala.com;可選環境變數 MASTERKALA_MCP_PROXY 用來設定 HTTP 代理,因為系統代理設定會被忽略。僅支援桌面端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 MasterKala,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
🎧 masterkala-mcp
Let your AI agent shop for gadgets on MasterKala.
Search earbuds, chargers, power banks and smart watches, compare real prices and specs,
read reviews, check stock and delivery dates, and catch today's discounts, all 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
MasterKala lists thousands of accessories, and a search for "power bank" mixes real power banks with
silicone covers, out-of-stock items and things sold only in its shops. Finding the cheapest one you can
actually order, and what it costs delivered, means paging through results and opening product pages.
An agent with masterkala-mcp does that in seconds:
You: Cheapest Xiaomi power bank I can order now, delivered in Tehran?
Agent: calls
mk_find_cheapest(query="پاوربانک شیائومی")→mk_shipping(product_id=26935)The 10,000 mAh LightCore is cheapest even with the 150,000 courier fee. The 20,000 mAh LightCore ships free and costs 1,063,000 more for twice the capacity. Want me to compare their specs with
mk_specs?
Real tool output from 2026-10-03; prices change all the time. Prices are in Toman.
What it can do
- 🔎 Search products by name in Persian or English, with price, discount and stock
- 💸 Find the cheapest in-stock match, with cases and covers filtered out
- 🗂️ Browse any category, brand or tag sorted by price, stock or date, with price range and brand/color filters
- 📋 Read full product details: colors, stock count, specs, side-by-side comparison, reviews
- 🚚 Check delivery: next Tehran courier slot, post to other cities, shipping fee, same-day cut-off
- ⚡ Catch deals on the discount page, plus buying guides from the MasterKala blog
- 🔒 Read-only by design: no login, no cart, no orders, no reviews posted
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 masterkala-mcp, or pip install masterkala-mcp and run masterkala-mcp.
Then just ask:
- "Cheapest Bluetooth earbuds between 3 and 5 million Toman, and which one has the best reviews?"
- "Compare the specs of the Green Lion Ocean and the Awei T66."
- "Is the blue CMF Buds Pro 2 in stock? When would it reach Tehran?"
- بهترین تخفیفهای امروز مسترکالا روی پاوربانک چیه؟
How it works
masterkala-mcp runs locally and calls the same public endpoints the masterkala.com website uses.
There's no hosted server in between, no API key, and nothing about you is sent anywhere else.
Tools
🔎 Find products (7)
📦 One product (5)
📝 Blog (2)
All tools are annotated readOnlyHint: true and return compact structured JSON, so they don't flood the agent's context.
Good to know
- Prices are in Toman.
final_priceis what you pay,priceis before discount,discount_pctis a whole percent. The site's structured data is in Rial; the server converts it. - Shipping is free from 5,000,000 Toman per order for most items (bulky goods such as large speakers never ship free;
mk_shippinggivesfree_shipping_from: nullfor them); below that, Tehran courier and post were 150,000 / 155,000 Toman on 2026-10-03. There is no address API, somk_shippingestimates for Tehran and "other cities by post". - Stock:
in_stockmeans orderable online now. Other statuses: ناموجود (sold out), به زودی (coming soon), موجود در شعب حضوری (only in the physical shops). - Ratings are 1–5,
nullwhen nobody has reviewed the product yet. - Persian queries match best (
هندزفری,پاوربانک), but English brand and model names work too (xiaomi,Buds Pro).
FAQ
Can it place an order for me?
No, and that's deliberate. It has no login and never touches the cart, order, payment, wishlist or review endpoints. The agent finds the best option; you buy it on masterkala.com.
Why does mk_find_cheapest skip some items?
It keeps only items you can order online now, whose title contains every word of your query, and drops cases,
covers and screen protectors unless you ask for them (include_accessories: true, or a query like "کاور ...").
It scans the first 500 results by default (in-stock items come first); complete: false in the reply means more
in-stock items lie past that, so raise scan (up to 1500). mk_search shows everything.
I get "Could not reach masterkala.com"
The server retries a dropped connection once. If it still fails, check your internet connection. System proxy
variables are ignored on purpose; set MASTERKALA_MCP_PROXY if you need a proxy.
Claude Desktop says uvx is not found
Use the full path to uvx (where uvx on Windows, which uvx on macOS/Linux) as command.
How do I debug what the agent sees?
Configuration
فارسی
masterkala-mcp به دستیار هوش مصنوعی شما (Claude، Cursor، Copilot و ...) اجازه میدهد در مسترکالا جستجو کند، ارزانترین کالای موجود را پیدا کند، مشخصات و نظرات را مقایسه کند و زمان و هزینه ارسال و تخفیفهای روز را ببیند.
- فقط خواندنی است: وارد حساب نمیشود، سبد خرید نمیسازد، سفارش ثبت نمیکند و نظر نمیفرستد.
- قیمتها به تومان است و کاور و قاب را از نتایج «ارزانترین» جدا میکند.
- روی سیستم خود شما اجرا میشود و به هیچ سرور واسطی داده نمیفرستد.
نصب در Claude Code:
بعد بپرسید: «ارزانترین هندزفری بلوتوث بین ۳ تا ۵ میلیون تومان کدام است و کی به تهران میرسد؟»
Development
Tools live in src/masterkala_mcp/catalog.py, product.py and blog.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 MasterKala. It uses the public endpoints of the masterkala.com website, which can change without notice. Please keep request rates reasonable.
License
來源:README.md,提交 f3bceab
工具
0版本歷史
1- v0.1.0最新Oct 3, 2026
