Digikala MCP 标志

Digikala MCP

社区
mmdju

MCP server for Digikala: search, compare and price-check products on Iran's largest marketplace. Read-only, no API key. 16 tools, hosted on Cloudflare Workers.

发布者mmdju
代码仓库digikala-mcp
语言JavaScript
复刻数
18
星标数
129
可用工具
0
传输类型streamable-http
分类
链接
  • 将工具接入 AI 工作流

    Digikala MCP 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 129 个星标和 18 个复刻。

Digikala MCP - Shop intelligence for AI agents

Digikala MCP banner

A public MCP server that gives AI agents real Digikala knowledge: search, prices in Toman, discounts, ratings, sellers, reviews, deals and bestsellers. Read-only, no key needed.

Live endpoint: https://digikala-mcp.mmdju.workers.dev/mcp (Streamable HTTP, stateless)

نسخه فارسی · Examples · Tool reference · Changelog

Connect in 30 seconds

Any MCP client, one URL. Cline / Cursor / Claude Desktop (mcp.json style):

json
{
  "mcpServers": {
    "digikala": { "url": "https://digikala-mcp.mmdju.workers.dev/mcp" }
  }
}

Then just talk: "best Samsung phone under 20 million Toman", "is this laptop any good?", "what is on deal today?", "what is popular in Iran right now?".

Agents running in a browser work too - the endpoint answers CORS preflights (OPTIONS /mcp).

16 tools

ToolWhat it answers
digikala_suggestVague wording to real search terms, category ids, trends
search_digikala"Show me X", price checks, filters + sorting + paging
browse_categoryBrowse a category, drill into sub-categories
product_detailsEverything about one product: price, seller, warranty, specs, reviews
product_price_chart"Is now cheap?" - short price history with seller per point
product_questions"What did buyers ask?" - questions with their answers, tagged seller / buyer / user
get_products_batchShortlist cards for up to 10 ids - feeds compare_products
product_urlProduct id to shareable URL + title
product_variants"Which colour is cheapest?" - every variant with its own price + seller
search_filters"Which brands exist for X?" - brand/color/category ids + price range
product_reviews"Is it any good?" - buyer-only and min-rating filters
compare_products"Which of these?" - only the specs that actually differ
find_best_value"Best X under Y Toman" - ranked picks with seller grade
incredible_offersToday's deals (شگفت‌انگیز + other promotions)
best_sellingSite-wide bestsellers, with category ids to go deeper
similar_products"What else is like this?" - Digikala's own recommendations

Notes for agent builders:

  • All prices are in Toman (1 Toman = 10 Rial). Prices, stock and discounts move constantly - always link the product URL so the user can confirm before buying.
  • Start vague queries with digikala_suggest to get real search terms and a category_id.
  • Anything with a budget or the word "best" goes to find_best_value - plain search only sees one page.
  • Product counts are Digikala's own estimates and drift between pages - treat them as approximate.
  • Digikala's search ORs its tokens - results that only partially match a query come back flagged low_confidence (with the exact unmatched_terms), and silently clamped pages report page_clamped.
  • Results are capped (default 10, max 30) to protect agent context. Specs are capped at 60 attributes unless narrowed.
  • See examples/sample-calls.md for eight copy-paste conversation flows, and docs/tools.md for the full parameter reference.
  • Persian queries are normalized with fa-text-utils (yeh/kaf folding, Persian digits, ZWNJ variants) - the same tiny helpers, published separately.

How it works

How a question becomes an answer. No user data is stored anywhere in this path.

What this means:

  • Stateless. Every request stands alone - no sessions, no accounts, nothing to log in to.
  • Read-only. All 16 tools carry readOnlyHint. Nothing here can change, delete or order anything.
  • No user data. Nothing about you is stored. What the server does keep: a short-lived response cache (a few minutes) and Digikala's own CDN bot-check cookie (10 minutes), so one solved challenge covers every instance in the same data centre. Prices, stock and discounts are re-read from Digikala every time the cache expires.
  • Rate-limit aware. Requests go out half a second apart. When Digikala pushes back - its cookie challenge or a 429 - the server waits it out with exponential backoff and a bit of randomness, instead of retrying in a burst.
  • Undocumented upstream. Digikala's public API can change without notice - this service tracks it and adapts, which is exactly why the verify script exists.

