Skip to main content

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

Metadata

Release files for iflow-mcp_google-flights-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_google-flights-mcp 0.1.0
File Size Uploaded
iflow_mcp_google_flights_mcp-0.1.0.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_google-flights-mcp 0.1.0
File Interpreter ABI Platform
iflow_mcp_google_flights_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.9 kB

Release files / iflow_mcp_google_flights_mcp-0.1.0.tar.gz

Download URL iflow_mcp_google_flights_mcp-0.1.0.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
eb8dfa81a14cb10c5323a53abb0f6bda7692375b6fcf43569d16e99ef455d371
BLAKE2b-256 checksum
How to use checksums
c5ee33eaca054c953f797c818abfdbfef66f10b40878919624976315abd55152
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_google_flights_mcp-0.1.0-py3-none-any.whl

Download URL iflow_mcp_google_flights_mcp-0.1.0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4eb181e309693a1a693eef6159f1a778ce8d99c29ce949b81c96105f52ae501d
BLAKE2b-256 checksum
How to use checksums
8921d8d6c2e8ce77ad18f3ba8ac09275a3b9dcedbde025307e35c076610b8b46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page