HasData Google Flights

Google Flights itineraries with fares, legs, carbon emissions and price history, as JSON.

使うべきか

品質と安全性

B
説明の品質
100%
スキーマの完全性
100%
命名の品質
30%
ポイズニングのリスク
100%
権限の一致
100%
プロトコルへの準拠
100%

検出事項(2)

  • LOWTool 'hasdata_google_travel_flights_getGoogleFlights' doesn't follow camelCase/snake_casehasdata_google_travel_flights_getGoogleFlights 内
  • LOWTool 'hasdata_google_travel_flights_getGoogleFlights' name length outside 3-30 rangehasdata_google_travel_flights_getGoogleFlights 内

ツール定義とプロトコルへの準拠に関する自動分析に基づいています。

コンテキストコスト

~1,897トークン数(ツール定義)
~19.6 KB一般的なレスポンスサイズ
注意への影響は中程度(128k コンテキストの 1.48%)

これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。

インストール

ワンクリックインストール

これを `claude_desktop_config.json` ファイルに追加してください:

{
  "mcpServers": {
    "google-flights": {
      "command": "npx",
      "args": [
        "@hasdata/google-flights-mcp"
      ]
    }
  }
}

実行可能なパッケージ

npm@hasdata/google-flights-mcp1.0.7stdio
pypihasdata-google-flights-mcp1.0.7stdio

リモートエンドポイント

https://mcp.hasdata.com/api/mcp?apis=google_travel_flightsstreamable-http
https://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#"
}

コミュニティ

このサーバーを評価する

エビデンス

最近の観測

検証済みバージョンは記録されていませんツール 1 件
検証済みバージョンは記録されていませんツール 1 件
検証済みバージョンは記録されていませんツール 1 件
検証済みバージョンは記録されていませんツール 1 件
検証済みバージョンは記録されていませんツール 1 件
検証済みバージョンは記録されていませんツール 1 件
検証済みバージョンは記録されていませんツール 1 件
検証済みバージョンは記録されていませんツール 1 件
検証済みバージョンは記録されていませんツール 1 件
認証が必要バージョンは記録されていません—