
Mcp X402
io.github.codespar由 GitHub 帳號 codespar 發布v0.1.5更新於 Oct 27, 2026
DEPRECATED: no live endpoint (api.x402.org does not resolve)
概覽
已棄用的本機 MCP 伺服器,面向 x402 HTTP 微支付協定;其唯一端點已無法解析,工具無法存取任何服務。
- 可以做什麼
- 為受 402 保護的資源付款,並核驗 x402 付款是否已在鏈上結算
- 建立、讀取、列出與刪除端點的 x402 付費牆設定
- 查詢 USDC 餘額,瀏覽與檢視付款紀錄
- 列出支援的區塊鏈網路、代幣與 facilitator
- 注意:README 說明此套件已棄用,且沒有任何工具能存取服務。
- 適用情境
- 僅當你已有可用的 x402 facilitator 端點、想把它當作參考或起點時使用;依目前發布狀態不適合用於真實的代理付款。
- 執行需求
- 透過 npx 從 npm 套件 @codespar/mcp-x402 在本機執行,通常設定於 Claude Desktop、Claude Code、Cursor 或 VS Code。需要 facilitator API 金鑰(X402_API_KEY)與錢包地址(X402_WALLET_ADDRESS),可選 X402_NETWORK(base 或 solana)。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp X402,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@codespar/mcp-x402
Deprecated: no live endpoint. Measured on 2026-09-27 against two public DNS resolvers (8.8.8.8 and 1.1.1.1):
api.x402.org, the only host this server calls, does not resolve in DNS. x402 has no central API: it is an HTTP 402 protocol, and each seller picks the facilitator that verifies payment. No tool in this server reaches a service. The package is deprecated on npm and stays in this repository for reference only. If you have a working endpoint, point the server at it withX402_BASE_URL. To bring the package back, open an issue in mcp-dev-latam with the provider's documented base URL.
MCP server for x402 — HTTP-native micropayments protocol by Coinbase (USDC on Base/Solana)
What is x402?
x402 is an open protocol that enables machine-to-machine micropayments at the HTTP layer. When an AI agent requests a resource and receives HTTP 402 Payment Required, it automatically sends a USDC payment on-chain and retries — no checkout UI, no merchant integration, pure HTTP.
This is the payment rail purpose-built for agentic commerce.
Quick Start
Claude Desktop
Add to ~/.config/claude/claude_desktop_config.json:
Claude Code
Cursor / VS Code
Add to .cursor/mcp.json or .vscode/mcp.json:
Tools (10)
Authentication
x402 uses a Bearer API key from a registered facilitator.
Get your credentials
- Visit the x402 documentation
- Set up a facilitator or use Coinbase's hosted facilitator
- Generate an API key
- Get your wallet address (Base or Solana)
- Set the environment variables
Environment Variables
Use Cases
- Agent accessing premium APIs — AI agent pays per-request for data feeds, LLM APIs, or premium content
- Micropayment monetization — Protect your API endpoints with sub-cent paywalls
- Machine-to-machine commerce — Agents autonomously purchasing compute, data, or services
Roadmap
v0.2 (planned)
create_subscription— Set up recurring micropayments for an endpointestimate_cost— Estimate cost before paying for a resourcebatch_pay— Pay for multiple resources in a single transaction
v0.3 (planned)
- Multi-token support (ETH, SOL beyond USDC)
- Streaming payments for long-running agent tasks
Want to contribute? Open a PR or request a tool.
Links
Enterprise
Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.
License
MIT
來源:packages/crypto/x402/README.md,提交 d0a519a
工具
0版本歷史
2- v0.1.5最新Sep 27, 2026
- v0.1.4Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分