HasData Google Flights
Google Flights itineraries with fares, legs, carbon emissions and price history, as JSON.
사용해야 할까요
품질 및 안전성
발견 사항 (2)
- LOWhasdata_google_travel_flights_getGoogleFlights에서
- LOWhasdata_google_travel_flights_getGoogleFlights에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"google-flights": {
"command": "npx",
"args": [
"@hasdata/google-flights-mcp"
]
}
}
}실행 가능한 패키지
1.0.7stdio1.0.7stdio원격 엔드포인트
https://mcp.hasdata.com/api/mcp?apis=google_travel_flightsstreamable-httphttps://mcp.hasdata.com/mcp?apis=google_travel_flightsstreamable-http할 수 있는 일
도구 목록
도구 (1)
🟢hasdata_google_travel_flights_getGoogleFlights(departureId, arrivalId, outboundDate, returnDate, type, ...)
Get Google Flights Results Searches Google Flights for one-way, round-trip, or multi-city itineraries with passenger mix (adults, children, infants in-seat/on-lap), travel class, bags, max price, sort order (price, duration, emissions, departure/arrival time), stops, include/exclude airlines and connections, time windows, layover duration, and deep-search mode. Returns per-itinerary price, total duration, stops, flight legs with airline, flight number, aircraft, departure/arrival airports and times, CO2 emissions, plus booking and departure tokens for round-trip returns or booking options. Use for travel-planning agents, fare monitoring, corporate travel dashboards, emission-aware trip optimization, and comparing routes and airlines across markets.
입력 스키마
{
"type": "object",
"properties": {
"departureId": {
"type": "string",
"description": "Specifies the departure airport code (IATA) or location kgmid.\n\n - **IATA Code**: A 3-letter uppercase code (e.g., SFO for San Francisco, LHR for London Heathrow). Search on [IATA](https://www.iata.org/en/publications/directories/code-search).\n - **Location kgmid**: A string starting with `/m/`, found in Wikidata under \"Freebase ID\" (e.g., `/m/02_286` for New York, NY).\n\nMultiple values can be separated by commas (e.g., `JFK,LGA,/m/0hptm`).\n"
},
"arrivalId": {
"type": "string",
"description": "Specifies the arrival airport code (IATA) or location kgmid.\n\n - **IATA Code**: A 3-letter uppercase code (e.g., `SFO` for San Francisco, `LHR` for London Heathrow). Search on [IATA](https://www.iata.org/en/publications/directories/code-search).\n - **Location kgmid**: A string starting with `/m/`, found in Wikidata under \"Freebase ID\" (e.g., `/m/02_286` for New York, NY).\n\nMultiple values can be separated by commas (e.g., `JFK,LGA,/m/0hptm`).\n"
},
"outboundDate": {
"type": "string",
"description": "The outbound travel date in 'yyyy-MM-dd' format.\n"
},
"returnDate": {
"type": "string",
"description": "The return travel date in 'yyyy-MM-dd' format. Required when **type** is `roundTrip`.\n"
},
"type": {
"type": "string",
"enum": [
"roundTrip",
"oneWay",
"multiCity"
],
"description": "Specifies the type of flight. Options:\n\n - `roundTrip` (default)\n - `oneWay`\n - `multiCity` (requires `multiCityJson` for flight details)\n\nFor round trips, retrieve return flight details with a separate request using `departureToken`.\n"
},
"multiCityJson": {
"type": "string",
"description": "This parameter specifies flight details for multi-city trips. It is a JSON string containing multiple flight objects. Each object must include the following fields:\n\n- **departureId** – The departure airport code or location KGMID. Uses the same format as the main `departureId` parameter.\n- **arrivalId** – The arrival airport code or location KGMID. Uses the same format as the main `arrivalId` parameter.\n- **date** – The flight date. Uses the same format as the `outboundDate` parameter.\n- **times** *(optional)* – The time range for the flight. Uses the same format as the `outboundTimes` parameter.\n"
},
"gl": {
"type": "string",
"description": "The two-letter country code for the country you want to limit the search to. Provide one exact documented value (245 allowed), e.g. `ac`, `af`."
},
"hl": {
"type": "string",
"description": "The two-letter language code for the language you want to use for the search. Provide one exact documented value (159 allowed), e.g. `af`, `ak`."
},
"currency": {
"type": "string",
"description": "Parameter defines the currency of the returned prices Provide one exact documented value (71 allowed), e.g. `ALL`, `DZD`."
},
"travelClass": {
"type": "string",
"enum": [
"economy",
"premiumEconomy",
"business",
"first"
],
"description": "The travel class for the flight (Economy, Premium Economy, Business, or First).\n"
},
"showHidden": {
"type": "boolean",
"description": "Indicates whether to include hidden options in the results.\n"
},
"adults": {
"type": "number",
"description": "Number of adult passengers (>= 1 if specified).\n"
},
"children": {
"type": "number",
"description": "Number of child passengers.\n"
},
"infantsInSeat": {
"type": "number",
"description": "Number of infants occupying seats.\n"
},
"infantsOnLap": {
"type": "number",
"description": "Number of infants sitting on an adult's lap.\n"
},
"sortBy": {
"type": "string",
"enum": [
"topFlights",
"price",
"departureTime",
"arrivalTime",
"duration",
"emissions"
],
"description": "Sort the flight results based on price, departure time, arrival time, etc.\n"
},
"stops": {
"type": "string",
"enum": [
"nonStop",
"oneStopOrFewer",
"twoStopsOrFewer"
],
"description": "Restrict the number of stops (layovers) in the flight itinerary.\n"
},
"excludeAirlines": {
"type": "string",
"description": "A comma separated list of airline codes to exclude from results. You can search for airline codes on [IATA](https://www.iata.org/en/publications/directories/code-search). For example, `UA` is United Airlines.\n"
},
"includeAirlines": {
"type": "string",
"description": "A comma separated list of airline codes to exclusively include in results. You can search for airline codes on [IATA](https://www.iata.org/en/publications/directories/code-search). For example, `UA` is United Airlines.\n\n`excludeAirlines` and `includeAirlines` parameters can't be used together.\n"
},
"bags": {
"type": "number",
"description": "Number of carry-on bags per passenger.\n"
},
"maxPrice": {
"type": "number",
"description": "Maximum price limit for the flight search, in the selected currency.\n"
},
"outboundTimes": {
"type": "string",
"description": "Set up to 4 time boundaries (2 for departure, 2 for arrival) to filter flights. Each number represents the start of an hour.\n\nExamples:\n - `6,20` → 6:00 AM - 9:00 PM departure\n - `1,15` → 1:00 AM - 4:00 PM departure\n - `7,18,2,21` → 7:00 AM - 9:00 PM departure, 2:00 AM - 10:00 PM arrival\n"
},
"returnTimes": {
"type": "string",
"description": "Set up to 4 time boundaries (2 for departure, 2 for arrival) to filter return flights. Each number represents the start of an hour.\n\nExamples:\n - `6,20` → 6:00 AM - 9:00 PM departure\n - `1,15` → 1:00 AM - 4:00 PM departure\n - `7,18,2,21` → 7:00 AM - 9:00 PM departure, 2:00 AM - 10:00 PM arrival\n"
},
"lessEmissions": {
"type": "boolean",
"description": "Prefer flight options with lower carbon emissions.\n"
},
"layoverDuration": {
"type": "string",
"description": "Set the maximum layover duration in minutes to filter flights. For example, `120, 360` filters layovers between 2 hours and 6 hours, while `45, 180` allows layovers from 45 minutes to 3 hours.\n"
},
"includeConnections": {
"type": "string",
"description": "A comma separated list of specific airports to allow as connections.\n"
},
"excludeConnections": {
"type": "string",
"description": "A comma separated list of specific airports to exclude as connections.\n"
},
"maxDuration": {
"type": "number",
"description": "The maximum total flight duration in minutes.\n"
},
"deepSearch": {
"type": "boolean",
"description": "Enable deep search. Returns the same results as Google Flights in a browser, but takes longer to respond. Default is `false`.\n"
},
"departureToken": {
"type": "string",
"description": "Used to select a flight and retrieve return flights for a round trip or the next leg of the itinerary for a multi-city trip.\n"
},
"bookingToken": {
"type": "string",
"description": "Used to request booking options for selected flights. This token is found in the flight results and cannot be used with `departureToken`.\n"
}
},
"required": [
"departureId",
"arrivalId",
"outboundDate"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}커뮤니티
증거