Skip to content
MCP server
Registry

MasterKala MCP Server

Unofficial read-only MasterKala: search gadgets, compare prices and specs, stock, delivery, deals.

MasterKala scores 66 (Good), licensed MIT and written in Python. It installs as a local process. It declares 14 tools. Filed under Version control. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by sepehr071MITPython0 stars
Trust score
66Good
Trust score 66 of 100, Good

Good trust

66 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 66 comes from

22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "sepehr071-masterkala-mcp": {      "command": "uvx",      "args": [        "masterkala-mcp"      ],      "env": {        "MASTERKALA_MCP_PROXY": ""      }    }  }}

Environment variables

NameRequiredNotes
MASTERKALA_MCP_PROXYOptionalOptional HTTP proxy URL for requests to masterkala.com, or a comma-separated list: one is used until it gets blocked or fails to connect, then the next. System proxy settings are ignored.

Tools14Tool docs quality grade C

All capabilities
  • Readers' questions on a post with the store writer's answers

  • Buying guides, comparisons and how-tos, newest first

  • MasterKala's physical shops in Tehran with address, phone and map location

  • Brands and their slugs (about 135)

  • A category, brand or tag sorted by price / stock / date, with price range and filters

  • Product categories and their ids (about 100 main categories)

  • Everything on the discount page, biggest discount first, with the time left

  • Brand, color and feature filter ids and the price range of a category, brand or tag

  • Cheapest in-stock matches for a keyword, one flat list sorted by payable price (accessories filtered out)

  • Price, discount, stock status and count, colors, brand, category, rating, shops that have it

  • Customer reviews with star breakdown and the store's replies

  • Search by keyword: price, discount, stock, plus matching categories and tag pages

About

masterkala-mcp: MasterKala MCP server for AI agents

Let your AI agent shop for gadgets on MasterKala (مسترکالا). An unofficial, read-only MCP server for MasterKala, the Iranian gadget and mobile accessories shop: 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: PolyForm Noncommercial mcpfarsi

Install in Cursor Install in VS Code

For AI agents · Why · What it can do · Quick start · Tools · Good to know · FAQ · Configuration · فارسی · Development · Related servers


For AI agents

  • What: unofficial MCP server (model context protocol) for MasterKala (masterkala.com, Iran), a gadget and mobile accessories shop that sells its own stock. Queries in Persian or English; prices in Toman.
  • Install: uvx masterkala-mcp or claude mcp add masterkala -- uvx masterkala-mcp. Transport: stdio. Needs uv (Python 3.10+).
  • Auth: none, no API key or account. Optional MASTERKALA_MCP_PROXY (HTTP proxy URL, or a comma-separated list, for requests to masterkala.com); system proxy settings are ignored.
  • Access: read-only. It cannot log in, use the cart, place orders or post reviews, so no confirmation is needed before calling any tool.
  • Tools: 14, all prefixed mk_. Start with mk_find_cheapest, mk_search, mk_deals, mk_browse. Typical sequence: mk_find_cheapest -> mk_product -> mk_shipping.
  • Use when: the user wants the cheapest orderable item, a spec or price comparison, reviews, stock, a delivery estimate, current discounts or a MasterKala buying guide.
  • Do not use when: the user wants to buy (the agent finds the item, the user orders on masterkala.com), needs another shop, or needs delivery to a specific address: delivery is an estimate for Tehran and "other cities by post", based on a default Tehran address.
  • Output: compact JSON. Prices in Toman (final_price is what you pay), ratings 1-5 (null = no reviews). Numeric product ids pass between tools.
  • Machine-readable: server.json and the iran-mcp catalog (TOOLS.md, servers.json, llms.txt).

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)

TotalProductPriceShipping
4,338,000پاوربانک 10000 شیائومی گلوریمی Glorimi LightCore 22.5W4,188,000 (5% off)150,000, Saturday 15:00-18:00
5,291,000پاوربانک فوق نازک مگنتی 5000 Glorimi FitCore Mag 20W5,291,000 (4% off)free (over 5M)
5,401,000پاوربانک 20000 شیائومی گلوریمی Glorimi LightCore 22.5W5,401,000 (6% off)free (over 5M)

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 and readers' questions from the MasterKala blog
  • Find a shop: the physical MasterKala branches in Tehran with address, phone and map location
  • Read-only by design: no login, no cart, no orders, no reviews posted

Example prompts:

  • "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?"
  • "What are today's biggest discounts on smart watches?"
  • "Where are MasterKala's physical shops in Tehran?"
  • بهترین تخفیف‌های امروز مسترکالا روی پاوربانک چیه؟
  • ارزان‌ترین هندزفری بلوتوث موجود را پیدا کن و بگو کی به تهران می‌رسد.
  • مشخصات دو ساعت هوشمند را کنار هم مقایسه کن و نظر خریداران را بگو.

Quick start

You need uv. No API key or account.

claude mcp add masterkala -- uvx masterkala-mcp

