MD

mmdju/divar-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

108 stars 9 forks 品質 71 トレンド 15NOASSERTION

DivarのMCPサーバー — クラシファイド広告の検索、比較、分析。読み取り専用、APIキーなし。

概要

AIエージェントに検索、カテゴリ、近隣地域、車の走行距離や電話のスペック、レンタカーの敷金+家賃、広告詳細、並べた比較、そしてライブ価格の評価を提供する公開MCPサーバーです。 https://divar-mcp.mmdju2.workers.dev/mcp(ストリーム可能なHTTP、ステートレス) 任意のMCPクライアント、Cline / Cursor / Claude Desktop(mcp.jsonスタイル): ブラウザ上で動作するエージェントも動作します。エンドポイントはCORSプリフライト(OPTIONS /mcp)に対応します。 すべてのツールは読み取り専用(readOnlyHint: true)で、認証情報は不要です。MCP(compare-ads、best-under-budget)や(divar://cities、divar://categories、divar://category-filters/{slug})はツールコールを使わずに参照データを利用できます。 - (1 トマン = 10 リアル)、交渉可能な広告はprice_toman:null - 決して0ではありません。広告は数時間単位で販売されるので、広告URLをリンクしてユーザーに確認させてください。- 掲載しない販売者は偽の数字(۱,۰۰۰ تومان、繰り返し数字)を入力する - その広告はすべてのリストに残り、リprice_noteでラベル付けされ、中央値を設定することはありません。

概要(AI 翻訳)

AIエージェントにリアルなDivar知識を提供する公開MCPサーバー:検索イラン最大のクラシファイド広告、トマンの価格、カテゴリや近隣地域、車の燃費と携帯電話のスペック、レンタカーデポジット+家賃、広告詳細、並べた比較、そしてリアルタイムの価格評価。読み取り専用、キー不要。ログインも電話番号も一切なし。

ライブエンドポイント: https://divar-mcp.mmdju2.workers.dev/mcp(ストリーム可能なHTTP、ステートレス)

نسخه فارسی ·例ツール参照変更ログ

30秒後に接続

任意のMCPクライアント、1つのURL。Cline / カーソル / Claude デスクトップ(mcp.jsonスタイル):

それから話してみてください:「3億ドル未満の誇り」、「テヘランで2ベッドルームの賃貸」「これは良い取引か?」、「マシュハドで最も安いiPhone 13」**。

ブラウザ上で動作するエージェントも動作します。エンドポイントはCORSプリフライト(OPTIONS /mcp)に対応します。

7 道具

ツール 答えるもの
divar_suggest 曖昧な表現で実際の検索語、カテゴリースラッグ、市および地区ID - すべて236カテゴリおよび1177都市
search_ads 「X を表示」、価格チェック - フィルター、ソート、ページング;1回の通話で最大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, labelled price_is_placeholder with a price_note, and never set a median. The evidence rides along as price_reading, so the caller judges the number instead of trusting it.
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "divar": { "url": "https://divar-mcp.mmdju2.workers.dev/mcp" } } }