MrBilit

v0.5.2
io.github.sepehr071/mrbilit-mcp Checked 3 days ago Published 16 days ago

Unofficial read-only MrBilit: Iranian flights, trains, buses, taxis and hotels, seats and prices.

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

mb_search_buses Search buses

Intercity buses on a date: company, terminal, times, price per seat, free seats, bus type, stops, refund penalties. A city id covers all its terminals. price_toman is per seat. Top-level refund_penalties apply to every bus unless a bus lists its own (until_hours_before: step applies until then, null = up to departure). Next: mb_bus_seats with a bus_id; other days: mb_bus_price_calendar.

ParameterTypeDescription
date *stringDeparture date YYYY-MM-DD.
destination *integerBus city or terminal id from mb_find_place(mode='bus'), e.g. 11320000 (Tehran).
origin *integerBus city or terminal id from mb_find_place(mode='bus'), e.g. 11320000 (Tehran).
companiesarray | nullOnly these company ids from `companies` of a result, e.g. [4, 16].
depart_afterstring | nullLocal time HH:MM, e.g. '18:00'.
depart_beforestring | nullLocal time HH:MM, e.g. '18:00'.
include_sold_outbooleanAlso list buses with no free seat.
limitintegerMax buses.
sortstringOrder of the buses.
vip_onlybooleanOnly VIP buses.

mb_bus_price_calendar Bus price calendar

Cheapest bus seat per day for a route; days without buses (or not on sale yet) are left out. Then mb_search_buses for the chosen day.

ParameterTypeDescription
destination *integerBus city or terminal id from mb_find_place(mode='bus'), e.g. 11320000 (Tehran).
origin *integerBus city or terminal id from mb_find_place(mode='bus'), e.g. 11320000 (Tehran).
daysintegerNumber of days to cover.
seatsintegerSeats needed.
start_datestring | nullFirst day YYYY-MM-DD; default today.

mb_bus_seats Bus seat map

Seat map of one bus: free seat numbers, seats sold to women and to men, and a row-by-row layout. layout: one line per row from the front; seat = number + mark (none free, w woman, m man, x not sold online); '|' aisle, '--' no seat, 'DR' driver. price_toman is null for most buses: use the search price.

ParameterTypeDescription
bus_id *integerbus_id from a fresh mb_search_buses result.

mb_search_taxis Search intercity taxis

Private door-to-door intercity taxis (whole car, up to 3 passengers) for a date, one offer per pick-up slot. price_toman is for the whole car. Many city pairs have no taxis (e.g. Tehran-Mashhad).

ParameterTypeDescription
date *stringDeparture date YYYY-MM-DD.
destination *integerCity id from mb_find_place(mode='taxi'), e.g. 11320000 (Tehran).
origin *integerCity id from mb_find_place(mode='taxi'), e.g. 11320000 (Tehran).
car_classstringCar class.
depart_afterstring | nullLocal time HH:MM, e.g. '18:00'.
depart_beforestring | nullLocal time HH:MM, e.g. '18:00'.
limitintegerMax offers.

mb_find_place Find place codes

Turn a city, airport, station or hotel name into the code a search takes. flight: `airports` (Iranian IATA codes; Tehran is THR; prefer to XXXALL for domestic routes) and `cities` (any country; XXXALL = all its airports). train: station ids. bus / taxi: 8-digit city ids (11320000 = Tehran, all terminals). hotel: city and hotel slugs.

ParameterTypeDescription
mode *stringWhich search the code is for.
query *stringPlace name in Persian or English, or a code, e.g. 'مشهد', 'tehran' or 'IST'.
limitintegerMax places per list.

mb_companies Transport companies

List airlines (IATA code), rail operators or bus companies (id) with Persian and English names. Use to name a code seen in results or to find a code for the `airlines` filter. Bus ids 276/278/280 are the taxi classes VIP/Economy/Formal.

ParameterTypeDescription
mode *stringAirlines, rail operators, or bus companies.
limitintegerMax companies.
querystring | nullOptional name or code filter, e.g. 'ماهان', 'IR' or 'Iran Peyma'.

