obilet-mcp
A read-only MCP server for looking up obilet.com bus locations, bus journeys, journey details, route price statistics, and flight summaries for Türkiye — no login or API key needed.
Search locations (
obilet_search_locations): find cities/towns/airports by name, returning ids to use downstream (kind: bus with int ids, or flight with string ids like250_0).List bus journeys (
obilet_search_bus_journeys): all trips for an origin/destination id pair + date, sorted by price/departure/duration with a limit of 1–24 — each with partner, bus type, seats, stations, times, duration, TRY price, rating and stops, plus total counts.Journey detail (
obilet_journey_detail): full record for one journey id — pricing (internet vs. original, service fee), bus name, platform, description, and every stop with times.Price statistics (
obilet_price_stats): count, min/median/mean/max ticket price in TRY for a route and date.Flight summary (
obilet_flight_summary): flight count, min/max price and duration, first/last departure, direct-flight flag, and airlines with IATA codes (individual flight listings are not available in v1; note the schema omits the README's extra bus filters and theobilet_healthtool).
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., "@obilet-mcp Show me bus trips from Istanbul to Ankara on 2026-11-07, cheapest first."
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.
obilet-mcp 🇹🇷
mcp-name: io.github.mohammad-abbasi-sh/obilet-mcp
Unofficial read-only MCP server for obilet.com**, Türkiye's bus & flight ticket search — search bus locations, list all bus journeys for a route + date (partner, bus type, seats, departure/arrival, duration, price in TRY, partner rating, stops), read full journey details, get price statistics, and read the flight summary (flight count, min/max price, airlines) for the same city pair.
Built by Mohammad Abbasi as part of the "Turkey MCP factory" (Sepehr-style pipeline). Not affiliated with obilet.com.
For AI agents
Add to your MCP client config (stdio):
{
"mcpServers": {
"obilet": {
"command": "uvx",
"args": ["obilet-mcp"]
}
}
}Or run locally: python -m obilet_mcp.server (needs mcp<2, curl-cffi).
Related MCP server: flytoday-mcp
Tools
Tool | Description |
| Search locations by name — |
| Bus journeys for a route + date — |
| Full detail of one journey ( |
| Price statistics for a route + date: journey count, min / median / mean / max ticket price in TRY; |
| Flight summary for a route + date: flight count, min/max price in TRY, min/max duration, first/last departure, direct-flight flag, airlines with IATA codes (individual flight listings are NOT in v1 — the live flight-list endpoint returns 404/500) |
| Health check: one polite probe of the obilet.com homepage — returns status "ok" / "blocked" / "error", HTTP status, URL and detail |
Example output (obilet_search_bus_journeys / İstanbul Avrupa -> Ankara, 2026-11-07):
{"origin_id": 349, "destination_id": 356, "date": "2026-11-07",
"sort": "price_asc", "total": 421, "count": 2, "journeys": [
{"journey_id": 1432053091, "partner": "Yükseller Aksaray Birlik",
"bus_type": "2+1", "total_seats": 41, "available_seats": 36,
"origin": "Esenler Otogarı", "destination": "Ankara (Aşti) Otogarı",
"departure": "2026-11-07T07:30:00", "arrival": "2026-11-07T15:30:00",
"duration": "08:00:00", "price_try": 539.0, "original_price_try": 700.0,
"price_currency": "TRY", "partner_rating": 8.64, …}, …]}Example output (obilet_flight_summary / same route & date):
{"origin_id": 349, "destination_id": 356, "date": "2026-11-07",
"flight_count": 26, "has_direct": true, "min_price_try": 1461.99,
"max_price_try": 7399.34, "min_duration": "01:00:00",
"max_duration": "12:05:00", "first_departure": "00:05:00",
"last_departure": "23:30:00",
"airlines": [{"name": "Pegasus", "iata": "PC"}, {"name": "AJet", "iata": "VF"},
{"name": "THY", "iata": "TK"}]}Example output (obilet_price_stats / same route & date):
{"origin_id": 349, "destination_id": 356, "date": "2026-11-07",
"count": 421, "min_try": 539.0, "median_try": 800.0,
"mean_try": 852.38, "max_try": 1150.0}How it works
obilet.com exposes a JSON API, but it is session-gated: an HTML page
is fetched first (it sets cookies incl. ob_Session and __cf_bm),
then POSTs carry X-Requested-With: XMLHttpRequest with that page as
Referer. Locations: POST /json/duraklar (bus) or /json/ucak-duraklari
(flight). Journeys: POST /json/journeys/{origin}-{destination}/{date}
with {} — one response holds every journey for the route. Detail:
POST /json/sefer-tam/{journeyId}. The same journeys response carries
the flightSummary. Sorting is client-side (price / departure /
duration). The async flights endpoint is broken on the site side
(404/500), so individual flight listings are out of scope for v1.
Transport uses a persistent curl-cffi session with profile rotation
(chrome120 -> chrome131 -> safari17_0, sticky on the last working
profile): on HTTP 403/429 the session is rebuilt with the next
profile, re-primed and the request retried once, then a specific
error is returned (403 bot wall / 429 rate-limited / 404 not found).
A short 120s prime cache skips repeat HTML primes for the same page.
Requests are spaced ~0.8s apart; everything is read-only, no login,
no API key. Every tool output carries fetched_at (UTC),
source="obilet.com" and an unofficial-data disclaimer. A daily
live smoke test (.github/workflows/smoke.yml, 06:00 UTC) probes the
homepage via obilet_health so site/transport breakage is caught
before users hit it.
Install
uvx obilet-mcp==0.1.1 # run directly (needs uv)
# or
pip install obilet-mcp==0.1.1
obilet-mcp # starts the MCP server on stdioTests
python -m venv .venv && .venv/bin/pip install -e .
.venv/bin/python -m unittest discover -s tests -vOffline tests run on recorded fixtures (real pages fetched 2026-11-06); live tests hit obilet.com.
Roadmap
Individual flight listings (if the async flights endpoint is fixed)
Round-trip search (outbound + return in one call)
Seat-map / available-seat detail per journey
License
PolyForm Noncommercial 1.0.0 — see LICENSE.
Built by Mohammad Abbasi — Almanibama · mabbasi.ir
Available Tools
5 toolsobilet_flight_summaryA
Flight summary for a route + date (from the bus-journeys response): flight count, min/max price in TRY, min/max duration, first/last departure, direct-flight flag and airlines with IATA codes. origin_id / destination_id: bus location ids (the summary covers the same city pair); date: YYYY-MM-DD. Note: individual flight listings are NOT available in v1 (the async flights endpoint is broken on the site side).
Inputs: date (required), origin_id (required), destination_id (required). Returns: result
obilet_journey_detailA
Full detail of one bus journey: partner, bus type, seats, origin/destination stations, departure/arrival, duration, internet price and original price in TRY, service fee, partner rating, bus name, platform (peron), description and every stop with its time. journey_id: from obilet_search_bus_journeys.
Inputs: journey_id (required). Returns: result
obilet_price_statsB
Price statistics for a bus route + date: journey count, min / median / mean / max ticket price in TRY across all journeys. origin_id / destination_id: bus location ids; date: YYYY-MM-DD.
Inputs: date (required), origin_id (required), destination_id (required). Returns: result
obilet_search_bus_journeysA
Bus journeys for one route + date. origin_id / destination_id: bus location ids from obilet_search_locations (e.g. İstanbul Avrupa 349 -> Ankara 356). date: YYYY-MM-DD (e.g. "2026-11-07"). sort: "price_asc" (cheapest first, default), "departure" (earliest first), "duration" (shortest first). limit 1..24. Returns journey id, partner, bus type, seats, origin/destination stations, departure/arrival, duration, price in TRY, partner rating (0-10) and stops per journey, plus the total count for the route.
Inputs: date (required), origin_id (required), destination_id (required), sort, +1 more. Returns: result
obilet_search_locationsA
Search obilet.com locations (cities, towns, airports) by name. query: e.g. "Ankara", "İstanbul", "İzmir". kind: "bus" (default, int ids) or "flight" (string ids like "250_0"). Returns id, name, display name and city id per match. Use the id in obilet_search_bus_journeys (bus) or obilet_flight_summary (flight).
Inputs: query (required), kind. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a recognizable role: location lookup, bus journey search, journey detail, aggregate price stats, and flight summary. The main soft overlap is between obilet_price_stats and obilet_search_bus_journeys, since both take route+date and prices already appear in journey results, and price_stats is bus-only while flight_summary also reports price ranges. Descriptions do clarify the distinction (aggregate vs. listings), so confusion is limited.
All five tools share the obilet_ prefix and snake_case, which makes the set predictable and easy to scan. The only inconsistency is verb style: search_locations and search_bus_journeys lead with a verb, while price_stats, journey_detail, and flight_summary are noun-first phrases. It is still readable but not a strict verb_noun pattern.
Five tools is well within a healthy range for a read-only travel search domain. Each tool covers a distinct step (resolve locations, list journeys, inspect a journey, aggregate prices, summarize flights) with no filler tools. Nothing feels padded or conspicuously missing at the count level.
The surface supports the core workflow: find location ids, search bus journeys, drill into a journey, get price statistics, and get a flight overview. Gaps exist but are documented—no individual flight listings (explicitly broken upstream in v1) and no booking/purchase or advanced filtering on bus results. Agents can work around these within the stated informational purpose.
Related MCP Connectors
Turkey data API for AI agents: 40 tools + search/call for 230+ endpoints. Addresses (provinces, districts, postal codes, boundaries), validation (IBAN, tax ID/VKN, TCKN, phone, barcode), tax and salary calculators, Official Gazette, exchange rates, gold, crypto, economic indicators, prayer times, holidays and business days, weather, air quality, earthquakes, dam levels, fuel prices, EV charging, power outages, tolls, pharmacies on duty, football standings. Turkish JSON, free plan.
Read-only Istanbul city data: transport, nearby services, datasets and event discovery/planning.
Live public web data for agents: jobs, Reddit, TikTok, reviews, ads, Maps, flights and stays.
Free web search, 130M+ business records, local search, weather and travel data for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables searching Turkish high-speed train (YHT) tickets via TCDD API. Supports real-time availability, station name resolution, date formatting, and passenger count.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to compare and find the cheapest domestic and international flights, hotels, villas, trains and buses in Iran, with exact Toman prices, fare and cancellation rules, baggage details, seats left and hotel reviews. Also covers CIP lounges, eSIM plans, visas and tours, and is read-only, so it never books, holds seats or pays.364 PyPI2PolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceEnables AI agents to search read-only Alibaba (alibaba.ir) travel listings for trains, buses, domestic and international flights, hotels, villas, holiday homes, and tour packages, including prices, availability, seat maps, and cheapest travel days.14192 PyPIPolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceEnables read-only search of Turkish bus and flight tickets on biletall.com, including routes, journeys, prices, price statistics, popular routes, and location lookup through MCP tools.5PolyForm Noncommercial 1.0.0