
X402 Mcp
io.github.CarbonCashmere由 GitHub 账号 CarbonCashmere 发布v0.2.2更新于 Oct 24, 2026
177 crypto market intel endpoints with auto x402 USDC micropayments from your AI agent
概览
本地 MCP 服务器,为 AI 助手提供 177 个加密市场情报接口,每次调用从配置的钱包以 USDC 按次付费。
- 可以做什么
- 获取带情绪与市场影响分析的加密新闻,以及稳定币供应量和链上分布数据。读取比特币链上指标,如算力、内存池和矿工资金流。查询 Bittensor 矿工排行榜和子网准确率历史记录。获取聚合市场情报快照及 170 多个其他研究接口。按配置暴露目录中的部分工具,默认显示前 100 个。
- 适用场景
- 当助手需要按需的加密市场研究,且你愿意用已充值钱包支付少量按次 USDC 费用、而不使用 API 密钥或订阅时使用。
- 运行要求
- 通过 npx(Node.js)在本地运行。需要 EVM_PRIVATE_KEY 中已充值的 EVM 钱包私钥,用于 Base、Polygon 或 Arbitrum 的 USDC 支付;SVM_PRIVATE_KEY 为 Solana 可选。可选设置包括 X402_TOOL_LIMIT、X402_API_BASE 和 X402_LOG_LEVEL。需要访问服务商 API 的网络;未设置密钥时以仅发现模式运行。
安装
在 SourceWeft 中
- 打开 控制台中的 X402 Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@carbon-cashmere/x402-mcp
MCP server that exposes Carbon & Cashmere's 177 crypto market intelligence endpoints to your AI agent — with automatic x402 USDC micropayments from your wallet.
What you get
When this MCP is installed, your AI agent can call tools like:
get_v1_news— analyzed crypto news with sentiment + market impactget_v1_stablecoins— total market cap, per-coin supply, chain distributionget_v1_onchain_btc— Bitcoin on-chain metrics (hash-rate, mempool, miner flows)get_v1_bittensor_leaderboard— top-100 Bittensor miners by emissionget_v1_mantis_realized_accuracy— MANTIS subnet (UID 253) realized accuracy track-recordget_v1_intel_snapshot— aggregated market intel snapshot- … plus subscriptions ($10/day, $50/week, $200/month), sponsor tiers ($500–$50000), and 170+ research endpoints priced $0.003 – $0.50 per call
177 paid endpoints total. Default exposes top 100 (curated by revenue + popularity). Set X402_TOOL_LIMIT=177 to expose all incl. per-coin variants.
Each tool invocation triggers a single USDC micropayment from your configured wallet. No subscription. No API key. Pay only for what you use.
Install
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Restart Claude Desktop. The top 100 Carbon & Cashmere tools (curated by revenue + popularity) appear in your tool palette.
Cursor / Cline / Continue
Same JSON config, paste into your MCP settings panel.
Wallet setup
Security: use a dedicated spending wallet, not your main wallet. Your
EVM_PRIVATE_KEYsits in plaintext in your Claude Desktop config. Any process on the host with read access to that file gets the key. Treat it as a hot wallet you would not mind losing: fund it with the small amount you plan to spend ($10–$50 in USDC), never with your main holdings.
- EVM_PRIVATE_KEY (required for Base / Polygon / Arbitrum / World / Avalanche payments)
- 0x-prefixed hex string (e.g.
0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80) - Fund with USDC on Base mainnet (cheapest, fastest, ~$0.0001 gas per call)
- One-time cost: ~$10 USDC covers 200+ tool calls
- Hard cap = wallet balance. A runaway agent loop can spend the funded amount but no more; signing is bounded by USDC available on the chain.
- 0x-prefixed hex string (e.g.
- SVM_PRIVATE_KEY (optional, for Solana payments)
- base58-encoded Solana keypair bytes
- Only needed if a tool routes Solana-only
Network whitelist. The MCP server only signs payments for networks that
appear in the API's 402-response accepts[] array (currently Base, Polygon,
Arbitrum, World Chain, Solana, Algorand, Stellar). Requests routed to any
other chain are rejected at the signing layer — your key cannot be tricked
into signing for an arbitrary network.
Keys never leave your machine. They live only in your Claude Desktop config and the MCP process running locally. Payment signing happens on your device; only the signed EIP-712 / SIWS payload travels to Carbon & Cashmere.
Discovery-only mode (no keys set)
If you start the MCP server without EVM_PRIVATE_KEY and without
SVM_PRIVATE_KEY, it runs in discovery-only mode: tool registration
works, free endpoints work, paid tool invocations surface a 402 error to the
agent. Useful for: evaluating the tool catalog, MCP marketplace introspection
(Glama, npm scrapers), or running in a CI/test environment without funding
a wallet.
How it works
Built on official Coinbase x402 v2 protocol. Settlement happens on Base USDC (or your chosen chain). Typical latency: ~2-3 seconds per call (one-shot payment + data).
Tool count
By default, the top 100 tools are exposed — curated server-side by a scoring that combines actual settlement volume, USD revenue, exploration weighting, and description quality (the catalog re-ranks without requiring an npm re-publish).
Override:
Why a default cap: too many MCP tools can degrade an agent's tool-selection accuracy. 100 is the empirical sweet spot for Claude 3.5 Sonnet and newer.
Configuration env
Security
- Keys never leave your machine. The MCP server runs locally as a child process of Claude Desktop.
- Pay-per-call cap. Each call costs $0.003–$0.50. Even a runaway loop is bounded by wallet balance.
- No off-chain credentials. No API keys. No OAuth. Pure on-chain settlement.
- Open source. Audit the code yourself: github.com/CarbonCashmere/x402-mcp
License
MIT — see LICENSE.
Links
- Carbon & Cashmere API: https://api.carbon-cashmere.de
- x402 protocol: https://github.com/coinbase/x402
- MCP protocol: https://modelcontextprotocol.io
来源:README.md,提交 40d1131
工具
0版本历史
1- v0.2.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分