mb_notices Site notices

Notices MrBilit currently shows on its pages (disruptions, rule changes, payment options), for a service or route. Route codes build the site path the notices match (/flights/THR-MHD, /trains/tehran-mashhad, /hotel/mashhad). site_wide_active counts every active notice. Use before recommending a trip.

ParameterTypeDescription
destinationstring | nullFlight: IATA code ('THR'); train, bus, taxi: English city slug ('tehran'); hotel destination: city slug or 'city/hotel' ('mashhad/enghelab').
originstring | nullFlight: IATA code ('THR'); train, bus, taxi: English city slug ('tehran'); hotel destination: city slug or 'city/hotel' ('mashhad/enghelab').
servicestringWhich pages; any = every active notice.

mb_help Help center search

Search MrBilit's official rules, FAQ and help-center guides; returns the best matching passages. Use for refund, cancellation, ID and baggage rules. Rules of one fare are in mb_flight_fare_details / mb_search_trains / mb_search_buses instead.

ParameterTypeDescription
query *stringQuestion or keywords in Persian, e.g. 'استرداد بلیط قطار' or 'رزرو خودکار'.
full_textbooleanReturn long texts uncut instead of clipped.
limitintegerMax passages.
sourcestringterms = official rules, faq = general FAQ, support = help-center guides.

mb_travel_guide Travel guide

MrBilit's guide for a route or city (summary, FAQ, article) and matching travel-magazine posts. Route guide: service + origin + destination (flight IATA codes, train/bus English slugs such as 'tehran'; hotel: destination city slug only). Magazine: query. Quoted prices can be out of date.

ParameterTypeDescription
destinationstring | nullFlight: IATA code ('THR'); train, bus, taxi: English city slug ('tehran'); hotel destination: city slug or 'city/hotel' ('mashhad/enghelab').
full_textbooleanReturn long texts uncut instead of clipped.
limitintegerMax magazine posts.
originstring | nullFlight: IATA code ('THR'); train, bus, taxi: English city slug ('tehran'); hotel destination: city slug or 'city/hotel' ('mashhad/enghelab').
querystring | nullMagazine search, e.g. 'کیش' or 'جاهای دیدنی مشهد'.
servicestring | nullRoute guide for this service; needs destination.

mb_search_flights Search flights

Search flights for a date: every bookable flight with price, seats left, baggage and times. price_toman is one adult's fare (taxes included); total_toman the whole party. Domestic round trips come back as two lists (`outbound`, `return`); international ones as packages priced for both ways. Unpriced flights are only counted in not_on_sale. Next: mb_flight_fare_details with the flight_id; to pick the day first, mb_flight_price_calendar.

ParameterTypeDescription
date *stringGregorian date YYYY-MM-DD.
destination *stringIATA airport or city code from mb_find_place(mode='flight'), e.g. 'THR', 'MHD', 'ISTALL' (all Istanbul airports).
origin *stringIATA airport or city code from mb_find_place(mode='flight'), e.g. 'THR', 'MHD', 'ISTALL' (all Istanbul airports).
adultsintegerAdults (12+).
airlinesarray | nullOnly these airline codes, e.g. ['IR', 'W5'].
cabinstringCabin class filter.
childrenintegerChildren (2-11).
depart_afterstring | nullLocal time HH:MM, e.g. '06:00'.
depart_beforestring | nullLocal time HH:MM, e.g. '06:00'.
direct_onlybooleanOnly flights without a connection.
infantsintegerInfants (under 2).
limitintegerMax flights per list.
return_datestring | nullReturn date YYYY-MM-DD; omit for one-way.
sortstringOrder of the flights.

mb_flight_price_calendar Flight price calendar

Cheapest one-adult fare per day for a route over a date range, in one call. Then call mb_search_flights for the chosen day. Values are cached minimums and can differ from a live search; days with no known fare are left out.

