Digikala MCP Server
Unofficial read-only Digikala: search products, compare sellers, price history, reviews, deals.
Digikala scores 71 (Good), licensed MIT and written in Python. It installs as a local process. It declares 23 tools. Filed under Version control. GitHub shows 43 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
71 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
94/100 for listing completeness. Lost points: 1 of 23 tools barely described, short summary.
How quality is graded
Where the 71 comes from
22 + 20 + 5 + 10 + 4 + 10 = 71. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 5 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.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.
{ "mcpServers": { "sepehr071-digikala-mcp": { "command": "uvx", "args": [ "digikala-mcp" ], "env": { "DIGIKALA_MCP_PROXY": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
DIGIKALA_MCP_PROXY | Optional | Optional HTTP proxy URL for every request (e.g. one with an Iranian exit if Digikala blocks yours), or a comma-separated list: one is used until it gets blocked or fails to connect, then the next. System proxy settings are ignored. |
Tools23Tool docs quality grade C
All capabilitiesBest-rated real matches under a budget, rating weighted by number of ratings
dk_best_sellerstoolCurrent best sellers, overall or per main category
Browse a brand's products
dk_categoriestoolFind category codes and main-category ids
Browse a category with sort and the same filters, optionally one brand
dk_comparetool2-4 products side by side: the specs that differ, plus the shared ones
dk_dealstoolIncredible Offers or supermarket deals, biggest discount first
dk_filterstoolFilter options of a category or search: features (OS, storage, ...), colors, brands, sellers, price range
dk_find_cheapesttoolCheapest in-stock real matches for a query, accessories dropped, one list
dk_fresh_searchtoolSearch or browse Digikala Fresh, the supermarket
dk_gold_pricestoolLive 18k gold price per gram (daily and ~3-month change) and gold coin prices
dk_installmentstoolDigipay credit-line offers for a product (credit amount, monthly repayment, months)
About
digikala-mcp: Digikala MCP server for AI agents
Let your AI agent shop around on Digikala (دیجیکالا). An unofficial, read-only MCP server for Iran's largest online store: search products, compare every seller's offer, check a product's price history, read reviews and Q&A, and catch today's Incredible Offers, all from Claude, Cursor or Copilot.
For AI agents · Why · What it can do · Quick start · Tools · Good to know · FAQ · Configuration · فارسی · Development · Related
For AI agents
- What: unofficial MCP server (model context protocol) for Digikala (digikala.com, Iran) and its Fresh supermarket. Queries in Persian or English, prices in Toman.
- Install:
uvx digikala-mcporclaude mcp add digikala -- uvx digikala-mcp. Transport: stdio. Needs uv (Python 3.10+). - Auth: none, no API key or account. Optional
DIGIKALA_MCP_PROXY(HTTP proxy, or a comma-separated list, e.g. with an Iranian exit if Digikala blocks yours). - Access: read-only. No login, cart, checkout or payment, so no confirmation is needed before calling any tool.
- Tools: 23, all prefixed
dk_. Start withdk_find_cheapest,dk_search,dk_best_for_budget,dk_deals. Typical sequence:dk_find_cheapest->dk_product->dk_price_history. - Use when: finding, comparing or judging prices of products and sellers on Digikala, including the Fresh supermarket.
- Do not use when: the user wants to buy, or needs shipping cost (only calculated at checkout) or anything behind a login.
- Output: compact JSON. Prices in Toman, ratings 0-5 (
null= not rated). Numeric product ids (the<id>ofdkp-<id>) pass between tools. - Network: talks to
api.digikala.comdirectly from your machine. On "refused the request (HTTP 403)" for every call, setDIGIKALA_MCP_PROXY. - Machine-readable:
server.jsonand the iran-mcp catalog (TOOLS.md,servers.json,llms.txt).
Why
Digikala lists the same phone many times: different colors, memory sizes, bundles and a dozen sellers per
listing, with prices that move every day. Sorting by "cheapest" puts phone cases first. Finding the real
cheapest offer, and whether today's price is a good one means a lot of clicking. An agent with
digikala-mcp does it in three calls:
You: Cheapest Samsung Galaxy A07 on Digikala, and is now a good time to buy?
Agent: calls
dk_find_cheapest(query="samsung a07")→dk_product(product_id=20109389)→dk_price_history(product_id=20109389)
Price Model Seller 42,503,600 Galaxy A07 64 GB / 4 GB Digikala (same-day delivery in Tehran) 44,518,000 Galaxy A07 64 GB / 4 GB + 25 W charger Sepahan Hamrah Yaghout 46,811,800 Galaxy A07 128 GB / 4 GB Digikala The 64 GB model is cheapest at 42,503,600, sold by Digikala itself; the next seller asks 42,918,000. But it's not a great moment: the black one sold for 34,499,000 yesterday and 33,200,000 at its lowest this month. Today's best offer is about 23% above yesterday's, so waiting may pay off.
Real tool output from 2026-10-03; prices change all the time. Prices are in Toman.
What it can do
- Search the whole catalogue in Persian or English, with price, brand, feature (OS, storage, ...), color, seller and fast-delivery filters; every result says whether its title really matches
- Find the real cheapest match, with accessories filtered out, and every seller's offer for a product
- Best picks for a budget, ranked by a rating weighted by how many buyers rated it, with the reasoning shown
- Re-check a shortlist of up to 10 products in one call: price, cheapest offer, stock, distance from the 30-day low
- Judge a price with about 30 days of daily price history and the 30-day low
- Browse categories, brands, sellers and best sellers, sorted by price, sales, views, newest or buyers' pick
- Check quality with reviews, pros/cons, buyer Q&A and seller reputation
- Catch deals: Incredible Offers and supermarket (Digikala Fresh) discounts
- Extras: spec comparison, installment plans, Digikala Plus shipping plans, live gold and coin prices
- Read-only by design: no login, no cart, no orders, no payment
Quick start
You need uv. No API key or account.
claude mcp add digikala -- uvx digikala-mcp
Settings → Developer → Edit Config, then add:
{
"mcpServers": {
"digikala": { "command": "uvx", "args": ["digikala-mcp"] }
}
}
Click Install in Cursor above, or add the Claude Desktop block to ~/.cursor/mcp.json.
Click Install in VS Code above, or add to .vscode/mcp.json:
{
"servers": {
"digikala": { "type": "stdio", "command": "uvx", "args": ["digikala-mcp"] }
}
}
codex mcp add digikala -- uvx digikala-mcp
Or in ~/.codex/config.toml:
[mcp_servers.digikala]
command = "uvx"
args = ["digikala-mcp"]
Add to ~/.gemini/settings.json:
{
"mcpServers": {
"digikala": { "command": "uvx", "args": ["digikala-mcp"] }
}
}
Add the Claude Desktop block to ~/.codeium/windsurf/mcp_config.json.
It's a standard stdio MCP server: run uvx digikala-mcp, or pip install digikala-mcp and run digikala-mcp.
Then just ask:
- "Cheapest AirPods-style earbuds under 3 million Toman with at least 4 stars?"
- "Compare the Galaxy A07 64 GB and 128 GB. Is the bigger one worth the difference?"
- "Is this seller reliable? CGDG9"
- "What are today's Incredible Offers on headphones, biggest discount first?"
- "Which Android phones with 256 GB sold by Digikala itself are under 20 million Toman?"
- ارزانترین شیر کمچرب در سوپرمارکت دیجیکالا چند است؟
- ارزانترین گوشی سامسونگ A07 کدام است و الان وقت خرید است؟
- امروز چه شگفتانگیزی برای هدفون هست؟
Tools
Product ids are the number in a digikala.com/product/dkp-<id>/ link. Every list returns compact product cards:
id, title, brand, price, discount, stock, seller, rating, a photo URL (image) and the product link.
| Tool | What it does |
|---|---|
dk_search | Search by words with sort, price, brand, feature, color and seller filters; flags loose title matches |
dk_find_cheapest | Cheapest in-stock real matches for a query, accessories dropped, one list |
dk_best_for_budget | Best-rated real matches under a budget, rating weighted by number of ratings |
dk_suggest | Autocomplete: better keywords and category codes |
dk_filters | Filter options of a category or search: features (OS, storage, ...), colors, brands, sellers, price range |
dk_categories | Find category codes and main-category ids |
dk_category_products | Browse a category with sort and the same filters, optionally one brand |
dk_brand_products | Browse a brand's products |
dk_seller | A seller's rating, on-time shipping, cancellations, returns and products |
dk_deals | Incredible Offers or supermarket deals, biggest discount first |
dk_best_sellers | Current best sellers, overall or per main category |
dk_fresh_search | Search or browse Digikala Fresh, the supermarket |
| Tool | What it does |
|---|---|
dk_product | Price, stock, specs and every seller's offer (color, warranty, shipping), cheapest first |
dk_shortlist | Re-price up to 10 products at once: price, cheapest offer, stock, rating, distance from the 30-day low |
dk_price_history | About 30 days of daily prices per color, with low and high |
dk_reviews | Customer reviews with stars, pros/cons and verified-buyer flag |
dk_questions | Customer questions with their top answers |
dk_similar | Similar products, e.g. cheaper alternatives |
dk_compare | 2-4 products side by side: the specs that differ, plus the shared ones |
dk_installments | Digipay credit-line offers for a product (credit amount, monthly repayment, months) |
| Tool | What it does |
|---|---|
dk_plus_plans | Digikala Plus membership plans (free shipments) and benefits |
dk_gold_prices | Live 18k gold price per gram (daily and ~3-month change) and gold coin prices |
dk_location | Address → coordinates, or coordinates → address with Digikala city/province ids |
All 23 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. The Digikala API answers in Rial; every tool divides by 10 so numbers match the website. Gold and coin prices are already Toman.
- Ratings are 0–5, like the site (the API's 0–100 divided by 20);
nullmeans not rated yet. Review stars are 1–5. - Persian and English queries both work (
گوشی سامسونگ,airpods pro). Category and brand codes are English slugs (mobile-phone,samsung). sort=cheapeston a text search shows accessories first; that's how Digikala ranks it. Usedk_find_cheapestfor "cheapest X".- Search always returns something, even for nonsense words (Digikala's search is semantic).
dk_searchmarks each resultmatch: all / some / none(with the missing words), anddk_find_cheapestanddk_best_for_budgetkeep only titles that contain every query word. - Filters by feature:
dk_filters(category_code="mobile-phone")lists ids like operating system → Android, thendk_category_products(attributes={2226: [19239]})filters on them. - The 30-day low ignores one-day dips.
dk_shortlistcompares today's price with the lowest price that held on two days in a row (low_30d), because Digikala's own 30-day low (lowest_one_day_30d,dk_product'slowest_price_30d) can be a single day of one color.dk_price_historygives both per color. - Photos: cards carry
image,dk_productanimageslist (max 4), both absolute https URLs taken from the API as-is. They end in?x-oss-process=image/resize,m_lfit,h_300,w_300/quality,q_80, so they are 300 px JPEGs; drop that suffix for the original size. - Prices move several times an hour on popular listings with many sellers; re-check right before buying.
- Answers are cached for 2 minutes, so an agent repeating a call doesn't hit Digikala again; prices can lag the site by that much. A timeout, 5xx or 429 is retried up to twice with backoff.
- Groceries come from the supermarket store:
dk_productshows its price, which can differ from the main-store price in search results. - Shipping cost is only calculated at checkout (login).
dk_productshows how each offer ships, anddk_plus_plansthe free-shipping plans.
FAQ
Yes: digikala-mcp is an unofficial MCP server with 23 read-only tools for search, seller offers, price history,
reviews and deals. It calls the same public endpoints the digikala.com web app uses; no API key is needed.
Add the server with claude mcp add digikala -- uvx digikala-mcp (or the matching config in
Quick start for Claude Desktop, Cursor and VS Code), then ask in plain language, in Persian or English.
It is unofficial and not affiliated with Digikala. It is read-only (no login, cart or payment), runs on your machine, and is free for non-commercial use.
Usually not: in testing the API answered from a foreign (Turkish) exit. If every tool fails with
"refused the request (HTTP 403)", set DIGIKALA_MCP_PROXY to an HTTP proxy with an Iranian exit. (A 403 from just
one call usually means an unknown category or brand code.) Normal system
proxy variables are ignored on purpose. If Digikala serves a bot-check page, install the optional browser
fallback (uvx --with patchright==1.63.0 digikala-mcp or pip install digikala-mcp[browser]), then run
patchright install chromium.
No, and that's deliberate. It has no login and never calls the cart, checkout, payment, or review/question posting endpoints; it only reads public data. The agent finds the best option; you tap buy on the site.
Digikala lists products that are out of stock, coming soon or discontinued. They have no current offer, so there's
no price. Searches use in_stock_only: true by default.
Yes. dk_fresh_search searches and browses Digikala Fresh, dk_deals takes store='supermarket', and dk_product
falls back to the Fresh product API for supermarket ids.
Toman, like the website. The API answers in Rial and every tool divides by 10; gold and coin prices are already Toman.
Since 2026-10-05 Digikala's Digipay credit endpoint answers an empty list for every product (the product page shows no credit box either), so the tool returns a note instead of offers.
Use the full path to uvx (where uvx on Windows, which uvx on macOS/Linux) as command.
npx @modelcontextprotocol/inspector uvx digikala-mcp
Configuration
| Variable | Default | Meaning |
|---|---|---|
DIGIKALA_MCP_PROXY | unset | HTTP proxy for every request, e.g. http://user:pass@host:port. A comma-separated list is used one at a time: the next proxy takes over when one is blocked (403/429) or cannot connect |
فارسی
سرور MCP دیجیکالا برای دستیار هوش مصنوعی
digikala-mcp یک سرور MCP غیررسمی و فقطخواندنی برای دیجیکالا، بزرگترین فروشگاه اینترنتی ایران، است. این سرور به دستیار هوش مصنوعی شما (Claude، Cursor، Copilot و ...) اجازه میدهد در دیجیکالا جستجو کند، قیمت همه فروشندگان یک کالا را مقایسه کند، تاریخچه قیمت، نظرات و پرسشوپاسخها را بخواند و پیشنهادهای شگفتانگیز را پیدا کند.
چه کارهایی میکند
- جستجو به فارسی یا انگلیسی، با فیلتر قیمت، برند، ویژگی (سیستم عامل، حافظه و ...)، رنگ، نوع فروشنده و ارسال سریع؛ کنار هر نتیجه میگوید عنوانش واقعاً با جستجو جور است یا نه.
- ارزانترین کالای واقعی را پیدا میکند (لوازم جانبی مثل قاب و کابل را کنار میگذارد) و پیشنهاد همه فروشندگان یک کالا را از ارزان به گران نشان میدهد.
- بهترین انتخاب با بودجه شما: کالاها را بر اساس امتیازی رتبهبندی میکند که تعداد امتیازدهندهها را هم در نظر میگیرد، تا یک کالای ۵ ستاره با ۳ رأی از کالای ۴٫۶ ستاره با ۹۰۰ رأی جلو نزند.
- تاریخچه قیمت حدود ۳۰ روز گذشته و کمترین قیمت ماه، برای اینکه بدانید الان وقت خرید است یا نه.
- بررسی دوباره فهرست منتخب: قیمت، موجودی و فاصله تا کمترین قیمت ماه تا ۱۰ کالا با یک درخواست.
- کیفیت: نظرات خریداران با نقاط قوت و ضعف، پرسشوپاسخها، و کارنامه فروشنده (ارسال بهموقع، لغو، مرجوعی).
- تخفیفها: شگفتانگیزها، پرفروشها و تخفیفهای سوپرمارکت (دیجیکالا فرش).
- بیشتر: مقایسه مشخصات فنی، طرحهای دیجیکالا پلاس، قیمت لحظهای طلا و سکه.
نکتهها
- فقط خواندنی است: وارد حساب نمیشود، سبد خرید نمیسازد و سفارش ثبت نمیکند.
- همه قیمتها به تومان است و امتیازها مثل سایت از ۵.
- روی سیستم خود شما اجرا میشود، کلید API لازم ندارد و به هیچ سرور واسطی داده نمیفرستد.
- پاسخها تا ۲ دقیقه نگه داشته میشوند؛ قیمت ممکن است همینقدر از سایت عقب باشد.
کلیدواژهها: دیجیکالا، digikala، سرور MCP دیجیکالا، مقایسه قیمت، ارزانترین قیمت، تاریخچه قیمت، شگفتانگیز دیجیکالا، دیجیکالا فرش، فروشگاه اینترنتی، خرید آنلاین.
نصب (اول uv را نصب کنید). در Claude Code:
claude mcp add digikala -- uvx digikala-mcp
در Claude Desktop، Cursor و بقیه برنامهها همان تنظیم بخش Quick start را بگذارید.
نمونه پرسشها
- «ارزانترین گوشی سامسونگ A07 کدام است و الان قیمتش خوب است؟»
- «بهترین هدفون بیسیم تا ۳ میلیون تومان چیست؟»
- «گوشی اندرویدی با ۲۵۶ گیگ حافظه که خود دیجیکالا میفروشد، از ارزان به گران.»
- «این سه لپتاپ را مقایسه کن و بگو کدام ارزش خرید دارد.»
- «امروز چه شگفتانگیزی برای هدفون هست؟»
Development
git clone https://github.com/sepehr071/digikala-mcp && cd digikala-mcp
uv sync
uv run python -m pytest # offline, against recorded responses
uv run python -m pytest -m live # real API
uv run ruff check .
The live tests can also run on GitHub (Actions → Live → Run workflow). They are not scheduled: from GitHub's US runners Digikala times out on a few calls each run, while the same tests pass from an Iranian connection.
Tools live in src/digikala_mcp/catalog.py, product.py and services.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 API 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
- Technolife MCP server for electronics prices, with installment prices
- MasterKala MCP server for gadgets and phone accessories
- Torob MCP server for price comparison across Iranian shops
- Okala MCP server for online grocery shopping
- Banimode MCP server for fashion and clothing
- iran-mcp: catalog of all Iranian-service MCP servers
- Listed on mcpfarsi.ir, the Persian MCP marketplace
Disclaimer
Unofficial and not affiliated with or endorsed by Digikala. It uses the public endpoints of the digikala.com web app, 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.6.2 با مجوز 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.6.2 were released under MIT and stay under it.
If this saves you clicks, a star helps others find it.
Frequently asked questions
What is Digikala MCP Server?
Unofficial read-only Digikala: search products, compare sellers, price history, reviews, deals.
How do I install Digikala 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. Digikala MCP Server runs locally from the PyPI package digikala-mcp with the command uvx digikala-mcp.
Is Digikala MCP Server free and open source?
Yes. Digikala 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 Digikala MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Digikala MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Digikala MCP Server provide?
Digikala MCP Server provides 23 tools, including dk_best_for_budget, dk_best_sellers, dk_brand_products, and dk_categories. See the full tool list for descriptions and parameters.
How is Digikala MCP Server's trust score calculated?
Digikala MCP Server scores 71 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
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.
