
Clawallex Mcp
io.github.Clawallex-Tech由 GitHub 帳號 Clawallex-Tech 發布v1.0.9更新於 Oct 24, 2026
MCP Server for Clawallex payment API - Pay for anything with USDC virtual cards
概覽
Clawallex MCP 伺服器讓 AI 助理建立與管理以 USDC 儲值的虛擬支付卡,並用於線上結帳。
- 可以做什麼
- 完成初始化並綁定代理身分,查詢錢包餘額、USDC 儲值地址,以及卡片與交易清單、餘額和風控設定(交易限額、允許與禁止的商戶類別碼)。為單次付款建立一次性虛擬卡,或為訂閱建立可儲值卡並為其儲值。取得卡片詳情並解密卡號與 CVV 以填寫結帳表單。進階鏈上 x402 工具可建立卡片訂單並以自訂冪等鍵為串流卡儲值。
- 適用情境
- 當你希望助理用 USDC 餘額透過虛擬卡為線上服務或訂閱付款(例如購買 API 額度或設定週期性扣款),且能接受由它處理卡片資料時使用。
- 執行需求
- 本機需 Node.js 22 或更新版本,可透過 npx 或全域 npm 安裝執行。需要 Clawallex 帳戶及 API 金鑰組,透過 CLAWALLEX_API_KEY 與 CLAWALLEX_API_SECRET(或命令列參數)提供。需能存取 Clawallex API;可選設定基礎 URL、用戶端 ID 與傳輸方式。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Clawallex Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@clawallex/mcp-server
MCP Server for the Clawallex payment API. Pay for anything with USDC — Clawallex converts your stablecoin balance into virtual cards that work at any online checkout.
Quick Start
1. Install
Or use directly via npx (no install needed).
2. Get API Credentials
Sign up at Clawallex and create an API Key pair (api_key + api_secret).
3. Configure Your AI Client
Choose your client and add the configuration:
Claude Desktop
Add to your claude_desktop_config.json:
Claude Code
Codex CLI
Add to your ~/.codex/config.toml or .codex/config.toml:
Gemini CLI
Add to your ~/.gemini/settings.json:
OpenCode
Add to your opencode.json:
4. Initialize Connection
After configuring, tell your AI agent:
"Run clawallex_setup to check the connection"
clawallex_setup verifies your API Key and automatically binds a client_id for data isolation. You only need to do this once.
5. Start Using
One-time payment:
"Pay $50 for OpenAI API credits"
Agent calls clawallex_pay → creates virtual card → get_card_details → decrypt_card_data → fills checkout.
Subscription:
"Set up a $100 card for AWS monthly billing"
Agent calls clawallex_subscribe → creates reloadable card → clawallex_refill when balance is low.
6. Smoke Test
Verify everything works:
Typical Flows
Payment Flow (Mode A — Wallet Balance)
Subscription Flow
Tools
High-Level (Recommended)
Identity & Binding
Wallet & Query
Advanced (x402 On-Chain)
CLI Options
CLI arguments take precedence over environment variables. You can mix both — e.g. set credentials via env vars and override --transport via CLI.
Requirements
- Node.js >= 22
Client ID
client_id is the agent's stable identity, separate from the API Key. It is sent as X-Client-Id on every /payment/* request.
Key concept: An agent can have multiple API Keys (for rotation/revocation), but the client_id never changes. When switching to a new API Key, keep using the same client_id — the new key auto-binds on first request.
Data isolation:
- Wallet: user-level, shared — all agents using the same API key see the same wallet balance
- Cards & Transactions:
client_id-scoped — each agent only sees data it created
Binding rules:
clawallex_setupautomatically callsbootstrapto bindclient_idon first use- Once bound, the
client_idcannot be changed for that API Key (TOFU — Trust On First Use) - Losing the
client_id= losing access to all cards created under it
Resolution order at startup:
--client-id <value>CLI argument (must be >= 36 characters)~/.clawallex-mcp/client_ids.jsonlocal file (from a previous run)- Auto-generate UUID v4 and save locally
Recommendation: Always pass --client-id explicitly in production to avoid relying on the local file.
Transport Modes
stdio (default — local agent / Claude Desktop)
SSE (remote agent, compatible with older MCP clients)
Agent connects to: http://localhost:18080/sse
Streamable HTTP (MCP SDK 1.0+ recommended)
Agent connects to: http://localhost:18080/mcp
Local Development
Security
Authentication
Every API request is signed with HMAC-SHA256:
Signing is handled automatically by the MCP server.
Card Details Encryption
get_card_details returns encrypted_sensitive_data containing card PAN and CVV. Use decrypt_card_data to decrypt:
- Derive key:
HKDF-SHA256(ikm=api_secret, info="clawallex/card-sensitive-data/v1", length=32) - Decrypt:
AES-256-GCM(key, nonce, ciphertext) - Result:
{ "pan": "4111...", "cvv": "123" }
Decrypted PAN/CVV must NEVER be displayed to the user — only used for filling checkout forms.
來源:README.md,提交 733425a
工具
0版本歷史
1- v1.0.9最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。