
Divar 的 MCP 服务器——搜索、比较和分析分类广告。只读,无 API 密钥。
概览
一个公开的MCP服务器,向AI代理提供搜索、类别和社区、汽车里程和手机规格、租赁押金+租金、广告详情、并排比较以及实时价格评定。 https://divar-mcp.mmdju2.workers.dev/mcp(可流式HTTP,无状态) 任何MCP客户端,。Cline / Cursor / Claude Desktop(mcp.json风格): 运行在浏览器中的代理也能工作——终端会响应CORS的前点检查(OPTIONS /mcp)。 每个工具都是只读的(仅读提示:真),不需要凭证。MCP(compare-ads,预算内最佳)和(divar://cities,divar://categories,divar://category-filters/{slug})都能参考数据,无需花费工具调用。 - (1 托曼 = 10里亚尔),可转让广告返回price_toman:空 - 永不为0。广告销售时间为小时,因此链接广告URL并让用户确认。- 不愿发布广告的卖家输入假数字(۱,۰۰۰ تومان,重复数字)——这些广告会留在每个列表中,标注price_note,且从不设定中位数。
概述(AI 翻译)
一个为AI代理提供真实Divar知识的公共MCP服务器:搜索伊朗最大的分类广告、托曼价格、类别和社区、汽车里程和手机规格、租车押金+租金、广告详情、并排对比及实时价格评定。只读,无需密钥。无需登录,无需电话号码——永远不要。
实时端点: https://divar-mcp.mmdju2.workers.dev/mcp(可流式HTTP,无状态)
نسخه فارسی ·示例****工具参考 ·变更日志
30秒后连接
任何MCP客户端,一个URL。Cline / 光标 / Claude桌面(mcp.json风格):
然后就说:“自豪感低于3亿”,“德黑兰两居室出租”,“这207是个好交易吗?”, “马什哈德最便宜的iPhone 13”。
运行在浏览器中的代理也能工作——端点响应CORS的前检([OPTIONS /mcp)。
7 工具
| 工具 | 它回答了什么 |
|---|---|
divar_suggest |
对真实搜索词、类别单字、城市和区名的模糊措辞——所有236个类别和1177个城市 |
search_ads |
“显示X”,价格检查——筛选、排序、分页;一次通话最多可扫描并合并5页 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Divar MCP - Classifieds intelligence for AI agents
A public MCP server that gives AI agents real Divar knowledge: search Iran’s largest classifieds, prices in Toman, categories and neighbourhoods, car mileage and phone specs, rental deposit + rent, ad details, side-by-side comparisons and a live price verdict. Read-only, no key needed. No login, no phone numbers - ever.
Live endpoint: https://divar-mcp.mmdju2.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):
{
"mcpServers": {
"divar": { "url": "https://divar-mcp.mmdju2.workers.dev/mcp" }
}
}
Then just talk: “pride under 300 million”, “two-bedroom to rent in Tehran”, “is this 207 a good deal?”, “cheapest iPhone 13 in Mashhad”.
Agents running in a browser work too - the endpoint answers CORS preflights (OPTIONS /mcp).
7 tools
| Tool | What it answers |
|---|---|
divar_suggest |
Vague wording to real search terms, category slugs, city and district ids - all 236 categories and 1177 cities |
search_ads |
“Show me X”, price checks - filters, sorting, paging; one call can scan and merge up to 5 pages |
ad_details |
Everything about one ad: price, specs, amenities, condition scores, photos, map, expiry, chat flag, seller type |
get_ads_batch |
Shortlist cards for up to 10 tokens - feeds compare_ads, and each card says who is selling and until when |
compare_ads |
“Which of these?” - only the specs that actually differ, plus the middle of the set and where each ad sits |
find_best_value |
“Best X under Y Toman” - picks ranked by what the budget reaches, judged against the uncapped market (market_scale) |
market_price |
“Is this price normal?” - the median of a live sample, with its size and what it kept out of the maths |
Every tool is read-only (readOnlyHint: true) and needs no credentials. MCP prompts (compare-ads, best-under-budget) and resources (divar://cities, divar://categories, divar://category-filters/{slug}) ride along - reference data without spending a tool call.
Notes for agent builders:
- All prices are in Toman (1 Toman = 10 Rial), and a negotiable ad returns
price_toman: null- never 0. Ads sell in hours, so link the ad URL and let the user confirm. - Not every number in a price field is a price. A seller who will not publish one types a fake (
۱,۰۰۰ تومان, repeated digits) - those ads stay in every list, labelledprice_is_placeholderwith aprice_note, and never set a median. The evidence rides along asprice_reading, so the caller judges the number instead of trusting it.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"divar": { "url": "https://divar-mcp.mmdju2.workers.dev/mcp" }
}
}