ParameterTypeDescription
destination *stringIATA airport or city code from mb_find_place(mode='flight'), e.g. 'THR', 'MHD', 'ISTALL' (all Istanbul airports).
origin *stringIATA airport or city code from mb_find_place(mode='flight'), e.g. 'THR', 'MHD', 'ISTALL' (all Istanbul airports).
daysintegerNumber of days to cover.
start_datestring | nullFirst day YYYY-MM-DD; default today.

mb_flight_fare_details Flight fare details

Every fare of one flight with refund penalties, confirmed baggage, fare rules, notes and per-passenger prices. Re-runs the mb_search_flights search (same route, date, party). refund_penalties: penalty percent per window before departure, refund = paid x (100 - penalty_pct) / 100.

ParameterTypeDescription
date *stringGregorian date YYYY-MM-DD.
destination *stringIATA airport or city code from mb_find_place(mode='flight'), e.g. 'THR', 'MHD', 'ISTALL' (all Istanbul airports).
flight_id *stringflight_id from mb_search_flights, e.g. '21919377' or '21894997+21924108'.
origin *stringIATA airport or city code from mb_find_place(mode='flight'), e.g. 'THR', 'MHD', 'ISTALL' (all Istanbul airports).
adultsintegerAdults (12+).
childrenintegerChildren (2-11).
full_textbooleanReturn long texts uncut instead of clipped.
infantsintegerInfants (under 2).
return_datestring | nullReturn date, only for an international round-trip package.

mb_search_hotels Search hotels

Hotels and stays with a free room in a city for the dates, with the cheapest room price for the whole stay. price_toman is the cheapest room for all nights (one room, after discount); cheapest_room_sleeps is how many that room sleeps (often 1). Guest count does not change prices: pick a fitting room with mb_hotel_rooms(guests=...). Next: mb_hotel, mb_hotel_rooms, mb_hotel_calendar.

ParameterTypeDescription
check_in *stringCheck-in date YYYY-MM-DD.
check_out *stringCheck-out date YYYY-MM-DD (1 to 30 nights).
city *stringCity slug from mb_find_place(mode='hotel'), e.g. 'mashhad' or 'kish'.
amenitiesarray | nullPersian words, each matching an amenity title, e.g. ['استخر'] (pool), ['پارکینگ'].
breakfast_onlybooleanOnly stays whose cheapest room includes breakfast.
hotel_typestringKind of stay.
limitintegerMax hotels.
max_price_per_night_tomaninteger | nullHighest price per night for one room in Toman, e.g. 3000000.
min_starsinteger | nullOnly hotels with at least this many stars, e.g. 4.
refundable_onlybooleanOnly refundable stays.
sortstringOrder; rating is the site's default.

mb_hotel Hotel details

One hotel: stars, guest rating (0-5) and latest reviews, location, landmarks, check-in rules, amenities, FAQ. landmarks: distance in km (drive minutes). Review text is cut at 400 characters unless full_text. `hotel` is null after a numeric id: get the 'city/hotel' ref from mb_find_place(mode='hotel'). Prices: mb_hotel_rooms, mb_hotel_calendar.

ParameterTypeDescription
hotel *string'city_slug/hotel_slug' (e.g. 'mashhad/enghelab') or numeric id.
full_textbooleanReturn long texts uncut instead of clipped.
reviewsintegerHow many of the latest guest reviews to include.

mb_hotel_rooms Hotel rooms and prices

Every room of a hotel with its exact price for the dates: whole stay, per night, rooms left, meals. price_toman is the whole stay for one room after discount (independent of guest count: choose rooms whose sleeps fits). rooms_left 0 = full. Empty rooms = nothing free (try mb_hotel_calendar).

ParameterTypeDescription
check_in *stringCheck-in date YYYY-MM-DD.
check_out *stringCheck-out date YYYY-MM-DD (1 to 30 nights).
hotel *stringHotel as 'city_slug/hotel_slug' from mb_search_hotels, e.g. 'mashhad/enghelab'.
guestsinteger | nullOnly rooms that sleep at least this many (with extra beds), e.g. 3.

mb_hotel_calendar Hotel price calendar

Cheapest one-night room price per night from today, up to about 48 days (often fewer). Then mb_hotel_rooms for exact prices. Nights missing inside the range have no free room; nights after the last one are not loaded yet.

