HasData Google Flights

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

¿Debería usar esto?

Calidad y seguridad

B
Calidad de la descripción
100%
Integridad del esquema
100%
Calidad de los nombres
30%
Riesgo de envenenamiento
100%
Coincidencia de permisos
100%
Cumplimiento del protocolo
100%

Hallazgos (2)

  • LOWTool 'hasdata_google_travel_flights_getGoogleFlights' doesn't follow camelCase/snake_caseen hasdata_google_travel_flights_getGoogleFlights
  • LOWTool 'hasdata_google_travel_flights_getGoogleFlights' name length outside 3-30 rangeen hasdata_google_travel_flights_getGoogleFlights

Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.

Costo de contexto

~1,897Tokens (definiciones de herramientas)
~19.6 KBTamaño de respuesta típico
Impacto moderado en la atención (1.48% del contexto de 128k)

Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.

Instalar

Instalación con un clic

Agrega esto a tu archivo `claude_desktop_config.json`:

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

Paquetes ejecutables

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

Puntos de conexión remotos

https://mcp.hasdata.com/api/mcp?apis=google_travel_flightsstreamable-http
https://mcp.hasdata.com/mcp?apis=google_travel_flightsstreamable-http

Qué puede hacer

Inventario de herramientas

Herramientas (1)

🟢 Solo lectura🟡 Escritura🔴 Eliminación⚪ Desconocido
🟢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.

Esquema de entrada

{
  "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#"
}

Comunidad

Califica este servidor

Evidencia

Observaciones recientes

verificadoversión no registrada1 herramientas
verificadoversión no registrada1 herramientas
verificadoversión no registrada1 herramientas
verificadoversión no registrada1 herramientas
verificadoversión no registrada1 herramientas
verificadoversión no registrada1 herramientas
verificadoversión no registrada1 herramientas
verificadoversión no registrada1 herramientas
verificadoversión no registrada1 herramientas
requiere autenticaciónversión no registrada—