Logo Digikala MCP

Digikala MCP

Cộng đồng
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.

Nhà phát hànhmmdju
Kho mãdigikala-mcp
Ngôn ngữJavaScript
Bản fork
18
Sao
129
Công cụ có sẵn
0
Phương thức truyền tảistreamable-http
Danh mục
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Digikala MCP cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    129 sao và 18 bản fork từ kho mã được liên kết.

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.

Cài đặt

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

Dùng MCP Digikala MCP với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Digikala MCP, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này kết nối qua URL máy chủ MCP được lưu trữ từ xa trong TypingMind.

Thêm URL máy chủ MCP

Dùng cách này khi Digikala MCP đã được lưu trữ từ xa hoặc nhóm của bạn muốn có một trình kết nối dùng chung cho nhiều người dùng.

1

Mở mục Trình kết nối MCP

Trong TypingMind, vào Plugin, mở mục Trình kết nối MCP, rồi chọn Thêm URL.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Vào mục Plugin.
  3. Mở mục Trình kết nối MCP.
  4. Nhấp vào Thêm URL.
Biểu mẫu Thêm URL máy chủ MCP tùy chỉnh của TypingMind
2

Dán URL máy chủ

Nhập https://digikala-mcp.mmdju.workers.dev/mcp vào trường URL máy chủ. Thêm tên kết nối, mô tả, biểu tượng, header HTTP tùy chỉnh hoặc cài đặt ứng dụng khách OAuth nếu máy chủ yêu cầu.

  1. Dán https://digikala-mcp.mmdju.workers.dev/mcp vào trường URL máy chủ.
  2. Nhập tên kết nối cho Digikala MCP.
  3. Thêm mô tả và biểu tượng nếu bạn muốn dễ nhận biết kết nối hơn.
  4. Thêm header HTTP tùy chỉnh hoặc thông tin ứng dụng khách OAuth nếu máy chủ yêu cầu xác thực.
3

Tạo kết nối

Nhấp vào Tạo kết nối, sau đó quay lại danh sách Plugin và xác nhận kết nối MCP mới đang hoạt động.

  1. Nhấp vào Tạo kết nối.
  2. Quay lại danh sách trình kết nối MCP.
  3. Xác nhận kết nối Digikala MCP hiển thị trạng thái đang hoạt động.
  4. Làm mới danh sách plugin nếu kết nối chưa xuất hiện ngay.
4

Đổi mô hình mà không cần kết nối lại

Bắt đầu cuộc trò chuyện với mô hình bạn thích, bật các công cụ của Digikala MCP trong mục Plugin và chuyển sang mô hình khác khi cần. Kết nối MCP vẫn sẵn dùng trong không gian làm việc TypingMind.

  1. Bắt đầu cuộc trò chuyện mới trong TypingMind.
  2. Chọn mô hình AI bạn muốn dùng.
  3. Bật các công cụ của Digikala MCP trong mục Plugin.
  4. Yêu cầu mô hình dùng công cụ khi cần.
  5. Chuyển sang mô hình AI khác và dùng lại cùng kết nối MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Digikala MCP giúp tôi làm việc này không?
Digikala MCP
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Digikala MCP.

Câu hỏi thường gặp

Máy chủ MCP Digikala MCP dùng để làm gì?

Digikala MCP là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Digikala MCP với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Digikala MCP với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Digikala MCP với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Digikala MCP, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Digikala MCP với TypingMind?

Bạn có thể kết nối Digikala MCP trong TypingMind bằng cách thêm URL máy chủ MCP được lưu trữ từ xa của dịch vụ này. Cách này hữu ích khi bạn muốn dùng kết nối MCP từ xa ngay trong không gian làm việc TypingMind.

MCP Digikala MCP cung cấp những công cụ nào trong TypingMind?

Digikala MCP cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Digikala MCP không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Digikala MCP yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