Skip to main content
Glama

kilid-mcp: Kilid (کیلید) real-estate MCP server for AI agents, homes for sale and rent in Iran

kilid-mcp is an unofficial, read-only MCP server that lets an AI agent search homes for sale and rent, read house prices per square metre and look up agencies on Kilid (کیلید, kilid.com), a large Iranian real-estate portal. Its 8 tools search buy and rent listings with price, area, room and district filters, open one listing in full, read the median price per m² by city, district and neighborhood with a 12-month trend, rank neighborhoods by price, and find agencies. No API key or account is needed; it works in Claude, Cursor, Copilot and any other MCP client.

PyPI Python CI License: PolyForm Noncommercial

For AI agents · Quick start · Tools · Limits · فارسی


For AI agents

  • What: unofficial MCP server (model context protocol) for kilid.com: cities and districts, listing search (sale and rental), listing detail, house-price statistics with a 12-month trend, neighborhood price ranking, agencies.

  • Install: uvx kilid-mcp or claude mcp add kilid -- uvx kilid-mcp. Transport: stdio. Needs uv (Python 3.10+).

  • Auth: none. Optional KILID_MCP_PROXY (HTTP proxy URL, or a comma-separated list); system proxy settings are ignored.

  • Access: read-only. It cannot log in, save listings, contact agencies or reveal phone numbers, so no confirmation is needed before calling any tool.

  • Tools: 8, all prefixed kl_. Typical sequence: kl_cities -> kl_districts -> kl_search_listings -> kl_listing; kl_price_stats and kl_neighborhood_prices for market levels; kl_agencies -> kl_agency.

  • Use when: the user wants apartments or houses for sale or rent in an Iranian city, what a square metre costs in a district, or the priciest neighborhoods.

  • Do not use when: the user needs advertiser phone numbers, sold-price records, or to publish an ad.

  • Output: compact JSON. Prices are Toman. Rentals return the deposit as price_toman and the monthly rent as rent_toman. Text is Persian.

Related MCP server: otaghak-mcp

Quick start

You need uv. No API key or account.

Claude Code:

claude mcp add kilid -- uvx kilid-mcp

Claude Desktop, Cursor, VS Code and other clients:

{
  "mcpServers": {
    "kilid": { "command": "uvx", "args": ["kilid-mcp"] }
  }
}

Example prompts:

  • "Find 2-bedroom flats to buy in Tehran between 60 and 100 m²."

  • "What is the median price per square metre in Tehran and in its first district?"

  • "Which Karaj neighborhoods are the most expensive?"

  • آپارتمان اجاره‌ای دو خوابه در شیراز پیدا کن.

  • قیمت هر متر خانه در ولنجک چقدر است؟

Real answer (17 Nov 2026): kl_price_stats(area="tehran") returned a median of 237,179,487 Toman per m² (period 1405-08, sample 433,751 listings), and منطقه 1 at 571,428,571 Toman per m².

Tools

Tool

What it does

kl_cities

Find a city id and slug by Persian name, with whether district data exists.

kl_districts

List municipal districts or neighborhoods of a city with their ids and slugs.

kl_search_listings

Search buy or rent listings by city, districts, property type, price, rent, area, rooms, sort and page.

kl_listing

Read one listing: price, area, rooms, floor, facilities, description, map point and agency.

kl_price_stats

Median price per m² for a city or area, its sub-areas and the 12-month trend.

kl_neighborhood_prices

Rank a city's neighborhoods by median price per m², with a data-quality flag.

kl_agencies

Search agencies registered on Kilid by name.

kl_agency

Read one agency: address, district, location, active listings and agent count.

Limits

  • Prices are asking prices from listings, not sale records. year_change_pct is the site's own yoyPct field; the page itself shows a client-side figure that differs a little.

  • Featured (paid) listings can appear on top even when they fall outside the filters. rent_toman 0 means deposit only.

  • Advertiser phone numbers sit behind a reveal button on the site and are deliberately not returned.

  • Kilid is a Next.js site and several tools read data embedded in its server-rendered pages. If Kilid renames those props, a tool can come back empty until the server is updated.

  • Heavy use and rate limits were not probed. Requests run two at a time with a short cache. It answers from abroad and from Iran.

فارسی

kilid-mcp یک سرور MCP غیررسمی و فقط‌خواندنی است که به دستیار هوش مصنوعی اجازه می‌دهد آگهی‌های خرید و اجاره‌ی ملک، قیمت هر متر مربع خانه و بنگاه‌های املاک را در کیلید (kilid.com) جست‌وجو کند. هشت ابزار دارد: جست‌وجوی آگهی با فیلتر قیمت، متراژ، تعداد اتاق و محله، دیدن کامل یک آگهی، قیمت میانگین هر متر به‌تفکیک شهر و منطقه و محله، رتبه‌بندی محله‌ها و پیدا کردن بنگاه. کلید API یا حساب کاربری لازم نیست. نصب در Claude Code:

claude mcp add kilid -- uvx kilid-mcp

Development

uv sync
uv run ruff check . && uv run ruff format --check .
uv run python -m pytest -q          # offline, saved fixtures
uv run python -m pytest -m live -q  # real kilid.com

Releases: bump the version in pyproject.toml and server.json, run uv lock, then push a v* tag; GitHub Actions publishes to PyPI and the MCP Registry.

