Skip to main content

跨平台旅行比价MCP服务,同时搜索飞猪、途牛、同程、美团、RG五大平台酒店和机票价格

Project description

跨平台旅行比价 MCP Server

跨平台旅行比价服务,同时搜索飞猪、途牛、同程、美团、RG五大平台酒店和机票价格,按价格从低到高排序。

功能

✈️ 机票比价 (flight_compare)

同时搜索五大平台机票价格,仅展示直飞航班,同一航班跨平台匹配对比。

参数:

参数 说明 必填
from_city 出发城市(如上海、北京)
to_city 到达城市(如三亚、广州)
date 出发日期(YYYY-MM-DD)

特色:

  • 同一航班跨平台匹配,价格对比一目了然
  • 60+航司中文映射(CA→国航、MU→东航)
  • 35+城市IATA代码自动转换
  • 价差异常自动提醒
  • 最低价平台预订链接直达

🏨 酒店比价 (hotel_compare)

同时搜索五大平台酒店价格,支持按城市、日期、关键词搜索。

参数:

参数 说明 必填
city 城市名(如上海、北京、三亚)
check_in 入住日期(YYYY-MM-DD)
check_out 退房日期(YYYY-MM-DD)
keyword 搜索关键词(如外滩、亚龙湾)

安装

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"]
    }
  }
}

更新日志

v2.0.0

  • 🔄 RG航班解析适配新MCP端点(_parse_rg改用_parse_mcp)
  • 🔗 最低价航班增加预订链接直达
  • 🧹 清理代码注释

v1.0.1

  • 初始版本

数据源

平台 说明
飞猪 阿里旗下旅行平台
途牛 综合旅行平台
同程 腾讯系旅行平台
美团 本地生活+旅行
RG 全球旅行预订

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

travel_price_compare_mcp-2.0.0.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

travel_price_compare_mcp-2.0.0-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file travel_price_compare_mcp-2.0.0.tar.gz.

File metadata

  • Download URL: travel_price_compare_mcp-2.0.0.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for travel_price_compare_mcp-2.0.0.tar.gz
Algorithm Hash digest
SHA256 7d73d9cf6845badf1d6d70ea59187ee60d65caceaa8b5348770c2583b144451a
MD5 6f9d05fae08c279fc12088eb9f6b94ff
BLAKE2b-256 6036005031456da39abf54f07a6aeea6dd42d73277e9f11ab25b55d3052c3881

See more details on using hashes here.

File details

Details for the file travel_price_compare_mcp-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for travel_price_compare_mcp-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b83c8c50c09e69400f727956d5fad9bf923b4208530e64684ec54a6350298ca7
MD5 39e69c44af63186ab05ef787c2361b9f
BLAKE2b-256 7ee278a8bd77d6eb3d56f9905254fa07d7df0a4f4295080c8d9ee94dd10d29d4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page