Mcp X402

io.github.codespar由 GitHub 帳號 codespar 發布v0.1.5更新於 Oct 27, 2026

DEPRECATED: no live endpoint (api.x402.org does not resolve)

已驗證STDIO僅桌面金融開發者工具

概覽

AI 產生的概覽

已棄用的本機 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)。
安裝前請注意
此套件已棄用,其唯一主機無法透過 DNS 解析,工具無法存取服務。這些工具設計用於在鏈上發送 USDC 付款以及建立或刪除付費牆,因此任何可用的設定都會花費真實資金並變更端點設定。它需要以環境變數提供 facilitator API 金鑰與錢包地址。

安裝

在 SourceWeft 中

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

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 with X402_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)

[npm] [License: MIT]

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:

json
{  "mcpServers": {    "x402": {      "command": "npx",      "args": ["-y", "@codespar/mcp-x402"],      "env": {        "X402_API_KEY": "your-key",        "X402_WALLET_ADDRESS": "your-wallet-address"      }    }  }}

Claude Code

bash
claude mcp add x402 -- npx @codespar/mcp-x402

Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

json
{  "servers": {    "x402": {      "command": "npx",      "args": ["-y", "@codespar/mcp-x402"],      "env": {        "X402_API_KEY": "your-key",        "X402_WALLET_ADDRESS": "your-wallet-address"      }    }  }}

Tools (10)

ToolPurpose
pay_requestPay for a 402-protected resource.
verify_paymentVerify if a x402 payment was received and settled on-chain
create_paywallCreate a x402 paywall configuration for an endpoint.
get_paywallGet paywall configuration for a specific URL
list_paywallsList all configured x402 paywalls
delete_paywallRemove a x402 paywall from an endpoint
get_balanceGet available USDC balance for x402 payments
list_paymentsList x402 payment history with optional filters
get_paymentGet details of a specific x402 payment
get_supported_networksList supported blockchain networks, tokens, and facilitators for x402 payments

Authentication

x402 uses a Bearer API key from a registered facilitator.

Get your credentials

  1. Visit the x402 documentation
  2. Set up a facilitator or use Coinbase's hosted facilitator
  3. Generate an API key
  4. Get your wallet address (Base or Solana)
  5. Set the environment variables

Environment Variables

VariableRequiredDescription
X402_API_KEYYesAPI key for x402 facilitator
X402_WALLET_ADDRESSYesWallet address for sending/receiving payments
X402_NETWORKNoBlockchain network: base (default) or solana

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 endpoint
  • estimate_cost — Estimate cost before paying for a resource
  • batch_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
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v0.1.5最新Sep 27, 2026
  2. v0.1.4Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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