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 分