Digikala

v0.6.3
io.github.sepehr071/digikala-mcp Checked 2 days ago Published 15 days ago

Unofficial read-only Digikala: search products, compare sellers, price history, reviews, deals.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

dk_find_cheapest Find cheapest product

Find the cheapest in-stock products that really match a query, sorted by price (Toman). Keeps titles with every query word and drops accessories. Then dk_product on the winner: another seller may be cheaper.

ParameterTypeDescription
query *stringPersian or English words, e.g. 'گوشی سامسونگ'.
limitinteger
max_priceinteger | null
min_priceinteger | nullToman. Default: 1/4 of the top matches' median price (drops accessories).
pagesintegerRelevance pages to scan.

dk_best_for_budget Best picks for a budget

Rank the best-rated in-stock products within a budget (Toman) by a rating weighted by its count. A 5.0 from 3 buyers does not beat a 4.6 from 900. Use for "best X under Y".

ParameterTypeDescription
max_price *integerBudget, Toman.
category_codestring | nullInstead of query, e.g. 'mobile-phone'.
limitinteger
min_priceinteger | nullToman. Default for a query: a floor that drops accessories.
min_ratingsinteger
pagesintegerPages to scan.
querystring | nulle.g. 'هدفون بی سیم'.

dk_suggest Search suggestions

Autocomplete a vague or misspelled query into keywords and categories.

ParameterTypeDescription
query *stringPartial text, e.g. 'هدفون'.

dk_filters Filter options

List the filters of a category or a search: attributes, colors, sellers, price range (Toman), brands. Maps are {title: id}; an attribute with over 15 values has only `value_count` (call again with attribute_id). Pass the ids to dk_category_products or dk_search.

ParameterTypeDescription
attribute_idinteger | nullList all values of this one attribute.
brand_codestring | nullWith category_code, e.g. 'samsung'.
category_codestring | nulle.g. 'mobile-phone'.
querystring | nullInstead of a category.

dk_categories Find categories

Find category codes for dk_category_products and main-category ids for dk_best_sellers. No arguments lists the main categories. A parent category mixes in accessories: browse its leaf.

ParameterTypeDescription
limitinteger
parent_idinteger | nullList its sub-categories.
querystring | nullPersian name (finds more) or English code, e.g. 'لپ تاپ'.

dk_category_products Browse a category

List one category's products with sort and filters (price in Toman), strict order. No text query. Filter ids: dk_filters(category_code=...).

ParameterTypeDescription
category_code *stringe.g. 'mobile-phone'.
attributesobject | nullAs dk_search.
brand_codestring | nulle.g. 'xiaomi'.
brand_idsarray | nullAs dk_search.
colorsarray | nullAs dk_search.
fast_deliverybooleanJet delivery only.
in_stock_onlyboolean
max_priceinteger | null
min_priceinteger | null
pageinteger
ready_to_shipbooleanIn Digikala's warehouse only.
seller_typestring | null
sortstring

dk_brand_products Browse a brand

List a brand's products with sort and price filters (Toman), plus the brand id for brand_ids. One brand in one category: dk_category_products(brand_code=...).

ParameterTypeDescription
brand_code *stringLowercase English name, e.g. 'samsung'.
in_stock_onlyboolean
max_priceinteger | null
min_priceinteger | null
pageinteger
sortstring

dk_seller Seller profile and products

Get a seller's reputation (rating 0-5, on-time shipping, cancellations, returns) and products. Percentages are the share of good orders (100 = never late).

ParameterTypeDescription
seller_code *stringdk_product offer seller_code, e.g. 'CGDG9'.
in_stock_onlyboolean
pageinteger
sortstring

dk_deals Current deals

List today's Incredible Offers (flash deals), biggest discount first, in-stock only. deal_ends is Tehran time.

ParameterTypeDescription
max_priceinteger | null
min_priceinteger | null
pageinteger
querystring | nullNarrow the deals.
sortstring
storestring'supermarket' = Fresh grocery deals.

dk_best_sellers Best sellers

List current best sellers, overall or in one main category; also returns the main categories' ids for category_id.

ParameterTypeDescription
category_idinteger | nullMain category id (this tool's `categories`), e.g. 1 mobile. Leaf ids fail.
limitinteger

dk_product Product details and offers

Get one product's price, stock, rating, specs and every seller's offer (cheapest first). An offer is one color/size from one seller; stock_left only when low; ships_by 'jet' = same-day Tehran/Karaj. lowest_price_30d can be a one-day dip (dk_price_history's lowest_2_days is steadier).

ParameterTypeDescription
product_id *integer
include_specsboolean
max_offersinteger

dk_price_history Price history

Get ~30 days of daily buy-box prices (Toman) per color/variant, with lowest and highest. `lowest_2_days` is the lowest price held two days in a row (`lowest` can be a one-day dip). Days are Jalali.

ParameterTypeDescription
product_id *integer

dk_reviews Product reviews

Read customer reviews: stars 1-5 (null = none), text, pros/cons, verified buyer flag. Texts are cut to 300 characters, pros/cons to 5 of 80 (full_text=true: whole).

ParameterTypeDescription
product_id *integer
full_textbooleanNo text cuts.
limitintegerOf the page's 20.
pageinteger
sortstring

dk_questions Product questions and answers

Read customers' questions (20 per page) with up to 2 answers each (answered_by: buyer, seller, ...). Texts are cut to 300 characters (full_text=true: whole).

ParameterTypeDescription
product_id *integer
full_textbooleanNo text cuts.
pageinteger
sortstring

dk_similar Similar products

List products similar to one (same kind, other models and brands); sort='cheapest' for cheaper ones.

ParameterTypeDescription
product_id *integer
in_stock_onlyboolean
pageinteger
sortstring

dk_compare Compare products

Compare 2-4 products side by side: price and rating, then the spec rows where they differ. A `specs` row's `values` follow `products` order (null = no such spec); identical rows fold into `same_specs`.

ParameterTypeDescription
product_ids *arraySame kind, e.g. [20109389, 20110013].

dk_shortlist Re-check a shortlist

Re-price up to 10 products in one call: price, cheapest offer, stock, rating and 30-day low (Toman). `low_30d` is the lowest price held two days in a row, `vs_30d_low_pct` today's price above it.

ParameterTypeDescription
product_ids *arraye.g. [20109389, 20110013].

dk_installments Installment plans

Get the Digipay credit-line offers for a product, in Toman. A plan is a fixed credit line repaid in `months` installments, not sized to the product price: never present it as "this product for X a month".

ParameterTypeDescription
product_id *integer

dk_plus_plans Digikala Plus plans

List Digikala Plus plans (monthly free shipments; fresh = supermarket) with price in Toman and benefits.

dk_gold_prices Gold and coin prices

Get the live 18k gold price per gram and gold coin prices, in Toman. Period change, low and high cover ~3 months. A coin with price null is not for sale.

dk_location Find location

Turn an address into coordinates, or coordinates into an address with Digikala's city_id and state_id. Prices are the same everywhere; location only affects delivery.

ParameterTypeDescription
addressstring | nullPersian address or landmark, e.g. 'میدان ونک'.
citystring | nullPersian city, e.g. 'تهران'; needed for most addresses.
latnumber | nullWith long: describe a point instead.
longnumber | null