a2bflight fares
Cached flight fares on thousands of routes, each with the day it was seen. Not live prices. No key.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"fares": {
"url": "https://mcp.a2bflight.com/mcp"
}
}
}远程端点
https://mcp.a2bflight.com/mcpstreamable-http它能做什么
工具清单
工具(3)
🟢cheapest_routes(from, to, max_price, month, limit)
The cheapest cached fare on every route we hold from an origin (or into a destination), cheapest one-way first, each with its cheapest round trip of a 3 to 21 day stay in `return` when we hold one. Filter by a maximum price and a departure month here rather than by reading the list; both apply to the one-way. Prices are one adult, economy, as last seen on the date in `checked` — observations, not quotes.
输入模式
{
"type": "object",
"properties": {
"from": {
"type": "string",
"description": "origin IATA airport or city code (NYC covers JFK, LGA and EWR); give from, to or both"
},
"to": {
"type": "string",
"description": "destination IATA airport or city code"
},
"max_price": {
"type": "number",
"description": "keep only fares at or under this amount, in the currency the results carry"
},
"month": {
"type": "string",
"description": "YYYY-MM: the cheapest fare departing in that month; needs from"
},
"limit": {
"type": "integer",
"description": "how many routes to return, 1 to 20; 10 when omitted"
}
},
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"currency": {
"type": "string"
},
"routes": {
"type": [
"null",
"array"
],
"items": {
"type": "object",
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"trip": {
"type": "string",
"description": "one-way or return"
},
"depart_date": {
"type": "string"
},
"return_date": {
"type": "string"
},
"month": {
"type": "string",
"description": "YYYY-MM, on a per-month row that has no single date"
},
"departs": {
"type": "string",
"description": "local departure time with the airport's offset"
},
"lands": {
"type": "string",
"description": "local arrival time with the airport's offset"
},
"carrier": {
"type": "string"
},
"carrier_name": {
"type": "string"
},
"flight": {
"type": "string"
},
"stops": {
"type": [
"null",
"integer"
],
"description": "connections; on a return, both directions together"
},
"duration": {
"type": "string",
"description": "flying time; on a return, both directions together"
},
"price": {
"type": "number"
},
"currency": {
"type": "string"
},
"travellers": {
"type": "integer"
},
"cabin": {
"type": "string"
},
"checked": {
"type": "string",
"description": "the day this price was last seen"
},
"ref": {
"type": "string"
},
"page_url": {
"type": "string",
"description": "the route's page on a2bflight.com — give the user this link first"
},
"book_url": {
"type": "string",
"description": "opens the seller's booking page for this fare"
},
"return": {
"type": [
"null",
"object"
],
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"trip": {
"type": "string",
"description": "one-way or return"
},
"depart_date": {
"type": "string"
},
"return_date": {
"type": "string"
},
"month": {
"type": "string",
"description": "YYYY-MM, on a per-month row that has no single date"
},
"departs": {
"type": "string",
"description": "local departure time with the airport's offset"
},
"lands": {
"type": "string",
"description": "local arrival time with the airport's offset"
},
"carrier": {
"type": "string"
},
"carrier_name": {
"type": "string"
},
"flight": {
"type": "string"
},
"stops": {
"type": [
"null",
"integer"
],
"description": "connections; on a return, both directions together"
},
"duration": {
"type": "string",
"description": "flying time; on a return, both directions together"
},
"price": {
"type": "number"
},
"currency": {
"type": "string"
},
"travellers": {
"type": "integer"
},
"cabin": {
"type": "string"
},
"checked": {
"type": "string",
"description": "the day this price was last seen"
},
"ref": {
"type": "string"
},
"page_url": {
"type": "string",
"description": "the route's page on a2bflight.com — give the user this link first"
},
"book_url": {
"type": "string",
"description": "opens the seller's booking page for this fare"
}
},
"description": "the route's cheapest round trip of a 3 to 21 day stay; absent when we hold none, and the route's page_url then offers a live return search",
"required": [
"from",
"to",
"trip",
"price",
"currency",
"travellers",
"cabin",
"checked",
"page_url"
],
"additionalProperties": false
}
},
"required": [
"from",
"to",
"trip",
"price",
"currency",
"travellers",
"cabin",
"checked",
"page_url"
],
"additionalProperties": false
}
},
"note": {
"type": "string"
}
},
"required": [
"routes"
],
"additionalProperties": false
}🟢find_airports(query, near)
Look up airports and city codes by name, or list the airports near a code or a lat,lon point. Use it to turn a city name into the IATA code the other tools take.
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "a city or airport name or the start of one; give this or near"
},
"near": {
"type": "string",
"description": "an IATA code, or lat,lon, to list the airports near it; give this or query"
}
},
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"places": {
"type": [
"null",
"array"
],
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"city": {
"type": "string"
},
"country": {
"type": "string"
},
"metro": {
"type": "boolean",
"description": "true for a city code that covers several airports"
},
"airports": {
"type": [
"null",
"array"
],
"items": {
"type": "string"
}
},
"distance_km": {
"type": [
"null",
"integer"
]
}
},
"required": [
"code",
"city",
"country"
],
"additionalProperties": false
}
}
},
"required": [
"places"
],
"additionalProperties": false
}🟢route_fares(from, to, month)
Everything we hold for one airport pair: the cheapest one-way, the cheapest round trip of a 3 to 21 day stay, the cheapest one-way by departure date and by month, and the cheapest round trips. If we hold nothing yet, it starts pricing the route and says so; ask again a minute later.
输入模式
{
"type": "object",
"properties": {
"from": {
"type": "string",
"description": "origin IATA airport code (an airport, not a city code)"
},
"to": {
"type": "string",
"description": "destination IATA airport code"
},
"month": {
"type": "string",
"description": "YYYY-MM: keep only departure dates in that month"
}
},
"required": [
"from",
"to"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"status": {
"type": "string",
"description": "held: fares below; pricing: we just started pricing this route, ask again in a minute; none: we hold no fare for it"
},
"currency": {
"type": "string"
},
"cheapest": {
"type": [
"null",
"object"
],
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"trip": {
"type": "string",
"description": "one-way or return"
},
"depart_date": {
"type": "string"
},
"return_date": {
"type": "string"
},
"month": {
"type": "string",
"description": "YYYY-MM, on a per-month row that has no single date"
},
"departs": {
"type": "string",
"description": "local departure time with the airport's offset"
},
"lands": {
"type": "string",
"description": "local arrival time with the airport's offset"
},
"carrier": {
"type": "string"
},
"carrier_name": {
"type": "string"
},
"flight": {
"type": "string"
},
"stops": {
"type": [
"null",
"integer"
],
"description": "connections; on a return, both directions together"
},
"duration": {
"type": "string",
"description": "flying time; on a return, both directions together"
},
"price": {
"type": "number"
},
"currency": {
"type": "string"
},
"travellers": {
"type": "integer"
},
"cabin": {
"type": "string"
},
"checked": {
"type": "string",
"description": "the day this price was last seen"
},
"ref": {
"type": "string"
},
"page_url": {
"type": "string",
"description": "the route's page on a2bflight.com — give the user this link first"
},
"book_url": {
"type": "string",
"description": "opens the seller's booking page for this fare"
}
},
"description": "the cheapest one-way",
"required": [
"from",
"to",
"trip",
"price",
"currency",
"travellers",
"cabin",
"checked",
"page_url"
],
"additionalProperties": false
},
"cheapest_return": {
"type": [
"null",
"object"
],
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"trip": {
"type": "string",
"description": "one-way or return"
},
"depart_date": {
"type": "string"
},
"return_date": {
"type": "string"
},
"month": {
"type": "string",
"description": "YYYY-MM, on a per-month row that has no single date"
},
"departs": {
"type": "string",
"description": "local departure time with the airport's offset"
},
"lands": {
"type": "string",
"description": "local arrival time with the airport's offset"
},
"carrier": {
"type": "string"
},
"carrier_name": {
"type": "string"
},
"flight": {
"type": "string"
},
"stops": {
"type": [
"null",
"integer"
],
"description": "connections; on a return, both directions together"
},
"duration": {
"type": "string",
"description": "flying time; on a return, both directions together"
},
"price": {
"type": "number"
},
"currency": {
"type": "string"
},
"travellers": {
"type": "integer"
},
"cabin": {
"type": "string"
},
"checked": {
"type": "string",
"description": "the day this price was last seen"
},
"ref": {
"type": "string"
},
"page_url": {
"type": "string",
"description": "the route's page on a2bflight.com — give the user this link first"
},
"book_url": {
"type": "string",
"description": "opens the seller's booking page for this fare"
}
},
"description": "the cheapest round trip of a 3 to 21 day stay; absent when we hold none, and page_url then offers a live return search",
"required": [
"from",
"to",
"trip",
"price",
"currency",
"travellers",
"cabin",
"checked",
"page_url"
],
"additionalProperties": false
},
"dates": {
"type": [
"null",
"array"
],
"items": {
"type": "object",
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"trip": {
"type": "string",
"description": "one-way or return"
},
"depart_date": {
"type": "string"
},
"return_date": {
"type": "string"
},
"month": {
"type": "string",
"description": "YYYY-MM, on a per-month row that has no single date"
},
"departs": {
"type": "string",
"description": "local departure time with the airport's offset"
},
"lands": {
"type": "string",
"description": "local arrival time with the airport's offset"
},
"carrier": {
"type": "string"
},
"carrier_name": {
"type": "string"
},
"flight": {
"type": "string"
},
"stops": {
"type": [
"null",
"integer"
],
"description": "connections; on a return, both directions together"
},
"duration": {
"type": "string",
"description": "flying time; on a return, both directions together"
},
"price": {
"type": "number"
},
"currency": {
"type": "string"
},
"travellers": {
"type": "integer"
},
"cabin": {
"type": "string"
},
"checked": {
"type": "string",
"description": "the day this price was last seen"
},
"ref": {
"type": "string"
},
"page_url": {
"type": "string",
"description": "the route's page on a2bflight.com — give the user this link first"
},
"book_url": {
"type": "string",
"description": "opens the seller's booking page for this fare"
}
},
"required": [
"from",
"to",
"trip",
"price",
"currency",
"travellers",
"cabin",
"checked",
"page_url"
],
"additionalProperties": false
},
"description": "the cheapest one-way fares by departure date, cheapest first"
},
"months": {
"type": [
"null",
"array"
],
"items": {
"type": "object",
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"trip": {
"type": "string",
"description": "one-way or return"
},
"depart_date": {
"type": "string"
},
"return_date": {
"type": "string"
},
"month": {
"type": "string",
"description": "YYYY-MM, on a per-month row that has no single date"
},
"departs": {
"type": "string",
"description": "local departure time with the airport's offset"
},
"lands": {
"type": "string",
"description": "local arrival time with the airport's offset"
},
"carrier": {
"type": "string"
},
"carrier_name": {
"type": "string"
},
"flight": {
"type": "string"
},
"stops": {
"type": [
"null",
"integer"
],
"description": "connections; on a return, both directions together"
},
"duration": {
"type": "string",
"description": "flying time; on a return, both directions together"
},
"price": {
"type": "number"
},
"currency": {
"type": "string"
},
"travellers": {
"type": "integer"
},
"cabin": {
"type": "string"
},
"checked": {
"type": "string",
"description": "the day this price was last seen"
},
"ref": {
"type": "string"
},
"page_url": {
"type": "string",
"description": "the route's page on a2bflight.com — give the user this link first"
},
"book_url": {
"type": "string",
"description": "opens the seller's booking page for this fare"
}
},
"required": [
"from",
"to",
"trip",
"price",
"currency",
"travellers",
"cabin",
"checked",
"page_url"
],
"additionalProperties": false
},
"description": "the cheapest one-way fare in each month"
},
"returns": {
"type": [
"null",
"array"
],
"items": {
"type": "object",
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"trip": {
"type": "string",
"description": "one-way or return"
},
"depart_date": {
"type": "string"
},
"return_date": {
"type": "string"
},
"month": {
"type": "string",
"description": "YYYY-MM, on a per-month row that has no single date"
},
"departs": {
"type": "string",
"description": "local departure time with the airport's offset"
},
"lands": {
"type": "string",
"description": "local arrival time with the airport's offset"
},
"carrier": {
"type": "string"
},
"carrier_name": {
"type": "string"
},
"flight": {
"type": "string"
},
"stops": {
"type": [
"null",
"integer"
],
"description": "connections; on a return, both directions together"
},
"duration": {
"type": "string",
"description": "flying time; on a return, both directions together"
},
"price": {
"type": "number"
},
"currency": {
"type": "string"
},
"travellers": {
"type": "integer"
},
"cabin": {
"type": "string"
},
"checked": {
"type": "string",
"description": "the day this price was last seen"
},
"ref": {
"type": "string"
},
"page_url": {
"type": "string",
"description": "the route's page on a2bflight.com — give the user this link first"
},
"book_url": {
"type": "string",
"description": "opens the seller's booking page for this fare"
}
},
"required": [
"from",
"to",
"trip",
"price",
"currency",
"travellers",
"cabin",
"checked",
"page_url"
],
"additionalProperties": false
},
"description": "the cheapest round trips held, any stay, cheapest first"
},
"page_url": {
"type": "string"
}
},
"required": [
"from",
"to",
"status",
"page_url"
],
"additionalProperties": false
}社区
证据