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

[![mohammad-abbasi-sh/tatilsepeti-mcp MCP server](https://glama.ai/mcp/servers/mohammad-abbasi-sh/tatilsepeti-mcp/badges/score.svg)](https://glama.ai/mcp/servers/mohammad-abbasi-sh/tatilsepeti-mcp)

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

Unofficial **read-only** MCP server for **Tatilsepeti** (tatilsepeti.com) — Türkiye's household-name online travel agency: hotel search and detail, tour search with TRY prices and tour detail, the destination/theme/tour-category directory and live campaigns.

> Part of the "Turkey MCP factory" (Sepehr-style pipeline). Not affiliated with Tatilsepeti.

## For AI agents

Add to your MCP client config (stdio):

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

Or run locally: `python -m tatilsepeti_mcp.server` (needs `mcp<2`, `httpx`).

## Tools

| Tool | Description |
|------|-------------|
| `tatilsepeti_search_hotels` | Hotels of one destination/theme listing — `listing` e.g. `antalya-otelleri` (29 pages), `bodrum-otelleri`, `balayi-otelleri` |
| `tatilsepeti_get_hotel` | Full detail of one hotel — `hotel`: slug or URL e.g. `adalya-art-side-hotel` |
| `tatilsepeti_search_tours` | Tours of one category with TRY prices — `category` e.g. `balkan-turlari`, `kultur-turlari` |
| `tatilsepeti_get_tour` | Full detail of one tour — `tour`: slug or URL e.g. `belgrad-turu-tr-165077` |
| `tatilsepeti_list_destinations` | Destination / theme / tour-category directory from the homepage |
| `tatilsepeti_campaigns` | Live campaigns from /kampanya (coupon codes and discounts) |
| `tatilsepeti_health` | Check whether Tatilsepeti is reachable right now |

Example output (`tatilsepeti_search_tours` / Balkan):

```json
{"name": "Yılbaşı Özel Belgrad Turu", "destination": "Belgrad",
 "price_try": 699.0, "currency": "TRY",
 "start_date": "2026-12-31", "end_date": "2027-01-03",
 "url": "https://www.tatilsepeti.com/yilbasi-ozel-belgrad-turu-tr-184757"}
```

Example output (`tatilsepeti_get_hotel` / Adalya Art Side Hotel):

```json
{"name": "Adalya Grand Art Side Hotel", "rating": 9.6, "review_count": 80,
 "address": "Antalya-Manavgat-Side", "telephone": "444 44 20",
 "checkin_time": "14:00:00", "checkout_time": "11:00:00",
 "amenities": ["Araç Kiralama", "Havaalanı Servis", "Su Kaydırağı", "Wireless"]}
```

Notes:
- Data comes from the site's own server-rendered pages (no key, no login): listing pages carry schema.org ItemList JSON-LD (hotels: name, rating /10, review count, address, image; tours: name, destination, offers.price in TRY, start/end dates) and detail pages carry LodgingBusiness JSON-LD (amenities, check-in/out, languages, pets, price-range text).
- Two honest limits, both verified live 2026-12-04: hotel pages carry NO server-side prices (the listing priceRange is empty and card prices are 0 — prices load client-side even with date parameters), so hotel tools return ratings and reviews, not prices; and tour detail pages have no parseable day-by-day itinerary server-side. Listings show 30 items per page.
- The site answers plain HTTP 200 with a browser User-Agent (no bot wall), so the transport is plain httpx. Requests are spaced ~1s apart.
- Tour prices are live TRY prices and move with campaigns; hotel prices are date-dependent — verify prices and availability on the official site before booking.

## Development

```bash
python3 -m venv .venv && .venv/bin/pip install "mcp<2" "httpx>=0.27" pytest
.venv/bin/python -m pytest tests/test_parse.py -q   # offline, recorded fixtures
.venv/bin/python -m pytest tests/test_live.py -q    # live, against tatilsepeti.com
.venv/bin/python tests/smoke_live.py                # daily smoke probe
```

## 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.

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