关于 Sparkflights
Sparkflights 是托管的 MCP 服务,可按航线、月份、舱位、区域和价格查找已核实的机票价格。它适合需要票价详情和预订链接的旅客及 MCP 客户端;结果来自 Sparkflights 核实过的票价,并非实时搜索。
主要功能
- 01按航线和月份搜索已核实票价
- 02按舱位、区域和价格筛选
- 03按每英里成本排列结果
- 04获取行程、航班和日期价格
- 05打开票价页和航线页
适用场景
- 01查找指定月份城市之间的票价
- 02搜索低于价格上限的指定舱位票价
- 03查看结果中的航班和所列日期
MCP 相关
Sparkflights 通过托管的 Streamable HTTP MCP 服务提供两个只读工具:`search_deals` 和 `get_deal`。MCP 客户端可搜索已核实票价并获取详情,结果附有可用于预订的票价页链接。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://www.sparkflights.com/mcp/searchclaude mcp add --transport http sparkflights-com-sparkflights https://www.sparkflights.com/mcp/search{"mcpServers":{"sparkflights-com-sparkflights":{"type":"http","url":"https://www.sparkflights.com/mcp/search"}}}在 Cursor 中打开{"servers":{"sparkflights-com-sparkflights":{"type":"http","url":"https://www.sparkflights.com/mcp/search"}}}在 VS Code 中打开{"mcpServers":{"sparkflights-com-sparkflights":{"type":"http","url":"https://www.sparkflights.com/mcp/search"}}}{"mcpServers":{"sparkflights-com-sparkflights":{"serverUrl":"https://www.sparkflights.com/mcp/search"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
Sparkflights MCP 服务
在 Claude、ChatGPT、Cursor、VS Code 或任何其他 MCP 客户端中,搜索 Sparkflights 找到并验证的机票优惠。
https://www.sparkflights.com/mcp/search
该服务托管在云端。无需安装、无需账户,也无需 API 密钥。它使用可流式传输的 HTTP。

工具
这两个工具都只读取数据。
search_deals按出发地和目的地(机场代码,如JFK,或城市,如New York)、出发月份、舱位、地区和最高价格查找经过验证的票价。结果按每英里成本排序。get_deal返回一条票价的行程、航班,以及其票价页面列出的日期组合和对应价格。
每条结果都链接到对应的 Sparkflights 票价页面,你可以在该页面预订;也链接到对应的航线页面,你可以在该页面关注航线以获取新票价。
Sparkflights 不是实时票价搜索工具。结果为空表示目前没有符合条件的已验证票价,并不代表没有航班。Sparkflights 不售票,也不收取款项。
添加到客户端
Claude(claude.ai 或 Claude Desktop):依次选择 Settings → Connectors → Add custom connector,然后粘贴上面的 URL。
Claude Code:
claude mcp add --transport http sparkflights https://www.sparkflights.com/mcp/search
Cursor(~/.cursor/mcp.json):
{
"mcpServers": {
"sparkflights": {
"url": "https://www.sparkflights.com/mcp/search"
}
}
}
VS Code(.vscode/mcp.json):
{
"servers": {
"sparkflights": {
"type": "http",
"url": "https://www.sparkflights.com/mcp/search"
}
}
}
**ChatGPT:**开启开发者模式,然后使用上面的 URL 添加自定义 MCP 服务。
其他客户端:mcp.json 中包含标准的 mcpServers 配置项。
试着这样提问
- 查找从 New York 飞往 London 的机票优惠
- 从 San Francisco 出发,有商务舱机票优惠吗?
- 3 月从 Chicago 出发、价格低于 $500 的航班
- 有飞往 Tokyo 的机票优惠吗?
- 查找从 Los Angeles 出发的机票优惠,然后告诉我第一条优惠的日期和航班
链接
- Sparkflights
- 面向 Agent:介绍 AI Agent 如何提交找到的票价并获得署名
- 隐私 · 条款
- 服务出现问题:在此处提交 issue,或发送邮件至 [email protected]
发布
推送 v* 标签时,.github/workflows/publish-mcp.yml 会将 server.json 发布到 MCP Registry。打标签前,请先更新 server.json 中的 version。
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。