Cleave for Agents: token swaps, cross-chain swaps and gas top-ups

fi.cleave由 cleave.fi 发布官方发布者v1.0.0更新于 Oct 26, 2026

Swap, bridge and get gas on 6 EVM chains. Each plan states its outcome before you sign. No API key.

已验证Streamable HTTP可网页运行云端与基础设施金融

概览

AI 生成的概览

Cleave 在六条 EVM 链上规划代币兑换、跨链桥接和原生 Gas 充值,返回未签名交易供用户自己的钱包签名。

可以做什么
  • 规划同链兑换、跨链兑换或桥接,以及 Gas 充值,并返回待签名的未签名交易
  • 按符号或合约地址查找代币,返回精度,并在与已上架代币相似时给出提示
  • 按链、交易哈希和 requestId 追踪已规划或已发送的兑换、桥接或 Gas 订单
  • 为持有 USDC 但没有 Gas 的钱包获取原生 Gas(ETH、BNB 或 POL),返回一笔待签名的 USDC 授权
适用场景
适合用户想要兑换代币、在以太坊、Arbitrum、Base、BNB Chain、Polygon 或 Optimism 之间转移资产、用 USDC 补充 Gas,或确认转账是否到账的场景。其他链上没有可用路由。
运行要求
远程 MCP 端点;未声明需要 API 密钥或环境变量。用户需在六条支持链之一拥有钱包,用于签署返回的交易或 USDC 授权。
安装前请注意
这些工具会动用真实资金:签署返回的交易或 USDC 授权会花费用户的代币或 USDC。方案在 validUntil 时间后失效,过期需重新规划;部分路由可能无法成交,只能数小时后退款。使用受 Cleave 使用条款和隐私政策约束。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Cleave for Agents: token swaps, cross-chain swaps and gas top-ups,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/fi.cleave%2Fswap/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "cleave-for-agents-token-swaps-cross-chai": {
      "type": "http",
      "url": "https://api.cleave.fi/mcp"
    }
  }
}

工具

4

cleave_plan_swap

Plan a swap, bridge or gas top-up

Plans a token swap on one chain, a cross-chain swap or bridge, or a native-gas top-up on Ethereum, Arbitrum, Base, BNB Chain, Polygon or Optimism, and returns unsigned transactions for the given wallet to sign. It fits when the user wants to exchange tokens, move them between these chains, or get ETH, BNB or POL for gas. It sends nothing and moves no funds. The answer leads with blocking notices and warnings, then gives the route's outcome kind (exact or at least a minimum; with a swap on arrival, the token, else a named fallback; where a transfer can go unfilled, a refund of the bridged token on the source chain hours later), every third-party cost except network gas, the expected time, validUntil and the calls in signing order. A blocking notice returns no calls; a warning, or a recipient other than the wallet, sets requiresConfirmation, and the connection's settings can turn either into a refusal. Calls sent after validUntil are stale: they can revert or, on some routes, end in a refund hours later. Amounts are decimal strings in token units; tokens are listed symbols or contract addresses; the recipient defaults to the wallet. Limits set in the connection (a pinned wallet, a per-plan USD cap, listed tokens only) bound every argument. For an ambiguous symbol, cleave_find_token lists the candidates; after sending, cleave_track_swap reports progress. A wallet with no gas can get it with cleave_get_gas.

输入参数amount必填wallet必填buyToken必填recipientsellToken必填toChainIdfromChainId必填maxSlippageBps

cleave_track_swap

Track a planned swap or transfer

Reports the status of a swap, bridge or gas top-up that was planned with cleave_plan_swap and then sent, or ordered with cleave_get_gas: its state (for example pending, in flight, delivered, refund pending or refunded), what arrived against the plan and on which chain, and the next action or when to check again. It takes the chain and transaction hash, plus the plan's requestId when known, or for a gas top-up the requestId alone; a transaction to a contract outside Cleave's published list is reported as such. It fits when the user asks whether such a transfer arrived, and before any re-send, because re-sending a plan that is still in flight can pay twice. It reports states only and returns no transactions.

输入参数txHashchainIdrequestId

cleave_find_token

Find a token's contract address

Finds a token by symbol or contract address on Ethereum, Arbitrum, Base, BNB Chain, Polygon or Optimism and returns its address, decimals and whether it is on Cleave's token list, with a flag when it resembles a listed token. A symbol shared by several listed tokens returns every candidate by address instead of picking one. An unlisted token is found only by its address and comes back flagged, without a name or symbol. It fits before cleave_plan_swap when the user names a token by symbol and the address is unknown.

输入参数query必填chainId必填

cleave_get_gas

Get native gas with USDC

Gets native gas (ETH, BNB or POL) on Ethereum, Arbitrum, Base, BNB Chain, Polygon or Optimism for a wallet that holds USDC on Ethereum, Arbitrum, Base, Optimism or Polygon but has no gas to send transactions. Called with the paying chain, the receiving chain, the recipient and a USDC amount, it returns an offer: the fee, the minimum native amount, the deadline, the order and one USDC authorization for the wallet to sign; signing costs no gas. Called again with the offer and the signature, it passes the signed order to Cleave's relayer, which executes it through a contract made for that one order, and returns a requestId for cleave_track_swap. On one chain the recipient gets at least the minimum or nothing moves; from another chain it gets the native coin at the minimum, else USDC on arrival if the arrival swap fails. An order not executed by its deadline is refunded to the refund address, or, if paid from another chain and not filled, refunded hours later. When the wallet already holds some gas, cleave_plan_swap plans a swap to the native coin.

输入参数offeramountwalletchainIdrefundTorecipientsignaturepayChainId

版本历史

1
  1. v1.0.0最新Oct 26, 2026

评分

已满足适用检查项的 72%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分

    请在注册中心条目中发布图标。

  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。