Onward Flights

Search real flights and buy an onward ticket (proof of onward travel), paid in USDC over MPP

我该使用它吗

质量与安全性

A
描述质量
93%
模式完整度
100%
命名质量
93%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~536token 数(工具定义)
~1.2 KB典型响应大小
对注意力的影响极小(占 128k 上下文窗口的 0.42%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "onward-flights": {
      "url": "https://onward.flights/mcp"
    }
  }
}

远程端点

https://onward.flights/mcpstreamable-http

它能做什么

工具清单

工具(3)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢find_airports(query)

Look up 3 letter IATA airport codes by city, airport or country name.

输入模式

{
  "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.

输入模式

{
  "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.

输入模式

{
  "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"
  ]
}

社区

评价此服务器

证据

最近观测

已验证未记录版本3 个工具