Variflight Mcp

io.github.variflight由 GitHub 账号 variflight 发布v1.1.0更新于 Oct 24, 2026

VariFlight's official MCP server provides tools to query flight, weather, comfort, and fare data.

已验证STDIO仅桌面位置与生活金融

概览

AI 生成的概览

VariFlight 官方 MCP 服务器,让助手查询航班、比较票价与行程方案、查看飞机实时位置和机场天气。

可以做什么
  • 按出发与到达城市或机场代码、或按航班号搜索航班,支持分页与精简字段
  • 查询两地之间的中转航班方案
  • 获取行程推荐,包括最低价、最短时长与建议方案,以及两城之间的舱位级票价
  • 查询已知航班的舒适度信息,如准点率、机型、客舱布局、餐食与娱乐
  • 按机尾号追踪飞机实时位置,并获取机场未来三天天气预报
适用场景
适合助手回答航班出行问题:查询某日航班选项、比较价格与时长、了解某航班的舒适度或准点情况,或追踪飞机位置、查看机场天气。
运行要求
通过 npx 从 npm 包 @variflight-ai/variflight-mcp 以 stdio 方式在本机运行,需要 Node.js。需要 VariFlight API 密钥,通过环境变量 VARIFLIGHT_API_KEY 提供,需在 VariFlight AI 开放平台注册后创建。需要访问 VariFlight 服务的网络连接。
安装前请注意
API 密钥是计费凭证:分页结果每页都是一次单独计费调用,价格见服务商平台文档,试用额度之外可能产生费用。查询会把航班搜索参数发送到 VariFlight 服务器。请勿将密钥写入共享配置文件。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Variflight Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Variflight MCP Server

A Model Context Protocol (MCP) server implementation for VariFlight flight information services. This server provides various tools to query flight information, weather data, and flight comfort metrics.

This package is the stdio distribution of VariFlight Aviation MCP on the VariFlight AI Open Platform. Full documentation, including client setup, tool reference and pricing: ai.variflight.com/docs/aviation (中文).

Variflight API Key

To use the Variflight MCP server, you need to have a Variflight API key. Sign up at ai.variflight.com and create one in the console; new accounts receive ¥50 in trial credits.

Remote server

The same tools are available as a remote MCP server over streamable HTTP, with no local process required:

bash
claude mcp add --transport http variflight-aviation https://ai.variflight.com/servers/aviation/mcp \  --header "X-API-Key: YOUR_API_KEY"

Clients that support OAuth 2.1 can add https://ai.variflight.com/servers/aviation/mcp without a key and sign in when prompted.

Installation

json
{    "mcpServers": {        "variflight": {            "command": "npx",            "args": [                "-y",                "@variflight-ai/variflight-mcp"            ],            "env": {                "VARIFLIGHT_API_KEY": "your_api_key_here"            }        }    }}

Available Tools

1. Search Flights by Departure and Arrival

Search direct flights by city or airport code on a specific date. Use city codes like BJS or exact airport codes like PEK, but do not mix city and airport codes for the same side:

typescript
searchFlightsByDepArr({  dep: "PEK",  // Beijing  arr: "SHA",  // Shanghai  date: "2024-03-20"})

2. Search Flights by Number

Search a specific flight by flight number and date:

typescript
searchFlightsByNumber({  fnum: "MU2157",  date: "2024-03-20"})

3. Get Flight Transfer Information

Search connecting flight options between departure and arrival cities:

typescript
getFlightTransferInfo({  depcity: "BJS",  arrcity: "LAX",  depdate: "2024-03-20"})

searchFlightsByDepArr and getFlightTransferInfo also accept optional paging parameters. Busy routes can return dozens of results with many fields each, so use these to keep responses small:

  • limit: maximum number of results to return
  • offset: number of results to skip; pass next_offset from the previous response to get the next page. Each page is a separate billed call.
  • detail: "summary" returns only the core fields of each result; "full" (the default) returns every field

When any of them is set, the response also includes total, offset, returned and, if more results exist, next_offset. Without them, the response is unchanged.

typescript
searchFlightsByDepArr({  depcity: "BJS",  arrcity: "SHA",  date: "2024-03-20",  limit: 20,  detail: "summary"})

4. Flight Happiness Index

Get comfort-focused details for a known flight, such as punctuality, aircraft type, cabin configuration, meals, and entertainment:

typescript
flightHappinessIndex({  fnum: "MU2157",  date: "2024-03-20"})

5. Real-time Aircraft Location

Track realtime flight location using the aircraft registration number, also called tail number:

typescript
getRealtimeLocationByAnum({  anum: "B2021"})

6. Airport Weather Forecast

Get the 3-day airport weather forecast:

typescript
getFutureWeatherByAirport({  airport: "PEK"})

7. Search Flight Itineraries

Get a natural-language summary with recommended flight options, overall lowest price, shortest duration, and several suggested itineraries:

typescript
searchFlightItineraries({  depCityCode: "BJS",  // Beijing  arrCityCode: "SHA",  // Shanghai  depDate: "2025-04-20"})

8. Get Flight Prices by Cities

Get structured raw sale-flight data between two cities, with each flight returning cabin-level prices:

typescript
getFlightPriceByCities({  dep_city: "BJS",  // Beijing  arr_city: "SHA",  // Shanghai  dep_date: "2026-04-20"})

License

ISC License - See LICENSE for details.

Author

Variflight (https://ai.variflight.com)

Version

Current version: 1.1.0

来源:README.md,提交 acc170e

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v1.1.0最新Sep 26, 2026
  2. v1.0.2Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。