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
}社群
證據