Skip to main content

机票聪明买 MCP (SmartFlightBuy)

多平台机票比价 + 低价日历 + 购票决策建议 MCP Server。

功能特性

  • 多源搜索:整合飞猪、途牛、RG 三平台机票数据
  • 精确比价:按航班号跨平台比价,找到最低价
  • 低价日历:扫描多日价格,发现价格洼地
  • 智能建议:基于航线价格区间、提前天数、旺季因素给出买/等建议

安装

pip install mcp-smart-flight-buy

工具列表

searchFlights

搜索航班,合并飞猪/途牛/RG三源数据并去重,附带购票建议。

参数:

  • fromCity (string, 必填):出发城市,如:北京
  • toCity (string, 必填):到达城市,如:上海
  • depDate (string, 必填):出发日期,格式 YYYY-MM-DD

compareFlightPrices

多平台航班精确比价,按航班号匹配各平台价格。

参数:

  • fromCity (string, 必填):出发城市
  • toCity (string, 必填):到达城市
  • depDate (string, 必填):出发日期,格式 YYYY-MM-DD
  • flightNo (string, 可选):指定航班号比价,留空则比最低价航班

priceCalendar

机票低价日历,扫描多日价格找到价格洼地。

参数:

  • fromCity (string, 必填):出发城市
  • toCity (string, 必填):到达城市
  • startDate (string, 必填):起始日期,格式 YYYY-MM-DD
  • days (integer, 可选,默认 14):扫描天数,最多 30

环境变量

  • FLIGGY_PROXY_URL:飞猪 SCF 代理地址
  • TUNIU_PROXY_URL:途牛 SCF 代理地址
  • RG_PROXY_URL:RG SCF 代理地址
  • PROXY_TOKEN:代理鉴权 Token

License

MIT

Metadata

Release files for mcp-smart-flight-buy 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-smart-flight-buy 2.0.0
File Size Uploaded Provenance
mcp_smart_flight_buy-2.0.0.tar.gz 8.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-smart-flight-buy 2.0.0
File Interpreter ABI Platform
mcp_smart_flight_buy-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.8 kB

Release files / mcp_smart_flight_buy-2.0.0.tar.gz

Download URL mcp_smart_flight_buy-2.0.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
57189b02785d60d0d1ae037e9ade06938acdc869e8650df30a0aba94c31f1bd1
BLAKE2b-256 checksum
How to use checksums
1db1c6a0ad69fc65e1b870a5dc3f743e76ca906e4cc81aaa32fb09e65d920260
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / mcp_smart_flight_buy-2.0.0-py3-none-any.whl

Download URL mcp_smart_flight_buy-2.0.0-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b40e1e6987803edec2d7510ee076584a3262e3a14f3e84344c68539fc5156ce
BLAKE2b-256 checksum
How to use checksums
5274e764d5c5f6a2b489dec4abc9e325d3364c10fd60e54f958a34319077057b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Security for mcp-smart-flight-buy 2.0.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page