跨平台旅行比价 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
Metadata
Release files for travel-price-compare-mcp 3.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| travel_price_compare_mcp-3.2.0.tar.gz | 22.5 kB | Without provenance | Details for travel_price_compare_mcp-3.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| travel_price_compare_mcp-3.2.0-py3-none-any.whl | Python 3 | none | any | Details for travel_price_compare_mcp-3.2.0-py3-none-any.whl |
Total release size: 46.1 kB
Release files / travel_price_compare_mcp-3.2.0.tar.gz
| Download URL | travel_price_compare_mcp-3.2.0.tar.gz |
|---|---|
| Size | 22.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb5b479ea3abc24731451d597df1ef1ac4611186dc1d5cc0a7cabd5ca981ac35
|
|
BLAKE2b-256 checksum How to use checksums |
0874063017125d5e3f861d7fecd802d9a47879a87c57bf2a2d6c468713a62be8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / travel_price_compare_mcp-3.2.0-py3-none-any.whl
| Download URL | travel_price_compare_mcp-3.2.0-py3-none-any.whl |
|---|---|
| Size | 23.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45386ed5f7dcb287d0da42778f731fa8ed33042dc3061c4c3cff7f3f705bccae
|
|
BLAKE2b-256 checksum How to use checksums |
ae52f4c74b113c83508e072d0e136f7278149703b9aa410ff3e53c68c687eedf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for travel-price-compare-mcp 3.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.