
KeyFlight PNR Converter
io.keyflight由 keyflight.io 发布官方发布者v1.0.0更新于 Oct 28, 2026
Decode Amadeus, Sabre, Galileo and Worldspan PNRs into itineraries, JSON and PRO ticket PDFs.
概览
托管式 MCP 服务器,可将 Amadeus、Sabre、Galileo 和 Worldspan 的 PNR 解码为可读行程、JSON 和 PRO 机票 PDF。
- 可以做什么
- 把原始 GDS 订座文本解码为可读行程文本和结构化 JSON,含旅客、航班、机场、航站楼、当地时间、飞行时长和航空公司订座号,并可选择排版、时间与日期格式
- 根据 PNR 生成 PRO 机票 PDF,可指定旅客姓名、订座代码、舱位等级、价格、货币和标志,返回 PDF 链接
- 适用场景
- 适合处理 GDS 订座的旅行社和代理,或为订座工具、CRM、聊天机器人、邮件流程加入 PNR 解码的开发者,希望助手把粘贴的订座文本转成行程或面向旅客的机票 PDF。
- 运行要求
- 远程 Streamable HTTP 端点 keyflight.io/mcp,仅支持 POST,无需本地安装。需要付费的 KeyFlight 订阅(无免费额度)和 API 密钥,通过 Authorization 请求头以 Bearer kfp_… 形式发送;密钥在订阅页面创建且只显示一次。Claude Desktop 需经 mcp-remote 连接,因此需要 Node.js。
安装
在 SourceWeft 中
- 打开 控制台中的 KeyFlight PNR Converter,将其添加到工作区。
- 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.keyflight%2Fpnr/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"keyflight-pnr-converter": {
"type": "http",
"url": "https://keyflight.io/mcp",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}README
KeyFlight PNR Converter: MCP server and PNR API
Paste a raw booking from a GDS (Amadeus, Sabre, Galileo, Worldspan) into Claude, Cursor or another AI assistant and get a readable itinerary, the booking as JSON, or a PRO ticket PDF.
KeyFlight runs a hosted Model Context Protocol server at https://keyflight.io/mcp and an HTTP API at https://keyflight.io/api/v1/pnr/decode. Both use the same decoder as the free PNR converter on keyflight.io.
This repository holds the documentation and examples. The server itself is hosted by KeyFlight: there is nothing to install or run. Full reference: keyflight.io/pnr-api.
Who it is for: travel agents and agencies who work with GDS bookings, and developers who add PNR decoding to a booking tool, CRM, chat bot or e-mail flow.
- Get an API key
- Connect an AI assistant (MCP)
- MCP tools
- PNR API over HTTP
- Limits
- Errors
- Supported GDS formats
Get an API key
The MCP server and the PNR API take the same key, kfp_ followed by 43 letters, digits, - and _.
- Get the KeyFlight subscription (the subscription for travel agents).
- On the same page use "Already subscribed?", open the link we e-mail you and press "Create API key".
- Copy the key: it is shown once. A subscription can have 2 keys at a time; you revoke a key on the same page.
While the subscription is not active, the key answers 403 subscription_inactive. There is no free tier for the API or the MCP server. The PNR converter on the website is free for everyone, with no key.
Connect an AI assistant (MCP)
Claude Code
Cursor (.cursor/mcp.json)
Claude Desktop (claude_desktop_config.json, needs Node.js)
Claude Desktop connects through mcp-remote:
Cline (cline_mcp_settings.json)
In Cline open MCP Servers → Configure MCP Servers and add:
Step-by-step notes for AI agents that install the server: llms-install.md.
Then ask, for example: "Decode this PNR and make a PRO ticket with a price of 850 EUR" and paste the booking.
Other clients: any MCP client that supports Streamable HTTP and custom headers. Requests sent from web pages of other sites (with a browser Origin header) are refused with 403 origin_not_allowed, so connect from a desktop app, a CLI or your server. Without a client, see examples/mcp/raw-jsonrpc.sh: one JSON-RPC message per POST, JSON back.
MCP tools
decode_pnr: decode a PNR
Turns a raw PNR into a readable itinerary (text) and structured JSON: passengers, flights, airports, terminals, local times, flight duration, airline locators.
Returns the itinerary text, then JSON: and the same JSON as the PNR API answer. Clients that read structuredContent get that JSON there.
Each decode that finds flights counts towards the monthly decodes of the subscription, like an API call. A text without flights returns an error and does not count. When the decodes of the month are used up, the tool returns an error until the 1st (UTC).
make_ticket: make a PRO ticket PDF
Makes a PRO ticket PDF (PNR, airline logos, class, optional price) from a raw PNR and returns a link to the PDF. Included in the KeyFlight subscription.
The ticket is a document for the traveller: it is not an airline ticket and its PNR is not checked against airline systems.
Returns a line PRO ticket PDF: https://keyflight.io/tickets/….pdf with the PNR, the number of flights and the passengers, and as structuredContent:
Tickets do not count towards the monthly decodes; one key can make up to 30 tickets an hour.
Errors (no flights in the text, a flight without a date or time, no passenger names, a wrong pnr or option, more than 30 tickets in an hour) come back as tool results with isError: true, so the assistant can read them and fix the call.
PNR API over HTTP
POST https://keyflight.io/api/v1/pnr/decode with Content-Type: application/json and Authorization: Bearer kfp_…. The body is { "text": "…", "options": { … } }. The HTTP API returns data and the itinerary as text and HTML; PRO ticket PDFs come from the MCP tool make_ticket. The examples below send the Amadeus booking from examples/pnr-amadeus.txt.
curl
Node.js 18+
Python
examples/api/decode.py (needs requests):
Options
An unknown option or a wrong value answers 400 invalid_option with the field and the allowed values.
Response
The full answer to the example above: examples/api/response-example.json (itinerary.html shortened). Main fields:
itinerary.html of the example in the table view, with options.show.logo: false, as the free converter shows it:
Limits
Answers of the HTTP API carry X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and X-Monthly-Limit, X-Monthly-Remaining, X-Monthly-Reset.
Errors
PNR API errors are JSON: { "error": "<code>", "message": "…" }.
Before a tool runs, the MCP server answers in the same JSON: 401 missing_api_key / invalid_api_key, 403 subscription_inactive, 429 too_many_requests and 503 service_unavailable; also 403 origin_not_allowed for requests from web pages of other sites and 405 method_not_allowed for anything but POST. Inside a tool, errors (the monthly limit too) are tool results with isError: true.
Supported GDS formats
Amadeus (1A), Sabre (1B/1S), Galileo (1G) and Worldspan (1P). Send the booking as the GDS shows it; you don't need to say which system it came from. Example bookings for each system: Amadeus, Sabre, Galileo, Worldspan.
Links
- API and MCP reference: keyflight.io/pnr-api
- Free PNR converter (no key): keyflight.io/tickets/pnr
- KeyFlight subscription for travel agents: keyflight.io/subscription
License
The examples and documentation in this repository are under the MIT License. The KeyFlight service is not open source; using it needs a KeyFlight subscription.
来源:README.md,提交 f0ebd7c
工具
0版本历史
1- v1.0.0最新Oct 20, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分