Flytoday

v0.4.2
io.github.sepehr071/flytoday-mcp Checked 3 days ago Published 16 days ago

Unofficial read-only Flytoday: Iranian and international flights, hotels, villas, trains, buses.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ft_find_bus_city Find bus city

Bus city ids (4 digits) for a city name, or the popular cities when query is empty. Use before ft_search_buses (Tehran '0001', Isfahan '0002').

ParameterTypeDescription
limitintegerMax cities.
querystring | nullCity name, Persian or latin.

ft_bus_calendar Bus price calendar

Cheapest bus seat price per day for the next weeks (the site's price strip), in one cheap call. Cached daily minimums that can differ a little from a live search. Pick a day, then ft_search_buses.

ParameterTypeDescription
destination *string4-digit id from ft_find_bus_city, e.g. '0001' (Tehran).
origin *string4-digit id from ft_find_bus_city, e.g. '0001' (Tehran).

ft_search_buses Search buses

Buses between two cities on a date: company, terminals, departure, bus type, seats left, price per seat. Busy routes list 100+ buses: narrow with facility, sort or limit. price_toman is per seat. No seat map. Rate limited: never loop.

ParameterTypeDescription
date *stringDeparture date YYYY-MM-DD.
destination *string4-digit id from ft_find_bus_city, e.g. '0001' (Tehran).
origin *string4-digit id from ft_find_bus_city, e.g. '0001' (Tehran).
available_onlybooleanHide sold-out buses.
facilitystring | nullOnly buses with this facility.
limitintegerMax buses.
sortstringOrder.

ft_cip CIP airport services

CIP / VIP airport lounge service with prices for a date and passenger mix, plus paid add-ons. `nationality` says which passports an offer is for (IKA lists one offer for Iranian passports and one for others). price_per_passenger_toman is per person (tax included); total_toman the whole party; add-ons list their adult price.

ParameterTypeDescription
airport *string'IKA' (Tehran) or 'MHD' (Mashhad): the only airports with CIP.
date *stringFlight date YYYY-MM-DD, at most ~3 months ahead.
adultsintegerAdults.
childrenintegerChildren.
directionstringLeaving from or landing at this airport.
flight_typestringKind of flight.
full_textbooleanSkip text clips and item caps; return full texts.
infantsintegerInfants.

ft_esim_plans eSIM plans

eSIM data plans for a country with data amount, validity days and price, cheapest first. Single countries only, no regional bundles. fare_code identifies the plan on flytoday.ir.

ParameterTypeDescription
country *stringCountry name (English or Persian), ISO code or slug, e.g. 'turkey', 'AE'.
limitintegerMax plans, cheapest first.

ft_visa Visa prices and requirements

Visa services of Flytoday: the country list with from-prices, or one country's prices, documents and process. Without country: visa type, from_price (in price_currency, often USD or EUR, not Toman) and processing time. With country: price per visa type (foreign currency and Toman), validity, processing time and documents.

ParameterTypeDescription
countrystring | nullCountry name (English or Persian) or slug, e.g. 'turkey', 'schengen'. Omit to list all.

ft_activities Search activities

Tours, tickets and experiences in a destination that are on sale in the date range, with from-prices. Only activities with a price in the range are listed. price_toman is the adult from-price; list_price_toman the box-office price. other_regions lists alternatives to retry with region_id. Next: ft_activity(activity_id).

ParameterTypeDescription
date_fromstring | nullFirst day YYYY-MM-DD; default and minimum tomorrow.
date_tostring | nullLast day YYYY-MM-DD, max date_from + 90; default +30.
limitintegerMax activities, cheapest first.
querystring | nullDestination, English or Persian, e.g. 'Dubai'. Needed unless region_id is given.
region_idinteger | nullRegion id from an earlier call; skips the lookup.

ft_activity Activity details

One activity: description, highlights, options with adult prices, and the cheapest days in the range. price_toman fields are adult prices. No availability in the range gives available=false: keep it wide (default about two months). Slow upstream (up to a minute).

ParameterTypeDescription
activity_id *integerActivity id from ft_activities.
date_fromstring | nullCalendar start YYYY-MM-DD; default today + 3.
date_tostring | nullCalendar end YYYY-MM-DD, max date_from + 90; default +57.

ft_find_airport Find airport or city

Find the IATA codes the flight tools need, for domestic and international places. Use a city code (THR, IST) in the flight tools: it covers all its airports. No query lists popular cities.

ParameterTypeDescription
domestic_onlybooleanOnly Iranian places.
limitintegerMax places.
querystring | nullCity or airport name, Persian or English; omit for popular places.

ft_search_flights Search flights

Search flights for a date: times, airline, seats left, price and fare_source_code per flight. price_toman is per adult, total_toman the whole party. Round trip: `flights` are outbound options, `return_flights` the returns for the cheapest outbound (`return_for` = its key). Filters apply to the outbound leg. Rate limited: page with search_id, never search again. Next: ft_flight_details(fare_source_code).

ParameterTypeDescription
date *stringGregorian YYYY-MM-DD.
destination *stringIATA city code from ft_find_airport, e.g. 'THR', 'MHD', 'IST'.
origin *stringIATA city code from ft_find_airport, e.g. 'THR', 'MHD', 'IST'.
adultsintegerAdults (12+).
airlinesarray | nullOnly these airline codes, e.g. ['W5'].
cabinstringCabin class.
childrenintegerChildren (2-11).
depart_afterstring | nullLocal HH:MM.
depart_beforestring | nullLocal HH:MM.
direct_onlybooleanNo stops.
infantsintegerInfants (under 2).
limitintegerFlights per page.
max_price_tomaninteger | nullHighest fare in Toman (whole party).
outbound_keystring | nullRound trip: `key` of an outbound flight, lists its returns (needs search_id).
pageinteger1-based; above 1 needs search_id.
return_datestring | nullReturn date YYYY-MM-DD for a round trip; omit for one-way.
search_idinteger | nullsearch_id from an earlier result (about 15 min): pages and re-sorts without a new search.
sortstringOrder.
ticket_typestring | nullOnly charter or only system tickets.

ft_flight_calendar Flight price calendar

Cheapest one-adult fare per departure day around a date, in one cheap call (no search needed). Pick the cheapest day, then ft_search_flights. Cached minimums that can differ a little from a live search; days without a fare are left out.

ParameterTypeDescription
date *stringCentre of the window, YYYY-MM-DD.
destination *stringIATA city code from ft_find_airport, e.g. 'THR', 'MHD', 'IST'.
origin *stringIATA city code from ft_find_airport, e.g. 'THR', 'MHD', 'IST'.
windowstringweek = date +-3 days, month = +-15 days.

ft_flight_details Flight fare details

Refund and change rules, confirmed baggage per segment and (international) entry notes of one fare. The fare_source_code lives about 15 minutes; then search again. Charter penalties are text, system fares tiers (`penalties`, % of fare).

ParameterTypeDescription
fare_source_code *stringFrom ft_search_flights.
full_textbooleanSkip text clips and item caps; return full texts.
search_idinteger | nullsearch_id of that search; adds entry and transit notes (international).

ft_find_hotel_place Find hotel or stay place

Find the place ids the hotel and stay tools need. Which id goes where: `hotels` rows: kind 'city' (Iran) -> `city_id` for ft_search_hotels; 'region' (abroad, international=true) -> `region_code` + `country_code`; 'hotel' -> `hotel_id` for ft_hotel and ft_hotel_reviews. `stay_regions` rows (Iran, villas) -> `region_code` for ft_search_stays; NOT the hotel city ids. No query lists popular places.

ParameterTypeDescription
internationalbooleanPlaces outside Iran (hotels only).
limitintegerMax rows per list.
querystring | nullCity, region or hotel name, Persian or English.

ft_search_hotels Search hotels

Priced hotels of a city (Iran) or region (abroad) for dates, one row per hotel with its cheapest room offer. Give city_id for Iran, or region_code + country_code with international=true. price_toman is the whole stay for one room. Next: ft_hotel(hotel_id) or ft_hotel_reviews; is_stay=true rows are villas: ft_stay(property_id). Captcha-limited hard per IP: search once, then filter and page; never loop.

ParameterTypeDescription
check_in *stringGregorian YYYY-MM-DD.
check_out *stringGregorian YYYY-MM-DD.
adultsintegerAdults in the (single) room.
children_agesarray | nullAges (0-11), one per child, e.g. [5, 8].
city_idinteger | nullIranian city id from ft_find_hotel_place.
country_codestring | nullISO code of the destination country (international), e.g. 'TR'.
internationalbooleantrue for a hotel outside Iran.
limitintegerHotels per page.
max_price_tomaninteger | nullMax price of the WHOLE stay, Toman.
pageintegerPage number, 1-based.
refundable_onlybooleanOnly offers with free cancellation.
region_codestring | nullForeign region code from ft_find_hotel_place.
sortstringCheapest first or best score first.
starsarray | nullOnly these star ratings, e.g. [4, 5].

ft_hotel Hotel rooms and prices

One hotel for dates: every room and meal-plan offer with whole-stay price, rooms left and cancellation terms, the room details (size, beds, features) and the hotel basics (address, stars, score, facilities, check-in time). price_toman is the whole stay for one room. Offers are cheapest first, sold-out (rooms_left 0) last. Use after ft_search_hotels. Rate limited like it.

ParameterTypeDescription
check_in *stringGregorian YYYY-MM-DD.
check_out *stringGregorian YYYY-MM-DD.
hotel_id *integerHotel id from ft_search_hotels or ft_find_hotel_place.
adultsintegerAdults in the (single) room.
children_agesarray | nullAges (0-11), one per child, e.g. [5, 8].
country_codestring | nullISO code of the destination country (international), e.g. 'TR'.
internationalbooleantrue for a hotel outside Iran.

ft_hotel_reviews Hotel reviews

Guest reviews of a hotel: score (1-10), text, pros, cons, trip type and nights. Mostly Persian text. total_reviews tells how many pages exist.

ParameterTypeDescription
hotel_id *integerHotel id.
full_textbooleanSkip text clips and item caps; return full texts.
internationalbooleantrue for a hotel outside Iran.
limitintegerReviews per page.
orderstringReview order.
pageintegerPage number, 1-based.

ft_search_stays Search villas and stays

Villas, apartments and other private stays in Iran for dates, cheapest first. Give both dates (advised: only properties free then are listed and total_toman is filled) or none (base prices). property_id feeds ft_stay.

ParameterTypeDescription
check_instring | nullGregorian YYYY-MM-DD.
check_outstring | nullGregorian YYYY-MM-DD.
guestsintegerNumber of guests.
limitintegerProperties per page.
max_price_tomaninteger | nullMax price PER NIGHT, Toman.
pageintegerPage number, 1-based.
region_codestring | nullRegion code from ft_find_hotel_place `stay_regions`; omit for all Iran.
sortstringCheapest = lowest nightly price first.
typestring | nullProperty type; omit for all.

ft_stay Stay details and calendar

One villa / apartment: details (capacity, rooms, facilities, rules, host), the per-night price calendar with blocked days, and the review summary with the latest reviews. Calendar prices are Toman per night (the base price in the details is only a reference); available=false means blocked or reserved.

ParameterTypeDescription
property_id *integerProperty id from ft_search_stays.
from_datestring | nullFirst day YYYY-MM-DD; default today.
full_textbooleanSkip text clips and item caps; return full texts.
guestsintegerNumber of guests (changes the price).
to_datestring | nullLast day; default from_date + 14, max 45.

ft_find_station Find train station

Train station codes (`station_code`) for a city name, or the 8 most popular stations when query is empty. Use before ft_search_trains and ft_train_calendar (Tehran 1, Mashhad 191).

ParameterTypeDescription
limitintegerMax stations.
querystring | nullCity or station name, Persian or latin.

ft_search_trains Search trains

Trains between two stations on a date: one row per train class (wagon) with price per adult and seats left. Sales cover about 16 days (no_result means outside). Pass a row's `fare_source_code` and `wagon_id` to ft_train_stops. Other days: ft_train_calendar. Rate limited: never loop.

ParameterTypeDescription
date *stringTravel date YYYY-MM-DD; sales open ~16 days ahead.
destination *integerStation code from ft_find_station, e.g. 1 (Tehran).
origin *integerStation code from ft_find_station, e.g. 1 (Tehran).
adultsintegerAdult passengers.
available_onlybooleanHide classes with no free seats for this party.
childrenintegerChildren (2-12).
infantsintegerInfants (under 2).
limitintegerMax train classes.
sortstringOrder.

ft_train_calendar Train price calendar

Cheapest train price per day for the next ~16 days, with sold-out days flagged. Pick a day, then ft_search_trains. An uncached route lists only the next 3 days.

ParameterTypeDescription
destination *integerStation code from ft_find_station, e.g. 1 (Tehran).
origin *integerStation code from ft_find_station, e.g. 1 (Tehran).

ft_train_stops Train stops

Stops of one train with arrival and departure times, plus (with wagon_id) the class amenities and extra meals. Ids expire with their search.

ParameterTypeDescription
fare_source_code *stringFrom a fresh ft_search_trains row.
wagon_idinteger | nullFrom the same row; adds amenities and meals.