$ timeahead_
← mcp scores
90
flights

Google Flights MCP and Python Library

overview

What it does

Flights is an MCP server and Python library that provides programmatic access to Google Flights data by reverse-engineering the API directly, bypassing HTML scraping. It exposes two main tools: search_flights to find flights on a specific date with detailed filters (cabin class, airline preferences, departure windows, stop counts), and search_dates to identify the cheapest travel dates across a flexible range. The library handles rate limiting, retries, and input validation automatically.

Who it's for

Backend engineers integrating flight search into larger travel or booking applications; travel researchers and planners who need to embed flight lookups in Claude-driven workflows; anyone building trip planning tools that require reliable, programmatic access to flight pricing and availability without web scraping.

Common use cases

  • Search for flights on a specific date, filtering by cabin class (economy to first), non-stop or stop preferences, and airline codes
  • Identify the cheapest travel dates across a date range for flexible travelers with schedule flexibility
  • Build multi-city itineraries by chaining multiple legs together
  • Integrate real-time flight pricing into AI agents that advise on travel costs and route optimization
  • Compare flights sorted by price, duration, or departure time to find optimal routes

Setup pitfalls

  • Must use pipx install flights or pip install flights; the MCP server runs via fli-mcp or fli-mcp-http — ensure the binary path is correct in your Claude Desktop config (use which fli-mcp to verify)
  • Requires filesystem read/write access to store configuration and cache; consider sandboxing if running in restricted environments
  • Makes direct HTTP calls to Google's API; network failures are retried automatically but extended outages will block searches
  • The JSON output format (via --format json in CLI) is experimental and may change; avoid hardcoding against its schema
install
add to your claude desktop / cursor / windsurf mcp config:
{
  "mcpServers": {
    "flights": {
      "command": "uvx",
      "args": [
        "flights"
      ]
    }
  }
}
per-client install guide (claude desktop · cursor · windsurf · vscode · claude code) →
owner of this server? claim your listing to get a verified badgeclaim →
score breakdown
security (35%)100
freshness (25%)100
adoption (20%)82
quality (10%)90
trust (10%)50
score history (9 updates)
5/10/20265/21/2026
capabilities · what this server can do
tool list unavailable — permissions from static analysis·auth: API key
medium risk
● active   ○ not requested  ·  hover each badge for details
fs read fs write network exec eval secrets
why medium risk: fs read + fs write + network + secrets — requires access to credentials or environment secrets.
maintenance health
64/ 100 · is this project alive
contributors (1y)18
top contributor share59%
releases (1y)11
last release0d ago
median issue response17.9d
ci✓ passing
raw data
weekly downloads20k
github stars3k
forks293
open issues19
license✓ present
readme length18826 chars
last publish0d ago
last commit1d ago
last updated2h ago
install verified✓ pass · 4d ago
score drop alerts
get notified by email when this server's score drops 5+ points