Onward Flights
Search real flights and buy an onward ticket (proof of onward travel), paid in USDC over MPP
¿Debería usar esto?
Calidad y seguridad
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"onward-flights": {
"url": "https://onward.flights/mcp"
}
}
}Puntos de conexión remotos
https://onward.flights/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (3)
🟢find_airports(query)
Look up 3 letter IATA airport codes by city, airport or country name.
Esquema de entrada
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "City, airport, country or code, e.g. \"Bangkok\""
}
},
"required": [
"query"
]
}🟢search_flights(origin, destination, date)
Find one-way flights to use as an onward ticket. Returns up to 10 flights, each with an id to buy and its price in USD.
Esquema de entrada
{
"type": "object",
"properties": {
"origin": {
"type": "string",
"description": "IATA code of the airport leaving the country the traveller is entering, e.g. \"BKK\""
},
"destination": {
"type": "string",
"description": "IATA code of where the onward flight goes, e.g. \"SIN\""
},
"date": {
"type": "string",
"description": "Departure date, YYYY-MM-DD, within 9 months. Defaults to 14 days from now."
}
},
"required": [
"origin",
"destination"
]
}🟢buy_ticket(ticket_id, first_name, last_name, email, tx_hash, ...)
Buy the ticket for a flight from search_flights, paid in USDC. Call it first without payment to get the price, wallet address and MPP challenges. After sending the USDC, call it again with tx_hash and chain (or an MPP credential in _meta "org.paymentauth/credential"). x402 clients can instead sign one of the offers in error.data.x402 and retry with the PaymentPayload in _meta "x402/payment", with no gas needed. Returns the ticket link and PDF.
Esquema de entrada
{
"type": "object",
"properties": {
"ticket_id": {
"type": "string",
"description": "The flight id from search_flights"
},
"first_name": {
"type": "string",
"description": "Passenger's first name, as on their passport"
},
"last_name": {
"type": "string",
"description": "Passenger's last name, as on their passport"
},
"email": {
"type": "string",
"description": "Optional, also emails the ticket here"
},
"tx_hash": {
"type": "string",
"description": "Hash of the USDC transfer that paid for it"
},
"chain": {
"type": "string",
"enum": [
"base",
"ethereum",
"optimism",
"polygon"
],
"description": "Chain the USDC was sent on, defaults to base"
}
},
"required": [
"ticket_id",
"first_name",
"last_name"
]
}Comunidad
Evidencia