divar-mcp
You can use this read-only, no-auth MCP server to search and analyze Divar ads in Iran, including price checking, comparison, market statistics, and local monitoring.
Search Divar ads by city, category, text, district, price/deposit, brand/model, photos, freshness, and category filters.
Browse cities, neighbourhoods, categories, filters, map places, boundaries, and nearby ads around GPS points.
Read full ad details, including price, specs, features, description, images, map position, and seller type.
Compare 2–6 ads, find similar ads, and batch-read up to 10 ads at once.
Find cheapest ads, best-value ads for a budget, and ads priced below market median.
Appraise whether a price is fair using comparable ads, percentiles, verdicts, and confidence.
Compute market statistics (min, quartiles, median, max, mean) by district and day.
Track new ads since a timestamp, export results as CSV/JSONL, and save local watches/price trends.
Look up seller and dealer information and their public ads.
Check server/network status and inspect caches and saved watch state.
It cannot post ads, message sellers, log in, or reveal phone numbers; prices are in Toman and tools are read-only except local watch/trend state.
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., "@divar-mcp find the cheapest 2-bedroom apartment to rent in Tehran"
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.
divar-mcp: Divar MCP server for AI agents
Let your AI agent search Divar (دیوار) ads in any Iranian city, and tell it whether a price is fair. An unofficial, read-only MCP server for Divar, Iran's largest classifieds site (homes, cars, phones, jobs, services). Search, read ads, compare, find the cheapest and best-value ads, appraise prices and browse the map from Claude, Cursor or Copilot. Prices are in Toman.
For AI agents · Why · What it can do · Quick start · Tools · Good to know · FAQ · Configuration · فارسی · Development
For AI agents
What: unofficial MCP server (model context protocol) for Divar (دیوار, divar.ir), Iran's classifieds site. Persian queries work best; Arabic letter variants (ي/ك) are folded.
Install:
uvx divar-mcporclaude mcp add divar -- uvx divar-mcp. Transport: stdio. Needs uv (Python 3.10+).Auth: none, no API key or account. Optional
DIVAR_MCP_PROXY(HTTP proxy URL, or a comma-separated list); system proxy settings are ignored.Access: read-only on Divar. It cannot log in, post, chat, bookmark or reveal a seller's phone number, so no confirmation is needed before calling a tool. Only
dv_watchanddv_price_trendwrite, and only to a local file of your own searches.Tools: 31, all prefixed
dv_. Start withdv_search,dv_post,dv_cheapest,dv_best_for_budget,dv_market.Typical sequence:
dv_cities/dv_categories->dv_filters->dv_search->dv_post->dv_similar/dv_appraise/dv_compare.Also: resources
divar://cities,divar://categories,divar://category-filters/{slug}; promptscompare_ads,best_under_budget,appraise_listing,watch_market.Units: prices in Toman (Divar's own unit, nothing is converted).
pricefor a sale;deposit+rentfor a rental (rent0 withfull_depositmeans رهن کامل); no price means negotiable.Use when: the user wants to find, price-check or monitor Divar ads (flats to buy or rent, used cars, phones, furniture, jobs...), or asks what something costs in a city.
Do not use when: the user wants to post an ad, message a seller or get a phone number (login-only on Divar), or needs a market other than Divar.
Output: compact JSON ad cards. Pass
tokenbetween tools andnext_cursorback ascursor.Machine-readable:
server.jsonand the iran-mcp catalog (TOOLS.md,servers.json,llms.txt).
Related MCP server: neshan-mcp
Why
Divar is where Iranians buy and sell flats, cars and phones, but answering "what is a fair price for a 2-bedroom flat in Vanak?" means scrolling through dozens of ads and ignoring the fake prices. With divar-mcp an agent fetches the ads, drops placeholder prices, computes the median and quartiles of the asking prices, and tells you which ads are well below them.
You: Find the best 2-bedroom flat to rent in Vanak with a deposit under 1 billion Toman.
Agent: calls
dv_parse_query->dv_best_for_budget->dv_postIt lists the best-value ads against the median of the ads that fit, with the reasons for each score, then opens the one you pick.
What it can do
Search ads in one or several cities by category, text, neighbourhood, price (and deposit for rentals), brand and model, photo, freshness and every other filter of the category; merge several pages with duplicates removed; continue with a cursor
Read a full ad: price in Toman, specs, features, description, all images, map position, seller type, placeholder-price detection
Find value: cheapest ads (junk prices skipped), best value and most-for-the-budget, ads priced well below the median, side-by-side comparison showing only the differences, similar ads
Judge a price: fair-price appraisal with percentile and confidence, market statistics by district and by day
Monitor: poll
dv_new_sincewith the last timestamp to see only new ads; keep saved searches and a daily median price trend locally; export results as CSV or JSON linesUse the map: ads around a GPS point or landmark with distances; neighbourhoods, neighbours, borders, address of a point
Look at sellers and dealers: how many ads a seller has, the business card and its ads
Example prompts:
"Cheapest used Peugeot 206 in Tehran, and is it priced fairly compared with similar ads?"
"Find apartments to rent near Vanak under 8 billion Toman and compare the top three."
"Show new iPhone 15 ads in Mashhad since this morning."
"What is the median price per square metre for apartments for sale in Gisha?"
ارزان‌ترین آپارتمان ۲ خوابه اجاره‌ای در ونک با ودیعه زیر ۱ میلیارد کدام است؟
قیمت این ماشین نسبت به آگهی‌های مشابه گران است یا ارزان؟
آگهی‌های جدید گوشی آیفون ۱۵ در مشهد را از امروز صبح نشان بده.
Quick start
You need uv. No API key or account.
claude mcp add divar -- uvx divar-mcpSettings → Developer → Edit Config, then add:
{
"mcpServers": {
"divar": { "command": "uvx", "args": ["divar-mcp"] }
}
}Add the Claude Desktop block above to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).
Click Install in VS Code above, or add to .vscode/mcp.json:
{
"servers": {
"divar": { "type": "stdio", "command": "uvx", "args": ["divar-mcp"] }
}
}codex mcp add divar -- uvx divar-mcpOr in ~/.codex/config.toml:
[mcp_servers.divar]
command = "uvx"
args = ["divar-mcp"]Add to ~/.gemini/settings.json:
{
"mcpServers": {
"divar": { "command": "uvx", "args": ["divar-mcp"] }
}
}Add the Claude Desktop block to ~/.codeium/windsurf/mcp_config.json.
It is a standard stdio MCP server: run uvx divar-mcp, or pip install divar-mcp and run divar-mcp.
Tools
An ad card has token, title, price (sale) or deposit + rent (rent 0 with full_deposit means رهن کامل), info (mileage, condition...), district, seller (agency label), age_h (hours since the last bump), photos, image (thumbnail URL, only from dv_search with thumbnails), chat, tag (paid promotion), url, and suspect_price when the price looks like a placeholder. Absent flags mean false. Default page size is 10 to 20 ads.
All tools start with dv_ and are annotated read-only, except dv_watch and dv_price_trend, which write only to a local file.
Find places and categories
Tool | What it does |
| City ids for a name (1,177 cities); no query lists the biggest cities |
| Neighbourhoods of a city with ids, centre and main streets |
| Neighbourhoods adjacent to a district (Divar's list plus the nearest ones by distance) |
| City, neighbourhood and street address of a GPS point |
| Map autocomplete: landmark or street to coordinates |
| Convert old Divar place ids to current ones |
| The 236-node category tree; search by name, list children |
| Every filter of a category: key, type, label, unit, options |
| Brand and model keys (161 car brands), districts and other option lists, with typed search |
| The search box's suggestions and category guesses for some text |
| A plain Persian request ("آپارتمان اجاره ونک زیر ۸ میلیارد") to |
| Neighbourhood borders of a city (GeoJSON): the city box, or one neighbourhood's polygon |
Search and price
Tool | What it does |
| Search ads with city, category, text, districts, price, brand, photo, freshness and any category filter; multi-page merge, client-side age and keyword filters, cursor paging |
| How many ads match a search (capped at 10,000) |
| The cheapest ads of a search; placeholder prices and far-below-median outliers skipped |
| Within a budget: best value with an explainable |
| Ads priced well below the median of a search, no budget needed; junk prices and bait titles removed |
| Price statistics (min, quartiles, median, max) plus breakdown by district and by day |
| Is an ad's price (or a price you give) high or low versus similar ads (same area first, then the whole city): percentile, verdict ("insufficient comparables" when the call is extreme but thin), confidence |
| Ads published after a timestamp: poll with the returned |
| The ads of a search as CSV or JSON lines |
| Map ads around a point (category required), nearest first, with coordinates, distance and total price |
| Saved searches: create, then check to get only the ads newer than the last check (local file) |
| One median asking price per day for a search, kept locally, with change since the previous day |
| Is Divar reachable, latency, caches, saved watches and the tool list |
One ad and its seller
Tool | What it does |
| Full ad: price, specs, features, description, images, map position, seller type, flags |
| Up to 10 ads in one call, compact |
| 2 to 6 ads side by side: prices and only the specs that differ |
| Ads like this one (same brand and area, widening step by step) |
| A seller's personal and business ad counts, business card (or "personal seller") and other ads (only business sellers' ads are listed, the first 11) |
| A business's public page: name, member since, first 11 ads |
Good to know
Prices are Toman. Divar's prices are Toman already; nothing is converted. A missing price means negotiable (توافقی), never 0. Rentals have
deposit(ودیعه) andrent(اجاره);rent0 withfull_depositis رهن کامل.Asking prices. Everything is what sellers typed, not what deals close at. Some sellers type junk (1,111,111 or a deposit as a car price):
suspect_priceflags placeholders, and rankings and statistics skip them and prices under a tenth of the median.Province scope.
city: "استان مشهد"(orprovince:مشهد) searches the whole province of that city; districts and boundaries need a city.Order. Divar's API only returns newest first; the first 1-3 rows can be paid promotions with older dates.
dv_searchsortand the price tools sort the ads fetched in the call, not the whole market. Paging is a time cursor (next_cursor->cursor).Freshness.
age_his the time since the last bump (نردبان), not since publication; only the ad page has the real publish time.Filters.
dv_filterslists the keys of a category; filters a category lacks are reported inignored, not silently dropped. Web URL slugs (car) work next to API slugs (light).Map positions of most ads are fuzzed by about 500 m (
approximate_location).No phone numbers. Divar shows them only to logged-in users; this server never logs in. Use
urlto open the ad.Large prices. Detail prices come from the ad's price rows; Divar's raw number elsewhere in the ad is float-rounded for large values.
Not available: a Divar price valuation from the site itself, sort by price on Divar's side, paging through all of a dealer's ads, anything behind login.
Rate limits: none was seen in testing, but keep calls modest.
Bot check: if Divar ever serves a challenge page, install
divar-mcp[browser]and runpatchright install chromium; the server then clears it once with a headless browser. Without it, the call fails with a message saying so.
FAQ
Yes: this unofficial MCP server wraps the public JSON API the Divar website itself uses, so Claude, Cursor or Copilot can search ads, read details and compare prices. Divar's official Kenar API is for partners (OAuth and an API key) and is not used here.
It is unofficial, free for non-commercial use. It is read-only, needs no account or API key, and runs on your machine with no hosted server in between.
No. Those need a Divar login and are deliberately left out.
It does not push. dv_new_since returns only ads newer than a timestamp, and dv_watch remembers that timestamp for a saved search (in ~/.divar-mcp/state.json, or DIVAR_MCP_STATE), so a scheduler (cron, a Claude Code loop) can call dv_watch with action: "check".
Toman. Divar's API already uses Toman, so nothing is converted.
Add the server with claude mcp add divar -- uvx divar-mcp, or use the matching config in Quick start, then ask in plain language, in Persian or English.
Yes. dv_categories lists the 236-node category tree and dv_filters shows the filters of each category (brand and model, mileage, price and so on), so the same search tools work across categories.
npx @modelcontextprotocol/inspector uvx divar-mcpConfiguration
Variable | Default | Meaning |
| unset | Optional HTTP proxy URL for requests to divar.ir, or a comma-separated list: one is used until it gets blocked or fails to connect, then the next. System proxy settings are ignored |
|
| File for saved watches and price history (used by |
فارسی: سرور MCP دیوار
divar-mcp یک سرور MCP غیررسمی و فقط‌خواندنی برای دیوار، بزرگ‌ترین سایت نیازمندی ایران، است. این سرور به دستیار هوش مصنوعی شما (Claude، Cursor، Copilot و ...) اجازه می‌دهد در آگهی‌های هر شهر ایران (خرید و فروش و اجاره خانه، خودرو، موبایل و ...) جستجو کند، آگهی را کامل ببیند، چند آگهی را مقایسه کند و ارزان‌ترین و مناسب‌ترین آگهی را برای یک بودجه پیدا کند.
چه کارهایی می‌کند
جستجوی آگهی بر اساس شهر، محله، دسته، متن، قیمت (و ودیعه برای اجاره)، برند و مدل و فیلترهای هر دسته.
ارزان‌ترین آگهی‌ها و آگهی‌های زیر قیمت بازار، با حذف قیمت‌های الکی.
ارزیابی قیمت: گران یا ارزان بودن قیمت یک آگهی نسبت به آگهی‌های مشابه، همراه با آمار قیمت (میانه و چارک‌ها).
مقایسه آگهی‌ها و پیدا کردن آگهی‌های مشابه.
آگهی‌های اطراف یک نقطه روی نقشه، محله‌ها و مرز محله‌ها.
پایش آگهی‌های جدید و ذخیره جستجو و روند قیمت روی سیستم خودتان.
نکته‌ها
فقط خواندنی است: ورود به حساب، ثبت آگهی، گفتگو با فروشنده و نمایش شماره تلفن فروشنده را انجام نمی‌دهد. کلید API یا حساب کاربری لازم نیست و روی سیستم خود شما اجرا می‌شود.
همه قیمت‌ها به تومان است؛ قیمت نداشتن یعنی توافقی. قیمت‌ها همان چیزی است که فروشنده نوشته، نه قیمت نهایی معامله.
پرسش فارسی بهترین نتیجه را می‌دهد.
اگر لازم بود پراکسی بگذارید، متغیر
DIVAR_MCP_PROXYرا تنظیم کنید.
نصب (اول uv را نصب کنید). در Claude Code:
claude mcp add divar -- uvx divar-mcpدر Claude Desktop، Cursor و بقیه برنامه‌ها همان تنظیم بخش Quick start را بگذارید.
نمونه پرسش‌ها
«ارزان‌ترین آپارتمان ۲ خوابه اجاره‌ای در ونک با ودیعه زیر ۱ میلیارد کدام است؟»
«قیمت این آگهی خودرو نسبت به آگهی‌های مشابه چطور است؟»
«آگهی‌های جدید گوشی در مشهد را از امروز صبح نشان بده.»
«میانه قیمت هر متر آپارتمان برای فروش در یک محله چقدر است؟»
Development
git clone https://github.com/sepehr071/divar-mcp && cd divar-mcp
uv sync
uv run ruff check . && uv run ruff format --check .
uv run python -m pytest -q # offline, recorded fixtures
uv run python -m pytest -m live -q # real API, one test per tool
uv buildTools live in src/divar_mcp/ (places.py, catalog.py, search.py, post.py, market.py, watch.py, meta.py); each is a typed async function with a docstring that tells the agent when to use it. Issues and PRs are welcome.
Releases: bump the version in pyproject.toml and server.json, then push a v* tag. GitHub Actions publishes to PyPI.
Related servers
iran-mcp: catalog of all Iranian-service MCP servers
digikala-mcp for Digikala products and prices
torob-mcp for price comparison across Iranian shops on Torob
snapp-mcp for Snapp
technolife-mcp for Technolife electronics
jabama-mcp for Jabama stays
mcpfarsi.ir: Persian marketplace of MCP servers for Iranian services
Disclaimer
Unofficial and not affiliated with or endorsed by Divar. It reads public data through the endpoints of the divar.ir web app, which can change without notice. Everything it returns is asking prices typed by sellers, not advice. Keep request rates low.
If this saves you clicks, a star helps others find it.
Author
Built and maintained by Sepehr Radmard (سپهر رادمرد). Connect on LinkedIn or follow @sepehr071 on GitHub for more MCP servers for Iranian websites, all listed in iran-mcp. If this saves you time, a star on the repo helps other people find it.
مجوز استفاده (License)
استفادهٔ شخصی و غیرتجاری رایگان است. استفاده در شرکت، محصول پولی یا پروژهٔ مشتری به مجوز تجاری نیاز دارد؛ از راه لینکدین یا گیت‌هاب با سپهر رادمرد تماس بگیرید. متن کامل: PolyForm Noncommercial 1.0.0. نسخه‌های پیش از 0.3.1 با مجوز MIT منتشر شده‌اند و همان مجوز را دارند.
Free for personal and non-commercial use under the PolyForm Noncommercial License 1.0.0. Using it in a company, a paid product or a client project needs a commercial license: contact Sepehr Radmard on LinkedIn or GitHub. Versions before 0.3.1 were released under MIT and stay under it.
Available Tools
31 toolsdv_appraiseIs this price fairARead-onlyIdempotent
Is an ad's price (or a price you have in mind) high or low compared with similar ads? Percentile, verdict, confidence.
Give token, or price with search arguments. Ignores year, mileage and condition: refine with filters.
Inputs: city, pages, price, query, +5 more.
dv_best_for_budgetBest ads for a budgetBRead-onlyIdempotent
Within a budget: the best-value ads (furthest below their peers' median) and the ads closest to the budget.
best_value ads carry deal_score (0-100) and reasons; bait titles and implausible prices are skipped.
Property for sale ranks per m2. A closest_to_budget ad already in best_value shows only token and price.
Use a narrow query. Next: dv_appraise, dv_post.
Inputs: budget (required), city, limit, pages, +11 more.
dv_boundaryCity boundaryARead-onlyIdempotent
Neighbourhood borders of a city from Divar's GeoJSON: the city's bounding box, or one neighbourhood's polygon.
Without district: the city box and its neighbourhoods. With it: a thinned GeoJSON Feature ([lon, lat]).
Inputs: city, limit, district, max_points.
dv_categoriesBrowse categoriesARead-onlyIdempotent
The Divar category tree (236 nodes, up to 4 levels): slug, Persian name, path and whether it is a leaf.
Gives the category slug for the search tools (light = cars and vans). Next: dv_filters.
Inputs: limit, query, parent.
dv_cheapestFind cheapest adsARead-onlyIdempotent
The cheapest ads of a search, cheapest first. Skips negotiable ads, placeholder or absurd prices and far-below-median outliers.
Divar cannot sort by price: this ranks the newest pages pages (raise it for a wider scan). Rent categories
rank by monthly rent. Next: dv_post, dv_compare.
Inputs: city, limit, pages, query, +13 more.
dv_citiesFind citiesARead-onlyIdempotent
City ids for a name (1,177 cities; Tehran is 1, Mashhad 3). Returns id, name, URL slug, province id and centre.
Other tools also take the city name directly. Next: dv_districts, dv_search.
Inputs: limit, query.
dv_compareCompare adsARead-onlyIdempotent
Side by side: the price of each ad and only the specs that differ (the identical ones are listed once).
Gives cheapest and cheapest_saves_pct (per m2 when every ad has an area). For ads of one kind.
Inputs: tokens (required).
dv_countCount matching adsBRead-onlyIdempotent
How many active ads match a search, in one cheap call (capped: 10,000 means '10,000 or more').
Use to size a market or to test whether filters are too narrow before fetching ads.
Inputs: city, query, recent, filters, +8 more.
dv_dealerDealer pageARead-onlyIdempotent
A business account's public page: name, active ad count, member since and its first 11 ads.
No paging: for more, search with the dealer's name.
Inputs: brand_token (required).
dv_districtsCity neighbourhoodsARead-onlyIdempotent
Neighbourhoods (محله) of one city with ids, centre point and the main streets inside (Tehran has about 450).
Search tools also take district names directly. Next: dv_neighbours, dv_nearby.
Inputs: city, limit, query.
dv_exportExport adsBRead-onlyIdempotent
The ads of a search as CSV or JSON lines text, ready to save to a spreadsheet or analyse.
Columns: token, title, price, deposit, rent, district, posted (UTC), photos, seller, info, url. Text in data.
Inputs: city, limit, pages, query, +14 more.
dv_filter_optionsFilter optionsARead-onlyIdempotent
Allowed values of a filter: brand and model keys (161 car brands), districts, or any option list.
query turns 'پراید' into the key 'Pride 111'; without it: all brands, or the models of one brand. Pass the
keys to dv_search as brand_model / filters.
Inputs: category (required), city, brand, limit, +2 more.
dv_filtersCategory filtersBRead-onlyIdempotent
Every filter a category supports: key, type, Persian label, unit and the allowed options.
Pass keys in dv_search filters: number_range {'size': {'min': 80}}, repeated_string {'rooms': ['دو']},
str 'automatic', boolean true. lazy options: dv_filter_options.
Inputs: category (required), city.
dv_find_dealsFind dealsARead-onlyIdempotent
Ads priced well below the median of the same search, without a budget: scored deals, with bait and junk prices removed.
Keeps ads min_discount_pct to 70% below the median (per m2 for property for sale); drops suspect prices and
bait, co-op, notice or parking titles. Use a narrow query. Next: dv_post, dv_appraise.
Inputs: city, limit, pages, query, +12 more.
dv_locateLocate a GPS pointBRead-onlyIdempotent
The city, neighbourhood and street address of a GPS point.
Next: dv_nearby.
Inputs: lat (required), lon (required).
dv_marketMarket price statisticsARead-onlyIdempotent
Asking-price statistics of a search: min, p10, p25, median, p75, p90, max, mean; split by district and by day.
A sample of the newest pages pages. Use a narrow query (one model, one area). Next: dv_cheapest, dv_appraise.
Inputs: city, pages, query, recent, +12 more.
dv_nearbyAds near a pointBRead-onlyIdempotent
Ads on the map around a GPS point, nearest first, with coordinates, distance, price chips and a thumbnail.
total_in_area is the true count (up to 200 available). Prices are the site's rounded map chips; sale homes add
price_per_m2. Next: dv_post.
Inputs: lat (required), lon (required), category (required), limit, +8 more.
dv_neighboursAdjacent neighbourhoodsARead-onlyIdempotent
Neighbourhoods adjacent to a district, to widen a neighbourhood search to the surrounding area.
districts is Divar's own (often short) list; nearest adds up to 6 districts within 3 km. Pass them as
districts to dv_search.
Inputs: district_id (required), city.
dv_new_sinceNew ads since a timeARead-onlyIdempotent
Ads published after a moment, newest first: poll this to watch a search (a new flat, a cheap car) without repeats.
Pass the previous call's latest as since. more true: the page limit cut off more new ads.
Inputs: city, hours, limit, pages, +13 more.
dv_parse_queryQuestion to searchARead-onlyIdempotent
Turn a plain Persian request into dv_search arguments: city, neighbourhoods, price bounds, category and leftover words.
Rule-based. Pass search to dv_search as it is; notes say what was assumed. Rooms, year and mileage are not
extracted.
Inputs: text (required).
dv_place_mappingMap old place idsARead-onlyIdempotent
Convert old Divar place ids to the current ones (Divar merged and renumbered places).
Use when an old id returns nothing. unverified ids are neither renumbered nor cities.
Inputs: ids (required).
dv_place_searchSearch a place on the mapARead-onlyIdempotent
Map autocomplete: turn a landmark or street name into coordinates and a bounding box.
Next: dv_nearby or dv_locate with the lat/lon.
Inputs: query (required), lat, lon.
dv_postAd detailsARead-onlyIdempotent
Everything public about one ad: price in Toman, specs, features, description, images, map position, seller type.
specs are the ad's Persian spec rows. No phone number (login only): contact the seller via url.
Next: dv_similar, dv_appraise, dv_seller, dv_compare.
Inputs: token (required), full_text, max_images.
dv_postsSeveral adsARead-onlyIdempotent
Details of up to 10 ads in one call (compact: specs and one image, description cut at 300 characters).
A removed ad shows an error instead of failing the call.
Inputs: tokens (required).
dv_price_trendPrice trendB
The median asking price of a search over the days you have checked it: records one point per day in a local file.
Divar keeps no history: the trend starts with your first call. Returns the last 90 points with change_pct.
Use a narrow query.
Inputs: city, pages, query, record, +4 more.
dv_searchSearch adsARead-onlyIdempotent
Search Divar ads in one or more cities by category, text and filters; compact cards, prices in Toman.
Filters the category lacks come back in ignored. Next: dv_post, dv_compare, dv_cheapest, dv_market.
Inputs: city, sort, limit, pages, +16 more.
dv_sellerSeller and their adsARead-onlyIdempotent
The seller behind an ad: how many personal and business ads they have, the business card (name, brand_token) and their ads.
A personal seller has no business card and Divar no longer lists their other ads. Next: dv_dealer with the brand_token.
Inputs: token (required), limit.
dv_similarSimilar adsARead-onlyIdempotent
Ads similar to one ad: same brand/model (or category) and neighbourhood, widening step by step until enough are found.
basis names the levels searched, narrowest first. Property far off in price or area is counted in
excluded_outliers. Next: dv_compare, dv_appraise.
Inputs: token (required), limit, pages.
dv_statusServer statusARead-onlyIdempotent
Is Divar reachable and how fast: version, a live latency check, caches and local watch state.
Call when other tools fail: tells a blocked network from a bad argument.
Inputs: no named parameters.
dv_suggestSearch suggestionsBRead-onlyIdempotent
What Divar's search box would suggest for some text, and which categories the text belongs to.
Use to find category and query from a product name. Next: dv_search.
Inputs: query (required), city.
dv_watchSaved watchesB
Save a search and later get only the ads that appeared since the last check; stored in a local file, nothing is pushed.
Nothing runs by itself: call check on a schedule or when asked. File: ~/.divar-mcp/state.json
(DIVAR_MCP_STATE).
Inputs: action (required), city, name, limit, +10 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 31 tools
Most tools target a clearly distinct operation (dv_search vs dv_count vs dv_post vs dv_compare vs dv_export), and descriptions include explicit 'Next:' routing hints that reduce misselection. The main overlap clusters are the price-analysis trio (dv_market, dv_appraise, dv_cheapest) and the monitoring trio (dv_watch, dv_new_since, dv_price_trend), plus dv_find_deals vs dv_best_for_budget, which are close enough to require reading the descriptions carefully.
All 31 tools share a uniform dv_ prefix and snake_case, which is highly predictable. There are minor deviations: some names are verbs (dv_search, dv_compare, dv_appraise) while others are nouns (dv_posts, dv_status, dv_cities), and the singular/plural pair dv_post vs dv_posts is a subtle distinction an agent could easily swap.
At 31 tools the surface is heavy for a classifieds client, well past the point where an agent can hold the set in mind. Individual tools are justified by real capabilities (geo, filters, deal scoring), but several near-duplicates (three monitoring tools, three price-statistics tools, two deal finders) inflate the count beyond what the core workflow needs.
Coverage is unusually thorough: search, count, detail, compare, seller/dealer, similar, market stats, appraisal, deals, export, watch/trend polling, and a full geo stack (cities, districts, neighbours, locate, place search, boundary, id mapping) plus category/filter discovery. Gaps are minor: no contact or messaging (login-gated and documented), and no way to list, update, or delete saved watches despite dv_watch creating them.
Maintenance
Related MCP Connectors
Search and browse global classifieds across 80 markets. No auth required for read-only access.
Web scraping and Iranian-web data tools for AI agents: JS rendering, proxies, Markdown output.
Car-listing search and used-car market analysis as agent tools.
Web search, browser automation, scraping, crawling and CAPTCHA solving for AI agents.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables MCP-capable agents to search live Iranian classifieds on Divar, read full posts, and analyze market prices against current listings.82MIT
- AlicenseAqualityBmaintenanceEnables AI agents to search Iranian places, read place details, reviews, photos and menus, find nearby places, reverse geocode coordinates, check air quality, and get car, motorcycle, bicycle, walking or bus/metro directions, travel times and Tehran traffic-zone status without an API key.11303 PyPIPolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceEnables AI agents to search and inspect Bama's Iranian car, motorcycle, and truck listings, compute asking-price statistics, browse new-car price lists and dealer inventories, and retrieve specs, ratings, and market trends without an API key.12175 PyPI4PolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceEnables AI agents to read public Iranian car-marketplace data, including filtered used-car ads, full ad details, new-car prices and history, spec comparisons, and magazine articles, without an API key.15142 PyPI2PolyForm Noncommercial 1.0.0