daraz-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@daraz-mcpfind cheapest wireless mouse"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Daraz MCP Server - Clean & Fast
A streamlined Model Context Protocol (MCP) server for searching Daraz.pk products. Built using documented Daraz API patterns for maximum reliability and performance.
β¨ Features
π― Simple & Clean: Just 2 tools instead of 6 confusing ones
π‘ Official API Patterns: Uses documented
mods.listItemsstructure andajax=trueendpointsπΈ Smart Cheapest Search: Auto-detects "cheapest" queries and searches extensively
π« No Cache: Always fresh results, no .db files created
π Multi-method: JSON API primary, Playwright browser fallback
π¨ Beautiful Output: Human-readable results with clickable links
β‘ Fast: Optimized using officially documented endpoints
Related MCP server: market-fiyatlari-mcp-server
π οΈ Tools Available
1. search_daraz - The Main Search Tool
Smart 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:
Auto-detects "cheapest" in query and switches to extensive search mode
Searches 15 pages for cheapest queries vs 5 for regular
Sorts results by price for cheapest queries
Returns formatted, clickable results
2. product_details - Get Product Info
product_details("https://www.daraz.pk/products/product-url")π‘ API Implementation
This server uses officially documented Daraz.pk endpoints:
Search Endpoint
GET https://www.daraz.pk/catalog/
?ajax=true
&q=query
&page=1
&_keyori=ssCategory Endpoint
GET https://www.daraz.pk/{category}/
?ajax=true
&page=1
&q=search_within_categoryResponse Structure: data.mods.listItems[] contains product array
π Quick Setup
Install dependencies:
pip install fastmcp requests beautifulsoup4 playwrightAdd to LM Studio
mcp.json:
{
"mcpServers": {
"daraz-search": {
"command": "C:\\path\\to\\python.exe",
"args": ["C:\\path\\to\\server_merged.py"]
}
}
}Test in LM Studio:
"Find cheapest Nothing phone case"
"Search for wireless mice under 2000 PKR"
"Show me gaming laptops"
π― Improvements from Previous Version
Before (Confusing):
β 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
After (Clean):
β
2 simple tools: search_daraz (smart), product_details
β
No cache - always fresh results
β
Auto-detection of user intent
β
Uses documented API patterns
π Search Behavior
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 | 15 pages | 1 item | Price (lowest first) |
With | 5 pages | Filtered | As found |
π§ No Cache = Always Fresh
β No
.dbfiles createdβ Every search hits Daraz API fresh
β Latest prices and stock status
β No stale cached results
π‘οΈ Anti-Bot Protection
User-Agent rotation (5 different browsers)
Random delays between requests (1.0-2.5s)
Proper headers and referrers
Graceful fallback to browser automation
π Usage Examples
For Users in LM Studio:
"Find me the cheapest Nothing phone 1 case"
"Search for wireless mice under 1500 PKR"
"What are some good gaming laptops?"
"Show me TVs in the television category"
For Developers:
# 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 filteringπ Ready to Use
This 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! ποΈ
This server cannot be deployed
Maintenance
Related MCP Connectors
Amazon search and product extraction: titles, prices, ASINs, and listings as clean JSON.
Search 100+ US retailers, 260M+ products with real-time pricing, stock, and price history. Documentation - https://www.lemmebuyit.com/developer Homepage - https://www.lemmebuyit.com
Search and get fashion products recommendations across multiple e-ecom stores
Google, Bing, DuckDuckGo and Google Maps search results, free without an API key.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables searching and scraping of product listings from major Pakistani e-commerce platforms including Daraz, Telemart, and iShopping. It provides tools to find the lowest-priced items with ratings of four stars or higher through automated web scraping.-
- AlicenseAqualityDmaintenanceEnables querying Turkish market prices, searching products, and comparing prices across different stores using the Market FiyatΔ± API.34 npm35MIT
- FlicenseNot gradedqualityDmaintenanceEnables searching Amazon India products, retrieving details, tracking prices, managing favorites, and more with fast caching.-
- FlicenseNot gradedqualityDmaintenanceEnables searching and comparing products across Pakistani e-commerce platforms Daraz, Telemart, and iShopping, filtering by price and ratings.-