About Fli
Fli is an MCP server published by punitarani in the Developer Tools category: google Flights MCP, CLI and Python Library. Conduid read 5 tools from its source: find_airports, get_booking_options, search_dates, search_explore and search_flights. It is published to PyPI as flights and runs with uvx.
The repository has 3.5K stars and 429 forks, is licensed MIT, and its last commit was on 25 Nov 2026. The latest release is v0.11.1 (25 Nov 2026): What's Changed fix(search): recover from Google's "Verifying..." page and name blocked pages (#283) (916103c) fix(fli-js): call fetch unbound so Cloudflare Workers don't… It follows v0.11.0 (25 Nov 2026), and the 5 most recent releases go back to fli-js-v0.0.2 (24 May 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include flights-api, google-flights-api, devtools, api and google-flights.
Install
uvx flightspip install flightsgit clone https://github.com/punitarani/fliTools (5)
find_airportsSearch for airports by city name, airport name, IATA code, or ICAO code.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum results to return |
| query * | string | City name, airport name, IATA code, or ICAO code (e.g., 'new york', 'heathrow', 'JFK', 'KJFK') |
get_booking_options| Parameter | Type | Description |
|---|---|---|
| airlines | array | Filter by airline IATA codes (e.g., ['BA', 'AA']) |
| alliance | array | Restrict to alliances: ONEWORLD, SKYTEAM, STAR_ALLIANCE. |
| cabin_class | string | Cabin class: ECONOMY, PREMIUM_ECONOMY, BUSINESS, FIRST |
| carry_on | boolean | Include carry-on bag fee in displayed price. {_IGNORED_BY_TRANSPORT} |
| checked_bags | integer | Number of checked bags in price (0-2). {_IGNORED_BY_TRANSPORT} |
| children | integer | Number of children (ages 2-11) |
| country | string | Optional ISO 3166-1 alpha-2 country code (e.g., 'GB'). |
| currency | string | ISO 4217 currency code (USD, EUR, GBP, JPY...) for prices. |
| departure_date * | string | Travel date in YYYY-MM-DD format |
| departure_window | string | Departure time window in 'HH-HH' 24h format (e.g., '6-20') |
| destination * | string | Arrival airport IATA code(s), comma-separated for multiple |
| emissions | string | Filter by emissions level: ALL or LESS. {_IGNORED_BY_TRANSPORT} |
| exclude_airlines | array | Airline IATA codes to EXCLUDE from results. |
| exclude_alliance | array | Alliance names to EXCLUDE from results. |
| exclude_basic_economy | boolean | Exclude basic economy fares from results. {_IGNORED_BY_TRANSPORT} |
| flight_numbers | array | Flight numbers identifying the itinerary to price, in order, taken from a prior search_flights result (e.g. ['BA178'] one-way, ['AA100', 'AA200'] round-trip). Accepts bare numbers ('178') or airline-prefixed ('BA178'). Omit to price the top result. |
| infants_in_seat | integer | Number of infants (under 2) occupying their own seat |
| infants_on_lap | integer | Number of lap infants (under 2, no seat) |
| language | string | Optional BCP-47 language code (e.g., 'en-GB') for the `hl` URL param. |
| max_layover | integer | Maximum layover duration in minutes. |
| max_stops | string | Maximum stops: ANY, NON_STOP, ONE_STOP, TWO_PLUS_STOPS |
| min_layover | integer | Minimum layover duration in minutes. |
| origin * | string | Departure airport IATA code(s), comma-separated for multiple |
| passengers | integer | Number of adult passengers |
| return_date | string | Return date in YYYY-MM-DD format (omit for one-way) |
| sort_by | string | Sort by: TOP_FLIGHTS, BEST, CHEAPEST, DEPARTURE_TIME, ARRIVAL_TIME, DURATION, EMISSIONS |
| top_n | integer | Round-trip only: number of outbound options the re-run search expands into return-flight combinations — pass the same value used for the search_flights call that found this itinerary, or a flight found with a higher top_n may not be reproduced here. Cost is `1 + top_n` page fetches. Ignored for one-way searches. |
search_datesFind the cheapest travel dates across a flexible date range| Parameter | Type | Description |
|---|---|---|
| airlines | array | Filter by airline IATA codes (e.g., ['BA', 'AA']) |
| alliance | array | Restrict to alliances: ONEWORLD, SKYTEAM, STAR_ALLIANCE. |
| cabin_class | string | Cabin class: ECONOMY, PREMIUM_ECONOMY, BUSINESS, FIRST |
| children | integer | Number of children (ages 2-11) |
| country | string | Optional ISO 3166-1 alpha-2 country code (e.g., 'GB'). |
| currency | string | ISO 4217 currency code (USD, EUR, GBP, JPY...) for prices. |
| departure_window | string | Departure time window in 'HH-HH' 24h format (e.g., '6-20') |
| destination * | string | Arrival airport IATA code(s), comma-separated for multiple (e.g., 'LHR' or 'LHR,CDG') |
| end_date * | string | End of date range in YYYY-MM-DD format. A range may span at most |
| exclude_airlines | array | Airline IATA codes to EXCLUDE from results. |
| exclude_alliance | array | Alliance names to EXCLUDE from results. |
| infants_in_seat | integer | Number of infants (under 2) occupying their own seat |
| infants_on_lap | integer | Number of lap infants (under 2, no seat) |
| is_round_trip | boolean | Search for round-trip flights |
| language | string | Optional BCP-47 language code (e.g., 'en-GB') for the `hl` URL param. |
| max_layover | integer | Maximum layover duration in minutes. |
| max_stops | string | Maximum stops: ANY, NON_STOP, ONE_STOP, TWO_PLUS_STOPS |
| min_layover | integer | Minimum layover duration in minutes. |
| origin * | string | Departure airport IATA code(s), comma-separated for multiple (e.g., 'JFK' or 'JFK,LGA') |
| passengers | integer | Number of adult passengers |
| sort_by_price | boolean | Sort results by price (lowest first) |
| start_date * | string | Start of date range in YYYY-MM-DD format |
| trip_duration | integer | Trip duration in days for round-trips |
search_exploreDiscover cheap destinations from an origin ("fly anywhere")| Parameter | Type | Description |
|---|---|---|
| airlines | array | Filter by airline IATA codes (e.g., ['BA', 'AA']) |
| alliance | array | Restrict to alliances: ONEWORLD, SKYTEAM, STAR_ALLIANCE. |
| cabin_class | string | Cabin class: ECONOMY, PREMIUM_ECONOMY, BUSINESS, FIRST |
| country | string | Optional ISO 3166-1 alpha-2 country code (e.g., 'GB'). |
| currency | string | ISO 4217 currency code (USD, EUR, GBP, JPY...) for prices. |
| departure_date * | string | Departure date in YYYY-MM-DD format |
| destination | string | Where to explore: ANYWHERE, EUROPE, SOUTHERN_EUROPE, ASIA, AFRICA, NORTH_AMERICA, SOUTH_AMERICA, OCEANIA, or a knowledge-graph mid for a region or country (e.g., '/m/07ssc' for the UK). Not an airport or city: use search_flights for a specific destination |
| exclude_airlines | array | Airline IATA codes to EXCLUDE from results. |
| exclude_alliance | array | Alliance names to EXCLUDE from results. |
| language | string | Optional BCP-47 language code (e.g., 'en-GB') for the `hl` URL param. |
| limit | integer | Maximum number of destinations to return |
| max_flight_duration | integer | Maximum flight duration in minutes |
| max_price | integer | Maximum price cap for fares |
| max_stops | string | Maximum stops: ANY, NON_STOP, ONE_STOP, TWO_PLUS_STOPS |
| origin * | string | Departure airport IATA code (e.g., 'JFK'), or a Google knowledge-graph mid for a city (e.g., '/m/04jpl' for London) |
| passengers | integer | Number of adult passengers |
| round_trip | boolean | Price round trips instead of one-ways. Requires a fixed trip length: set trip_min_nights (and trip_max_nights, if given) to the same value |
| sort_by_price | boolean | Sort destinations by price (lowest first) |
| trip_max_nights | integer | Must equal trip_min_nights for round trips |
| trip_min_nights | integer | Trip length in nights (round trips must pin one value) |
search_flightsSearch for flights on a specific date with detailed filters| Parameter | Type | Description |
|---|---|---|
| airlines | array | Filter by airline IATA codes (e.g., ['BA', 'AA']) |
| alliance | array | Restrict to alliances: ONEWORLD, SKYTEAM, STAR_ALLIANCE. |
| cabin_class | string | Cabin class: ECONOMY, PREMIUM_ECONOMY, BUSINESS, FIRST |
| carry_on | boolean | Include carry-on bag fee in displayed price. {_IGNORED_BY_TRANSPORT} |
| checked_bags | integer | Number of checked bags in price (0-2). {_IGNORED_BY_TRANSPORT} |
| children | integer | Number of children (ages 2-11) |
| country | string | Optional ISO 3166-1 alpha-2 country code (e.g., 'GB'). |
| currency | string | ISO 4217 currency code (USD, EUR, GBP, JPY...) for prices. When omitted, Google picks based on locale. |
| departure_date * | string | Travel date in YYYY-MM-DD format |
| departure_window | string | Departure time window in 'HH-HH' 24h format (e.g., '6-20') |
| destination * | string | Arrival airport IATA code(s), comma-separated for multiple (e.g., 'LHR' or 'LHR,CDG') |
| emissions | string | Filter by emissions level: ALL or LESS. {_IGNORED_BY_TRANSPORT} |
| exclude_airlines | array | Airline IATA codes to EXCLUDE from results. |
| exclude_alliance | array | Alliance names to EXCLUDE from results. |
| exclude_basic_economy | boolean | Exclude basic economy fares from results. {_IGNORED_BY_TRANSPORT} |
| infants_in_seat | integer | Number of infants (under 2) occupying their own seat |
| infants_on_lap | integer | Number of lap infants (under 2, no seat) |
| language | string | Optional BCP-47 language code (e.g., 'en-GB') for the `hl` URL param. |
| max_layover | integer | Maximum layover duration in minutes. |
| max_stops | string | Maximum stops: ANY, NON_STOP, ONE_STOP, TWO_PLUS_STOPS |
| min_layover | integer | Minimum layover duration in minutes. |
| origin * | string | Departure airport IATA code(s), comma-separated for multiple (e.g., 'JFK' or 'JFK,LGA') |
| passengers | integer | Number of adult passengers |
| return_date | string | Return date in YYYY-MM-DD format (omit for one-way) |
| show_all_results | boolean | Return all available results instead of curated ~30 |
| sort_by | string | Sort by: TOP_FLIGHTS, BEST, CHEAPEST, DEPARTURE_TIME, ARRIVAL_TIME, DURATION, EMISSIONS |
| top_n | integer | Round-trip only: number of outbound options to expand into return-flight combinations. Cost is `1 + top_n` page fetches. Round-trip results all from one airline? Raise top_n to see more carriers (max 10) — the default sort otherwise only expands the cheapest 5 outbounds, which are often the same carrier. Ignored for one-way searches. |
Security checks
Static checks derived from the repository 6 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 4.1K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock and fli-js/bun.lock.
- ✓No dynamic code executionScanned 73 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and Streamable HTTPfli/mcp/server.py:2188, fli/mcp/server.py:2205
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 3 callsfli/search/client.py:14, fli/search/client.py:126, fli-js/src/search/client.ts:266
- Writes or deletes files
- 1 callfli/cli/errors.py:77
- Lockfile
- uv.lock and fli-js/bun.lock
Pattern matches on the source text of 73 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 4.1K words, fetched 6 days ago. The original in the repository is authoritative.
Read full README