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.

已驗證STDIO僅桌面雲端與基礎設施金融

概覽

AI 產生的概覽

一個本機 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 端點。需要存取兩條鏈的網路。
安裝前請注意
伺服器在環境變數中持有兩條鏈的原始私鑰,因而完全控制這些錢包;請使用專用的低餘額錢包。橋接會簽章並提交真實交易並轉移資金。Solana 到 Base 的橋接需支付 0.50 USDC,透過 x402 自動付款;Base 到 Solana 的橋接需自行支付 Base 手續費。執行前應核對滑點與收款地址預設值。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Clawswap,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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:

json
{  "mcpServers": {    "clawswap": {      "command": "npx",      "args": ["-y", "@clawswap/mcp-server"],      "env": {        "SOLANA_PRIVATE_KEY": "your-base58-solana-private-key",        "BASE_PRIVATE_KEY": "0x-your-hex-base-private-key"      }    }  }}

Claude Code

bash
claude mcp add clawswap -- npx -y @clawswap/mcp-server

Then set environment variables:

bash
export SOLANA_PRIVATE_KEY="your-base58-solana-private-key"export BASE_PRIVATE_KEY="0x-your-hex-base-private-key"

Cursor

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):

json
{  "mcpServers": {    "clawswap": {      "command": "npx",      "args": ["-y", "@clawswap/mcp-server"],      "env": {        "SOLANA_PRIVATE_KEY": "your-base58-solana-private-key",        "BASE_PRIVATE_KEY": "0x-your-hex-base-private-key"      }    }  }}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

json
{  "mcpServers": {    "clawswap": {      "command": "npx",      "args": ["-y", "@clawswap/mcp-server"],      "env": {        "SOLANA_PRIVATE_KEY": "your-base58-solana-private-key",        "BASE_PRIVATE_KEY": "0x-your-hex-base-private-key"      }    }  }}

OpenAI Codex

bash
codex mcp add clawswap -- npx -y @clawswap/mcp-server

Or add to ~/.codex/config.toml:

toml
[mcp_servers.clawswap]command = "npx"args = ["-y", "@clawswap/mcp-server"]env = { SOLANA_PRIVATE_KEY = "your-base58-solana-private-key", BASE_PRIVATE_KEY = "0x-your-hex-base-private-key" }

Antigravity

Add to ~/.gemini/antigravity/mcp_config.json:

json
{  "mcpServers": {    "clawswap": {      "command": "npx",      "args": ["-y", "@clawswap/mcp-server"],      "env": {        "SOLANA_PRIVATE_KEY": "your-base58-solana-private-key",        "BASE_PRIVATE_KEY": "0x-your-hex-base-private-key"      }    }  }}

Smithery

bash
npx -y @smithery/cli install @clawswap/mcp-server --client claude

Supports multiple clients: claude, cursor, windsurf, cline, vscode, and more.

Tools

clawswap_bridge

Bridge tokens between Solana and Base. Handles the entire flow automatically.

ParameterTypeRequiredDescription
amountstringyesHuman-readable amount, e.g. "100", "0.5"
tokenstringyesToken symbol: USDC, USDT, SOL, ETH, WETH
from"solana" | "base"yesSource chain
to"solana" | "base"yesDestination chain
recipientstringnoDestination address (defaults to agent's own)
destinationTokenstringnoDestination token (defaults to same or USDC)
slippagenumbernoSlippage tolerance 0-1 (default 0.01)

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.

ParameterTypeRequiredDescription
requestIdstringyesThe requestId from clawswap_bridge

Environment Variables

VariableRequiredDescription
SOLANA_PRIVATE_KEYFor Solana→BaseBase58-encoded Solana private key
BASE_PRIVATE_KEYFor Base→Solana0x-prefixed hex Base/EVM private key
SOLANA_RPC_URLNoSolana RPC (default: https://api.mainnet-beta.solana.com)
BASE_RPC_URLNoBase RPC (default: https://mainnet.base.org)

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
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.5最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分