
Clawswap
io.github.WarTech9由 GitHub 账号 WarTech9 发布v0.1.5更新于 Oct 24, 2026
Cross-chain swaps between Solana and Base for AI agents paid for via via x402 micropayments.
概览
一个本地 MCP 服务器,让助手使用已配置的钱包密钥在 Solana 与 Base 之间报价、执行并追踪跨链代币桥接。
- 可以做什么
- 在不付款、不执行的情况下报价 Solana 与 Base 之间的桥接,可指定金额、代币、链和滑点。执行桥接,一次调用完成报价、付款、签名、提交和结算,可指定收款地址和目标代币。按请求 ID 查询此前发起的桥接状态。
- 适用场景
- 当助手需要在 Solana 与 Base 之间转移 USDC、USDT、SOL、ETH 或 WETH,或在真正转账前预览和估算费用时使用。它适合由智能体驱动的跨链支付,而非通用钱包管理。
- 运行要求
- 通过 npx 从 npm 包在本地运行,需要 Node.js。Solana 到 Base 的桥接需要 SOLANA_PRIVATE_KEY 中的 Base58 编码 Solana 私钥,Base 到 Solana 的桥接需要 BASE_PRIVATE_KEY 中的 0x 前缀 Base/EVM 私钥。可选的 SOLANA_RPC_URL 和 BASE_RPC_URL 可覆盖默认公共 RPC 端点。需要访问两条链的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Clawswap,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@clawswap/mcp-server
[npm version] [License: MIT] [npm downloads]
Send, swap, and bridge tokens cross-chain between Solana and Base — gasless, in one tool call. Built for AI agents using the Model Context Protocol (MCP).
What can it do?
Ask your AI agent any of these:
- "Send 10 USDC from Solana to Base"
- "How much would it cost to bridge 100 USDC to Base?"
- "Transfer my SOL to Base as ETH"
- "Swap 50 USDT from Base to Solana"
- "Move my stablecoins cross-chain"
The server handles the entire flow: quote → payment → signing → submission → settlement.
Installation
Claude Desktop
Add to your claude_desktop_config.json:
Claude Code
Then set environment variables:
Cursor
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
OpenAI Codex
Or add to ~/.codex/config.toml:
Antigravity
Add to ~/.gemini/antigravity/mcp_config.json:
Smithery
Supports multiple clients: claude, cursor, windsurf, cline, vscode, and more.
Tools
clawswap_bridge
Bridge tokens between Solana and Base. Handles the entire flow automatically.
clawswap_quote
Preview a bridge quote without executing. Free, no payment required.
Same parameters as clawswap_bridge minus recipient.
clawswap_status
Check the status of a previously initiated bridge.
Environment Variables
You only need keys for the direction(s) you want to bridge. The server starts with whatever is configured.
Fees
- Solana → Base: $0.50 USDC (paid automatically via x402 protocol, gas sponsored by ClawSwap)
- Base → Solana: Free (agent pays ~$0.001 Base gas directly)
Supported Tokens
- Solana: USDC, USDT, SOL
- Base: USDC, USDT, ETH, WETH
License
MIT
来源:README.md,提交 79b9f04
工具
0版本历史
1- v0.1.5最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分