Settings → Developer → Edit Config, then add:

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

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

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

{
  "servers": {
    "masterkala": { "type": "stdio", "command": "uvx", "args": ["masterkala-mcp"] }
  }
}
codex mcp add masterkala -- uvx masterkala-mcp

Or in ~/.codex/config.toml:

[mcp_servers.masterkala]
command = "uvx"
args = ["masterkala-mcp"]

Add to ~/.gemini/settings.json:

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

Add the Claude Desktop block to ~/.codeium/windsurf/mcp_config.json.

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

Tools

All tools are prefixed mk_. Product ids are numbers like 24855; category ids come from mk_categories, brand slugs from mk_brands.

ToolWhat it does
mk_searchSearch by keyword: price, discount, stock, plus matching categories and tag pages
mk_find_cheapestCheapest in-stock matches for a keyword, one flat list sorted by payable price (accessories filtered out)
mk_browseA category, brand or tag sorted by price / stock / date, with price range and filters
mk_filtersBrand, color and feature filter ids and the price range of a category, brand or tag
mk_categoriesProduct categories and their ids (about 100 main categories)
mk_brandsBrands and their slugs (about 135)
mk_dealsEverything on the discount page, biggest discount first, with the time left
ToolWhat it does
mk_productPrice, discount, stock status and count, colors, brand, category, rating, shops that have it
mk_specsSpecification table of 1-4 products side by side
mk_reviewsCustomer reviews with star breakdown and the store's replies
mk_shippingNext delivery slot and fee for Tehran and other cities, same-day cut-off
mk_branchesMasterKala's physical shops in Tehran with address, phone and map location
ToolWhat it does
mk_blog_postsBuying guides, comparisons and how-tos, newest first
mk_blog_commentsReaders' questions on a post with the store writer's answers

All 14 tools are annotated readOnlyHint: true and return compact JSON, so they don't flood the agent's context.

Good to know

  • Prices are in Toman. final_price is what you pay, price is before discount, discount_pct is 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_shipping gives free_shipping_from: null for them); below that, Tehran courier and post were 150,000 / 155,000 Toman on 2026-10-03. There is no address API, so mk_shipping estimates for Tehran and "other cities by post".
  • Stock: in_stock means orderable online now. Other statuses: ناموجود (sold out), به زودی (coming soon), موجود در شعب حضوری (only in the physical shops).
  • Images: every product has image, an absolute https URL (328 px webp from mk_search, mk_find_cheapest and mk_browse; 240 px from mk_deals; the original jpg from mk_specs). mk_product gives a 600 px image plus an images list (up to 4). Null/empty fields are omitted from results, stock_status only appears when it is not "موجود" (in stock), and review / comment text is cut to 400 characters (blog threads keep 3 replies, more_replies counts the rest).
  • Ratings are 1–5, null when nobody has reviewed the product yet.
  • Persian queries match best (هندزفری, پاوربانک), but English brand and model names work too (xiaomi, Buds Pro).
  • Keyword listings ignore sort. For a keyword use mk_search or mk_find_cheapest; use mk_browse with a category id, brand slug or tag id when you need sorting, a price range or filters.
  • Rate limits: the site's robots.txt disallows its API paths for crawlers, so keep request rates low (about one per second). The server already limits concurrency and adds a short delay.
  • What it does not do: no login, cart, orders, payment, wishlist or review posting; no other shops; no delivery to a specific address.
  • Proxy: set MASTERKALA_MCP_PROXY if you need one (see Configuration).

FAQ

Yes: masterkala-mcp is an unofficial MCP server with 14 read-only tools for search, prices, specs, reviews, delivery and deals. It calls the same public endpoints the masterkala.com website uses; no API key is needed.

Add the server with claude mcp add masterkala -- uvx masterkala-mcp (or the matching config in Quick start for Claude Desktop, Cursor, VS Code, Codex CLI, Gemini CLI and Windsurf), then ask in plain language, in Persian or English.

It is unofficial and not affiliated with MasterKala. It is read-only (no login, cart or payment), runs on your machine, and is free for non-commercial use.

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.

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.

Toman. final_price is what the customer pays after discount. The site's structured data uses Rial, and the server converts it.

The server retries a dropped connection twice. If it still fails, check your internet connection. System proxy variables are ignored on purpose; set MASTERKALA_MCP_PROXY if you need a proxy. If the shop shows a bot-check page, install the browser extra (pip install "masterkala-mcp[browser]", then patchright install chromium) and the server clears it once.

Use the full path to uvx (where uvx on Windows, which uvx on macOS/Linux) as command.

npx @modelcontextprotocol/inspector uvx masterkala-mcp

Configuration

VariableDefaultMeaning
MASTERKALA_MCP_PROXYunsetOptional HTTP proxy URL for every request to masterkala.com, e.g. http://user:pass@host:port; system proxy settings are ignored. A comma-separated list is used one at a time: the next proxy takes over when one is blocked or cannot connect

فارسی: سرور MCP مسترکالا

