
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 分
请在仓库或注册中心条目中声明许可证。