跨平台旅行比价MCP服务,同时搜索飞猪、途牛、同程、美团、RG五大平台酒店和机票价格
Project description
跨平台旅行比价 MCP Server
跨平台旅行比价服务,同时搜索飞猪、途牛、同程、美团、RG五大平台酒店和机票价格,按价格从低到高排序。
功能
🏨 酒店比价 (hotel_compare)
同时搜索五大平台酒店价格,支持按城市、日期、关键词搜索。
参数:
| 参数 | 说明 | 必填 |
|---|---|---|
| city | 城市名(如上海、北京、三亚) | 是 |
| check_in | 入住日期(YYYY-MM-DD) | 是 |
| check_out | 退房日期(YYYY-MM-DD) | 是 |
| keyword | 搜索关键词(如外滩、亚龙湾) | 否 |
✈️ 机票比价 (flight_compare)
同时搜索五大平台机票价格,仅展示直飞航班。
参数:
| 参数 | 说明 | 必填 |
|---|---|---|
| from_city | 出发城市(如上海、北京) | 是 |
| to_city | 到达城市(如三亚、广州) | 是 |
| date | 出发日期(YYYY-MM-DD) | 是 |
安装
pip install travel-price-compare-mcp
或使用 uvx 直接运行:
uvx travel-price-compare-mcp
使用
命令行启动
travel-price-compare-mcp
MCP 客户端配置
在支持 MCP 的客户端(如 Claude Desktop、Cursor、Cherry Studio)中添加:
{
"mcpServers": {
"travel-price-compare": {
"command": "uvx",
"args": ["travel-price-compare-mcp"]
}
}
}
Windows 系统:
{
"mcpServers": {
"travel-price-compare": {
"command": "cmd",
"args": ["/c", "uvx", "travel-price-compare-mcp"]
}
}
}
环境变量
| 变量 | 说明 | 默认值 |
|---|---|---|
| PROXY_URL | 代理服务地址 | (内置) |
| PROXY_TOKEN | 代理认证令牌 | (内置) |
数据源
| 平台 | 说明 |
|---|---|
| 飞猪 | 阿里旗下旅行平台 |
| 途牛 | 综合旅行平台 |
| 同程 | 腾讯系旅行平台 |
| 美团 | 本地生活+旅行 |
| RG | 全球旅行预订 |
License
MIT
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
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 travel_price_compare_mcp-2.3.0.tar.gz.
File metadata
- Download URL: travel_price_compare_mcp-2.3.0.tar.gz
- Upload date:
- Size: 17.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 |
af5d2bf1501ac67c853fb84fbbc9c2248b8018097537438188373102a2873a6f
|
|
| MD5 |
311f45c8ee11a851fbed7ada3f7a9567
|
|
| BLAKE2b-256 |
700edeee609ffdb9b8280b1d46f449c28d87a8d8865cffcfd76ac8a899df2665
|
File details
Details for the file travel_price_compare_mcp-2.3.0-py3-none-any.whl.
File metadata
- Download URL: travel_price_compare_mcp-2.3.0-py3-none-any.whl
- Upload date:
- Size: 20.6 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 |
e1c90a83b9fe90597a138a513fd9458505635f312e7a905b98a964aa668485f2
|
|
| MD5 |
993fd83eae15226baf3e4eddec0ee52e
|
|
| BLAKE2b-256 |
fe7ee87ed79f8dabc921aa637627aa9f6c1d3b24570054afc21a1c73fe430025
|