飞行计划 MCP 服务器
使用快速航班 API 创建旅行社级别航班计划的模型上下文协议服务器。
特征
搜索单程和往返航班
根据旅行参数制定全面的旅行计划
获取机场代码信息
使用模板进行常见的旅行查询
Related MCP server: Travel Planner MCP Server
安装
确保安装了 Python 3.10 或更高版本
安装所需的软件包:
pip install mcp fast-flights用法
运行服务器
您可以直接运行服务器:
python flight_planner_server.py与 Claude Desktop 集成
创建或编辑您的 Claude Desktop 配置文件:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
添加飞行计划服务器配置:
{
"mcpServers": {
"flight-planner": {
"command": "python",
"args": [
"/PATH/TO/flight_planner_server.py"
],
"env": {
"PYTHONPATH": "/PATH/TO/PROJECT"
}
}
}
}将
/PATH/TO/替换为服务器文件的实际路径重启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 的商务旅行制定旅行计划吗?”
“帮我找到东京机场的代码。”
“什么时候是预订从波士顿飞往伦敦的暑假航班的最佳时间?”
执照
麻省理工学院
This server cannot be installed
Resources
Looking for Admin?
Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.