ParameterTypeDescription
hotel *stringHotel as 'city_slug/hotel_slug' from mb_search_hotels, e.g. 'mashhad/enghelab'.

mb_city_hotels All hotels of a city

Every listed hotel of a city, sold out ones included, with stars, rating and address; no prices. Filters apply to one page of 90 hotels at a time, so check `pages`. Prices: mb_search_hotels or mb_hotel_calendar.

ParameterTypeDescription
city *stringCity slug from mb_find_place(mode='hotel'), e.g. 'mashhad' or 'kish'.
hotel_typestringKind of stay.
limitintegerMax hotels returned from the page.
namestring | nullOnly names containing this text, e.g. 'درویشی'.
pageintegerPage of 90 hotels (the site's ranking order).
starsinteger | nullOnly this star count, e.g. 4.

mb_search_trains Search trains

Trains between two stations on a date with every class (wagon), its price per adult and free seats. price_toman is per adult; for children, infants or a compartment call mb_train_price with the class_id. Top-level refund_penalties apply to every class unless it lists its own. Stops: mb_train_stops. No seats: mb_train_price_calendar or mb_alternative_routes. A round trip is two calls (return leg with outbound_class_id).

ParameterTypeDescription
date *stringTravel date YYYY-MM-DD (sales open about 18 days ahead).
destination *integerTrain station id from mb_find_place(mode='train'), e.g. 1 (Tehran).
origin *integerTrain station id from mb_find_place(mode='train'), e.g. 1 (Tehran).
available_onlybooleanHide sold-out classes and trains with no free seat.
limitintegerMax trains.
outbound_class_idinteger | nullReturn leg of a round trip only: the outbound class_id (limits the return to the same rail company).
quotastringSeat quota: general (mixed), men, women, or car transport.
sortstringOrder of the trains.

mb_train_price_calendar Train price calendar

Cheapest train ticket per day (one adult) for a route, only days with free seats. Then mb_search_trains for the chosen day. Sales open about 18 days ahead.

ParameterTypeDescription
destination *integerTrain station id from mb_find_place(mode='train'), e.g. 1 (Tehran).
origin *integerTrain station id from mb_find_place(mode='train'), e.g. 1 (Tehran).
daysintegerNumber of days to cover.
quotastringSeat quota: general (mixed), men, women, or car transport.
seatsintegerSeats needed.
start_datestring | nullFirst day YYYY-MM-DD; default today.

mb_train_price Train ticket price

Exact price of one train class for a party: per adult, child, infant, foreigner and empty berth, and the total. A sold-out class still returns a price: check seats_left in the search first. The breakdown does not add up exactly to the price; the price is what is paid.

ParameterTypeDescription
class_id *integerclass_id from a fresh mb_search_trains result.
adultsintegerAdults (12+).
childrenintegerChildren (2-11).
empty_seatsintegerEmpty berths to buy for a whole compartment, e.g. 1 for 3 people in a 4-berth.
foreignersintegerForeign passengers (priced separately).
infantsintegerInfants (under 2).

mb_train_stops Train stops

Every station a train stops at, in order, with the date and local time at each. Takes a class_id, never a train number. The first stop can be before your station.

ParameterTypeDescription
class_id *integerclass_id from a fresh mb_search_trains result.

mb_alternative_routes Alternative routes

Alternatives when direct trains are full or dear: trips with one change, and nearby train, bus and flight routes. with_one_change: up to 7 journeys with one change, any mix of train and bus (price per adult). nearby_*: routes near the two stations with the cheapest price where known (classes_listed is a raw count, not bookable classes); pass their ids to mb_search_trains, mb_search_buses or mb_search_flights. Seat counts here can be cached: confirm with a search.

ParameterTypeDescription
date *stringTravel date YYYY-MM-DD (sales open about 18 days ahead).
destination *integerTrain station id from mb_find_place(mode='train'), e.g. 1 (Tehran).
origin *integerTrain station id from mb_find_place(mode='train'), e.g. 1 (Tehran).