x402 Research

io.github.KevinM222由 GitHub 帳號 KevinM222 發布v0.5.0更新於 Oct 29, 2026

Pay-per-call x402 crypto research and Base address/approval risk checks. Testnet by default.

已驗證STDIO僅桌面金融安全與監控

概覽

AI 產生的概覽

按次付費的加密貨幣研究與 Base 位址風險檢查服務,透過 x402 以自己錢包的 USDC 付款,預設使用測試網。

可以做什麼
  • 取得單一資產或最多十個資產的即時趨勢訊號
  • 產出技術面與情緒研究簡報(價格、漲跌幅、RSI、均線、恐懼與貪婪指數)
  • 篩檢 Base 位址的風險標記並列出其目前有效的 ERC-20 授權
  • 解析 x402 付款要求標頭並查詢結算交易狀態
  • 在簽署、兌換、授權或付款前給出綜合預檢結論
  • 查看本次工作階段的網路、已花費金額、上限與單次價格上限
適用情境
適合需要快速取得加密市場訊號,或在 Base 上交易前對位址做安全檢查的情境,且願意為每次呼叫支付少量 USDC。可先以預覽模式查看 402 條款而不付費。
執行需求
透過 npx(Node.js)在 Claude Desktop 或 Cursor 中以 stdio 在本機執行。付費需在 X402_BUYER_PRIVATE_KEY 提供專用錢包私鑰,未設定時僅處於預覽模式。X402_NETWORK 選擇 Base Sepolia(預設)或 Base 主網;可選 X402_MAX_PRICE_USDC、X402_SESSION_CAP_USDC、X402_PREVIEW。需要能連線至託管 API 的網路。
安裝前請注意
每次付費呼叫都會從 X402_BUYER_PRIVATE_KEY 對應的錢包支出 USDC,任何能讀取用戶端設定或行程環境的人都能花掉該錢包資金;請使用專用的低餘額錢包,切勿使用主錢包。上限只限制本伺服器簽署的金額,無法限制私鑰外洩後可造成的損失。將 X402_NETWORK 設為主網即使用真實資金。結果僅為資訊性啟發式判斷,不構成投資建議,proceed 結論也不代表安全。

安裝

在 SourceWeft 中

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

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

x402-research-mcp

MCP (stdio) server for the x402-research pay-per-call API. Testnet (Base Sepolia) by default. Base mainnet only if you explicitly set X402_NETWORK=eip155:8453. The publisher never holds keys: payments come from your wallet key, supplied by you via env var, and are capped per call and per session.

[!WARNING] Use a dedicated, low-balance wallet: never your main wallet. Create a fresh key just for this server and fund it with only a few USDC (on mainnet, a little more than your session cap). Anyone or anything that can read your MCP client config or this process's environment can spend that wallet's funds. The caps limit what this server signs, not what a leaked key can do.

Tools (prices per call, USDC on Base, from /llms.txt)

toolrouteprice
signal(asset)GET /api/signal/{asset}0.003
signal_batch(assets[≤10])GET /api/signal-batch?assets=0.02
brief(asset)GET /api/brief/{asset}0.03
risk_snapshot(address)GET /api/firm/risk-snapshot?address=0.03
invoice_decode(header)POST /api/x402/invoice-decode0.02
settlement_status(tx)GET /api/x402/settlement-status?tx=0.02
approval_enumerate(address)GET /api/x402/approval-enumerate?address=0.03
preflight(address, invoice?)GET /api/x402/preflight?address=[&invoice=]0.05
session_status()localfree

Assets: btc eth sol xrp doge ada avax link dot ltc bch uni aave xlm hbar shib sui near atom fil. Every paid tool also accepts preview: true (return the 402 terms, pay nothing) and max_price_usdc.

Safety

  • Preview mode is on whenever X402_BUYER_PRIVATE_KEY is unset or X402_PREVIEW=1: tools return the decoded 402 terms and never sign.
  • Per-call max X402_MAX_PRICE_USDC (default 0.10). A tool's max_price_usdc can only lower it.
  • Session cap X402_SESSION_CAP_USDC (default 0.50). A call that would push spend over the cap is refused before signing. Spend is counted when a signed payment is sent. It resets when the server process restarts.
  • Offers are refused if they're above the advertised price, on another network, not the exact scheme, or in a non-canonical USDC asset.
  • payTo allowlist (hardcoded): every paid tool (signal, signal_batch, brief, risk_snapshot, invoice_decode, settlement_status, approval_enumerate, preflight) pays only the Agent Firm treasury 0xa26f179e42836bc4ae0cea997fdfc9602d5b8147. Since 0.5.0; 0.4.x expected a different address for signal, signal_batch and brief and refuses the treasury there, so upgrade. Any other recipient is refused, even if X402_RESEARCH_URL points elsewhere.
  • The server never logs its environment or the key, and error messages don't echo config.
  • There is no way to pass in a pre-signed payment: every payment is signed by this server under the caps above.
  • Use a dedicated hot wallet holding only a few USDC. The key stays in the local process and is never logged or returned.

