Flight Search
Search Google Flights through SerpApi: one-way and round-trip flights by IATA airport code.
Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
mcp-flight-searchclaude mcp add flight-search -e 'SERP_API_KEY=<your serp_api_key>' -- uvx mcp-flight-search==0.3.0
{
"mcpServers": {
"flight-search": {
"command": "uvx",
"args": [
"mcp-flight-search==0.3.0"
],
"env": {
"SERP_API_KEY": "<your serp_api_key>"
}
}
}
}
Variables d'environnement
SERP_API_KEYobligatoire secret Your SerpApi key (serpapi.com)
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.
Sommaire
MCP Flight Search
An MCP server that searches Google Flights through SerpApi, for Claude, Cursor and other MCP clients. One-way and round-trip searches by IATA airport code, with prices, durations, stops and times.
Requirements
- Python 3.10 or later (or uv)
- A SerpApi key in
SERP_API_KEY(serpapi.com has a free tier)
Use it from an MCP client
Add it to your client's MCP configuration (Claude Desktop, Claude Code, Cursor, ...):
{
"mcpServers": {
"flight-search": {
"command": "uvx",
"args": ["mcp-flight-search"],
"env": { "SERP_API_KEY": "your-serpapi-key" }
}
}
}
Or install it with pip install mcp-flight-search and use "command": "mcp-flight-search".
Run it yourself
export SERP_API_KEY="your-serpapi-key"
mcp-flight-search # stdio (default)
mcp-flight-search --connection_type http --port 3001 # Streamable HTTP at http://127.0.0.1:3001/mcp
LOG_LEVEL=DEBUG shows more detail on stderr. The API key is never logged.
With Docker:
docker build -t mcp-flight-search .
docker run -i --rm -e SERP_API_KEY=your-serpapi-key mcp-flight-search
Tools
| Tool | What it does |
|---|---|
search_flights_tool | Flights between two airports. origin, destination: IATA codes such as ATL, LAX. outbound_date: YYYY-MM-DD. return_date (optional): YYYY-MM-DD for a round trip. Returns structured results: airline, price (USD), duration, stops, departure, arrival, cabin class. |
server_status | Checks the server is running and reports its version. |
Development
uv sync
uv run pytest
uv run ruff check .
License
MIT
Questions fréquentes
Qu'est-ce que Flight Search ?
Search Google Flights through SerpApi: one-way and round-trip flights by IATA airport code.
Comment installer Flight Search ?
Il s'exécute sur votre machine. Dans Claude Code : claude mcp add flight-search -e 'SERP_API_KEY=<your serp_api_key>' -- uvx mcp-flight-search==0.3.0. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour Flight Search ?
Oui. Il attend SERP_API_KEY, à renseigner dans sa configuration.
Flight Search est-il open source ?
Oui. Son code est sur GitHub sous licence MIT.
Qui maintient Flight Search ?
Il est publié par arjunprabhulal. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.