Google Flights search data: fares, routes, stops, and price insights via a hosted MCP server.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
The most efficient, reliable, and developer-friendly way to use the Google Flights API.
Actor page: apify.com/johnvc/Google-Flights-Data-Scraper-Flight-and-Price-Search Input schema: apify.com/johnvc/Google-Flights-Data-Scraper-Flight-and-Price-Search/input-schema
The Google Flights API searches flights and returns clean, structured JSON. Each page of results comes back with the top recommended flights and alternatives, full flight legs and timings, prices, price insights (level and historical range), airport details, and search metadata. It supports one-way, round-trip, and multi-city itineraries, single or multiple airports, filters for price, stops, airlines, and passenger counts, and can optionally resolve direct airline and OTA booking links. Localized across 29+ languages and 39+ countries.
Clone the repository
Install dependencies with UV
Configure your API key
Run the example
This repo also includes google-flights-get-booking-options.py, a low-cost one-way example (BOS to PQI) that enables fetch_booking_options to resolve direct airline and OTA booking links:
Complete itineraries. Search one-way, round-trip, and multi-city trips, with single or multiple departure and arrival airports, and get the top recommended flights plus alternatives with full leg-by-leg detail.
Direct booking links. Enable fetch_booking_options and each flight resolves to a live booking URL on the airline or OTA site, with fare families and baggage fees, ready to embed in your app.
Powerful filters. Constrain by max price, max stops, preferred airlines, passenger counts, and exclude basic economy.
Price intelligence. Every search returns price insights: the current level (low, typical, high) and a historical price range for the route.
Predictable, pay-per-use pricing. Billing is per page processed, plus per resolved booking link only when you ask for them. No subscription. You control cost with the page limit.
Easy to automate. Call it from Python in a few lines, or load it as an MCP tool so assistants like Claude and Cursor can search flights for you on demand.
CDG,ORY)Note: fetch_booking_options works for one-way searches, is billed per resolved link, and needs Actor memory of 512 MB or more (it uses a headless browser).
Either departure_id + arrival_id + outbound_date, or multi_city_json, is required.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
departure_id | string | Yes* | - | Departure airport code(s), comma-separated for multiple (e.g. LAX, CDG,ORY). |
arrival_id | string | Yes* | - | Arrival airport code(s), comma-separated for multiple. |
outbound_date | string | Yes* | - | Departure date, YYYY-MM-DD. |
return_date | string | No | (none) | Return date for round trips, YYYY-MM-DD. |
multi_city_json | string | Yes* | - | JSON string of legs for multi-city trips. Replaces the three fields above. |
adults | integer | No | 1 | Adult passengers (minimum 1). |
children | integer | No | 0 | Child passengers. |
infants | integer | No | 0 | Infant passengers. |
currency | string | No | USD | Currency code, e.g. USD, EUR, GBP. |
hl | string | No | en | Language code (29+ supported). |
gl | string | No | us | Country code (39+ supported). |
max_price | integer | No | (none) | Maximum price filter in the chosen currency. |
max_stops | integer | No | (none) | Maximum stops (0 = direct only). |
airlines | string | No | (none) | Comma-separated preferred airline codes, e.g. UA,AA,DL. |
exclude_basic | boolean | No | false | Exclude basic-economy fares. |
fetch_booking_options | boolean | No | false | Resolve direct booking links (one-way only; billed per link; needs 512 MB+). |
max_pages | integer | No | 1 | Maximum pages to fetch (0 = no limit). |
output_file | string | No | (none) | Optional filename to save results. |
A real result for LAX to JFK (one item per page; best_flights legs and the price_insights history are trimmed here for readability).
When fetch_booking_options is true, each booking_options entry includes a resolved booking_url to the airline or OTA, plus fare family and baggage details.
You can load the Google Flights API as an MCP tool so assistants call it for you. The MCP server URL preloads just this one Actor:
Authenticate with OAuth in the browser when offered, or with your Apify API token (the same APIFY_API_TOKEN used by the Python example). Get a token at https://console.apify.com/settings/integrations and a free Apify account at https://apify.com?fpr=9n7kx3 .

No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/google-flights-3)<a href="https://allmcps.com/mcp/google-flights-3"><img src="https://allmcps.com/api/badge/google-flights-3?style=directory" alt="Google Flights on AllMCPs" /></a>