sepehr071/digikala-mcp
Unofficial read-only MCP server for Digikala: search products, find the cheapest real match, compare sellers, price history, reviews, deals and Fresh supermarket for AI agents. دیجیکالا، مقایسه قیمت، ارزانترین، شگفتانگیز
c6b9dc154523digikala-mcp0.6.3 in pyproject.tomlio.github.sepehr071/digikala-mcpPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 6 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 1 of 24 tools, prompts and resources could not be followed through the code
- 1 place in the code registers tools whose names are computed at run time; how many tools that makes cannot be read from the code
Top risks in plain words
- MEDIUM1 production dependency has known vulnerabilities (worst: medium).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Update its vulnerable packages
Use
opentelemetry-api1.45.2 or later. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 24 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
Best picks for a budget, Best sellers, Browse a brand, Browse a category, Compare products, Current deals and 17 moreBest picks for a budget, Best sellers, Browse a brand, Browse a category, Compare products, Current deals and 17 moreNo tool was seen to: start other programs on the machine; read or write files; read passwords, tokens or keys; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
No tool was seen returning text from outside the server to the model.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (24: 24 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
(name computed at run time)tool
No description.
Best picks for a budgettool Rank the best-rated in-stock products within a budget (Toman) by a rating weighted by its count.NetworkEnv vars
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".Best sellerstool List current best sellers, overall or in one main category; also returns the main categories' ids for category_id.NetworkEnv vars
List current best sellers, overall or in one main category; also returns the main categories' ids for category_id.
Browse a brandtool List a brand's products with sort and price filters (Toman), plus the brand id for brand_ids.NetworkEnv vars
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=...).Browse a categorytool List one category's products with sort and filters (price in Toman), strict order.NetworkEnv vars
List one category's products with sort and filters (price in Toman), strict order.
No text query. Filter ids: dk_filters(category_code=...).Compare productstool Compare 2-4 products side by side: price and rating, then the spec rows where they differ.NetworkEnv vars
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`.Current dealstool List today's Incredible Offers (flash deals), biggest discount first, in-stock only.NetworkEnv vars
List today's Incredible Offers (flash deals), biggest discount first, in-stock only.
deal_ends is Tehran time.Digikala Plus planstool List Digikala Plus plans (monthly free shipments; fresh = supermarket) with price in Toman and benefits.NetworkEnv vars
List Digikala Plus plans (monthly free shipments; fresh = supermarket) with price in Toman and benefits.
Filter optionstool List the filters of a category or a search: attributes, colors, sellers, price range (Toman), brands.NetworkEnv vars
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.Find categoriestool Find category codes for dk_category_products and main-category ids for dk_best_sellers.NetworkEnv vars
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.Find cheapest producttool Find the cheapest in-stock products that really match a query, sorted by price (Toman).NetworkEnv vars
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.Find locationtool Turn an address into coordinates, or coordinates into an address with Digikala's city_id and state_id.NetworkEnv vars
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.Gold and coin pricestool Get the live 18k gold price per gram and gold coin prices, in Toman.NetworkEnv vars
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.Installment planstool Get the Digipay credit-line offers for a product, in Toman.NetworkEnv vars
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".Price historytool Get ~30 days of daily buy-box prices (Toman) per color/variant, with lowest and highest.NetworkEnv vars
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.Product details and offerstool Get one product's price, stock, rating, specs and every seller's offer (cheapest first).NetworkEnv vars
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).Product questions and answerstool Read customers' questions (20 per page) with up to 2 answers each (answered_by: buyer, seller, ...).NetworkEnv vars
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).Product reviewstool Read customer reviews: stars 1-5 (null = none), text, pros/cons, verified buyer flag.NetworkEnv vars
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).Re-check a shortlisttool Re-price up to 10 products in one call: price, cheapest offer, stock, rating and 30-day low (Toman).NetworkEnv vars
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.Search groceriestool Search or browse Digikala Fresh (supermarket). category_code beats query and also returns sub-categories.NetworkEnv vars
Search or browse Digikala Fresh (supermarket). category_code beats query and also returns sub-categories.
Search productstool Search products by name: price (Toman), discount, seller, rating, 20 per page.NetworkEnv vars
Search products by name: price (Toman), discount, seller, rating, 20 per page.
Each product has `match` ('all', 'some' + `missing_words`, 'none'); prefer 'all'.
Filter ids: dk_filters(query=...).Search suggestionstool Autocomplete a vague or misspelled query into keywords and categories.NetworkEnv vars
Autocomplete a vague or misspelled query into keywords and categories.
Seller profile and productstool Get a seller's reputation (rating 0-5, on-time shipping, cancellations, returns) and products.NetworkEnv vars
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).Similar productstool List products similar to one (same kind, other models and brands); sort='cheapest' for cheaper ones.NetworkEnv vars
List products similar to one (same kind, other models and brands); sort='cheapest' for cheaper ones.
Text the model reads (24)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
Search products tool
Search products by name: price (Toman), discount, seller, rating, 20 per page.
Each product has `match` ('all', 'some' + `missing_words`, 'none'); prefer 'all'.
Filter ids: dk_filters(query=...).Find cheapest product tool
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.Best picks for a budget tool
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".Search suggestions tool
Autocomplete a vague or misspelled query into keywords and categories.
Filter options tool
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.Find categories tool
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.Browse a category tool
List one category's products with sort and filters (price in Toman), strict order.
No text query. Filter ids: dk_filters(category_code=...).Browse a brand tool
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=...).Seller profile and products tool
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).Current deals tool
List today's Incredible Offers (flash deals), biggest discount first, in-stock only.
deal_ends is Tehran time.Best sellers tool
List current best sellers, overall or in one main category; also returns the main categories' ids for category_id.
Search groceries tool
Search or browse Digikala Fresh (supermarket). category_code beats query and also returns sub-categories.
Product details and offers tool
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).Price history tool
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.Product reviews tool
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).Product questions and answers tool
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).Similar products tool
List products similar to one (same kind, other models and brands); sort='cheapest' for cheaper ones.
Compare products tool
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`.Re-check a shortlist tool
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.Installment plans tool
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".(name computed at run time) tool
Digikala Plus plans tool
List Digikala Plus plans (monthly free shipments; fresh = supermarket) with price in Toman and benefits.
Gold and coin prices tool
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.Find location tool
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.What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 23 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 23 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 23 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 23 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 23 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 24 capabilities; 23 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 24 capabilities; 23 more call code the scanner could not follow, where it may happen
- Tools that call the network23 of 24 capabilities call the network
Where the code is: 24 handlers in 4 files at commit c6b9dc154523
src/digikala_mcp/catalog.pySearch products, Find cheapest product, Best picks for a budget, Search suggestions, Filter options, Find categories, Browse a category, Browse a brand, Seller profile and products, Current deals, Best sellers, Search groceriessrc/digikala_mcp/product.pyProduct details and offers, Price history, Product reviews, Product questions and answers, Similar products, Compare products, Re-check a shortlist, Installment planssrc/digikala_mcp/server.py(name computed at run time)src/digikala_mcp/services.pyDigikala Plus plans, Gold and coin prices, Find location
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: pyproject.toml
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 1 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
- Known vulnerabilities in production dependencies MEDIUM1 production package with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionmcp >=2.2,<3
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 24 capabilities; 23 more call code the scanner could not follow, where it may happen
- Environment variables23 capabilities read environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (1 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
opentelemetry-apiPyPI 1.45.0 MEDIUM 2 advisories 1.45.11.45.2
- MEDIUMGHSA-mf5v-w3w3-f6cg CVE-2026-126360OpenTelemetry Python API: Denial of service through quadratic-time traceparent parsing
- MEDIUMGHSA-xcq7-p3pf-p88h CVE-2026-114603OpenTelemetry Python: Unbounded tracestate parsing in opentelemetry-api
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | mcp >=2.2,<3 |
| Servers in the code | 1 (digikala-mcp) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-11 |
| Signed releases | not checked yet |
Where it is published
| MCP Registry | io.github.sepehr071/digikala-mcp |
|---|---|
| Listed in | 4 catalogs (github_search, glama, mcp_registry, mcp_toplist) |
| License | MIT |
| Created | 2026-10-03 |
| Topics | ai-agents claude claude-code cursor digikala e-commerce github-copilot iran mcp mcp-server |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.