Config

vardefault
X402_NETWORKeip155:84532 (Base Sepolia). Set eip155:8453 for Base mainnet
X402_RESEARCH_URLhttps://x402-research-iota.vercel.app (mainnet-only; testnet needs a Sepolia deployment)
X402_BUYER_PRIVATE_KEYunset → preview only
X402_MAX_PRICE_USDC / X402_SESSION_CAP_USDC0.10 / 0.50
X402_PREVIEWunset (1 forces preview)

Install

Claude Desktop (claude_desktop_config.json) or Cursor (~/.cursor/mcp.json):

json
{  "mcpServers": {    "x402-research": {      "command": "npx",      "args": ["-y", "@agentfirm402/x402-research-mcp"],      "env": {        "X402_NETWORK": "eip155:8453",        "X402_PREVIEW": "1"      }    }  }}

Start in preview. To pay, remove X402_PREVIEW and add "X402_BUYER_PRIVATE_KEY": "0x…" (a dedicated low-balance wallet, never your main one), and optionally "X402_SESSION_CAP_USDC": "0.25".

Tests

npm test runs offline against local mocks with throwaway keys and no funds. It covers unit refusals for each check, preview with no key, and a stdio leak test that greps all stdout and stderr for /0x[0-9a-fA-F]{64}/. npm run test:mainnet-preview makes live mainnet 402 calls in preview mode and pays nothing.

Release

Dependencies are pinned exactly, with a committed lockfile. Publishing happens only through .github/workflows/mcp-publish.yml (manual dispatch, npm publish --provenance).

Informational only. Not financial advice. MIT.

來源:mcp/README.md,提交 3d88b54

工具

9

signal

Compact live trend signal (bullish/neutral/bearish + score) for one asset. Price: 0.003 USDC per call (x402, Base Sepolia testnet). Paid from YOUR wallet; capped per call and per session.

輸入參數asset必填previewmax_price_usdc

signal_batch

Live trend signals for up to 10 assets in one call (flat price). Price: 0.02 USDC per call (x402, Base Sepolia testnet). Paid from YOUR wallet; capped per call and per session.

輸入參數assets必填previewmax_price_usdc

brief

Technical + sentiment research brief (price, 24h/7d change, RSI14, SMA20/50, trend, Fear & Greed). Price: 0.03 USDC per call (x402, Base Sepolia testnet). Paid from YOUR wallet; capped per call and per session.

輸入參數asset必填previewmax_price_usdc

risk_snapshot

Public-data red-flag snapshot of a Base address (contract/EOA, EIP-7702, verification, proxy, age, balances, risk level). Informational only. Price: 0.03 USDC per call (x402, Base Sepolia testnet). Paid from YOUR wallet; capped per call and per session.

輸入參數address必填previewmax_price_usdc

invoice_decode

Decode and sanity-check a base64 x402 PAYMENT-REQUIRED header (scheme, network, USDC asset, payTo, amount); verdict ok/warn/fail. Never signs or pays. Price: 0.02 USDC per call (x402, Base Sepolia testnet). Paid from YOUR wallet; capped per call and per session.

輸入參數header必填previewmax_price_usdc

settlement_status

Check an x402 settlement tx on Base: success, USDC Transfer / AuthorizationUsed events, confirmations. Price: 0.02 USDC per call (x402, Base Sepolia testnet). Paid from YOUR wallet; capped per call and per session.

輸入參數tx必填previewmax_price_usdc

approval_enumerate

List live ERC-20 approvals for a Base address (token, spender, allowance, unlimited flag). 503 when the indexer is down (not charged). Price: 0.03 USDC per call (x402, Base Sepolia testnet). Paid from YOUR wallet; capped per call and per session.

輸入參數address必填previewmax_price_usdc

preflight

One-call check before you sign, swap, approve or pay: Base address risk + live ERC-20 approvals + OFAC screen (+ optional x402 invoice check), with a proceed/review/stop verdict. Informational heuristic; "proceed" does not mean safe. Price: 0.05 USDC per call (x402, Base Sepolia testnet). Paid from YOUR wallet; capped per call and per session.

輸入參數address必填invoicepreviewmax_price_usdc

session_status

Free. Shows network, preview mode, USDC spent this session, cap and per-call max.

無需輸入參數。

版本歷史

2
  1. v0.5.0最新Oct 26, 2026
  2. v0.4.2Oct 25, 2026

評分

已滿足適用檢查項的 90%

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

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

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

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分