Disclaimer

Unofficial and not affiliated with or endorsed by Kilid. It is read-only and uses the public pages and routes of kilid.com, which can change without notice.

Author

Built and maintained by Sepehr Radmard (سپهر رادمرد). LinkedIn · GitHub · more servers in iran-mcp.

مجوز استفاده (License)

استفادهٔ شخصی و غیرتجاری رایگان است. استفاده در شرکت، محصول پولی یا پروژهٔ مشتری به مجوز تجاری نیاز دارد؛ از راه لینکدین یا گیت‌هاب با سپهر رادمرد تماس بگیرید. متن کامل: PolyForm Noncommercial 1.0.0. نسخه‌های پیش از 0.1.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.1.1 were released under MIT and stay under it.

Available Tools

8 tools
kl_agenciesFind agenciesA
Read-onlyIdempotent

Search real-estate agencies registered on Kilid by name; open one with kl_agency.

Returns up to a few matches with their district. Phone numbers are not public.

Inputs: name (required), city_id.

kl_agencyAgency detailA
Read-onlyIdempotent

Get a Kilid real-estate agency: address, district, location point, active listings and agent count.

Inputs: agency_id (required).

kl_citiesCitiesA
Read-onlyIdempotent

Find the city id and slug Kilid uses for a city (needed by kl_search_listings and kl_districts).

Covers every city Kilid lists, grouped by province. has_districts tells whether kl_districts has data.

Inputs: limit, query.

kl_districtsDistrictsA
Read-onlyIdempotent

List the districts or neighborhoods of a city with the ids kl_search_listings takes as region_ids.

Neighborhood rows carry the slug used by kl_price_stats (e.g. tehran-velenjak) and their municipal region.

Inputs: city_id (required), level, limit, query.

kl_listingListing detailA
Read-onlyIdempotent

Get one Kilid listing: price, area, rooms, floor, facilities, description, location point and agency.

Prices are Toman. The advertiser's phone number is hidden behind a button on the site and is not returned.

Inputs: listing_id (required).

kl_neighborhood_pricesNeighborhood pricesA
Read-onlyIdempotent

Rank a city's neighborhoods by median price per m2 (Toman), from Kilid's neighborhood guide.

quality is RELIABLE, ESTIMATED or SUSPECT (thin data); neighborhoods without data are left out.

Inputs: city_id (required), sort, limit, district.

kl_price_statsHouse price statisticsA
Read-onlyIdempotent

Get median price per m2 for a city or area from Kilid's market report, with sub-areas and a 12-month trend.

Prices are Toman per m2 from asking prices of listings. For a neighborhood slug, area is its parent district and selected is the neighborhood's own row.

Inputs: area, limit.

kl_search_listingsSearch listingsA
Read-onlyIdempotent

Search Kilid sale and rental listings with price, area, room and place filters.

Prices are Toman. Rentals carry price_toman = deposit and rent_toman = monthly rent. Get ids from kl_cities and kl_districts, then open one result with kl_listing. url in the answer is the Kilid search page. Featured (paid) listings can appear on top even when they fall outside the filters; rent_toman 0 means deposit-only.

Inputs: deal, page, sort, limit, +11 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 8 tools

    Disambiguation3/5

    Most tools target distinct resources, but two pairs overlap: kl_agency vs kl_agencies differ only by a plural 's' (get-one vs search-by-name), and kl_price_stats vs kl_neighborhood_prices both return per-m2 price data for areas. Descriptions do disambiguate them, but the near-identical names invite misselection.

    Naming Consistency3/5

    A consistent 'kl_' prefix is used throughout, but the convention is mixed: most tools are bare nouns (kl_cities, kl_districts, kl_agencies) while one carries an explicit verb (kl_search_listings). Singular/plural is overloaded to mean get-one vs list/search, which is readable but not predictable.

    Tool Count5/5

    Eight tools is well-scoped for a read-only real-estate data server. Every tool maps to a distinct step in the workflow: locate place, search, open listing, check prices, find agency.

    Completeness4/5

    The surface covers the core discovery-to-detail lifecycle: city and district resolution, listing search, single-listing detail, price stats at two granularities, and agency lookup by name. Minor gaps exist (no listing-by-id-adjacent lookups like similar listings, no agency-side listing filtering), but agents can work around them.

    Maintenance

    ActivityNo data
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Gives AI agents read-only access to Bulgarian real-estate data from imotai.bg, letting them list districts, search and fetch active listings, pull district-level market statistics, and estimate values from current asking prices. All results are field-allowlisted and rate limited, with no credentials, broker contact details, or written descriptions exposed.
      5
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to search Iranian villas, cottages, and apartments, check nightly availability, calculate exact stay totals for dates and guests, and read reviews and host statistics. It is a read-only stdio MCP server with no login, booking, payment, or SMS endpoints.
      15
      314 PyPI
      2
      PolyForm Noncommercial 1.0.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to search and read Divar classified ads across Iranian cities, covering homes, cars, phones and more, with price statistics, deal finding, fair-price appraisal, ad comparison and map browsing. It is read-only, needs no account or API key, and returns compact JSON with prices in Toman.
      31
      471 PyPI
      1
      PolyForm Noncommercial 1.0.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      11
      303 PyPI
      PolyForm Noncommercial 1.0.0