Skip to main content
Glama

Flight Planner MCP Server

by salamentic

Flight Planner MCP Server

A Model Context Protocol server that creates travel agent-level flight plans using the fast-flights API.

Features

  • Search for one-way and round-trip flights
  • Create comprehensive travel plans based on trip parameters
  • Get airport code information
  • Use templates for common travel queries

Installation

  1. Make sure you have Python 3.10 or higher installed
  2. Install the required packages:
pip install mcp fast-flights

Usage

Running the Server

You can run the server directly:

python flight_planner_server.py

Integrating with Claude Desktop

  1. Install Claude Desktop
  2. Create or edit your Claude Desktop configuration file:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  3. Add the flight-planner server configuration:
{ "mcpServers": { "flight-planner": { "command": "python", "args": [ "/PATH/TO/flight_planner_server.py" ], "env": { "PYTHONPATH": "/PATH/TO/PROJECT" } } } }
  1. Replace /PATH/TO/ with the actual path to your server file
  2. Restart Claude Desktop

Using the MCP Inspector

For testing and development, you can use the MCP Inspector:

# Install the inspector npm install -g @modelcontextprotocol/inspector # Run the inspector with your server npx @modelcontextprotocol/inspector python flight_planner_server.py

Available Tools

  • search_one_way_flights: Search for one-way flights between airports
  • search_round_trip_flights: Search for round-trip flights between airports
  • create_travel_plan: Generate a comprehensive travel plan

Available Resources

  • airport_codes://{query}: Get airport code information based on a search query

Available Prompts

  • flight_search_prompt: Template for searching flights
  • travel_plan_prompt: Template for creating a comprehensive travel plan

Example Queries for Claude

Once integrated with Claude Desktop, you can ask things like:

  • "What flights are available from NYC to SFO on 2025-04-15?"
  • "Can you create a travel plan for my business trip from LAX to TPE from 2025-05-01 to 2025-05-08?"
  • "Help me find airport codes for Tokyo."
  • "What's the best time to book flights from Boston to London for a summer vacation?"

License

MIT

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Creates travel agent-level flight plans using the fast-flights API, allowing users to search for flights and generate comprehensive travel itineraries.

  1. Features
    1. Installation
      1. Usage
        1. Running the Server
        2. Integrating with Claude Desktop
        3. Using the MCP Inspector
      2. Available Tools
        1. Available Resources
          1. Available Prompts
            1. Example Queries for Claude
              1. License

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  Enables searching and retrieving detailed flight information using the Duffel API, supporting various flight types and flexible search parameters for efficient travel planning.
                  Last updated -
                  3
                  117
                  Python
                  MIT License
                  • Apple
                • A
                  security
                  A
                  license
                  A
                  quality
                  Enables LLMs to perform travel-related tasks by interacting with Google Maps and travel planning services including location search, place details, and travel time calculations.
                  Last updated -
                  5
                  884
                  75
                  JavaScript
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  Provides tools to query flight and train information including flight searches, train tickets, weather forecasts, and transfer options between different transportation modes.
                  Last updated -
                  9
                • -
                  security
                  A
                  license
                  -
                  quality
                  A server that provides real-time flight information query capabilities to AI assistants, allowing them to access detailed flight statuses, airport details, and related travel information.
                  Last updated -
                  1
                  Python
                  MIT License
                  • Apple

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/salamentic/google-flights-mcp'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server