masterkala-mcp یک سرور MCP غیررسمی و فقط‌خواندنی برای مسترکالا، فروشگاه اینترنتی گجت و لوازم جانبی موبایل در ایران، است. این سرور به دستیار هوش مصنوعی شما (Claude، Cursor، Copilot و ...) اجازه می‌دهد در مسترکالا جستجو کند، ارزان‌ترین کالای موجود را پیدا کند، مشخصات و نظرات را مقایسه کند و زمان و هزینه ارسال و تخفیف‌های روز را ببیند.

چه کارهایی می‌کند

  • جستجوی هندزفری، پاوربانک، شارژر، کابل، ساعت هوشمند و اسپیکر با قیمت، تخفیف و وضعیت موجودی.
  • پیدا کردن ارزان‌ترین کالای موجود برای یک عبارت، بدون کاور و قاب.
  • مرور دسته‌ها، برندها و برچسب‌ها با مرتب‌سازی و فیلتر قیمت، برند و رنگ.
  • مشخصات فنی، مقایسه تا ۴ کالا کنار هم، و نظرات خریداران با پاسخ فروشگاه.
  • زمان و هزینه ارسال به تهران و شهرهای دیگر (پست)، و شعب حضوری مسترکالا در تهران.
  • تخفیف‌های روز و مقاله‌های راهنمای خرید وبلاگ.

نکته‌ها

  • فقط خواندنی است: وارد حساب نمی‌شود، سبد خرید نمی‌سازد، سفارش ثبت نمی‌کند و نظر نمی‌فرستد. خرید را خودتان در سایت انجام می‌دهید.
  • قیمت‌ها به تومان است و کاور و قاب را از نتایج «ارزان‌ترین» جدا می‌کند.
  • هزینه و زمان ارسال برآورد است، برای تهران و «سایر شهرها با پست»؛ آدرس دقیق پشتیبانی نمی‌شود.
  • کلید API لازم نیست؛ روی سیستم خود شما اجرا می‌شود و به هیچ سرور واسطی داده نمی‌فرستد.
  • اگر لازم بود، متغیر MASTERKALA_MCP_PROXY را روی یک پراکسی HTTP بگذارید.

نصب (اول uv را نصب کنید). در Claude Code:

claude mcp add masterkala -- uvx masterkala-mcp

در Claude Desktop، Cursor و بقیه برنامه‌ها همان تنظیم بخش Quick start را بگذارید.

نمونه پرسش‌ها

  • «ارزان‌ترین هندزفری بلوتوث بین ۳ تا ۵ میلیون تومان کدام است و کی به تهران می‌رسد؟»
  • «بهترین تخفیف‌های امروز مسترکالا روی پاوربانک چیه؟»
  • «ارزان‌ترین پاوربانک شیائومی موجود را پیدا کن.»
  • «مشخصات دو ساعت هوشمند را مقایسه کن.»
  • «شعب مسترکالا در تهران کجاست؟»

Development

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

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.

Related servers

Disclaimer

Unofficial and not affiliated with or endorsed by MasterKala. It is read-only and uses the public endpoints of the masterkala.com website, which can change without notice. Please keep request rates reasonable.

Author

Built and maintained by Sepehr Radmard (سپهر رادمرد). Connect on LinkedIn or follow @sepehr071 on GitHub for more MCP servers for Iranian websites, all listed in iran-mcp. If this saves you time, a star on the repo helps other people find it.

مجوز استفاده (License)

استفادهٔ شخصی و غیرتجاری رایگان است. استفاده در شرکت، محصول پولی یا پروژهٔ مشتری به مجوز تجاری نیاز دارد؛ از راه لینکدین یا گیت‌هاب با سپهر رادمرد تماس بگیرید. متن کامل: PolyForm Noncommercial 1.0.0. نسخه‌های پیش از 0.5.1 با مجوز MIT منتشر شده‌اند و همان مجوز را دارند.

Free for personal and non-commercial use under the PolyForm Noncommercial License 1.0.0. Using it in a company, a paid product or a client project needs a commercial license: contact Sepehr Radmard on LinkedIn or GitHub. Versions before 0.5.1 were released under MIT and stay under it.

If this saves you clicks, a star helps others find it.

Frequently asked questions

What is MasterKala MCP Server?

Unofficial read-only MasterKala: search gadgets, compare prices and specs, stock, delivery, deals.

How do I install MasterKala MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. MasterKala MCP Server runs locally from the PyPI package masterkala-mcp with the command uvx masterkala-mcp.

Is MasterKala MCP Server free and open source?

Yes. MasterKala MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does MasterKala MCP Server support remote (HTTP) connections?

No remote endpoint is listed for MasterKala MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does MasterKala MCP Server provide?

MasterKala MCP Server provides 14 tools, including mk_blog_comments, mk_blog_posts, mk_branches, and mk_brands. See the full tool list for descriptions and parameters.

How is MasterKala MCP Server's trust score calculated?

MasterKala MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server