关于 OctoTrip Flights
OctoTrip Flights 是托管式 MCP 服务,可搜索多个航空公司和预订平台的实时航班报价。无需登录或 API 密钥,也不负责预订航班。
主要功能
- 01搜索实时航班报价
- 02比较航空公司与预订平台选项
- 03支持单程和往返行程
- 04设置乘客人数和舱位
- 05按经停次数分组结果
适用场景
- 01比较不同出行日期的票价
- 02查找直飞航班选项
- 03为团体和家庭搜索航班
MCP 相关
提供无状态的 Streamable HTTP MCP 端点和航班搜索工具。MCP 客户端可搜索实时报价,并获取按价格排序且附有预订链接的结果。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://mcp.octotrip.app/flights/mcpclaude mcp add --transport http app-octotrip-flights https://mcp.octotrip.app/flights/mcp{"mcpServers":{"app-octotrip-flights":{"type":"http","url":"https://mcp.octotrip.app/flights/mcp"}}}在 Cursor 中打开{"servers":{"app-octotrip-flights":{"type":"http","url":"https://mcp.octotrip.app/flights/mcp"}}}在 VS Code 中打开{"mcpServers":{"app-octotrip-flights":{"type":"http","url":"https://mcp.octotrip.app/flights/mcp"}}}{"mcpServers":{"app-octotrip-flights":{"serverUrl":"https://mcp.octotrip.app/flights/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
OctoTrip 航班 MCP 服务
免费、无需登录的 MCP 服务,可搜索并比较全球多家航空公司和预订平台的航班实时价格。
MCP Streamable HTTP 端点:
https://mcp.octotrip.app/flights/mcp

