
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 分