google-flights-mcp
Google Flights MCP
MCP server for searching Google Flights with real-time prices — from your AI assistant, no API key and no browser.
Installation · Tools · Examples · Limitations · 🇫🇷 Français
Overview
This MCP server searches Google Flights and returns live prices as 6 tools your assistant can call. No API key, no headless browser — it decodes Google's own query format directly. Ask in natural language:
You: Compare round-trip prices from Nice or Marseille to Tenerife, July 29 – August 12, for 2 adults and 2 kids.
Assistant: (calls
compare_destinations) Cheapest: Tenerife (TFS) €612 from NCE, 1 stop, 8 h 40 — Vueling. Marseille was €40 more. Full breakdown by date below.
Related MCP server: Google Flights MCP
Requirements
Python ≥ 3.10
Any MCP client — Claude Code, Claude Desktop, Cursor…
Installation
git clone https://github.com/manganate006/google-flights-mcp
cd google-flights-mcp
python3 -m venv venv
./venv/bin/pip install "fast-flights>=3.0" "mcp[cli]>=1.0.0" "airportsdata>=20240101"Claude Code
claude mcp add google-flights -- \
/absolute/path/to/google-flights-mcp/venv/bin/python \
/absolute/path/to/google-flights-mcp/server.pyClaude Desktop / Cursor
Add to claude_desktop_config.json (or your client's MCP config):
{
"mcpServers": {
"google-flights": {
"command": "/absolute/path/to/google-flights-mcp/venv/bin/python",
"args": ["/absolute/path/to/google-flights-mcp/server.py"]
}
}
}No environment variables, no API key needed.
Tools
6 tools — full parameters in docs/TOOLS.md.
Tool | Purpose |
| Resolve a city/name to IATA code(s) — call this first (handles exonyms, fuzzy spelling), offline |
| Airports near a |
| One-way / round-trip; multiple departure and arrival airports; stop/airline/currency filters |
| Multi-leg itineraries |
| Cheapest departure day over a date range (throttled, ≤ 14 dates) |
| Rank several destinations by price from one origin (≤ 8) |
Examples
"Flights from Nice to Lisbon on August 1st for 2 adults and 2 children"
"Compare Nice vs Marseille to Tenerife, round-trip July 29 – August 12"
"Cheapest day to fly Nice → Barcelona between Aug 1 and Aug 15, direct only"
"Multi-city: Nice → Barcelona Aug 1, Barcelona → Lisbon Aug 8"
Sample search_flights result (trimmed):
{
"success": true,
"count": 7,
"flights": [
{ "price_total": 836, "currency": "EUR", "airlines": ["Vueling"],
"stops": 1, "total_duration_min": 215,
"legs": [{ "from": "NCE", "to": "LIS", "departure": "2026-08-01 22:30",
"duration_min": 215, "plane": "Airbus A320" }] }
]
}How it works
Google Flights is a JavaScript SPA, so scraping the HTML doesn't work. This server:
uses fast-flights v3 to encode queries as Protocol Buffers (the
tfs=URL parameter);fetches with primp (Rust HTTP client with TLS fingerprinting);
injects a
SOCSconsent cookie to bypass the EU GDPR "Before you continue" wall that otherwise blocks EU-based servers — the same acceptance your browser sends, without the click;parses the flight data from the embedded
<script class="ds:1">payload.
Limitations
Rate limiting — Google may throttle if called too often; space out searches
Prices are real-time but may differ slightly from booking sites (caching)
Currency defaults to EUR (per-search
currencyparameter)Search-only — no booking; book on the airline's site
License
Available Tools
6 toolscompare_destinationsA
Compare the cheapest price to several destinations from the same departure airport(s).
Great for "where can we go cheaply" inspiration searches. One search per destination (throttled).
Args:
to_airports: Comma-separated IATA destination codes (e.g. "BCN,LIS,TFS")
departure_date: Departure date YYYY-MM-DD
return_date: Return date YYYY-MM-DD (empty for one-way)
from_airports: Comma-separated IATA departure codes (default: NCE,MRS)
adults: Number of adults
children: Number of children
seat: Seat class
max_stops: -1 = no limit (default), 0 = direct only
airlines: Comma-separated IATA airline codes to restrict to; empty = all
currency: ISO currency code (default EUR)
language: Language code (default fr)
Inputs: to_airports (required), departure_date (required), seat, adults, +7 more. Returns: result
find_airportA
Resolve a city name or airport name into IATA airport codes.
Use this FIRST when you don't know the IATA code to pass to search_flights.
Args:
query: City, airport name, IATA code or country (e.g. "Barcelone", "Nice", "JFK")
limit: Max results (default 8)
Inputs: query (required), limit. Returns: result
find_airports_nearA
Find airports near a geographic coordinate, sorted by distance.
Useful for geolocated departure-airport selection.
Args:
lat: Latitude in decimal degrees
lon: Longitude in decimal degrees
radius_km: Search radius in kilometers (default 150)
limit: Max results (default 8)
Inputs: lat (required), lon (required), limit, radius_km. Returns: result
search_flexible_datesA
Find the cheapest departure day over a date range. Ideal for flexible holiday planning.
Runs one search per candidate date (throttled) — keep ranges reasonable.
Args:
to_airport: IATA destination code
date_from: Earliest departure date YYYY-MM-DD
date_to: Latest departure date YYYY-MM-DD
from_airports: Comma-separated IATA departure codes (default: NCE,MRS)
trip_length_days: 0 = one-way (default); >0 = round-trip with return = departure + N days
weekends_only: If true, only consider Friday/Saturday departures
adults: Number of adults
children: Number of children
seat: Seat class
max_stops: -1 = no limit (default), 0 = direct only
airlines: Comma-separated IATA airline codes to restrict to; empty = all
currency: ISO currency code (default EUR)
language: Language code (default fr)
Inputs: date_to (required), date_from (required), to_airport (required), seat, +9 more. Returns: result
search_flightsA
Search Google Flights for the best prices.
Tries multiple departure airports (default: Nice NCE, Marseille MRS).
All airports must be IATA codes. If you only know a city name, call find_airport
(or find_airports_near) first to resolve it.
Args:
to_airport: IATA destination code(s), comma-separated for multi-airport cities (e.g. "BCN" or "LHR,LGW,STN")
departure_date: Departure date YYYY-MM-DD
return_date: Return date YYYY-MM-DD (empty for one-way)
from_airports: Comma-separated IATA departure codes (default: NCE,MRS)
adults: Number of adults (default 2)
children: Number of children (default 2)
infants_in_seat: Infants with seat (default 0)
infants_on_lap: Infants on lap (default 0)
seat: Seat class: economy, premium-economy, business, first
max_stops: Max stops: -1 = no limit (default), 0 = direct only, 1 = max one stop
airlines: Comma-separated IATA airline codes to restrict to (e.g. "AF,U2"); empty = all
currency: ISO currency code (default EUR)
language: Language code (default fr)
Inputs: to_airport (required), departure_date (required), seat, adults, +9 more. Returns: result
search_multi_cityC
Search multi-city flights on Google Flights.
Args:
legs: JSON array of legs, e.g. [{"from":"NCE","to":"BCN","date":"2026-08-01"},{"from":"BCN","to":"LIS","date":"2026-08-08"}]
adults: Number of adults
children: Number of children
seat: Seat class
max_stops: Max stops per leg: -1 = no limit (default), 0 = direct only
currency: ISO currency code (default EUR)
language: Language code (default fr)
Inputs: legs (required), seat, adults, children, +3 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a distinct purpose: airport resolution by name, airport search by location, standard flight search, multi-city flight search, flexible date search, and destination comparison. There is no overlap or ambiguity.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., find_airport, search_flights, compare_destinations), making them predictable and easy to understand.
Six tools cover the essential flight search functionalities (airport lookup, single trip, multi-city, flexible dates, destination comparison) without being excessive or too few. The scope is well-defined.
The tool set covers all common flight search scenarios: single trip, multi-city, flexible dates, and destination comparison, along with airport resolution from names or coordinates. No obvious gaps for a search-only service.
Maintenance
Related MCP Connectors
Google Flights fares for any route and date, plus a tracker that flags price drops.
Live Google Flights fares: search routes, discover cheap deals from an origin.
Google Flights prices for any route and date: round trips, cabins, stops, airlines, cheapest dates.
Google Flights for any route and date: price, airlines, flight numbers, times, stops, layovers, aircraft, legroom and CO2. One way or round trip, any cabin and currency. Runs on Apify, $0.20 per 1,000 flights.
Related MCP Servers
- 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.5,288 PyPI3,513MIT
- AlicenseAqualityCmaintenanceEnables searching Google Flights for one-way, round-trip, and multi-city itineraries, plus fare tracking and price alerts via SerpAPI.9MIT
- FlicenseAqualityBmaintenanceEnables LLMs to search Google Flights for one-way and round-trip flights, with configurable filters for airports, dates, passengers, cabin, stops, airlines, price, bags, and more, returning booking links and detailed trip information.1-
- AlicenseNot gradedqualityBmaintenanceEnables Claude to search Google Flights for one-way, round-trip, open-jaw and multi-city itineraries with filters for cabin, stops, airlines, alliances, layovers, duration and price. It also compares the cheapest fares across dates and checks whether a round-trip ticket beats two separate one-way bookings.MIT