Provides tools for searching and retrieving flight information from Google Flights, including one-way flights, round-trip flights, and flight availability within date ranges.
Google Flights MCP Server
This MCP server provides tools to interact with Google Flights data using the bundled fast_flights
library.
Features
Provides the following MCP tools:
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, defaultFalse
).
- Args:
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, defaultFalse
).
- Args:
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, defaultFalse
).
- Args:
Setup
- Clone the repository:
- Create a virtual environment (recommended):
- Install dependencies:
- Install Playwright browsers (needed by
fast_flights
):
Running the Server
You can run the server directly using Python:
The server uses STDIO transport by default.
Integrating with MCP Clients (e.g., Cline, Claude Desktop)
Add the server to your MCP client's configuration file. Example for cline_mcp_settings.json
or claude_desktop_config.json
:
Important: Replace the paths in command
and args
with the absolute paths to your virtual environment's Python executable and the server.py
script on your system.
Notes
- This server bundles the
fast_flights
library (originally from https://github.com/AWeirdDev/flights) for its core flight scraping functionality. Please refer to the includedLICENSE
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.
This server cannot be installed
This MCP server allows an AI assistants to search for flight information online using Google Flights. It can find flights for specific dates or search through a range of dates to find all options or just the cheapest ones available.
Related MCP Servers
- AsecurityFlicenseAqualityAn 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.Last updated -34383TypeScript
- -securityAlicense-qualityA 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.Last updated -57PythonMIT License
- -securityFlicense-qualityAn MCP server that provides access to Google's API Discovery Service, allowing agents to discover and interact with Google APIs through natural language commands.Last updated -Python
- -securityFlicense-qualityThis 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.Last updated -Python