by punitarani
Google Flights MCP, CLI and Python Library
# Add to your Claude Code skills
git clone https://github.com/punitarani/fliGuides for using mcp servers skills like fli.
Last scanned: 11/28/2026
{
"issues": [
{
"file": "skills/fli/SKILL.md",
"line": 87,
"type": "prompt-injection",
"message": "Possible concealment directive: \"Do not tell user\"",
"severity": "medium"
}
],
"status": "PASSED",
"scannedAt": "2026-11-28T21:47:38.906Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}fli is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by punitarani. Google Flights MCP, CLI and Python Library. It has 3,526 GitHub stars.
Yes. fli passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/punitarani/fli" and add it to your Claude Code skills directory (see the Installation section above).
fli is primarily written in Python. It is open-source under punitarani on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh fli against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
A powerful Python library that provides programmatic access to Google Flights data with an elegant CLI interface. Search flights, find the best deals, and filter results with ease.
🚀 What makes
flispecial? Unlike other flight search libraries that rely on web scraping, Fli directly interacts with Google Flights' API through reverse engineering. This means:
- Fast: Direct API access means faster, more reliable results
- Zero Scraping: No HTML parsing, no browser automation, just pure API interaction
- Reliable: Less prone to breaking from UI changes
- Modular: Extensible architecture for easy customization and integration
pipx install flights
# Run the MCP server on STDIO
fli-mcp
# Run the MCP server over HTTP (streamable)
fli-mcp-http # serves at http://127.0.0.1:8000/mcp/

{
"mcpServers": {
"fli": {
"command": "/Users/<user>/.local/bin/fli-mcp"
}
}
}
Note: Replace
<user>with your actual username. You can also find the path to the MCP server by runningwhich fli-mcpin your terminal.
The MCP server provides these main tools:
| Tool | Description |
|---|---|
search_flights |
Search for flights on a specific date with detailed filters |
search_dates |
Find the cheapest travel dates across a flexible date range |
search_explore |
Discover cheap destinations from an origin ("fly anywhere") |
search_flights Parameters| Parameter | Type | Description |
|---|---|---|
origin |
string | Departure airport IATA code(s) — comma-separated for multi |
destination |
string | Arrival airport IATA code(s) — comma-separated for multi |
departure_date |
string | Travel date in YYYY-MM-DD format |
return_date |
string | Return date for round trips (optional) |
cabin_class |
string | ECONOMY, PREMIUM_ECONOMY, BUSINESS, or FIRST |
max_stops |
string | ANY, NON_STOP, ONE_STOP, or TWO_PLUS_STOPS |
departure_window |
string | Time window in 'HH-HH' format (e.g., '6-20') |
airlines |
list | Filter by airline codes (e.g., ['BA', 'AA']) |
exclude_airlines |
list | Airline IATA codes to exclude (e.g., ['DL', 'B6']) |
alliance |
list | Restrict to alliances: ONEWORLD, SKYTEAM, STAR_ALLIANCE |
exclude_alliance |
list | Alliance names to exclude from results |
min_layover |
int | Minimum layover duration in minutes (multi-stop only) |
max_layover |
int | Maximum layover duration in minutes (multi-stop only) |
top_n |
int | Round-trip only: outbound options expanded into return flights (default 5, 1-10) |
currency |
string | ISO 4217 code (e.g. 'EUR', 'JPY') — flows to curr= param |
language |
string | BCP-47 language code (e.g. 'en-GB') — flows to hl= param |
country |
string | ISO 3166-1 alpha-2 country code (e.g. 'GB') for gl= param |
sort_by |
string | CHEAPEST, DURATION, DEPARTURE_TIME, or ARRIVAL_TIME |
passengers |
int | Number of adult passengers |
children |
int | Number of children (ages 2-11) |
infants_in_seat |
int | Number of infants (under 2) occupying their own seat |
infants_on_lap |
int | Number of lap infants (under 2, no seat) |
Total travelers (
passengers + children + infants_in_seat + infants_on_lap) must be between 1 and 9, andinfants_on_lapcannot exceedpassengers.A round trip costs
1 + top_npage fetches (one outbound search, plus one per outbound candidate expanded into return flights), sotop_nis capped at 10. Round-trip results all from one airline? Raisetop_n, or sort differently — the default sort only ever expands the cheapesttop_noutbounds, which are often the same carrier.
search_dates Parameters| Parameter | Type | Description |
|---|---|---|
origin |
string | Departure airport IATA code(s) — comma-separated for multi |
destination |
string | Arrival airport IATA code(s) — comma-separated for multi |
start_date |
string | Start of date range in YYYY-MM-DD format |
end_date |
string | End of date range in YYYY-MM-DD format |
trip_duration |
int | Trip duration in days (for round-trips) |
is_round_trip |
bool | Whether to search for round-trip flights |
cabin_class |
string | ECONOMY, PREMIUM_ECONOMY, BUSINESS, or FIRST |
max_stops |
string | ANY, NON_STOP, ONE_STOP, or TWO_PLUS_STOPS |
departure_window |
string | Time window in 'HH-HH' format (e.g., '6-20') |
airlines |
list | Filter by airline codes (e.g., ['BA', 'AA']) |
exclude_airlines |
list | Airline IATA codes to exclude |
alliance |
list | Restrict to alliances: ONEWORLD, SKYTEAM, STAR_ALLIANCE |
exclude_alliance |
list | Alliance names to exclude |
min_layover |
int | Minimum layover duration in minutes |
max_layover |
int | Maximum layover duration in minutes |
currency |
string | ISO 4217 currency code (e.g. 'EUR', 'JPY') |
language |
string | BCP-47 language code (e.g. 'en-GB') |
country |
string | ISO 3166-1 alpha-2 country code (e.g. 'GB') |
sort_by_price |
bool | Sort results by price (lowest first) |
passengers |
int | Number of adult passengers |
children |
int | Number of children (ages 2-11) |
infants_in_seat |
int | Number of infants (under 2) occupying their own seat |
infants_on_lap |
int | Number of lap infants (under 2, no seat) |
Same passenger limits as
search_flights: total 1-9,infants_on_lap≤passengers.
search_explore ParametersPowered by Google Flights Explore (GetExploreDestinations): one call returns
dozens of destinations with their cheapest fares when the destination is
flexible.
| Parameter | Type | Description |
|---|---|---|
origin |
string | Airport IATA code (e.g. 'JFK') or a city mid (e.g. '/m/04jpl') |
destination |
string | ANYWHERE (default), EUROPE, SOUTHERN_EUROPE, ASIA, AFRICA, NORTH_AMERICA, SOUTH_AMERICA, OCEANIA, or a region or country knowledge-graph mid (not an airport or city) |
departure_date |
string | Departure date in YYYY-MM-DD format (required) |
round_trip |
bool | Price round trips instead of one-ways (needs a fixed trip length) |
trip_min_nights |
int | Trip length in nights (round trips: one fixed value, 1-23) |
trip_max_nights |
int | Must equal trip_min_nights for round trips |
max_price |
int | Maximum fare cap |
cabin_class |
string | ECONOMY, PREMIUM_ECONOMY, BUSINESS, or FIRST |
max_stops |
string | ANY, NON_STOP, ONE_STOP, or TWO_PLUS_STOPS |
airlines |
list | Filter by airline codes (e.g., ['BA', 'AA']) |
exclude_airlines |
list | Airline IATA codes to exclude |
alliance |
list | Restrict to alliances: ONEWORLD, SKYTEAM, STAR_ALLIANCE |
exclude_alliance |
list | Alliance names to exclude |
max_flight_duration |
int | Maximum flight duration in minutes |
passengers |
int | Number of adult passengers (default 1) |
currency |
string | ISO 4217 currency code (e.g. 'EUR', 'JPY') |
language |
string | BCP-47 language code (e.g. 'en-GB') |
country |
string | ISO 3166-1 alpha-2 country code (e.g. 'GB') |
sort_by_price |
bool | Sort destinations by price (default true) |
limit |
int | Maximum number of destinations to return |
Each priced destination includes the airline, stops, duration, destination
airport, and a flights_url deep link; pass the destination_airport to
search_flights for bookable itineraries.
pip install flights
# Install using pipx (recommended for CLI)
pipx install flig