cheapdates-mcp
cheapdates
直接从 Google Flights 获取某条航线最便宜的出行日期。CLI + MCP 服务器。
为什么会有这个项目:Google 的价格日历(GetCalendarGraph)由 BotGuard 逐请求签名,因此自 2026 年年中以来,所有纯 HTTP 客户端(fli dates、google-flights-mcp 等)都返回空结果。cheapdates 有两个后端:
graph — 驱动无头 Chromium 进入航线页面,打开 价格图,并读取页面自身接收到的日历。一次调用 ≈ 60 个出发日期,支持单程或往返。每 60 天约 3 秒。
sweep — 每个日期执行一次 fast-flights 搜索,无需浏览器。每日期约 0.5 秒(4 个 worker);还会告诉你航空公司。
auto(默认)在安装了 Playwright + Chromium 时使用 graph,否则使用 sweep;如果 graph 失败,则回退到 sweep。
安装
git clone https://github.com/afgoes/cheapdates.git && cd cheapdates && uv sync # see INSTALL.md
python -m playwright install chromium # for the graph backendRelated MCP server: fli
CLI
cheapdates JFK LHR 2026-10-01 2026-11-30 # one-way
cheapdates JFK LHR 2026-10-01 2026-11-30 -r 7 # round trip, 7 nights
cheapdates JFK LHR 2026-10-01 2026-11-30 --nonstop --json
cheapdates JFK LHR 2026-10-01 2026-11-30 -b sweep # force fast-flightsMCP (Claude Code)
claude mcp add cheapdates -- uv run --directory /path/to/cheapdates cheapdates-mcp工具:cheapest_dates_tool(origin, destination, start, end, trip_length?, currency?, nonstop?, seat?, backend?)。
Python
import datetime as dt
from cheapdates import cheapest_dates
r = cheapest_dates("JFK", "LHR", dt.date(2026,10,1), dt.date(2026,11,30), trip_length=7)
print(r.cheapest)注意事项
逆向工程实现;Google 随时可能更改页面或响应。解析器通过 fixture 测试(pytest),graph 后端在失败时会回退到 sweep。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseAqualityDmaintenanceIntegrates Google Flights data into AI workflows for natural language flight searches, price comparisons, flexible date searches, and multi-city itinerary planning with support for various cabin classes and passenger types.94MIT
- AlicenseNot gradedqualityBmaintenanceEnables flight search and fare calendar exploration by interacting with Google Flights' API, supporting detailed filters for origin, destination, dates, cabin class, airlines, and more.3,093MIT
- AlicenseAqualityFmaintenanceConnects AI agents to Google Flights data, enabling retrieval of flight information, cheapest options, time-filtered flights, and best recommendations.427MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to search for real-time flights between airports using the SearchAPI.io Google Flights API, returning prices, schedules, airlines, and carbon emissions.
Related MCP Connectors
whentofly: flexible-date economy/business flight search + price-level context for AI agents
Flight Intelligence MCP — search, cheapest dates, multi-city, airline compare via Google Flights
Flight search & booking for AI agents. 400+ airlines, $20-50 cheaper than OTAs.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/afgoes/cheapdates'
If you have feedback or need assistance with the MCP directory API, please join our Discord server