Travelpayouts Mcp

io.github.theYahia由 GitHub 帳號 theYahia 發布v1.0.0更新於 Oct 24, 2026

MCP server for Travelpayouts API -- flight search, popular routes, price calendar.

概覽

AI 產生的概覽

Travelpayouts(Aviasales)MCP 伺服器,讓助理搜尋航班、價格日曆與飯店,並查詢機場、航空公司與城市。

可以做什麼
  • 依航線、日期與幣別搜尋便宜航班,支援整月最低價、價格日曆、前後日期比價與僅直飛
  • 查看熱門目的地、特定航空公司的航線以及目前特惠
  • 依城市、日期與入住人數搜尋飯店,並依飯店 ID 查詢價格
  • 依名稱或 IATA/ICAO 代碼查詢並自動補齊機場、航空公司與城市
適用情境
適合讓助理在彈性日期之間比較機票價格、尋找便宜或直飛航線、查看熱門目的地,或把飯店選項與相符的航班一起規劃。
執行需求
以 stdio 在本機執行,通常透過 npx 或全域 npm 安裝,因此需要 Node.js。需要 Travelpayouts API 權杖,透過環境變數 TRAVELPAYOUTS_TOKEN 提供。需要可連線至 Travelpayouts API 的網路。
安裝前請注意
TRAVELPAYOUTS_TOKEN 是放在環境變數中的密鑰,請勿寫入共用設定或日誌。查詢與旅遊搜尋內容會傳送給第三方 Travelpayouts/Aviasales API,結果可能包含聯盟或合作連結。此伺服器只讀取價格資料,不會進行訂位或付款。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

Travelpayouts MCP — flight and hotel search for AI assistants

If you were looking for a way to have Claude or another AI assistant find the cheapest flight on a route, show a price calendar across flexible dates, resolve an airport or airline code or search hotels, this is it. 13 tools sit on the Travelpayouts (Aviasales) API: flight search, price calendars, hotel search, airport/airline/city lookup, direct routes and flexible date pricing.

Install

bash
npm install -g @theyahia/travelpayouts-mcp

Or use directly with npx:

bash
npx @theyahia/travelpayouts-mcp

Environment Variables

VariableRequiredDescription
TRAVELPAYOUTS_TOKENYesAPI token from Travelpayouts

Claude Desktop Config

json
{  "mcpServers": {    "travelpayouts": {      "command": "npx",      "args": ["-y", "@theyahia/travelpayouts-mcp"],      "env": {        "TRAVELPAYOUTS_TOKEN": "your-token"      }    }  }}

Tools (13)

Flights (8)

ToolDescription
search_flights_pricesSearch cheap flights by route, dates, and currency
get_cheapest_monthFind cheapest flights for an entire month
get_calendar_pricesPrice calendar showing cheapest price per day
get_popular_directionsPopular flight directions from a city with prices
get_airline_directionsRoutes served by a specific airline
get_special_offersCurrent special flight deals across all routes
get_direct_routesSearch only non-stop flights between two cities
get_nearest_pricesPrices for ±N days around a target date (flexible travel)

Hotels (2)

ToolDescription
search_hotelsSearch hotels by city with dates and guest count
get_hotel_pricesGet prices for a specific hotel by ID

Lookup (3)

ToolDescription
lookup_airportsSearch/autocomplete airports by name or IATA code
lookup_airlinesSearch airlines by name or IATA/ICAO code
lookup_citiesSearch/autocomplete cities by name or IATA code

Auth

API token passed via X-Access-Token header or query parameter. Retries on 429 (rate limit) and 5xx (server errors) with exponential backoff.

Demo Prompts

  1. "Find the cheapest flights from Moscow to Istanbul in June" Uses lookup_cities to resolve IATA codes, then get_cheapest_month to find the best deals for the month.

  2. "What are the popular destinations from Saint Petersburg right now?" Uses get_popular_directions with origin LED to show trending routes and current prices.

  3. "Search hotels in Sochi for July 10-17 for 2 adults, then find flights there from Moscow" Uses search_hotels for accommodation options, then search_flights_prices for matching flight dates.

  4. "I want to fly Moscow → Dubai around March 15, but ±3 days is fine if it's cheaper" Uses get_nearest_prices to compare prices across 7 dates centered on March 15.

  5. "Find only direct flights from Moscow to Minsk" Uses get_direct_routes with direct=true filter.

Development

bash
npm installnpm run dev          # Run with tsxnpm test             # Run testsnpm run build        # Compile TypeScript

License

MIT


Telegram: @vhodvai

來源:README.md,提交 9cc3a56

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分