Skip to main content
Glama
HaroldLeo

Google Flights MCP Server

by HaroldLeo

search_flights_by_airline

Find flights filtered by specific airlines or alliances. Enter origin, destination, date, and preferred carriers to search for available options.

Instructions

Search flights filtered by specific airlines or alliances. πŸ’‘ TIP: Default max_stops=2 provides more reliable scraping for round-trip searches. Args: origin: Origin airport code (e.g., "SFO"). destination: Destination airport code (e.g., "JFK"). date: Departure date (YYYY-MM-DD format). airlines: Airline code(s) or alliance name. Can be either: - Single airline: "UA" or "AA" or "DL" (2-letter codes) - Multiple airlines: ["UA", "AA", "DL"] (JSON array) - Alliance: "STAR_ALLIANCE" or "SKYTEAM" or "ONEWORLD" is_round_trip: If True, search round-trip flights (default: False). return_date: Return date for round-trips (YYYY-MM-DD format). adults: Number of adult passengers (default: 1). seat_type: Fare class (default: "economy"). max_stops: Maximum number of stops (0=direct, 1=one stop, 2=two stops, default: 2). return_cheapest_only: If True, returns only the cheapest flight (default: False). Example Args: {"origin": "SFO", "destination": "TYO", "date": "2026-02-20", "airlines": "UA"} {"origin": "SFO", "destination": "JFK", "date": "2025-07-20", "airlines": "["UA", "AA"]"} {"origin": "SFO", "destination": "JFK", "date": "2025-07-20", "airlines": "STAR_ALLIANCE", "max_stops": 0}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
originYes
destinationYes
dateYes
airlinesYes
is_round_tripNo
return_dateNo
adultsNo
seat_typeNoeconomy
max_stopsNo
return_cheapest_onlyNo
max_resultsNo
compact_modeNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HaroldLeo/google-flights-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server