whatevertrips
Cheap flights in Europe and multi-city trip plans from cached airline prices, with shareable links.
我该使用它吗
质量与安全性
发现(1)
- LOW在 search_flights 中
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"flights": {
"url": "https://api.whatevertrips.com/mcp"
}
}
}远程端点
https://api.whatevertrips.com/mcpstreamable-http它能做什么
工具清单
工具(4)
🟢plan_trips(from, from_cities, date_from, date_to, legs, ...)
Generate cheap round trips through several cities, from cached flights. Accepts one departure city (from) or up to 5 (from_cities); with several, a trip can return to a different one of them. Returns trips sorted by total price. To share or book a trip, pass its flight_ids to save_trip.
输入模式
{
"type": "object",
"properties": {
"from": {
"type": "string",
"description": "Departure city name, exactly as returned by search_cities. Give from or from_cities."
},
"from_cities": {
"type": [
"null",
"array"
],
"items": {
"type": "string"
},
"description": "Several departure cities (up to 5), exactly as returned by search_cities. A trip leaves from one of them and may return to any of them."
},
"date_from": {
"type": "string",
"description": "Earliest departure date, YYYY-MM-DD."
},
"date_to": {
"type": "string",
"description": "Latest return date, YYYY-MM-DD."
},
"legs": {
"type": "integer",
"description": "Number of outbound flights before the flight home (1-7). The round trip adds one flight home, so the trip has legs+1 flights total."
},
"min_nights": {
"type": "integer",
"description": "Minimum nights in each city, default 2."
},
"max_nights": {
"type": "integer",
"description": "Maximum nights in each city, default 3."
},
"include_cities": {
"type": [
"null",
"array"
],
"items": {
"type": "string"
},
"description": "Only visit these cities."
},
"exclude_cities": {
"type": [
"null",
"array"
],
"items": {
"type": "string"
},
"description": "Never visit these cities."
},
"include_countries": {
"type": [
"null",
"array"
],
"items": {
"type": "string"
},
"description": "Only visit cities in these ISO country codes."
},
"exclude_countries": {
"type": [
"null",
"array"
],
"items": {
"type": "string"
},
"description": "Never visit cities in these ISO country codes."
},
"limit": {
"type": "integer",
"description": "Maximum number of trips to return, default 5, max 10."
}
},
"required": [
"date_from",
"date_to",
"legs"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"trips": {
"type": [
"null",
"array"
],
"items": {
"type": "object",
"properties": {
"total_price": {
"type": "number"
},
"currency": {
"type": "string"
},
"flights": {
"type": [
"null",
"array"
],
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"from": {
"type": "string"
},
"from_airport": {
"type": "string"
},
"to": {
"type": "string"
},
"to_airport": {
"type": "string"
},
"departure": {
"type": "string"
},
"arrival": {
"type": "string"
},
"price": {
"type": "number"
},
"currency": {
"type": "string"
},
"airline": {
"type": "string"
}
},
"required": [
"id",
"from",
"from_airport",
"to",
"to_airport",
"departure",
"arrival",
"price",
"currency",
"airline"
],
"additionalProperties": false
}
},
"flight_ids": {
"type": [
"null",
"array"
],
"items": {
"type": "string"
}
}
},
"required": [
"total_price",
"currency",
"flights",
"flight_ids"
],
"additionalProperties": false
}
},
"note": {
"type": "string"
}
},
"required": [
"trips",
"note"
],
"additionalProperties": false
}🟡save_trip(flight_ids)
Save a trip from flight ids returned by search_flights or plan_trips. Returns a public page with the trip and a booking link on Kiwi.com. Prices are confirmed on the booking site.
输入模式
{
"type": "object",
"properties": {
"flight_ids": {
"type": [
"null",
"array"
],
"items": {
"type": "string"
},
"description": "Flight ids from search_flights or plan_trips, in any order, at least 1 and at most 8."
}
},
"required": [
"flight_ids"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"trip_id": {
"type": "string"
},
"trip_url": {
"type": "string"
},
"book_url": {
"type": "string"
},
"total_price": {
"type": "number"
},
"currency": {
"type": "string"
}
},
"required": [
"trip_id",
"trip_url",
"book_url",
"total_price",
"currency"
],
"additionalProperties": false
}🟢search_cities(query)
Find city names we have flights for. Use the exact name in the other tools.
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "City name prefix, e.g. 'Lond' or 'Sev'."
}
},
"required": [
"query"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"cities": {
"type": [
"null",
"array"
],
"items": {
"type": "string"
}
}
},
"required": [
"cities"
],
"additionalProperties": false
}🟢search_flights(from, to, date_from, date_to, limit)
Cheapest one-way flights between two cities, or from one city to anywhere, from cached airline prices. Dates are a departure window.
输入模式
{
"type": "object",
"properties": {
"from": {
"type": "string",
"description": "Departure city name, exactly as returned by search_cities."
},
"to": {
"type": "string",
"description": "Arrival city name; omit to search anywhere."
},
"date_from": {
"type": "string",
"description": "Earliest departure date, YYYY-MM-DD."
},
"date_to": {
"type": "string",
"description": "Latest departure date, YYYY-MM-DD; defaults to date_from."
},
"limit": {
"type": "integer",
"description": "Maximum number of flights to return, default 20, max 50."
}
},
"required": [
"from",
"date_from"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"flights": {
"type": [
"null",
"array"
],
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"from": {
"type": "string"
},
"from_airport": {
"type": "string"
},
"to": {
"type": "string"
},
"to_airport": {
"type": "string"
},
"departure": {
"type": "string"
},
"arrival": {
"type": "string"
},
"price": {
"type": "number"
},
"currency": {
"type": "string"
},
"airline": {
"type": "string"
}
},
"required": [
"id",
"from",
"from_airport",
"to",
"to_airport",
"departure",
"arrival",
"price",
"currency",
"airline"
],
"additionalProperties": false
}
},
"note": {
"type": "string"
}
},
"required": [
"flights",
"note"
],
"additionalProperties": false
}社区
证据