whentofly — flight search for AI agents (MCP)
MCP serverSearchwhentofly lets your AI search economy and business class flights with flexible dates, so you can find good fares even when your travel days can shift. It also adds price-level context, meaning your AI can tell you whether a fare looks high or low compared to typical levels.
Use whentofly — flight search for AI agents (MCP) in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add whentofly — flight search for AI agents (MCP) and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use whentofly to search locations
No key or account is asked for. Not verified by us yet: Ahel has not run a call through it.
Details
Available today. Use it from your connected AI after setup.
No key or account is asked for. Not verified by us yet: Ahel has not run a call through it.
After adding it, ask your AI to find flights for your destination and travel window. Mention if your dates are flexible so it can check nearby days too.
What your AI can do with it
- Search economy and business class flights for a trip
- Look across flexible dates to find cheaper days to fly
- Explain whether a fare is high or low compared to typical price levels
- Compare flight options across a date range before picking a day
Install whentofly — flight search for AI agents (MCP)
The server’s own address, for the clients that take one directly. Or connect Ahel once and every client you use reads it from one address, with the account kept on Ahel rather than in each client’s config.
Claude Code
claude mcp add --transport http --scope user whentofly-flight-search-for-ai-a 'https://whentofly.io/mcp?ch=mcp-registry'Run it once in your project, then open /mcp to approve any sign-in the server asks for.
Claude Desktop
https://whentofly.io/mcp?ch=mcp-registryAdd a custom connector in Settings, paste this address, and approve the sign-in.
Cursor
cursor://anysphere.cursor-deeplink/mcp/install?name=whentofly-flight-search-for-ai-a&config=eyJ1cmwiOiJodHRwczovL3doZW50b2ZseS5pby9tY3A/Y2g9bWNwLXJlZ2lzdHJ5In0=Open the link and Cursor adds the server at that address.
ChatGPT
https://whentofly.io/mcp?ch=mcp-registryIn Settings, enable Developer mode, create an MCP app, and paste this address. Your plan and workspace must allow custom apps.
Codex
codex mcp add whentofly-flight-search-for-ai-a --url 'https://whentofly.io/mcp?ch=mcp-registry'Run it once, then sign in with codex mcp login whentofly-flight-search-for-ai-a if the server asks for an account.
From the project's README
As published by dimabalony/whentofly-mcp in README.md.
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 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:
{
"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 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: hello@whentofly.io or open an issue here.
Tools it offers (2)
What this server listed when Ahel dialed its public endpoint in Sep 2026, with no key and no account of yours. The names are the server’s own.
search_locationssearch_flights
Signals
- GitHub stars
- 3
- Last commit
- Aug 2026
Advanced
- Delivery
- whentofly MCP server → your Ahel connector (mcp.ahel.ai) → your AI.
- Item type
- mcp-server
- Key
io-github-dimabalony-whentofly- Source
- github.com/dimabalony/whentofly-mcp
- Hosted endpoint
https://whentofly.io/mcp?ch=mcp-registry
github.com/dimabalony/whentofly-mcp