google-flights-mcp
Searches Google Flights for prices and schedules, returning price-ranked flight options with airlines, times, duration, stops, and a Google Flights booking link. Supports one-way and round-trip searches, cabin class, currency, passenger counts, max stops, and finding the cheapest days to fly within a date window.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@google-flights-mcpFind cheap round-trip flights from Lisbon to New York in June"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
google-flights-mcp
MCP server for searching Google Flights prices and schedules from Claude.
Two interchangeable data sources behind one interface (google_flights_mcp/providers/base.py):
fast-flights(default) — scrapes Google Flights' internal protobuf search API directly. No API key, works out of the box.SerpApi — used automatically when a
SERPAPI_KEYenvironment variable is set. Adds flight numbers, layover detail, and carbon emissions.
Tools
search_flights—origin(defaultLIS),destination,departure_date, optionalreturn_date, passenger counts,cabin_class,currency(defaultEUR),max_stops,sort_by. Returns a price-ranked list: price, airline(s), departure/arrival times, duration, stops, and a Google Flights link.cheapest_dates— cheapest day(s) to fly in a date window (max 21 days), price-calendar style. Runs one search per day — see "Known limitations" below.airport_search— resolve a city or airport name ("Lisbon") to an IATA code (LIS), backed by the offlineairportsdatapackage.
Related MCP server: Google Flights MCP Server
Known limitations
Round trips: for
return_datesearches, both providers return outbound flight options annotated with an estimated round-trip total price (paired with the cheapest matching return) — not a separately priced return leg.stops/duration/legsdescribe the outbound flight only. Open the result'sbooking_linkon Google Flights to pick the exact return.cheapest_dates: neitherfast-flightsnor SerpApi's Google Flights engine expose a real bulk price-calendar endpoint, so this runs onesearch_flightscall per candidate day. Capped at a 21-day window to keep that bounded.EU/UK cookie-consent wall: Google shows a cookie-consent interstitial to requests from those regions before returning real results. The
fast-flightsprovider detects this and auto-submits "Reject all" (the privacy-preserving option) before retrying — seeproviders/fast_flights_provider.pyif this ever needs updating for a change on Google's side.
Install
Requires Python 3.11+ and uv.
git clone https://github.com/ThiagoJacobLannes/google-flights-mcp
cd google-flights-mcp
uv sync --extra devOn Windows, if you keep code in a cloud-synced folder (Google Drive, OneDrive), create the venv outside it — sync clients drop desktop.ini marker files into folders, which can crash packages on startup:
uv venv C:\dev\google-flights-mcp-venv
uv pip install --python C:\dev\google-flights-mcp-venv -e ".[dev]"The command paths below assume that venv location; adjust to wherever yours lives.
Add to Claude Desktop
Merge claude_desktop_config.snippet.json into your Claude Desktop config (%APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"google-flights": {
"command": "C:\\dev\\google-flights-mcp-venv\\Scripts\\python.exe",
"args": ["-m", "google_flights_mcp.server"]
}
}
}Restart Claude Desktop after editing. To use SerpApi instead of the default scraper, add an env block:
{
"mcpServers": {
"google-flights": {
"command": "C:\\dev\\google-flights-mcp-venv\\Scripts\\python.exe",
"args": ["-m", "google_flights_mcp.server"],
"env": { "SERPAPI_KEY": "your-serpapi-key" }
}
}
}Get a key at serpapi.com (free tier available).
Other env vars: GOOGLE_FLIGHTS_DEFAULT_ORIGIN (default LIS), GOOGLE_FLIGHTS_DEFAULT_CURRENCY (default EUR).
Running over HTTP (for a remote connector)
C:\dev\google-flights-mcp-venv\Scripts\python.exe -m google_flights_mcp.server --httpOr set MCP_TRANSPORT=streamable-http. Configure the bind address with MCP_HOST (default 127.0.0.1) and MCP_PORT (default 8000); the server listens at http://<host>:<port>/mcp. Put this behind whatever reverse proxy / auth you use for your other remote connectors before exposing it beyond localhost.
Smoke test
Real network call (no mocks) — searches LIS → GRU about a month out:
C:\dev\google-flights-mcp-venv\Scripts\python.exe tools\google-flights-mcp\examples\smoke_test.pyTests
C:\dev\google-flights-mcp-venv\Scripts\python.exe -m pytest tools\google-flights-mcp\testsThese are unit tests against the provider abstraction (factory selection, passenger validation, the shared cheapest_dates day-loop, airport resolution) — no network access required.
This server cannot be deployed
Maintenance
Related MCP Connectors
Search award flights and cash fares, optimize points, and predict fares inside ChatGPT and Claude.
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.
Google Flights search data: fares, routes, stops, and price insights via a hosted MCP server.
Real-time Google Flights fares for agents. Three things people do with this server. Scan for deals: one call takes a date range and a list of destination airports, expands every combination server side, and returns each fare with Google's own low, typical or high verdict. Put live search in your app: flat JSON with a bookable link on every result, and round trips priced as paired legs. Run a 24/7 AI travel agent: add the server, sign in with Google, and schedule it. No ads, no sponsored content. You bring your own RapidAPI key, so every search is billed to your plan and never to anyone else's. Add https://flights.flightpowers.com/mcp , click Sign in, sign in with Google, and paste your RapidAPI key once on the page that opens. Scripts and clients without a sign-in button send the key as x-rapidapi-key on the same URL.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables Claude to plan trips by performing live searches against Google Flights, hotels, vacation rentals, activities, and events, plus weather and currency conversion.115MIT
- AlicenseAqualityFmaintenanceConnects AI agents to Google Flights data, enabling retrieval of flight information, cheapest options, time-filtered flights, and best recommendations.430MIT
- FlicenseNot gradedqualityDmaintenanceEnables flight search, airport information lookup, and price comparison through Claude Desktop.-
- AlicenseAqualityBmaintenanceEnables searching Google Flights for one-way, round-trip, and multi-city itineraries, plus fare tracking and price alerts via SerpAPI.9MIT