飞猪旅行一站式MCP Server — 行程规划/火车票/机票/酒店/景点/美食/市内交通,自然语言输入,实时价格+预订链接
Project description
✈️ 飞猪旅行一站式 MCP Server
行程规划 / 火车票查询 / 机票查询 / 酒店搜索 / 景点门票 / 美食推荐 / 市内交通,7 大功能一站搞定。
所有工具支持自然语言输入,返回实时价格和预订链接。
🛠 工具列表
| # | 工具 | 功能 | 示例 |
|---|---|---|---|
| 1 | travel_plan |
行程规划 | "三亚5天亲子游预算1万" |
| 2 | search_train |
火车票查询 | "上海到北京明天的高铁" |
| 3 | search_flight |
机票查询 | "上海飞三亚6月1日" |
| 4 | search_hotel |
酒店搜索 | "三亚亚龙湾500元以内亲子酒店" |
| 5 | search_poi |
景点门票 | "杭州5A景区门票" |
| 6 | search_food |
美食推荐 | "上海南京路附近火锅" |
| 7 | search_transport |
市内交通 | "上海浦东机场到外滩" |
🆚 核心差异化
| 传统OTA API | 飞猪旅行 MCP | |
|---|---|---|
| 输入方式 | 结构化参数(城市代码、日期格式) | 自然语言,像人一样说话 |
| 工具数量 | 需多个独立API | 7合1,一个MCP全搞定 |
| 智能推荐 | 无,原始数据返回 | 行程规划自动推荐交通+住宿+景点 |
| 跨服务提示 | 无 | 查完火车票自动提示酒店/美食 |
| 预订链接 | 无 | 实时预订链接,可直接下单 |
📦 安装
pip install mcp-fliggy-travel
⚙️ 配置
需要配置飞猪 FlyAI API 密钥和高德地图 API Key:
export FLYAI_API_KEY="your_flyai_api_key"
export FLYAI_SIGN_SECRET="your_flyai_sign_secret"
export GAODE_API_KEY="your_gaode_api_key"
- FLYAI_API_KEY(必填):飞猪 FlyAI 平台 API Key,申请地址
- FLYAI_SIGN_SECRET(必填):飞猪 FlyAI 签名密钥,申请 API Key 时一同获取
- GAODE_API_KEY(选填):高德地图 API Key,不配置时使用内置 Key(美食推荐和市内交通功能需要)
🚀 MCP 客户端配置
{
"mcpServers": {
"fliggy-travel": {
"command": "uvx",
"args": ["mcp-fliggy-travel"],
"env": {
"FLYAI_API_KEY": "your_flyai_api_key",
"FLYAI_SIGN_SECRET": "your_flyai_sign_secret",
"GAODE_API_KEY": ""
}
}
}
}
📝 使用示例
- "帮我规划三亚5天亲子游" →
travel_plan - "上海到北京明天的高铁" →
search_train - "查一下上海飞三亚的机票" →
search_flight - "三亚亚龙湾500元以内的酒店" →
search_hotel - "杭州有什么5A景区" →
search_poi - "推荐上海外滩附近的火锅" →
search_food - "浦东机场到外滩怎么走" →
search_transport
📄 许可证
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mcp_fliggy_travel-0.1.1.tar.gz
(10.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_fliggy_travel-0.1.1.tar.gz.
File metadata
- Download URL: mcp_fliggy_travel-0.1.1.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b8c76e5371249d11fc5adc651ce76a062f9382c42f8b361de1059fbcdaec414
|
|
| MD5 |
321de6a7f617e6217107b34383e5acc9
|
|
| BLAKE2b-256 |
8c4a3580bf0d3be5fbad9077a9bdf5c1cbcc0f2cfeab4041c25b4508d628cdb2
|
File details
Details for the file mcp_fliggy_travel-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mcp_fliggy_travel-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc2e9ab6f69596df7ae97546d3a2d8c5f13ada28c816e7cc1f43cfab375c3035
|
|
| MD5 |
f81e8840b6289852d37f2b7ec77e296c
|
|
| BLAKE2b-256 |
a54f1e3963f945b918d9148929b77f3e25ea6ebb5e62fd91f01c76d7fb320a03
|