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 分