相关项目
- OctoTrip Rental Cars — 租车搜索 MCP 服务
联盟营销声明
OctoTrip 可免费使用。预订链接包含联盟营销归因信息——OctoTrip 可能会赚取佣金,但不会向你收取额外费用。搜索结果按每个经停次数分组,并根据价格排序,而非按联盟营销收益排序。
快速开始
将以下内容添加到 MCP 客户端配置中:
{
"mcpServers": {
"octotrip-flights": {
"url": "https://mcp.octotrip.app/flights/mcp"
}
}
}
无需 API 密钥或登录。
使用方式……
Claude Desktop
添加到 claude_desktop_config.json:
{
"mcpServers": {
"octotrip-flights": {
"url": "https://mcp.octotrip.app/flights/mcp"
}
}
}
Cursor / Windsurf
添加到 MCP 设置中:
{
"mcpServers": {
"octotrip-flights": {
"url": "https://mcp.octotrip.app/flights/mcp"
}
}
}
Cline
添加到 Cline MCP 设置中:
{
"mcpServers": {
"octotrip-flights": {
"url": "https://mcp.octotrip.app/flights/mcp"
}
}
}
OpenClaw
openclaw plugins install clawhub:@xltnapps/octotrip-flights
Hermes Agent
hermes mcp add octotrip-flights --url https://mcp.octotrip.app/flights/mcp
hermes mcp test octotrip-flights
或者添加到 ~/.hermes/config.yaml:
mcp_servers:
octotrip_flights:
url: "https://mcp.octotrip.app/flights/mcp"
仅支持 Stdio 的客户端
适用于仅支持 stdio 传输的 MCP 客户端:
npx mcp-remote https://mcp.octotrip.app/flights/mcp
curl / 协议示例
使用 curl 完成 MCP 会话的完整示例(初始化、列出工具、调用搜索):
# 1. Initialize
curl -s -X POST https://mcp.octotrip.app/flights/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0", "id": 1, "method": "initialize",
"params": {
"protocolVersion": "2025-03-26",
"capabilities": {},
"clientInfo": {"name": "example", "version": "1.0"}
}
}'
# 2. List tools
curl -s -X POST https://mcp.octotrip.app/flights/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc": "2.0", "id": 2, "method": "tools/list"}'
# 3. Search
curl -s -X POST https://mcp.octotrip.app/flights/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0", "id": 3, "method": "tools/call",
"params": {
"name": "search",
"arguments": {
"origin": "FRA",
"destination": "BCN",
"departure_date": "2026-08-01"
}
}
}'
传输方式:无状态的 streamable HTTP。响应使用 text/event-stream(SSE)。不保留会话,也不支持会话恢复。速率限制:每秒 1 个请求,突发容量为 5。
工具:search
搜索指定旅行日期的出发地与目的地之间的实时航班报价。支持单程和往返搜索,可灵活设置乘客人数和舱位等级。返回按价格排序、按经停次数分组的结果,展示多家航空公司和预订平台提供的最便宜选项。该工具会实时查询外部航班聚合 API,并提供联盟营销预订链接。它不会预订航班、修改预订、向用户收费或存储用户数据。
参数
| 参数 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
origin | string | 是 | -- | 出发城市、机场名称或 IATA 代码(例如:"Frankfurt"、"JFK") |
destination | string | 是 | -- | 到达城市、机场名称或 IATA 代码 |
departure_date | string | 是 | -- | 出发日期(YYYY-MM-DD、DD.MM.YYYY 或自然语言) |
return_date | string | 否 | -- | 往返行程的返程日期。单程请省略 |
adults | integer | 否 | 1 | 成人乘客人数(1-9) |
children | integer | 否 | 0 | 2-11 岁儿童人数(0-9) |
infants | integer | 否 | 0 | 2 岁以下婴儿人数(0-9) |
trip_class | string | 否 | "Y" | 客舱等级:Y 代表经济舱,C 代表商务舱 |
currency | string | 否 | "EUR" | ISO 4217 货币代码(EUR、USD、GBP 等) |
locale | string | 否 | "en" | 响应语言代码(en、de 等) |
响应格式
结果按经停次数分组,每组列出最便宜的选项:
{
"results": [
{
"airline": "Lufthansa",
"airline_code": "LH",
"alliance": "Star Alliance",
"flight_numbers": ["LH120", "LH121"],
"is_direct": true,
"stops": 0,
"total_duration_minutes": 110,
"outbound": {
"departure": "FRA",
"arrival": "MUC",
"departure_time": "18:15",
"arrival_time": "19:10",
"departure_date": "2026-07-15",
"arrival_date": "2026-07-15",
"duration_minutes": 55,
"stops": 0,
"legs": [
{
"flight_number": "LH120",
"carrier": "Lufthansa",
"aircraft": "Airbus A319",
"departure": "FRA",
"arrival": "MUC",
"departure_time": "18:15",
"arrival_time": "19:10",
"departure_date": "2026-07-15",
"arrival_date": "2026-07-15",
"duration_minutes": 55
}
]
},
"return": { ... },
"price": 292.39,
"currency": "EUR",
"baggage": "No checked bag, Cabin bag: 1 piece(s)",
"gate": "City.Travel",
"booking_url": "https://...",
"link_type": "affiliate",
"affiliate_disclosure": "This link contains affiliate attribution. OctoTrip may earn a commission at no extra cost to you.",
"tags": ["convenient_ticket", "direct"]
}
],
"total": 6,
"total_available": 876,
"origin_resolved": { "iata": "FRA", "name": "Frankfurt Airport", "city": "Frankfurt am Main", "country_code": "DE" },
"destination_resolved": { "iata": "MUC", "name": "Munich Airport", "city": "Munich", "country_code": "DE" },
"validity": "Results and booking links are valid for approximately 15 minutes.",
"query": { ... }
}
结果有效期
搜索结果和预订链接的有效期约为 15 分钟。机票价格由实时竞价流程决定,超过此时限后不作保证。如果用户想要预订,应尽快操作。对于已过期的结果,请重新搜索。
错误响应
服务会返回包含建议的结构化错误:
airport_not_found-- 无法识别机场。请尝试使用 IATA 代码、城市名称或机场名称。disambiguation_needed-- 找到多个机场(例如,"New York" 会返回 JFK、LGA)。请选择一个并重试。invalid_date-- 无法识别日期格式。请使用 YYYY-MM-DD、DD.MM.YYYY 或类似格式。no_results-- 没有符合所给条件的航班。请尝试其他日期或附近的机场。
示例提示词
- 帮我查找 8 月从 New York 到 London 的最便宜直飞航班
- 比较 7 月 15 日从 Frankfurt 到 Munich 的航班,往返,7 月 22 日返程
- 我需要下周五从 LAX 飞往 Tokyo 的单程经济舱航班
- 搜索 9 月 1 日从 Barcelona 飞往 Paris 的航班,2 位成人和 1 位儿童
- 这个月从 Dubai 到 Singapore 的最便宜商务舱航班是什么?
隐私
此服务不会记录 IP 地址、搜索查询或任何可识别用户身份的数据。有关详细信息和日志条目示例,请参阅 PRIVACY.md。
安全
如需报告漏洞,请参阅 SECURITY.md。
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。