Skip to main content
Glama
README.md
# emlakjet-mcp 🇹🇷

mcp-name: io.github.mohammad-abbasi-sh/emlakjet-mcp

Unofficial **read-only** MCP server for **emlakjet.com**, Türkiye's real-estate portal — live listing search (for sale / for rent, by city and district), full listing details with description and 14 spec fields, a district browser, and market price stats (including median price per m²).

> Built by Mohammad Abbasi as part of the "Turkey MCP factory" (Sepehr-style pipeline). Not affiliated with emlakjet.com.

## For AI agents

Add to your MCP client config (stdio):

```json
{
  "mcpServers": {
    "emlakjet": {
      "command": "uvx",
      "args": ["emlakjet-mcp==0.1.1"]
    }
  }
}
```

Or run locally: `python -m emlakjet_mcp.server` (needs `mcp<2`, `curl-cffi`).

## Tools

| Tool | Description |
|------|-------------|
| `emlakjet_search` | Search listings — `listing_type` "satilik"/"kiralik", `property_type` "daire"/"konut"/"villa", `city` ("istanbul"), `district` ("kadikoy"), `rooms` ("2+1"), `min_price`/`max_price` (TRY), `min_m2`, `page` 1..50 |
| `emlakjet_listing_detail` | Full detail of one listing (URL from search, or numeric id): price, description, address, rooms, m², 14 spec fields, images |
| `emlakjet_list_districts` | Districts of a city with listing pages: slug + display name |
| `emlakjet_price_stats` | Market stats: count, min/max/median/average price (TRY) + median price per m² over N pages |

Example output (`emlakjet_search` / satilik daire, istanbul):

```json
{"listing_type": "satilik", "property_type": "daire", "city": "istanbul",
 "page": 1, "count": 50, "listings": [
  {"id": "20062034", "title": "Yıldırım Yapı'dan Metrobüsün Dibinde …",
   "price_try": 1349000, "rooms": "Stüdyo", "area_m2": 60,
   "location": "Cumhuriyet Mahallesi, Esenyurt", "floor": "3. Kat",
   "url": "https://www.emlakjet.com/ilan/…-20062034"}],
 "summary": {"total_listings": 21024, "cheapest_price_try": 310000}}
```

Example output (`emlakjet_listing_detail` / id 20044346):

```json
{"id": "20044346", "title": "Aciliyetten Sancaktepede Site İçi İskanlı Daire",
 "price_try": 5950000, "price_currency": "TRY", "rooms_count": 3, "area_m2": 95,
 "address": {"neighbourhood": "Merve Mahallesi", "district": "Sancaktepe",
  "city": "İstanbul", "country": "TR"},
 "specs": {"Isıtma Tipi": "Kombi Doğalgaz", "Otopark": "Açık & Kapalı Otopark",
  "Kullanım Durumu": "Mülk Sahibi Oturuyor", "Krediye Uygunluk": "Krediye Uygun",
  "Site İçerisinde": "Evet", "Tapu Durumu": "Kat Mülkiyeti", …}}
```

Example output (`emlakjet_price_stats` / istanbul kadikoy, 1 page):

```json
{"count": 50, "currency": "TRY", "min": 5650000, "max": 48000000,
 "median": 17100000.0, "average": 18228800.0,
 "median_price_per_m2_try": 162792.21, "pages_scanned": 1}
```

Notes:
- Data comes from emlakjet.com's public server-rendered pages (schema.org RealEstateListing/Product JSON-LD) — no key, no login, read-only.
- Room/price/area filters are applied to the fetched page (the site exposes no server-side room/price filter); the search returns up to 50 listings per page.
- The site's sort keys were tested live and do not reorder the server-rendered listings, so no sort parameter is offered — sort the returned listings instead.
- Spec labels are Turkish (Isıtma Tipi, Otopark, Kullanım Durumu, Krediye Uygunluk, Site İçerisinde, Tapu Durumu, Takas, Asansör, Mutfak, Eşya Durumu, Balkon…).
- Requests are spaced ~0.8s apart to stay polite.
- Environments behind an MITM proxy: set `SSL_CERT_FILE` to a CA bundle that trusts the proxy.

## Development

```bash
python3 -m venv .venv && .venv/bin/pip install "mcp<2" curl-cffi pytest
.venv/bin/python -m pytest tests/ -q
```

- `tests/test_listings.py` — offline, parses real captured fixtures
- `tests/test_live.py` — 6 cautious live requests against emlakjet.com (needs `SSL_CERT_FILE` behind the lab proxy)

## License

[PolyForm Noncommercial 1.0.0](https://polyformproject.org/licenses/noncommercial/1.0.0/) — free for personal and non-commercial use; commercial use needs a separate license (see LICENSE).

---

Built by [Mohammad Abbasi](https://github.com/mohammad-abbasi-sh) — [Almanibama](https://almanibama.ir) · [mabbasi.ir](https://mabbasi.ir)

TDQS

A3.6/5.0

Scored across 4 tools

Disambiguation4/5

Each tool maps to a clearly different job: paged search of compact listings, full record fetch by URL/id, district slug lookup, and aggregate market statistics. The only mild overlap is that emlakjet_search with min/max price can be used for price discovery that emlakjet_price_stats also serves, but the aggregate-vs-per-listing distinction is spelled out clearly.

Naming Consistency3/5

The emlakjet_ prefix and snake_case are consistent throughout, which is good. However the action pattern is mixed: some names use verbs (search, list_districts) while others are noun phrases (listing_detail, price_stats), so there is no single verb_noun convention.

Tool Count4/5

Four tools is on the lean side but each covers a distinct stage of the real-estate lookup workflow (discover → inspect → resolve location → analyze market). Nothing feels redundant, though a consumer might want one or two more helpers.

Completeness4/5

The surface covers the core read-only lifecycle: search, detail retrieval, district resolution, and aggregate pricing stats, with pagination and filtering documented. A minor gap is the absence of a city-list tool, so an agent must already know valid city slugs like 'istanbul' before calling list_districts or search.

Maintenance

ActivityMaintained
ResponsivenessOutdated data