google-flights-mcp
Google Flights MCP – Echtzeit-Flugpreise, die Ihr Agent über einen gesamten Datumsbereich durchsuchen kann, werbefrei
claude mcp add --transport http google-flights https://google-flights-mcp.flightpowers.com/mcp --header "x-rapidapi-key: YOUR_RAPIDAPI_KEY"Gehostet. Nichts zu klonen, nichts zu bauen. Im offiziellen MCP-Registry gelistet als
com.flightpowers/google-flights-mcp. Health-Check:
/health.
Sie brauchen einen Schlüssel? Abonnieren Sie die Google Flights Live API auf RapidAPI – kostenlose Stufe verfügbar –
und kopieren Sie Ihren x-rapidapi-key: https://rapidapi.com/mtnrabi/api/google-flights-live-api
Noch keinen Schlüssel? Starten Sie mit dem kostenlosen Server – dieselbe Suche, keine Anmeldung:
claude mcp add --transport http google-flights-free https://google-flights-lulu.flightpowers.com/mcp
(werbefinanziert: eine offen gekennzeichnete Sponsorenkarte pro Ergebnis, Fan-out auf 15 begrenzt, und Clients,
die die Sponsorenkarte nicht darstellen können, können weiter eingeschränkt werden.) Kommen Sie hierher zurück, wenn
Ihnen die Werbung, das 15-Suche-Limit oder diese Client-Einschränkungen im Weg stehen.
Was Ihr Agent erhält
Zwei Tools, die eine Preisfrage beantworten, keine Datumsabfrage.
Offene Fragen erder umfassen. „Günstigster One-Way-Flug nach Sri Lanka irgendwann im Oktober“, „5 bis 7 Nächte in Rom irgendwann im Mai, ab Tel Aviv oder Larnaca“ – das ist jeweils ein Tool-Aufruf. Beide Tools akzeptieren einen Abflugdaten-bereich, eine Liste von Zielflughäfen und (bei Hin- und Rückflug) einen
nights-Wert statt eines festen Rückgabedatums und erweitern diese Abfragen intern.Sag ob ein Preis tatsächlich angenehm zu merken ist. Jedes Ergebnis enthält Googles eigenen historischen Preisbereich für diese Route und diesen Zeitraum –
price_insights_low,price_insights_highsowie eineprice_range_in_relation_to_other_periods-Bewertung vonlow/typical/high. Das ist gemeint, wenn ein Agent antworten kann: „$209 ist hier typisch, kein Grund zu „hetzen“, statt nur eine Zahl zu nennen.Nicht nur stöbern, sondern buchen. Jedes Ergebnis enthält einen
buy_linkzu Google Flights.Wissen, was ausgegeben wurde. Jede Antwort enthält
api_usage– die von diesem Aufruf verwendeten Anforderungen und wie viel vom Plan des Aufrufers noch übrig ist. Siehe Ausgabenbericht.Wissen, wonach gesucht wurde. Jede Antwort enthält
search_coverage, sodass das Modell ehrlich aus geben kann, auf welchen Daten und „Zielen“ die Antwort basiert.
Ergebnisse sind Live-Flugpreise. Sie werden innerhalb von Minuten veralten– cachen: Sie nie einemab einen Flugperis und verwenden Sie ein früheres Ergebnis nicht erneut; suchen Sie erneut und geben Sie an, wann die Daten abgerufen wurden.
Related MCP server: Google Flights MCP Server
Einen Schlüssel erhalten (kostenlose Stufe verfügbar)
Der Server speichert keinerlei eigene Upstream-Zugangsdaten. Jede Suche wird auf Ihr RapidAPI-Abonnement, abgerechnet. Deshalb ist der Schlüssel bei der Anfrage an Bord.
Abonnieren Sie die Google Flights Live API: https://rapidapi.com/mtnrabi/api/google-flights-live-api
Kopieren Sie Ihren
x-rapidapi-key.Übechen Sie ihn auf eine der unten folgenden drei Arten an den Server.
If a key is missing, the tools do not fail silently and do not cost anything – they return
needs_api_key: true, along with the signup URL and this Anleitung, formulate it with the model
so that the model reads it back to you.
Three types of key extension
Type | How to use | When to use |
Header (preferred) |
| For everything that allows you to set headers. Keys stay out of URLs and therefore out of proxy and access logs. |
Query parameter |
| For hosts where they only paste a URL – that matters for claude.ai's custom-connector dialog. |
Client-API-key field field | Paste the key into the client's own „API key“-Feld | For hosts that send |
The first non-empty source wins, in that order. The key is never logged, never returned in an error message, and never returned in a tool response.
Tools
Tool | What it does |
| Echtzeit-One-way-Flugpreise. Input: Abfl ugs-IATA, Ziel-IATA oder eine Liste, und entweder ein Abflugdatum oder einen Datumsbereich. Returns price, airline, duration, stops, |
| Echtzeit-Roundtrip-Flugpreise, ausschließlich als gepaarte Flugstrecken, nicht als zwei One-Ways. Input: Origin, destination(s), ein Abflugdatum oder -Zeitbereich, and either |
search_oneway_flights
search_oneway_flights(
from_airport: str, # origin IATA, e.g. "TLV"
to_airport: str | list[str], # destination IATA, or a list to compare
departure_date: str | None = None, # "YYYY-MM-DD"
departure_date_from: str | None = None,# first date of a range
departure_date_to: str | None = None, # last date of a range
max_stops: int | None = None, # 0 = non-stop only
airline_codes: list[str] | None = None,
exclude_airline_codes: list[str] | None = None,
departure_time_min: int | None = None, # hour, 0-23
departure_time_max: int | None = None,
arrival_time_min: int | None = None,
arrival_time_max: int | None = None,
currency: str = "usd",
max_price: int | None = None,
seat_type: int | None = None, # 1 economy, 2 premium economy, 3 business, 4 first
passengers: list[int] | None = None, # [adults, children, infants]
sort_by: str = "best", # "best" | "price" | "duration"
limit: int = 10, # results returned after merge + sort
max_searches: int | None = None, # cap the billed requests this call may make
use_fallback: bool = False, # slower, fewer empty results on hard routes
)search_roundtrip_flights
search_roundtrip_flights(
from_airport: str,
to_airport: str | list[str],
departure_date: str | None = None,
departure_date_from: str | None = None,
departure_date_to: str | None = None,
return_date: str | None = None, # use this OR nights, not both
nights: int | list[int] | None = None, # e.g. 7, or [5, 6, 7]
max_departure_stops: int | None = None,
max_return_stops: int | None = None,
departure_airline_codes: list[str] | None = None,
return_airline_codes: list[str] | None = None,
currency: str = "usd",
max_price: int | None = None,
seat_type: int | None = None,
passengers: list[int] | None = None,
sort_by: str = "best",
limit: int = 10,
max_searches: int | None = None,
use_fallback: bool = False,
)sort_by is applied by this server across the merged result set of all searches it performed, so the sorting is predictable regardless of how many combinations were expanded.
A worked example
User: „Ich bin in Tel Aviv. Die atemberaubendste einwöchige Reise nach Rom oder Athen, Anfang Mai ab – beliebiger Tag.“
One call:
{
"name": "search_roundtrip_flights",
"arguments": {
"from_airport": "TLV",
"to_airport": ["FCO", "ATH"],
"departure_date_from": "2026-05-01",
"departure_date_to": "2026-05-15",
"nights": 7,
"sort_by": "price",
"limit": 5
}
}This is 1 dates × 2 destinations = 30 combinations, exactly the cap of one call. The response shape (field names are real; the values below are examples, not a quotation – run the call to see live prices:
{
"results": [
{
"from_airport": "Tel Aviv (TLV)",
"to_airport": "Rome (FCO)",
"departure_date": "2026-05-05",
"return_date": "2026-05-12",
"total_price": "$XXX",
"total_price_as_number": 0,
"total_duration_seconds": 0,
"total_stops": 0,
"price_range_in_relation_to_other_periods": "low",
"price_insights_low": 0,
"price_insights_high": 0,
"departure_flight_airline": "...",
"departure_flight_departure_description": "...",
"departure_flight_arrival_description": "...",
"departure_flight_duration": "...",
"departure_flight_stops": 0,
"departure_stops_info": [],
"return_flight_airline": "...",
"return_flight_departure_description": "...",
"return_flight_arrival_description": "...",
"return_flight_duration": "...",
"return_flight_stops": 0,
"return_stops_info": [],
"buy_link": "https://www.google.com/travel/flights?tfs=..."
}
],
"result_count": 5,
"search_coverage": {
"requested_combinations": 30,
"searched_combinations": 30,
"truncated": false,
"max_searches_per_request": 30,
"departure_dates_searched": ["2026-05-01", "..."],
"destinations_searched": ["ATH", "FCO"]
},
"api_usage": {
"requests_used_by_this_call": 30,
"plan_requests_remaining": 0,
"plan_requests_limit": 0,
"note": "This search used 30 of your RapidAPI plan's requests; ... remain in the current period. Each date and destination combination is one billed request."
}
}Other response shapes you may see, all normal:
No Flights on those dates.
results: []with amessage– Google Flights genuinely returns nichts for some route/date combinations. That's no error. Try switching to nearby dates, a nearby airport, oruse_fallback: true.Some searches failed. A
partialfield states how many of the searches that were started failed, and the results cover the rest.Range too large.
search_coverage.truncated: trueplus anote. The range is sampled evenly across the entire window (first and last are kept), not brockenshort – so the sample is representative, not the first N days. Raisemax_searchesor narrow the range for greater coverage.Missing or rejected key.
needs_api_key: true, no price, plus the fix. Most common cause is a valid RapidAPI key that is not subscribed to this specific API.Plan exhausted.
quota_exhausted: truewithapi_usage, plus a note that restricting the range can extend your remaining quota.
Spend reporting (api_usage)
The money is yours, so the meter is visible. Every toll achieved response carries:
Field | meaning |
| The amount of paid upstream requests that this one tool call has consumed. |
| What is left on your RapidAPI plan this cycle. |
| Your Plan’s limit for the cycle. |
| The same thing as a single sentence, so the model can relay it to you before you ask. |
plan_requests_remaining and plan_requests_limit come from the upstream response and are omitted when upstream doesn’t includes them; the TN is adjusted. The rule the model should say: one date × one destination = one billed request.
Cost control knobs, in order of fine-tuning: max_searches per call (reduce it to save money on an open question), a narrower date range, a shorter destination list.
One call vs. thirty
The underlying REST API accepts exactly one (origin, destination, date) triple per call. Against a one-date-per-call passthrough, “cheapest to Sri Lanka anywhere in October” means thirty-one separate tool calls – 31 round trips through the model, 31 opportunities to lose the thread, and a bill the user only sees afterwards.
Here it is one tool call. The fan-out is server-side, concurrent, limited, evenly sampled, dedouplicated by buy_link (same link, once), repiled, sorted by sort_by, and reported clearly in search_coverage and api_usage.
This server (paid) | Free server | |
Fan-out per call | 30 (hard max 60; set per call with | 15 |
Advertising | None | One declared Sponsorpflicht card per result |
Key frage | Your own RapidAPI key | None |
Cost control |
| n/a |
Directory-listed | Yes | No |
This server carries no ads at all – not by taste, but by necessity: Anthropics' directory policy for connectors and OpenAI’s app guidelines both prohibit ads and sponsored content in tool results, so a server that carries ads can never be included there, but this one can.
Local development
git clone <this repo> && cd mcp_server_paid
python3 -m venv .venv && .venv/bin/pip install -r requirements.txt
cp example.env .env # fill it in; leave RAPIDAPI_KEY empty
set -a && . .env && set +a
.venv/bin/python -m src # streamable HTTP on http://localhost:8000/mcpPoint a client at the local process the same way:
claude mcp add --transport http google-flights-local http://localhost:8000/mcp --header "x-rapidapi-key: YOUR_RAPIDAPI_KEY"Tests (124 passed, verified):
.venv/bin/python -m pytest -qConfiguration lives in example.env; everyvariable is documented there. The ones that matter:
Variable | Standardwert | Warum das wichtig ist |
|
| Begrenzung des Fan-outs pro Aufruf. Wird auf ein hartes Maximum von 60 begrenzt. |
|
| Parallelität des Fan-outs. |
|
| Obergrenze des Verbindungspools; Serverless-Instanzen teilen sich einen Dateideskriptor-Pool. |
|
| Entspricht der Obergrenze des Upstream-Anbieters, sodass diese Seite niemals zuerst ein Timeout auslöst. |
|
| Anzahl der Ergebnisse, die pro einzelner Upstream-Suche angefordert werden. |
| RapidAPI listing | Wird den Nutzern zurückgemeldet, die ohne Schlüssel eintreffen. |
|
| Wird von |
|
| (leer) |
In Produktion leer lassen. Falls gesetzt, wird jeder Aufruf ohne Schlüssel über dieses Abonnement bedient – und dieses Abonnement belasst. "When set, every keyless caller..." – falls gesetzt, wird jeder aufruf ohne Schlüssel über dieses Abonnement bedient – und diesem Abonnement belasst. Der Server protokolliert beim Start eine Warnung und | ||
| (leer) | Falls gesetzt, erwartet |
| (leer) | Leer deaktiviert die Datei-Senke; auf stdout bleiben die |
Betrouts: GET /health (öffentlich, ohne Authentifizierung – Registries frag en ab), GET /metris, GET /metris/calls?hours=24.
Das Deployment erfolgt über Vercel api/index.py (FastAPI-Wr, der FastMCP seinen lifespan – stateless_httP=True). Der kanonische MCP-Pfad ist /mcp, kein abschließender Slahesch.
Commite niemals einen echten Schlüssel. example.env wird mit Platzhaltern ausgeliefer t; es bleibt dabei.
Keine Zugehöigkeit
Dies ist eine unabhängige API, deren Rückgabe öffentlich verfügbare Flugpreis sind. Sie ist nicht mit Goole verbunden, von Goole gebiligt oder gesponsert. „GoFlights" wirb nur zur Bescheigung der öffentlichen Quelle verwdet. BÜKK Tagifikate werden vom Upstream-Tarifanbieter geliefert, ändern sich ständig und sind nicht garantiert – bestätigen Sie dec Preis vor dem Kauf immer auf der Website der Fluggesellschaft oder der Buchungsseite.
Available Tools
4 toolsfind_hotel_by_nameFlightPowers: find one hotel by nameARead-onlyInspect
FlightPowers single-property lookup: live Booking.com availability and pricing for one named property. Input: the hotel name a person would type (adding the city helps when a chain has many properties) plus check-in and check-out dates -- no internal property ID needed, the resolution is done for you. Returns the property's price, review score, room type and a booking link. Use it to check one specific hotel, or to track a single property's price over time.
price_as_seen_from prices the stay as a shopper resident in that country would see it. Gaps are real but usually modest and property-dependent, and rates move between calls, so call each country a few times on this same property before reporting a gap.
Rates go stale within minutes: never reuse an earlier result.
Requires the caller's own RapidAPI key for the Booking Live API. Get one (free tier available) at https://rapidapi.com/mtnrabi/api/booking-live-api, then pass it as an x-rapidapi-key header (preferred), a ?rapidapi_key= query parameter on the server URL, or your client's own API key field -- first non-empty wins. Usage counts against the caller's own RapidAPI plan, not ours; every response reports what it spent and what is left in api_usage.
Inputs: hotel_name (required), checkin_date (required), checkout_date (required), adults, +3 more. Returns: A completed hotel search. The hotels upstream reports no search-status header,…
search_hotelsFlightPowers: search hotelsARead-onlyInspect
FlightPowers hotel search: live Booking.com availability and nightly prices for a destination and date range. Input: a free-text destination the way a person would say it ("Rome", "Tokyo Shibuya"), plus check-in and check-out dates. Returns each property's price, review score, room type, location and a booking link.
Set price_as_seen_from to a two-letter country code to price the same stay the way a shopper resident in that country would see it, which no other travel tool here can do. Gaps are real but usually modest and property-dependent, and rates move between calls, so hold one named property fixed, call each country a few times, and never read one call per country as a gap.
Rates go stale within minutes: never reuse an earlier result, search again.
Requires the caller's own RapidAPI key for the Booking Live API. Get one (free tier available) at https://rapidapi.com/mtnrabi/api/booking-live-api, then pass it as an x-rapidapi-key header (preferred), a ?rapidapi_key= query parameter on the server URL, or your client's own API key field -- first non-empty wins. Usage counts against the caller's own RapidAPI plan, not ours; every response reports what it spent and what is left in api_usage.
Inputs: destination (required), checkin_date (required), checkout_date (required), adults, +5 more. Returns: A completed hotel search. The hotels upstream reports no search-status header,…
search_oneway_flightsFlightPowers: search one-way flightsARead-onlyInspect
FlightPowers one-way fare search: live prices read from Google Flights. Input: origin and destination IATA codes -- the destination may be several codes, as "BCN,LIS,ATH" or ["BCN","LIS","ATH"] -- plus either one departure date or a date range. Returns each flight's price, airline, duration, stops, a bookable buy_link, and Google's historical price range (price_insights_low / price_insights_high) so you can say whether a fare is actually a good deal.
Use it for any one-way fare question, including open-ended ones. For a flexible search make ONE call with a date range and/or several destinations -- do NOT call it once per date. 'Cheapest flight to Sri Lanka anywhere in October' is one call, not thirty.
Each date/destination combination is one billed request; the count and the plan's remaining quota come back in api_usage.
by_destination carries one entry per destination you asked for -- empty ones included, each with a reason -- so read it before telling a user a destination has no flights.
Requires the caller's own RapidAPI key for the Google Flights Live API. Get one (free tier available) at https://rapidapi.com/mtnrabi/api/google-flights-live-api, then pass it as an x-rapidapi-key header (preferred), a ?rapidapi_key= query parameter on the server URL, or your client's own API key field -- first non-empty wins. Usage counts against the caller's own RapidAPI plan, not ours; every response reports what it spent and what is left in api_usage.
Inputs: to_airport (required), from_airport (required), limit, sort_by, +16 more. Returns: A completed flight search. Read search_status before reading results: an empty…
search_roundtrip_flightsFlightPowers: search round-trip flightsARead-onlyInspect
FlightPowers round-trip fare search: live prices read from Google Flights, priced as paired legs rather than two separate one-ways. Input: origin and destination IATA codes -- the destination may be several codes, as "BCN,LIS,ATH" or ["BCN","LIS","ATH"] -- a departure date or range, and either a return date or a trip length in nights. Returns the total price for both legs, per-leg airline, stops and duration, and a single bookable buy_link for the trip.
Use it for any return-trip fare question. For a flexible search make ONE call: pass departure_date_from / departure_date_to for the outbound range and nights instead of return_date to compare trip lengths -- '5 to 7 nights in Rome sometime in May' is one call.
Each date/destination combination is one billed request; the count and the plan's remaining quota come back in api_usage.
by_destination carries one entry per destination you asked for -- empty ones included, each with a reason -- so read it before telling a user a destination has no flights.
Requires the caller's own RapidAPI key for the Google Flights Live API. Get one (free tier available) at https://rapidapi.com/mtnrabi/api/google-flights-live-api, then pass it as an x-rapidapi-key header (preferred), a ?rapidapi_key= query parameter on the server URL, or your client's own API key field -- first non-empty wins. Usage counts against the caller's own RapidAPI plan, not ours; every response reports what it spent and what is left in api_usage.
Inputs: to_airport (required), from_airport (required), limit, nights, +15 more. Returns: A completed flight search. Read search_status before reading results: an empty…
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a clearly distinct query type: one-way flights, round-trip flights, general hotel search, and specific hotel lookup. Even the two hotel tools are easy to differentiate because one is broad destination search and the other is single-property lookup.
Three tools follow the search_<subject> pattern: search_oneway_flights, search_roundtrip_flights, and search_hotels. find_hotel_by_name breaks the pattern by using find_ instead of search_, though it remains readable and predictable.
Four tools is a well-scoped set for a travel-search server. Each tool earns its place and the count avoids both bloat and thinness.
The core search workflows are covered: one-way flights, round-trip flights, hotel search, and named-hotel lookup. Obvious gaps include multi-city flight search and airport/place code resolution, but agents can work around these with external knowledge or by combining existing tools.
Maintenance
Related MCP Connectors
Flight Intelligence MCP — search, cheapest dates, multi-city, airline compare via Google Flights
Flight search, airfare analytics, flexible destinations
Mubboo Flights: all-in-one travel comparison and tickets platform. MCP tools for flight search.
Live flight prices and working booking links for AI agents and travel apps.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides live flight prices, booking links, and airport lookup via a hosted MCP server. Enables search for flights and direct booking URL retrieval.2MIT
- AlicenseAqualityBmaintenanceEnables MCP clients to search one-way, round-trip, and multi-city itineraries and retrieve fares, flight legs, carbon emissions and price history as structured JSON.1283 npm160 PyPI4MIT
- AlicenseNot gradedqualityCmaintenanceEnables real-time one-way and round-trip flight searches from any MCP client without an API key or account, returning live fares, historical price insights, and bookable links supported by disclosed sponsored cards.2MIT
- AlicenseAqualityCmaintenanceEnables MCP clients to search flight prices, stops, durations, cheapest dates within a range, compare nearby airports, and retrieve booking deep links.42MIT