
Whentofly
io.github.dimabalony由 GitHub 账号 dimabalony 发布v1.0.3更新于 Oct 24, 2026
whentofly: flexible-date economy/business flight search + price-level context for AI agents
概览
一个托管的航班搜索 MCP 服务器,让助手在灵活日期范围内查找最便宜的往返机票,并判断价格相对该航线常规区间的高低。
- 可以做什么
- 把地名解析为带类型的城市或机场标识,覆盖小型支线机场以及城市与机场同名的情况,供航班搜索使用。在一个月或日期范围内按最短和最长行程天数搜索最便宜往返机票,按价格排序并附预订链接和航空公司名称。不指定目的地时,查看从某出发地出发最便宜的飞行目的地。为每条票价附上价格水平(划算、典型、偏高或数据不足),说明价格相对该航线常规区间的位置。
- 适用场景
- 适合需要灵活日期经济舱机票选项、从某出发地看最便宜目的地,或判断某个报价对该航线是否偏高时使用。不适合商务舱等高级舱位,这些舱位无法预订。
- 运行要求
- 通过 streamable HTTP 连接的远程 MCP 端点;无需本地运行环境、API 密钥或注册。客户端需支持远程 MCP 服务器;README 指出 ChatGPT 需改用单独的自定义 GPT。
安装
在 SourceWeft 中
- 打开 控制台中的 Whentofly,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.dimabalony%2Fwhentofly/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"whentofly": {
"type": "http",
"url": "https://whentofly.io/mcp?ch=mcp-registry"
}
}
}README
whentofly — flight search for AI agents (MCP)
whentofly.io is a flexible-date flight search your AI agent can use directly. Ask your agent "cheapest round trip from Singapore to Tokyo in October, 5–9 days" — it searches a whole date window, returns the cheapest real fares with booking links, and tells you where that price sits against the route's usual range.
No API key. No signup. Two tools, hosted remotely — nothing to run locally.
Install
Claude Code
Claude Desktop / claude.ai — Settings → Connectors → Add custom connector →
https://whentofly.io/mcp?ch=github
Cursor — add to mcp.json:
Any other MCP client with remote (streamable HTTP) support: point it at
https://whentofly.io/mcp.
ChatGPT — use the whentofly Custom GPT (MCP connectors are Claude/Cursor-side for now).
What the tools do
search_locations — turn a place name into an exact identity
Returns typed values you pass straight through to search_flights:
city:SHA— every airport in the Shanghai marketairport:SHA— Hongqiao specifically, not Pudong
Plenty of IATA codes name both an airport and a whole city market — SHA is both — so
your agent should ask you which one you meant when more than one result looks plausible.
The catalog behind it covers 3,614 airports and 3,465 cities, so small regional airports
resolve too.
Already know the code? Pass it. This tool is for the long tail and for the city-vs-airport cases.
search_flights — cheapest round-trip in a flexible window
Give it a month or a date range plus min/max trip length ("5–9 days in October") and it scans every valid depart/return pair, then sorts by price. Booking links on every fare, airline names resolved.
Omit the destination — or say "anywhere" — and you get the cheapest places to fly from your origin instead. "Where can I fly cheapest from Berlin in September?"
Each fare also gets a price level: good, typical, high, or insufficient data when the route has no usable band. That says where today's price sits against the route's usual range. It says nothing about which way fares are heading, and it will never tell you to wait.
Example prompts
- "Find the cheapest round trip Singapore → Tokyo in October, 5 to 9 days."
- "Where can I fly the cheapest from Berlin for a week in September?"
- "Is $450 a high price for NYC → Lisbon in November? Check flexible dates."
- "Plan me the cheapest 10–14 day trip to Japan in the next 3 months."
- "Flights from Zhangjiajie — resolve the airport first."
What it doesn't do yet
Premium cabins aren't bookable. Ask for cabin=business or first and you may get
route-level price evidence in metadata.route_price_check, but no ranked fare with a
booking link. Our bookable fare source covers economy only. We could show you a business
price from somewhere else next to a link that goes elsewhere — we'd rather show you
nothing than a number the link won't honour.
Prices are cached indicators. Every response carries metadata.freshness so your agent
can see how stale a fare is; confirm the final price on the booking page.
Pricing & funding
Ranked for you, not for us. Results are ordered by the cheapest real price we found, whether or not that seller pays us — there's no fee a seller can pay to rank higher.
Free to use, no key. Some booking links are affiliate: if you book through one, the partner may pay us a commission, never added to your fare. Each result reports its own monetization, so an agent can tell which is which. Fares come from cached airline-ticket data; always verify the final price on the booking page.
For developers
The same search is available as a plain JSON API — https://whentofly.io/search
(docs), plus https://whentofly.io/locations?q=Shanghai for
location resolution. This repo hosts documentation for the hosted MCP server; the service
itself is closed-source.
Questions / feedback: [email protected] or open an issue here.
来源:README.md,提交 7406b34
工具
0版本历史
1- v1.0.3最新Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具必需15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分