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

已驗證STDIO僅桌面金融資料與分析

概覽

AI 產生的概覽

本機 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 的網路;未設定金鑰時以僅探索模式執行。
安裝前請注意
每次付費工具呼叫都會從設定的錢包支出 USDC,失控的代理迴圈可能耗盡儲值餘額。EVM_PRIVATE_KEY 和 SVM_PRIVATE_KEY 以明文存放在用戶端設定中,應使用專用的低餘額消費錢包,切勿使用主錢包。簽章後的付款載荷會傳送至服務商伺服器。目錄中部分項目為訂閱或贊助層級,費用遠高於單次呼叫。

安裝

在 SourceWeft 中

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

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 impact
  • get_v1_stablecoins — total market cap, per-coin supply, chain distribution
  • get_v1_onchain_btc — Bitcoin on-chain metrics (hash-rate, mempool, miner flows)
  • get_v1_bittensor_leaderboard — top-100 Bittensor miners by emission
  • get_v1_mantis_realized_accuracy — MANTIS subnet (UID 253) realized accuracy track-record
  • get_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):

json
{  "mcpServers": {    "carbon-cashmere": {      "command": "npx",      "args": ["-y", "@carbon-cashmere/x402-mcp"],      "env": {        "EVM_PRIVATE_KEY": "0x_your_evm_private_key_here",        "SVM_PRIVATE_KEY": "your_base58_solana_private_key_here_optional"      }    }  }}

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_KEY sits 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.
  • 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

Claude Desktop          @carbon-cashmere/x402-mcp        api.carbon-cashmere.de     |                          (your machine)                 (our server)     |  call get_v1_news        |                                 |     |------------------------->|  GET /v1/news                   |     |                          |-------------------------------->|     |                          |  402 + PAYMENT-REQUIRED         |     |                          |<--------------------------------|     |                          |  sign with EVM_PRIVATE_KEY      |     |                          |  GET /v1/news + PAYMENT-SIG     |     |                          |-------------------------------->|     |                          |  200 OK + data                  |     |                          |<--------------------------------|     |  formatted data          |                                 |     |<-------------------------|                                 |

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).

X402_TOOL_LIMITWhat you get
50Minimal footprint — top free + bundles + a few high-revenue endpoints
100 (default)High-revenue tier — adds $10–$50 subscriptions, sponsor tiers, weekly/daily reports, on-chain bundles
177Everything — adds per-coin specialized routes (vol-regime/{coin}, hurst/{coin}, trend/{coin}, …). Recommended only when your agent knows which coin to query.

Override:

json
"env": {  "X402_TOOL_LIMIT": "177"}

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

VariableRequiredDefaultDescription
EVM_PRIVATE_KEYone of—0x-prefixed EVM key for Base/Polygon/Arbitrum
SVM_PRIVATE_KEYone of—base58 Solana keypair
X402_API_BASEnohttps://api.carbon-cashmere.deAPI base URL
X402_TOOL_LIMITno100Max tools exposed (1-177)
X402_LOG_LEVELnoinfodebug | info | warn | error

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

來源:README.md,提交 40d1131

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

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

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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