Flight Planner MCP Server

Integrations

  • Supports integration with Claude Desktop on macOS via a specific configuration file path for setting up the flight-planner MCP server.

飞行计划 MCP 服务器

使用快速航班 API 创建旅行社级别航班计划的模型上下文协议服务器。

特征

  • 搜索单程和往返航班
  • 根据旅行参数制定全面的旅行计划
  • 获取机场代码信息
  • 使用模板进行常见的旅行查询

安装

  1. 确保安装了 Python 3.10 或更高版本
  2. 安装所需的软件包:
pip install mcp fast-flights

用法

运行服务器

您可以直接运行服务器:

python flight_planner_server.py

与 Claude Desktop 集成

  1. 安装Claude Desktop
  2. 创建或编辑您的 Claude Desktop 配置文件:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  3. 添加飞行计划服务器配置:
{ "mcpServers": { "flight-planner": { "command": "python", "args": [ "/PATH/TO/flight_planner_server.py" ], "env": { "PYTHONPATH": "/PATH/TO/PROJECT" } } } }
  1. /PATH/TO/替换为服务器文件的实际路径
  2. 重启Claude桌面

使用 MCP 检查器

对于测试和开发,您可以使用 MCP Inspector:

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

可用工具

  • search_one_way_flights :搜索机场之间的单程航班
  • search_round_trip_flights :搜索机场之间的往返航班
  • create_travel_plan :生成全面的旅行计划

可用资源

  • airport_codes://{query} :根据搜索查询获取机场代码信息

可用提示

  • flight_search_prompt :航班搜索模板
  • travel_plan_prompt :用于创建全面旅行计划的模板

Claude 的示例查询

与 Claude Desktop 集成后,您可以询问以下问题:

  • “2025 年 4 月 15 日有哪些从 NYC 飞往 SFO 的航班?”
  • “您能为我从 2025 年 5 月 1 日至 2025 年 5 月 8 日从 LAX 到 TPE 的商务旅行制定旅行计划吗?”
  • “帮我找到东京机场的代码。”
  • “什么时候是预订从波士顿飞往伦敦的暑假航班的最佳时间?”

执照

麻省理工学院

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

使用快速航班 API 创建旅行社级别的航班计划,让用户搜索航班并生成全面的旅行行程。

  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
                ID: 4e1tdgh3as