flights-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@flights-mcp Search for direct flights from Madrid to Berlin on March 19"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
flights-mcp
An MCP server for searching flights using Google Flights data via SerpAPI.
Built with FastMCP for use with Claude Code, Claude Desktop, or any MCP-compatible client.
Why
Most flight MCP servers have incomplete airline coverage — missing low-cost carriers like Ryanair, easyJet, or Wizz Air. This server uses Google Flights (via SerpAPI) which aggregates all airlines, giving you the same results you'd see in the browser.
Related MCP server: flight-search-mcp-server
Features
Search one-way and round-trip flights with full Google Flights data
Filter by stops, cabin class, price, and sort order
Get booking links from airlines and travel agencies
Price insights (price level, typical range, price history)
All airlines included (Ryanair, easyJet, Iberia, Lufthansa, etc.)
Tools
mcp_search_flights
Search for flights on a specific route and date.
Parameter | Type | Default | Description |
| str | required | Departure airport IATA code (e.g. |
| str | required | Arrival airport IATA code (e.g. |
| str | required | Departure date |
| str |
| Return date for round trips |
| int |
| Number of adult passengers |
| int |
|
|
| int |
|
|
| int |
|
|
| str |
| ISO currency code |
| int |
| Maximum price filter |
mcp_get_booking_options
Get booking links for a specific flight using its booking_token from search results.
Parameter | Type | Default | Description |
| str | required | Token from a flight search result |
| str |
| ISO currency code |
Setup
1. Get a SerpAPI key
Sign up at serpapi.com and grab your API key. Free tier includes 100 searches/month.
2. Add to Claude Code
claude mcp add flights \
-e SERPAPI_API_KEY=your_key_here \
-- uv --directory /path/to/flights-mcp run flights-mcpOr add manually to ~/.claude.json:
{
"mcpServers": {
"flights": {
"type": "stdio",
"command": "uv",
"args": ["--directory", "/path/to/flights-mcp", "run", "flights-mcp"],
"env": {
"SERPAPI_API_KEY": "your_key_here"
}
}
}
}3. Restart Claude Code
The server will be available after restart. Try: "Search for direct flights from Madrid to Berlin on March 19".
Development
git clone https://github.com/chaosisnotrandomitisrhythmic/flights-mcp.git
cd flights-mcp
uv sync
SERPAPI_API_KEY=your_key uv run flights-mcpArchitecture
src/flights_mcp/
├── __init__.py # Exports mcp instance and run_server
├── server.py # FastMCP server setup and tool definitions
└── tools.py # Pure business logic (no MCP awareness)tools.py— Pure Python functions that call SerpAPI and return dicts. No MCP dependency. Easy to test independently.server.py— Thin@mcp.tool()wrappers that serialize results to JSON. Defines the MCP interface.
License
MIT
Available Tools
2 toolsmcp_get_booking_optionsGet Booking OptionsARead-only
Get booking links and prices for a specific flight.
Use the booking_token from a search result to get actual booking URLs from airlines and travel agencies.
Args: booking_token: The booking_token from a flight in search results currency: Price currency ISO code (default EUR)
Returns: JSON with booking_options array containing provider, price, and booking URL
Inputs: booking_token (required), currency. Returns: result
mcp_search_flightsSearch FlightsARead-only
Search for flights on a specific route and date.
Args: departure: Departure airport IATA code (e.g. MAD, BER, MUC) arrival: Arrival airport IATA code (e.g. BER, MAD, LHR) date: Departure date in YYYY-MM-DD format return_date: Optional return date in YYYY-MM-DD format (omit for one-way) passengers: Number of adult passengers (default 1) stops: Stop filter — 1=nonstop only, 2=1 stop max, 3=2 stops max (default: any) travel_class: 1=economy, 2=premium economy, 3=business, 4=first (default 1) sort_by: Sort order — 1=top flights, 2=price, 3=departure time, 4=arrival time, 5=duration currency: Price currency ISO code (default EUR) max_price: Maximum price filter in the specified currency
Returns: JSON with best_flights, other_flights arrays, and Google Flights URL
Inputs: date (required), arrival (required), departure (required), stops, +6 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one searches for flights, the other retrieves booking options for a selected flight. There is no overlap or ambiguity.
Both tool names follow the same verb_noun pattern with the mcp_ prefix: mcp_search_flights and mcp_get_booking_options. This is consistent and predictable.
With only two tools, the server feels thin for a full flight search domain. It is borderline, as the two tools cover the core search-then-book flow, but the count is at the low end of acceptable.
The tool set covers the essential flight search and booking link retrieval process. Minor gaps exist, such as lacking airport code lookup or multi-city search, but the primary workflow is complete for standard one-way/round-trip searches.
Related MCP Connectors
Google Flights for any route and date: price, airlines, flight numbers, times, stops, layovers, aircraft, legroom and CO2. One way or round trip, any cabin and currency. Runs on Apify, $0.20 per 1,000 flights.
Live Google Flights fares for AI agents: prices, airlines, stops, times, CO2 and price history.
Google Flights prices for any route and date: round trips, cabins, stops, airlines, cheapest dates.
Google Flights fares, airlines, stops and durations for any route. Paid, on Apify's hosted MCP.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables flight search and fare calendar exploration by interacting with Google Flights' API, supporting detailed filters for origin, destination, dates, cabin class, airlines, and more.5,091 PyPI3,504MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to search for real-time flights between airports using the SearchAPI.io Google Flights API, returning prices, schedules, airlines, and carbon emissions.-
- AlicenseAqualityBmaintenanceEnables searching and analyzing Google Flights data including prices, emissions, cabin classes, layovers, and price tracking, all without an API key.12205 npm5ISC
- AlicenseAqualityCmaintenanceEnables searching Google Flights for one-way, round-trip, and multi-city itineraries, plus fare tracking and price alerts via SerpAPI.9MIT