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

已驗證Streamable HTTP可網頁執行位置與生活金融

概覽

AI 產生的概覽

一個託管的航班搜尋 MCP 伺服器,讓助理在彈性日期範圍內找出最便宜的來回機票,並判斷價格相對於該航線一般區間的高低。

可以做什麼
把地名解析成帶類型的城市或機場識別碼,涵蓋小型區域機場以及城市與機場同名的情况,供航班搜尋使用。在一個月或日期範圍內依最短與最長旅遊天數搜尋最便宜來回機票,依價格排序並附上訂票連結和航空公司名稱。不指定目的地時,查看從某出發地出發最便宜的目的地。為每筆票價附上價格等級(划算、典型、偏高或資料不足),說明價格相對於該航線一般區間的位置。
適用情境
適合需要彈性日期經濟艙機票選項、從某出發地看最便宜目的地,或判斷某個報價對該航線是否偏高時使用。不適合商務艙等較高艙等,這些艙等無法預訂。
執行需求
透過 streamable HTTP 連線的遠端 MCP 端點;不需本機執行環境、API 金鑰或註冊。用戶端需支援遠端 MCP 伺服器;README 指出 ChatGPT 需改用另外的自訂 GPT。
安裝前請注意
價格是快取指標,每個回應都帶有新鮮度欄位,最終價格應在訂票頁面確認。部分訂票連結為聯盟連結,可能向提供方支付佣金,但結果排序不受此影響;每筆結果會標明自身的變現方式。僅支援經濟艙。

安裝

在 SourceWeft 中

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

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

bash
claude mcp add whentofly https://whentofly.io/mcp?ch=github

Claude Desktop / claude.ai — Settings → Connectors → Add custom connector → https://whentofly.io/mcp?ch=github

Cursor — add to mcp.json:

json
{  "mcpServers": {    "whentofly": { "url": "https://whentofly.io/mcp?ch=github" }  }}

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 market
  • airport: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
SourceWeft 尚未讀取此伺服器的工具。

版本歷史

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

評分

已滿足適用檢查項的 85%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分

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

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