loading…
Search for a command to run...
loading…
RollingGo-Flight-MCP is a flight ticketing service built on the MCP standard, providing airport search and flight query capabilities for AI Agents and MCP clien
RollingGo-Flight-MCP is a flight ticketing service built on the MCP standard, providing airport search and flight query capabilities for AI Agents and MCP clients.
Version ModelScope Calls License: MIT Python 3.8+
🏠 官网 · 🚀 快速开始 · 🔧 工具 · 💬 技术支持 📚 接入教程-视频版(0基础0代码可实操) 📚 接入教程-文档版
| 服务 | 端点 | 已上线 Tool | 认证 |
|---|---|---|---|
| 酒店 MCP | https://mcp.rollinggo.cn/mcp |
searchHotels, getHotelDetail, getHotelSearchTags | Authorization: Bearer <YOUR_API_KEY> |
| 机票 MCP | https://mcp.rollinggo.cn/mcp/flight |
searchAirports, searchFlights | Authorization: Bearer <YOUR_API_KEY> |
"帮我设置机票价格监控"
Agent成功监测机票降价
💡 总结来说,你只需要做两件事:申请API Key+ 在AI助手中一键配置,无需编写代码,就能让任何支持MCP的AI助手具备酒店搜索能力,5 分钟内完成第一次 MCP Tool 调用,
推荐 Claude CLI、Codex、Cursor 三个客户端。其他支持 MCP 的客户端(如 Kiro、豆包等)配置方式类似。
在项目根目录创建 .mcp.json:
{
"mcpServers": {
"RollingGo-Hotel": {
"url": "https://mcp.rollinggo.cn/mcp",
"type": "http",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
},
"RollingGo-Flight": {
"url": "https://mcp.rollinggo.cn/mcp/flight",
"type": "http",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
也可以通过命令行直接添加:
claude mcp add \
--transport http \
--header "Authorization: Bearer YOUR_API_KEY" \
RollingGo-Hotel \
https://mcp.rollinggo.cn/mcp
claude mcp add \
--transport http \
--header "Authorization: Bearer YOUR_API_KEY" \
RollingGo-Flight \
https://mcp.rollinggo.cn/mcp/flight
配置文件位置:项目根目录 .codex/config.json 或全局 ~/.codex/config.json
{
"mcpServers": {
"RollingGo-Hotel": {
"url": "https://mcp.rollinggo.cn/mcp",
"type": "streamable-http",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
},
"RollingGo-Flight": {
"url": "https://mcp.rollinggo.cn/mcp/flight",
"type": "streamable-http",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
配置文件位置:项目根目录 .cursor/mcp.json 或全局 ~/.cursor/mcp.json
{
"mcpServers": {
"RollingGo-Hotel": {
"url": "https://mcp.rollinggo.cn/mcp",
"type": "streamable-http",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
},
"RollingGo-Flight": {
"url": "https://mcp.rollinggo.cn/mcp/flight",
"type": "streamable-http",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
将
YOUR_API_KEY替换为你收到的实际 API Key。酒店和机票使用相同的认证方式,区别仅在于 URL(/mcpvs/mcp/flight)。
注意:cURL 必须带
-H "Accept: application/json, text/event-stream"头,否则服务端返回 400。
curl -X POST https://mcp.rollinggo.cn/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "searchHotels",
"arguments": {
"originQuery": "上海外滩五星酒店",
"place": "上海外滩",
"placeType": "景点",
"checkInParam": {
"checkInDate": "2026-06-01",
"stayNights": 2
},
"filterOptions": {
"starRatings": [5.0]
},
"size": 3
}
},
"id": 1
}'
配置完成后,对你的 AI 助手说:
"帮我搜一下杭州到北京的机票"。AI 会自动调用Tool,返回机票列表。
Step 1:搜索机场,获取城市代码
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "searchAirports",
"arguments": { "keyword": "杭州" }
},
"id": 1
}
Step 2:用城市代码查询航班
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "searchFlights",
"arguments": {
"adultNumber": 1,
"childNumber": 0,
"cabinGrade": "ECONOMY",
"tripType": "ONE_WAY",
"fromCity": "HGH",
"toCity": "CTU",
"fromDate": "2026-06-01"
}
},
"id": 1
}
杭州→成都,单程,经济舱,共返回 95 条航班:
| 航班号 | 航线 | 时间 | 价格 |
|---|---|---|---|
| CA1741 | 杭州萧山 → 成都天府 | 07:40 - 10:40 | ¥2,869 |
| CZ6198 | 杭州萧山 → 武汉 | 13:10 - 15:00 | ¥4,631 |
| CA3338 | 杭州萧山 → 深圳 | 12:55 - 15:15 | ¥5,341 |
机票查询
1. 用户说"帮我查机票"
2. 调用 searchAirports → 获取城市代码
3. 调用 searchFlights → 返回航班列表
4. 展示给用户(⚠️ 价格和库存实时变化)
Q1: 配置后客户端看不到 Tool
url 和 type 是否正确Authorization header 中的 API Key 是否正确Q2: 返回 401 Unauthorized API Key 无效或格式错误:
mcp_ 开头Authorization: Bearer YOUR_API_KEY 中 Bearer 后有一个空格Q3: 返回 400 Bad Request cURL 直接调用时常见,检查是否带了 Accept 头:
-H "Accept: application/json, text/event-stream"
Q4: searchHotels 返回空结果
place 和 placeType 是否匹配(如"上海外滩"应配"景点")checkInDate 不是过去的时间Q5: searchFlights 报错
searchAirports 获取正确的城市代码fromDate 不是过去的时间retDateQ6: 价格和实际不一致 搜索结果中的价格是参考价,实时价格可能有变动。当前仅支持查询,暂不支持在线下单。
Q7: 如何获取 API Key? 前往 https://rollinggo.store/apply 提交申请,1-3 分钟内审核通过,免费无限制。
| 项目 | 说明 |
|---|---|
| 是否需要注册 | 是,需要在开发者平台提交申请 |
| 是否需要 API Key | 是,所有请求需要 Authorization: Bearer <API_KEY> |
| 调用量限制 | 无限制 |
| 费用 | 完全免费 |
| 审核周期 | 1-3 分钟自动通过 |
| 支持的地区/币种 | 全球酒店和机票,国内用 CNY,海外用 USD |
| 下单能力 | 当前仅支持查询,不支持在线下单(规划中) |
加入微信群,获取技术支持 接入路上有任何问题都别担心!欢迎加入我们的微信技术支持群,我们的核心开发团队会全程在线,手把手帮你搞定环境配置、接口调试,陪你跑通第一个成功的机票查询调用,让你零障碍快速上线。
你可以在群内获得:

| 其他类型 | 方式 |
|---|---|
| API Key 申请 | https://rollinggo.store/apply |
| 商务合作 | [email protected] |
| 伙伴中心 | https://travelportal-partner-center.dida.com |
| Skill Hub | https://rollinggo.store/solutions/skills |
| GitHub | https://github.com/RollingGo-AI/rollinggo-readme |
文档版本:v1.0
See README.md for the English version.
Run in your terminal:
claude mcp add rollinggo-flight-mcp -- npx Yes, RollingGo Flight MCP is free — one-click install via Unyly at no cost.
No, RollingGo Flight runs without API keys or environment variables.
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
Open RollingGo Flight on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
CSA PROJECT - FZCO © 2026 IFZA Business Park, DDP, Premises Number 31174 - 001
Security
Low riskAutomated heuristic from public metadata — not a security guarantee.