Google-Flights-MCP-Server
Servidor MCP de Google Flights
Este servidor MCP proporciona herramientas para interactuar con los datos de Google Flights mediante la biblioteca incluida fast_flights .
Características
Proporciona las siguientes herramientas MCP:
get_flights_on_date: obtiene los vuelos de ida disponibles para una fecha específica entre dos aeropuertos.Argumentos:
origin(str),destination(str),date(str, AAAA-MM-DD),adults(int, opcional),seat_type(str, opcional),return_cheapest_only(bool, opcional, predeterminadoFalse).
get_round_trip_flights: obtiene los vuelos de ida y vuelta disponibles para fechas de salida y regreso específicas.Argumentos:
origin(str),destination(str),departure_date(str, AAAA-MM-DD),return_date(str, AAAA-MM-DD),adults(int, opcional),seat_type(str, opcional),return_cheapest_only(bool, opcional, predeterminado:False).
find_all_flights_in_range: Busca vuelos de ida y vuelta disponibles dentro de un rango de fechas específico. Opcionalmente, puede devolver solo el vuelo más barato encontrado para cada par de fechas.Argumentos:
origin(str),destination(str),start_date_str(str, AAAA-MM-DD),end_date_str(str, AAAA-MM-DD),min_stay_days(int, opcional),max_stay_days(int, opcional),adults(int, opcional),seat_type(str, opcional),return_cheapest_only(bool, opcional, predeterminadoFalse).
Related MCP server: searchAPI-mcp
Configuración
Clonar el repositorio:
git clone https://github.com/opspawn/Google-Flights-MCP-Server.git cd Google-Flights-MCP-ServerCrear un entorno virtual (recomendado):
python -m venv .venv source .venv/bin/activate # On Windows use `.venv\Scripts\activate`Instalar dependencias:
pip install -r requirements.txtInstalar los navegadores Playwright (necesarios para
fast_flights):playwright install
Ejecución del servidor
Puedes ejecutar el servidor directamente usando Python:
python server.pyEl servidor utiliza el transporte STDIO de forma predeterminada.
Integración con clientes MCP (por ejemplo, Cline, Claude Desktop)
Agregue el servidor al archivo de configuración de su cliente MCP. Ejemplo para cline_mcp_settings.json o claude_desktop_config.json :
{
"mcpServers": {
"google-flights": {
"command": "/path/to/your/.venv/bin/python", // Use absolute path to venv python
"args": [
"/absolute/path/to/flight_mcp_server/server.py" // Use absolute path to server script
],
"env": {},
"disabled": false,
"autoApprove": []
}
// ... other servers
}
}Importante: reemplace las rutas en command y args con las rutas absolutas al ejecutable de Python de su entorno virtual y al script server.py en su sistema.
Notas
Este servidor incluye la biblioteca
fast_flights(originalmente de https://github.com/AWeirdDev/flights ) para su funcionalidad principal de rastreo de vuelos. Consulte el archivoLICENSEincluido para conocer sus términos.El rastreo de vuelos a veces puede ser poco fiable o lento según los cambios de Google Flights y las condiciones de la red. Las herramientas incluyen gestión básica de errores.
La herramienta
find_all_flights_in_rangepuede consumir muchos recursos, ya que comprueba muchas combinaciones de fechas.
This server cannot be deployed
Related MCP Connectors
Flight search MCP server providing search, pagination, and itinerary details for AI assistants.
Search and compare flight offers through a cache-aware Streamable HTTP MCP server for AI agents.
Google Flights search data: fares, routes, stops, and price insights via a hosted MCP server.
Flight Intelligence MCP — search, cheapest dates, multi-city, airline compare via Google Flights
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP (Model Context Protocol) server that provides Google search capabilities and webpage content analysis tools. This server enables AI models to perform Google searches and analyze webpage content programmatically.16 npm256ISC
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) based search API server that provides standardized access to Google Maps, Google Flights, Google Hotels and other services. This server enables AI assistants to access various search services through a unified interface.74MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that provides access to Google's API Discovery Service, allowing agents to discover and interact with Google APIs through natural language commands.-
- FlicenseNot gradedqualityDmaintenanceThis MCP Server provides a natural language interface to interact with Google's Policy Analyzer API, allowing users to analyze policies and evaluate compliance through conversations.-