MCP Flight Search - MCP服务,MCP服务器,MCP教程

基本能力

产品定位

MCP Flight Search 是一个航班搜索服务,专为 AI 模型或应用提供航班搜索功能。

核心功能

  • MCP 兼容的航班搜索工具
  • 与 SerpAPI Google Flights 集成
  • 支持单程和往返航班搜索
  • 丰富的日志记录和结构化输出
  • 模块化、可维护的代码结构

适用场景

  • AI 模型需要航班搜索功能
  • 应用需要集成航班搜索能力
  • 开发者需要演示 MCP 工具的实现

工具列表

  • search_flights_tool: 搜索机场间的航班,参数包括出发机场代码、到达机场代码、出发日期和返回日期(可选)。
  • server_status: 检查 MCP 服务器是否运行。

常见问题解答

  • 需要设置 SerpAPI 密钥作为环境变量 SERP_API_KEY

使用教程

使用依赖

确保已安装 Python 和 pip。

安装教程

```bash

从 PyPI 安装

pip install mcp-flight-search

或从项目目录安装(开发模式)

pip install -e .
```

调试方式

启动 MCP 服务器:
```bash

使用命令行入口点

mcp-flight-search --connection_type http

或直接运行

python main.py --connection_type http
```

指定自定义端口:
bash
python main.py --connection_type http --port 5000

设置环境变量:
bash
export SERP_API_KEY="your-api-key-here"

点击访问

搜索工具

mcp-server-local-web-search - MCP服务,MCP服务器,MCP教程

2025-5-3 4:06:18

搜索工具

MCP Documentation Search Server - MCP服务,MCP服务器,MCP教程

2025-5-3 4:06:25

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索