Home / MCP / Flight Planner MCP Server
Provides flight search, travel planning, and airport code lookup via MCP, enabling practical travel workflows.
Configuration
View docs{
"mcpServers": {
"flight_planner": {
"command": "python",
"args": [
"flight_planner_server.py"
],
"env": {
"PYTHONPATH": "YOUR_PROJECT_PATH"
}
}
}
}The Flight Planner MCP Server lets you search for flights, generate comprehensive travel plans, and look up airport codes by interacting with a Model Context Protocol (MCP) client. It provides fast, travel-focused capabilities that you can combine into practical workflows, such as finding one-way or round-trip options and building detailed itineraries for trips.
You connect to this MCP server from an MCP client and call its available tools to search flights, assemble travel plans, or retrieve airport codes. Practical workflows include: finding one-way or round-trip flights between airports, generating a complete travel plan based on your dates and destinations, and looking up airport codes for places you plan to visit. You can also use templates to quickly run common travel queries.
Prerequisites: ensure you have Python 3.10 or higher installed on your system.
Install the required packages using Python’s package manager.
pip install mcp fast-flightsRun the Flight Planner MCP Server directly with Python.
python flight_planner_server.pyIntegrate with Claude Desktop by adding an MCP server configuration. Create or edit your Claude Desktop configuration file, then add the flight-planner server entry.
{
"mcpServers": {
"flight-planner": {
"command": "python",
"args": [
"/PATH/TO/flight_planner_server.py"
],
"env": {
"PYTHONPATH": "/PATH/TO/PROJECT"
}
}
}
}For testing and development, you can use the MCP Inspector to interact with your server from the command line.
# Install the inspector
npm install -g @modelcontextprotocol/inspector
# Run the inspector with your server
npx @modelcontextprotocol/inspector python flight_planner_server.pyAvailable tools let you search flights and build travel plans.
- search_one_way_flights: Find one-way flights between two airports - search_round_trip_flights: Find round-trip options between airports - create_travel_plan: Generate a comprehensive travel plan based on your trip parameters
Access templates and endpoints to facilitate your queries.
You can query airport codes, search for flights, and generate full itineraries. Use templates to streamline common travel questions and customize parameters to fit your trip.
If you run into issues starting the server, verify that Python 3.10+ is installed, the required packages are installed, and the path to flight_planner_server.py is correct. Ensure the PYTHONPATH environment variable is set when integrating with Claude Desktop.
Searches for one-way flight options between two airports, returning available itineraries and prices if provided by the fast-flights API.
Searches for round-trip flight options between two airports, returning options for outbound and return segments with possible dates and prices.
Generates a comprehensive travel plan based on trip parameters such as origin, destination, dates, and preferences, consolidating flight options, layovers, and timings into a single itinerary.