Alibaba Travel

io.github.sepehr071由 GitHub 帳號 sepehr071 發布v0.1.2更新於 Nov 4, 2026

Read-only Alibaba (alibaba.ir) Iran travel: trains, buses, flights, hotels, villas and tours.

發布方自己的服務:travel.art

概覽

Alibaba Travel 的本機 MCP 服務;無需登入;STDIO;14 個工具。

暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Alibaba Travel,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

alibaba-ir-mcp: Alibaba (علی‌بابا) Iran train, bus, flight, hotel, villa and tour search MCP server for AI agents

alibaba-ir-mcp is an unofficial, read-only MCP server that gives AI agents the train, bus, flight, hotel, villa and tour listings of Alibaba (alibaba.ir), Iran's largest travel site.
Its 14 tools look up city codes, search trains, buses, domestic and international flights, hotels, holiday homes and tour packages with prices and availability,
show bus seat maps and find the cheapest day to travel. No API key or Alibaba account is needed. It works in Claude, Cursor, Copilot and any other MCP client.

[PyPI] [Python] [CI] [License: MIT]

For AI agents · Quick start · Tools · FAQ · فارسی


For AI agents

  • What: unofficial MCP server (model context protocol) for alibaba.ir: train tickets (company, class, compartments, price, seats left, round trips), intercity buses (company, bus type, terminals, price, free seats), domestic and international flights (airline, times, fare classes, baggage, refund fees, round trips), hotels, villa and holiday-home rentals, tour packages and the cheapest day per route.
  • Install: uvx alibaba-ir-mcp or claude mcp add alibaba -- uvx alibaba-ir-mcp. Transport: stdio. Needs uv (Python 3.10+).
  • Auth: none, no API key or account. Optional ALIBABA_IR_MCP_PROXY (HTTP proxy URL, or a comma-separated list); system proxy settings are ignored.
  • Access: read-only. It cannot log in, book, hold seats or pay, so no confirmation is needed before calling any tool.
  • Tools: 14, all prefixed al_. Typical sequences: al_trains / al_buses / al_flights / al_flights_international for one day; al_*_cheapest then the search for the chosen day; al_stays then al_stay_detail; al_cities when unsure of a city code.
  • Use when: the user asks for train, bus or flight options, prices or seats, a hotel, a villa to rent or a tour package, or the cheapest day to travel.
  • Do not use when: the user wants to buy or book (send them to alibaba.ir), or asks about visas and insurance (not covered).
  • Output: compact JSON. Prices are Toman (Alibaba's API uses Rial; the tools divide by 10 as the site does): per adult for transport, for the whole stay for hotels, villas and tours. Dates are accepted as Gregorian 2026-11-11 or Jalali 1405-08-20; times are Iran local time.
  • Machine-readable: server.json.

Quick start

bash
claude mcp add alibaba -- uvx alibaba-ir-mcp

Other clients: {"command": "uvx", "args": ["alibaba-ir-mcp"]}.

Tools

ToolWhat it does
al_citiesCity and airport names to the codes the other tools take (THR, MHD, SYZ...); international=true searches airports worldwide.
al_trainsTrains on one day (or a round trip): company, class and compartment, departure and arrival, price, seats left, discount; filter by class, passengers, women-only or men-only compartments.
al_trains_cheapestLowest train price for each of the next days.
al_busesIntercity buses on one day: company, bus type, departure, price, seats, terminals, stops; says when a route has no buses and the next date that has.
al_buses_cheapestLowest bus price and bus count for each of the next days.
al_bus_seatsFree seats of one bus: counts per status, seat numbers and rows.
al_flightsDomestic flights on one day (or round trip): airline, flight number, times, aircraft, fare class, price per adult, child and infant, seats, baggage, cancellation fees.
al_flights_cheapestLowest domestic fare for each of the next days.
al_flights_internationalInternational flights (any city Alibaba sells): airline, segments, stops, duration, baggage, price, round trip.
al_staysVillas, suites, cottages and other holiday homes in a city: price, rating, capacity, filters for type, price, rating.
al_stay_detailOne holiday home: beds, amenities, house rules, cancellation terms, nightly price calendar, reviews.
al_hotelsHotels in a city (Iran and abroad): stars, rating, price for the stay, meal plan, perks.
al_toursTour packages (travel plus hotel) to Kish, Mashhad, Istanbul, Dubai and more: hotel, room, price per person.
al_tours_cheapestLowest tour price per person for 11 days around a date.

Example: "cheapest way from Tehran to Mashhad next Thursday" -> al_trains_cheapest, al_flights_cheapest, then al_trains / al_flights / al_buses for that day.

FAQ

Is this official? No. It reads the same public JSON the alibaba.ir web app loads for anyone without an account.

Why does a train search sometimes fail? The rail suppliers go offline for maintenance for a while, usually just after midnight Tehran time. The site shows the same message; try again in a few minutes.

Why are there several rows for one flight? Each fare class is its own row; the site hides the repeats by default.

Where do the villas come from? Alibaba resells Jabama's listings; al_stays shows the same places and prices as alibaba.ir/accommodation.

Does it work outside Iran? Yes on most networks, directly or through ALIBABA_IR_MCP_PROXY.

فارسی

سرور MCP غیررسمی و فقط‌خواندنی برای علی‌بابا (alibaba.ir): جستجوی قطار، اتوبوس، پرواز داخلی و خارجی، هتل، ویلا و تور با قیمت و ظرفیت، نقشه صندلی اتوبوس و ارزان‌ترین روز سفر. نصب: uvx alibaba-ir-mcp. قیمت‌ها به تومان و تاریخ‌ها به شمسی (۱۴۰۵-۰۸-۲۰) یا میلادی پذیرفته می‌شود. خرید بلیت از طریق این ابزار ممکن نیست.

MIT License. Sepehr Radmard (سپهر رادمرد): github.com/sepehr071

來源:README.md,提交 4135e32

工具

14

al_cities

City and airport codes

Look up the city codes the other tools take (THR for Tehran, MHD for Mashhad) and what is sold for each city. Use first when the user names a city: pass the returned `code` to al_trains, al_buses or al_flights. `train` is true for cities with a station, `flight` for cities with a domestic airport. Buses use the same codes (a tiny train stop may have no buses). With international=true it searches the whole world (Dubai, Istanbul, Paris) and returns airports; `whole_city` rows (code ending in ALL) cover every airport of a city.

輸入參數limitqueryinternational

al_trains

Train tickets

Search train tickets between two Iranian cities on one day: company, class, times, price and seats left. Use for "trains from Tehran to Mashhad on 1405-08-20". Prices are Toman per adult. `seats_left` 0 means sold out. `class` is the wagon name (stars, berths, meals) and `class_code` its type: S saloon seats, EC 4-berth compartment, EL 6-berth compartment, V special. Pass return_date for the way back. Call al_trains_cheapest to compare prices over the following days. While the rail suppliers are in their maintenance window (usually after midnight) the site answers with an error; try again in a few minutes.

輸入參數date必填sortlimitorigin必填passengersdestination必填return_dateticket_typewagon_classonly_available

al_trains_cheapest

Cheapest train per day

List the lowest train price for each day from a start date, to pick the cheapest day to travel. Use before al_trains when the date is flexible. Prices are Toman per adult; a missing day has no train.

輸入參數date必填daysorigin必填destination必填

al_buses

Bus tickets

Search intercity bus tickets between two Iranian cities on one day: company, bus type, times, price, seats. Use for "buses from Tehran to Shiraz tomorrow". Prices are Toman per adult. `from_terminal` is the terminal of that departure (Tehran has several). Bus tickets carry no arrival time on the site.

輸入參數date必填sortlimitorigin必填destination必填only_available

al_buses_cheapest

Cheapest bus per day

List the lowest bus price and the number of buses for each day from a start date (the site has no bus calendar). Use before al_buses when the date is flexible. It runs one search per day, so keep `days` small. Prices are Toman per adult for buses with a free seat; a day with none shows no price.

輸入參數date必填daysorigin必填destination必填

al_bus_seats

Bus seat map

Show which seats are free on one bus: counts per status and the free seat numbers (no booking). Use after al_buses when the user cares where they sit or asks how full a bus is. Pick the bus by its departure time (and company). `layout` gives each seat's row and column (columns 1-2 left of the aisle, 4-5 right) so pairs can be found; statuses mean Available, booked for a male or female passenger, or Blocked (not for sale).

輸入參數date必填origin必填companydestination必填departure_time必填

al_flights

Domestic flights

Search domestic flights between two Iranian airports on one day: airline, flight number, times, fare, seats. Use for "flights from Tehran to Shiraz on 2026-11-12". Prices are Toman per adult (`child_price_toman` and `infant_price_toman` for the others); one flight can appear several times with different fare classes. Pass return_date for a round trip, refund_rules for the cancellation fee table, adults/children/infants for a group. For other days call al_flights_cheapest first. For flights abroad use al_flights_international.

輸入參數date必填sortlimitadultsorigin必填infantschildrendestination必填return_daterefund_rulesonly_available

al_flights_cheapest

Cheapest flight per day

List the lowest domestic fare for each day from a start date, to pick the cheapest day to fly. Use before al_flights when the date is flexible. Prices are Toman per adult; a day with no flight is missing.

輸入參數date必填daysorigin必填destination必填

al_flights_international

International flights

Search international flights between Iran and abroad (or any two cities Alibaba sells) on one day. Use for "flights from Tehran to Istanbul on 2026-11-16". Returns airline, flight numbers, times, stops, baggage and the price per adult in Toman (`total_toman` is for the whole group); cheapest first by default. Pass return_date for a round trip: each fare then has a `return` leg. Cities and codes come from al_cities with international=true (THRALL = all Tehran airports). Charter fares are sold as one fare class. It can take 10-20 seconds because airlines answer one by one (at most 12 polls per call). To buy, send the user to alibaba.ir.

輸入參數date必填sortcabinlimitadultsorigin必填airlineinfantschildrenmax_stopsdestination必填return_date

al_stays

Villas and holiday homes

Search villas, suites, cottages and other holiday homes for rent in a city, with price, rating and capacity. Use for "a villa in Masuleh for 4 people next weekend". Prices are Toman: `price_per_night_toman` is the average for the stay, `price_total_toman` the whole stay (VAT not included). The sort applies to the first 100 places the site returns (`found` is the full count). Call al_stay_detail with an `id` for the calendar, rules and amenities. The listings are Jabama's, sold through alibaba.ir.

輸入參數sorttypelimitguestsnightscheckin必填max_pricemin_pricemin_ratingdestination必填instant_only

al_stay_detail

Villa or holiday home details

Show one villa or holiday home in full: capacity, beds, amenities, house rules, cancellation terms, calendar, reviews. Use after al_stays when the user wants to decide on a place. Prices are Toman per night (`price_base` weekday, `price_weekend`, `price_holiday`); `calendar` lists the next days with `available` or not and the night's price. Guest names are left out.

輸入參數id必填reviewscalendar_days

al_hotels

Hotels

Search hotels in a city for a stay: stars, rating, price for the whole stay, meal plan, perks (domestic and abroad). Use for "a 4-star hotel in Mashhad for 2 nights from 1405-08-21". Prices are Toman for the room for all nights (`price_per_night_toman` is the average). The site's own page shows the same list and count. It can take up to a few seconds while hotels answer.

輸入參數city必填sortlimitadultsnightscheckin必填min_starsonly_available

al_tours

Tour packages

Search tour packages (round trip plus hotel) from a city to a destination such as Kish, Mashhad, Istanbul or Dubai. Use for "a 3-night Kish tour for two from Tehran next week". Each result is a hotel with the cheapest package: hotel, stars, rating, room, meal plan, how you travel, and the price per person and for the whole group in Toman. Results come in after a few seconds (at most 15 polls per call). To buy, send the user to alibaba.ir.

輸入參數sortlimitadultsnightsorigincheckin必填max_pricemin_starsdestination必填

al_tours_cheapest

Cheapest tour per day

List the lowest tour price per person for 11 departure days around a date (5 before, 5 after), to pick the cheapest day. Use before al_tours when the date is flexible. Prices are Toman per person for a tour of `nights` nights; a day without tours is missing. Then call al_tours for the chosen day.

輸入參數nightsorigincheckin必填destination必填

版本歷史

3
  1. v0.1.2最新Nov 3, 2026
  2. v0.1.1Nov 3, 2026
  3. v0.1.0Nov 1, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Travel 整合