mcp-domestic-flight
国内航班实时查询 MCP 服务,基于飞猪旅行数据。
安装
pip install mcp-domestic-flight
使用
mcp-domestic-flight
工具
search_flight
查询国内航班实时价格与时刻表,支持城市中文名输入,返回航班号、起降时间、价格及预订链接。数据来源:飞猪旅行。
参数:
- origin(必填):出发城市,中文城市名,如:上海、北京、广州、成都
- destination(必填):到达城市,中文城市名,如:北京、成都、深圳、三亚
- depDate(必填):出发日期,格式 YYYY-MM-DD
- seatClass(可选):舱位选择,economy(经济舱) / business(商务舱) / first(头等舱),默认 economy
- sortType(可选):排序方式,1(价格降序) / 2(推荐) / 3(价格升序) / 4(时长升序) / 6(出发早到晚) / 7(出发晚到早) / 8(直飞优先),默认 2
- maxPrice(可选):最高价格(元),如 500,0 表示不限
- journeyType(可选):航班类型,1=仅直达、2=仅中转,不填则显示全部
- transportNo(可选):指定航班号,如:CZ8881
变更日志
v3.0.0 (2026-08-26)
- 破坏性变更:所有对外 MCP 参数统一为 camelCase 命名,与飞猪官方 schema 对齐
dep_date→depDateseat_class→seatClasssort_type→sortTypemax_price→maxPricejourney_type→journeyTypetransport_no→transportNo
- 使用
Annotated+Field提供更清晰的参数描述 - MCP server 名称统一为
domestic-flight-search
Metadata
Release files for mcp-domestic-flight 3.0.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 | |
|---|---|---|---|---|
| mcp_domestic_flight-3.0.0.tar.gz | 5.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_domestic_flight-3.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.5 kB
Release files / mcp_domestic_flight-3.0.0.tar.gz
| Download URL | mcp_domestic_flight-3.0.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
204c0d9e0d39e981593a3fc130cd88c36e683bf061b9acef930f129f2b873a1b
|
|
BLAKE2b-256 checksum How to use checksums |
6021364da8d9794cb7c93b7f93da34505b43a9042825bd4bea323aa500d3e91d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / mcp_domestic_flight-3.0.0-py3-none-any.whl
| Download URL | mcp_domestic_flight-3.0.0-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d311aaf3a556c8675e620d0a24cb665b706b06f24c4a87c0d67dcfe34162ea4
|
|
BLAKE2b-256 checksum How to use checksums |
bcdf02987162eafc9b330b9b1db5e598edb85918350c0628d564861e2a2a618d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for mcp-domestic-flight 3.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.