flights-mcp
Search flights using Google Flights data via SerpAPI, covering all airlines including low-cost carriers like Ryanair and easyJet.
README
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.
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 |
|---|---|---|---|
departure |
str | required | Departure airport IATA code (e.g. MAD) |
arrival |
str | required | Arrival airport IATA code (e.g. BER) |
date |
str | required | Departure date YYYY-MM-DD |
return_date |
str | None |
Return date for round trips |
passengers |
int | 1 |
Number of adult passengers |
stops |
int | None |
1=nonstop, 2=1 stop max, 3=2 stops max |
travel_class |
int | 1 |
1=economy, 2=premium, 3=business, 4=first |
sort_by |
int | 1 |
1=top, 2=price, 3=departure, 4=arrival, 5=duration |
currency |
str | EUR |
ISO currency code |
max_price |
int | None |
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 |
|---|---|---|---|
booking_token |
str | required | Token from a flight search result |
currency |
str | EUR |
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-mcp
Or 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-mcp
Architecture
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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.