Trust, verified

Don't take my word for it - check the live server yourself:

bash
node scripts/verify-live.mjs   # needs Node.js 18+, nothing to install

It lists all 16 tools over Streamable HTTP, runs a search + details read + error paths, and asserts the honest-data contract. The same script runs hourly in CI (Live verify) - if the endpoint or Digikala's API drifts, the badge goes red. See docs/architecture.md for how a question becomes an answer, and examples/python.py for a copy-paste client.

Data source

Digikala's public web API (undocumented, may change without notice). This project is not affiliated with or endorsed by Digikala.

Status

Free public service on Cloudflare Workers. 20 requests per minute per IP on POST /mcp (HTTP 429 + retry-after when exceeded; the counter is Cloudflare's rate limiting service, per data centre). A normal agent session never comes close - a full one (handshake, a search, a few detail reads, one comparison) measures at roughly 15-20 POSTs - so the limit only stops flood abuse. What the server still paces is its own calls to Digikala: at most two in flight, half a second apart, with backoff when Digikala pushes back, so ordinary agent use never looks like a flood.

License

Showcase repository (docs only, no source published) - see LICENSE. Security notes in SECURITY.md. Persian version in README_FA.md.

安装

TypingMind
{
  "mcpServers": {
    "digikala-mcp": {
      "url": "https://digikala-mcp.mmdju.workers.dev/mcp"
    }
  }
}

将 Digikala MCP MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Digikala MCP 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 在 TypingMind 中,您可以使用远程托管的 MCP 服务器的 URL 连接此 MCP 服务。

添加 MCP 服务器 URL

如果 Digikala MCP 已托管在远程服务器上,或您的团队希望让多个用户共用一个连接器,请选择此方式。

1

打开 MCP 连接器

在 TypingMind 中,前往“插件”,打开“MCP 连接器”,然后选择“添加 URL”。

  1. 在您的浏览器中打开 TypingMind。
  2. 进入“插件”。
  3. 打开“MCP 连接器”。
  4. 点击“添加 URL”。
TypingMind 的“添加自定义 MCP 服务器 URL”表单
2

粘贴服务器 URL

在“服务器 URL”字段中输入 https://digikala-mcp.mmdju.workers.dev/mcp。根据服务器要求,添加连接名称、描述、图标、自定义 HTTP 请求头或 OAuth 客户端设置。

  1. 将 https://digikala-mcp.mmdju.workers.dev/mcp 粘贴到“服务器 URL”字段中。
  2. 为 Digikala MCP 输入连接名称。
  3. 您可以添加描述和图标,以便更容易识别此连接。
  4. 如果服务器需要身份验证,请添加自定义 HTTP 请求头或 OAuth 客户端信息。
3

创建连接

点击“创建连接”,然后返回插件列表,确认新的 MCP 连接处于可用状态。

  1. 点击“创建连接”。
  2. 返回 MCP 连接器列表。
  3. 确认列表中的 Digikala MCP 连接显示为可用状态。
  4. 如果连接未立即出现,请刷新插件列表。
4

切换模型,无需重新连接

使用您偏好的模型开始聊天,在“插件”中启用 Digikala MCP 工具,并根据需要随时切换到其他模型。该 MCP 连接在 TypingMind 工作区中仍然可用。

  1. 在 TypingMind 中开始新聊天。
  2. 选择您想使用的 AI 模型。
  3. 在“插件”中启用 Digikala MCP 工具。
  4. 需要时,请让模型使用该工具。
  5. 切换到其他 AI 模型,继续使用同一个 MCP 连接。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Digikala MCP 帮我完成这项任务吗?
Digikala MCP
当然,我看过了。
以下是我使用 Digikala MCP 得到的结果。

常见问题

Digikala MCP MCP 服务器有什么用途?

Digikala MCP 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Digikala MCP MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 Digikala MCP。

为什么在 TypingMind 中使用 Digikala MCP MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 Digikala MCP 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Digikala MCP MCP 连接到 TypingMind?

要连接 Digikala MCP,请在 TypingMind 中添加该远程 MCP 服务器的 URL。如果您希望在 TypingMind 工作区中使用远程 MCP 连接,这种方式很适合。

Digikala MCP MCP 在 TypingMind 中提供哪些工具?

Digikala MCP 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Digikala MCP MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 Digikala MCP 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