$ timeahead.in
/ servers/pypi/flights
pypi

flights

Google Flights MCP and Python Library

3k stars49k/wkupdated 2d agogithub ↗
85good
▣ Overview

What it does

A Python library and MCP server that searches Google Flights via reverse-engineered API calls rather than web scraping. Exposes two main tools: search_flights for finding flights on a specific date with detailed filters (origin, destination, cabin class, stops, airlines, layover duration), and search_dates for scanning a date range to identify the cheapest travel windows. Results include fare, flight duration, number of stops, and departure and arrival times. Direct API access avoids the brittleness of HTML parsing and browser automation.

Who it's for

Travel automation engineers building flight-search features into apps; backend teams wiring Claude into custom booking systems; anyone building AI-driven travel planners that need programmatic access to real-time Google Flights pricing without the maintenance burden of web scraping.

Common use cases

  • Find round-trip or one-way flights between two cities on a specific date, filtered by cabin class and connection preferences.
  • Scan a flexible date range to identify the cheapest travel dates—for example, finding the best week to fly from LAX to JFK in July.
  • Restrict results to specific airlines or global alliances, or exclude budget carriers from the results.
  • Compare flights across multiple currencies and languages by setting the currency code and language locale.
  • Find connecting flights with custom layover constraints (e.g., minimum 2 hours, maximum 4 hours in a hub).

Setup pitfalls

  • One secret was detected in the source code—audit and rotate any exposed credentials before use in production.
  • CI is currently failing; the project is actively maintained (last update 15 days ago), but review recent issues or commit messages to confirm your use case is not blocked.
  • Requires network access to Google Flights endpoints; proxy or firewall rules may need adjustment to allow outbound connections.
  • MCP server runs as fli-mcp (stdio) or fli-mcp-http (HTTP on port 8000)—verify the correct binary is in your PATH before connecting to Claude Desktop.
1 credential detected in repository history via Gitleaks
▣ Score BreakdownMCPScore = Σ(raw × weight)
DimensionRawWeighted
Security
35%
80
28.0
Freshness
25%
100
25.0
Adoption
20%
91
18.2
Quality
10%
90
9.0
Trust
10%
50
5.0
Total
85.2
⚿ Capabilities & Risk Explainer
fs readfs writenetworksecrets
◆ Risk level: medium
fs read + fs write + network + secrets — requires access to credentials or environment secrets.
⚙ Install config
Claude Desktop · Cursor · Windsurf · VS Code (Copilot) · Claude Code
add to your MCP client config:
{
  "mcpServers": {
    "flights": {
      "command": "uvx",
      "args": [
        "flights"
      ]
    }
  }
}
📈 Score historylast 45 snapshots
5/10/20267/6/2026 · 45 snapshots
⚙ Maintenance health
69/ 100 · is this project alive?
contributors (1y)18
top contributor share61%
releases (1y)15
last release38d ago
ci✓ passing
⛁ Raw data
weekly downloads49k
github stars3k
forks358
open issues35
license✓ present
readme length18826 chars
last publish0d ago
last commit2d ago
last updated5d ago
install verified✓ pass · 49d ago
owner of this server? claim your listing to get a verified badgeclaim →
🔔 Score drop alerts
get notified by email when this server's score drops 5+ points