Enables searching Daraz.pk products with smart cheapest detection and category support using documented API patterns.
SaferSkills independently audited daraz-mcp (MCP Server) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A streamlined Model Context Protocol (MCP) server for searching Daraz.pk products. Built using documented Daraz API patterns for maximum reliability and performance.
mods.listItems structure and ajax=true endpointssearch_daraz - The Main Search ToolSmart search that handles everything automatically:
# Regular search
search_daraz("wireless mouse")
# Auto-detects cheapest requests
search_daraz("cheapest wireless mouse") # Searches 15 pages, sorts by price
# Explicit cheapest mode
search_daraz("mouse", cheapest=True)
# Price filtering
search_daraz("laptops", max_price=50000)
# Category search (uses documented category endpoints)
search_daraz("TV", category="televisions")Features:
product_details - Get Product Infoproduct_details("https://www.daraz.pk/products/product-url")This server uses officially documented Daraz.pk endpoints:
GET https://www.daraz.pk/catalog/
?ajax=true
&q=query
&page=1
&_keyori=ssGET https://www.daraz.pk/{category}/
?ajax=true
&page=1
&q=search_within_categoryResponse Structure: data.mods.listItems[] contains product array
pip install fastmcp requests beautifulsoup4 playwright{
"mcpServers": {
"daraz-search": {
"command": "C:\\path\\to\\python.exe",
"args": ["C:\\path\\to\\server_merged.py"]
}
}
}❌ 6 different tools: search_daraz, search_daraz_structured, search_daraz_formatted, search_cheapest_daraz, search_most_expensive_daraz, product_details ❌ Cache causing stale results ❌ AI couldn't decide which tool to use
✅ 2 simple tools: search_daraz (smart), product_details ✅ No cache - always fresh results ✅ Auto-detection of user intent ✅ Uses documented API patterns
| Query Type | Pages Searched | Results | Sorting |
|---|---|---|---|
| Regular search | 5 pages | Up to 10 | As found |
| "Cheapest" query | 15 pages | 1 item | Price (lowest first) |
With cheapest=True | 15 pages | 1 item | Price (lowest first) |
With max_price | 5 pages | Filtered | As found |
.db files created# The AI will automatically choose the right parameters
search_daraz("cheapest phone cases") # cheapest=True, max_results=1
search_daraz("phone cases") # regular search, max_results=10
search_daraz("cases", max_price=500) # price filteringThis server is production-ready and uses officially documented Daraz.pk API patterns for maximum reliability. No seller account required - works with public endpoints only.
Start LM Studio, add the MCP server, and start shopping! 🛍️
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.