Development · MODEL CONTEXT PROTOCOL

opspawn Google Flights MCP Server

This MCP server provides tools to interact with Google Flights data using the bundled fast_flights library.

WHAT IT CONNECTS

opspawn Google Flights MCP Server 为 AI Agent 提供什么

  • **`get_flights_on_date`**: Fetches available one-way flights for a specific date between two airports.
  • Args: `origin` (str), `destination` (str), `date` (str, YYYY-MM-DD), `adults` (int, optional), `seat_type` (str, optional), `return_cheapest_only` (bool, optional, default `False`).
  • **`get_round_trip_flights`**: Fetches available round-trip flights for specific departure and return dates.
  • Args: `origin` (str), `destination` (str), `departure_date` (str, YYYY-MM-DD), `return_date` (str, YYYY-MM-DD), `adults` (int, optional), `seat_type` (str, optional), `return_cheapest_only` (bool, optional, default `False`).
  • **`find_all_flights_in_range`**: Finds available round-trip flights within a specified date range. Can optionally return only the cheapest flight found for each date pair.
  • Args: `origin` (str), `destination` (str), `start_date_str` (str, YYYY-MM-DD), `end_date_str` (str, YYYY-MM-DD), `min_stay_days` (int, optional), `max_stay_days` (int, optional), `adults` (int, optional), `seat_type` (str, optional), `return_cheapest_only` (bool, optional, default `False`).
  • **Clone the repository:**
  • **Create a virtual environment (recommended):**
  • **Install dependencies:**
  • **Install Playwright browsers (needed by `fast_flights`):**
  • This server bundles the `fast_flights` library (originally from [https://github.com/AWeirdDev/flights](https://github.com/AWeirdDev/flights)) for its core flight scraping functionality. Please refer to the included `LICENSE` file for its terms.
  • Flight scraping can sometimes be unreliable or slow depending on Google Flights changes and network conditions. The tools include basic error handling.
  • The `find_all_flights_in_range` tool can be resource-intensive as it checks many date combinations.

SECURITY

MCP 收录不等于安全审核

MCP 服务器可能获得模型上下文、凭据、本地文件或调用外部系统的权限。连接 Agent 前,请检查代码、环境变量、网络行为、软件包来源与维护状态。