mcp-flight-search
by arjunprabhulal·★ 42·Score 36
Python MCP server for flight search using SerpAPI, providing tools to search for flights and check server status.
Overview
MCP Flight Search is a Python implementation of the Model Context Protocol that provides real-time flight search capabilities through SerpAPI. The server exposes two main tools: 'search_flights_tool' for finding flights between airports with parameters for origin, destination, and dates, and 'server_status' for checking if the server is running. It features a modular codebase with clear separation of concerns including models, services, and utilities.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this MCP server if you need to integrate real-time flight search capabilities into an AI application that uses the Model Context Protocol.
When NOT to choose this
Don't choose this if you need flight booking capabilities (search-only), have API quota constraints with SerpAPI, or require offline functionality.
Tools this server exposes
2 tools extracted from the READMEsearch_flights_toolorigin: str, destination: str, outbound_date: str, return_date: str | None = NoneSearch for flights between airports with optional return date
server_statusCheck if the MCP server is running
Comparable tools
Installation
Install the package:
pip install mcp-flight-searchStart the MCP server:
mcp-flight-search --connection_type httpFor Claude Desktop integration, add to your Claude Desktop configuration:
{
"mcpServers": {
"flight-search": {
"command": "mcp-flight-search",
"args": ["--connection_type", "http"],
"env": {
"SERP_API_KEY": "your-api-key-here"
}
}
}
}Set the SerpAPI key as an environment variable:
export SERP_API_KEY="your-api-key-here"FAQ
- What API is used for flight search?
- The server uses SerpAPI Google Flights to provide real-time flight search capabilities.
- Can I customize the server port?
- Yes, you can specify a custom port using the --port flag: 'python main.py --connection_type http --port 5000'
Compare mcp-flight-search with
Last updated · Auto-generated from public README + GitHub signals.