Stride20k x402 Data Gateway

io.github.Marysbrain由 GitHub 账号 Marysbrain 发布v0.2.0更新于 Oct 24, 2026

x402 analytics feed + 20+ pay-per-call agent tools over x402 (data, LLM, risk), no accounts.

概览

AI 生成的概览

本地 MCP 服务器,为助手提供免费的 x402 市场动态,以及按次付费、从已充值钱包扣 USDC 的尽职调查工具。

可以做什么
读取免费的 x402 生态快照:按类别列出的服务及周环比变化、新上架服务、核心 npm 包下载趋势、协议发布标签和各来源可靠性评级,每项指标都带新鲜度标记。在花钱前查看 x402 类别覆盖情况。执行资源预检,在代理付费前检查可达性、条款、目录收录情况和观测到的时效。调用更多付费的数据、LLM 和风险工具,价格写在每个工具说明中。按单次和按会话执行支出上限,在签署任何付款前拒绝超限调用。
适用场景
适合助手需要最新 x402 生态数据,或在为某个付费 x402 资源花钱前先做核查的场景。如果只需要市场信息,免费动态本身就值得添加;愿意为小额钱包充值时才用得上付费工具。
运行要求
通过 npx 在本地运行(需要 Node.js)。需要访问网关的网络,可用 GATEWAY_URL 覆盖基础地址。付费工具需要 WALLET_PRIVATE_KEY,对应一个在 Base 上持有 USDC 的钱包;免费预览无需该变量。可选上限 MAX_PER_CALL_USD 和 MAX_SESSION_USD,以及固定的 EXPECTED_PAY_TO 和 EXPECTED_SIGNING_KID。
安装前请注意
WALLET_PRIVATE_KEY 用于签署真实付款;请使用只存几美元 USDC 的专用钱包,绝不要用主钱包。付费调用会花钱,且付款授权后若发生传输或响应体读取错误,会按广告价格全额预留为可能已支出,重试前请先核对钱包。README 将该仓库标记为已退役,并说明不要从此安装或部署,但现有部署继续运行。工具定义在启动时从远程签名清单获取。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Stride20k x402 Data Gateway,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Retired source — recovery reference

Active maintenance moved to the sole maintained private repository Marysbrain/aye-today, in packages/mcp/.

Do not install or deploy from this retired repository. The historical instructions below are retained for recovery and reference, not current operations.

Existing public deployments continue unchanged. Repository retirement does not delete or shut down services. Original source and Git history remain preserved; retired repository workflows are disabled.

Retirement notice: 2026-09-03.


x402-gateway-mcp

The live x402 market feed for agents. The x402_market_pulse tool is FREE — no wallet, no payment, no signup: the x402 ecosystem in one snapshot, refreshed ~3x/day — service listings by category with week-over-week deltas, newly listed services, npm download trends for the core x402 packages, protocol release tags, and per-source reliability grades. Every metric carries a freshness stamp; a stale source says so instead of pretending.

Behind the feed, Aye Scout exposes two paid pre-payment diligence tools: x402 category coverage and a resource preflight that checks reachability, terms, catalog presence, and observed age before an agent spends. The tool list is fetched from the signed public manifest at startup; compatibility-only routes are deliberately absent (verify).

The manifest is verified over its exact response bytes before any paid tools are registered. Both the treasury address and gateway signing-key ID are pinned; an unsigned manifest or an unexpected key rotation stops startup.

⚠️ Funded-wallet warning: WALLET_PRIVATE_KEY signs real payments. Use a dedicated wallet holding only small balances (a few dollars of USDC). Never your main wallet. The key is read from env, never logged, and payment headers are never echoed into agent-visible output.

5-minute setup (Claude Desktop / Claude Code)

  1. Create a fresh wallet and fund it with a small amount of USDC on Base (or Base Sepolia test USDC from https://faucet.circle.com while testing).
  2. npm install -g x402-gateway-mcp (or use npx).
  3. Add to your MCP config (Claude Desktop claude_desktop_config.json, or claude mcp add for Claude Code):
json
{  "mcpServers": {    "x402-gateway": {      "command": "npx",      "args": ["-y", "x402-gateway-mcp"],      "env": {        "GATEWAY_URL": "https://<your-gateway-host>",        "WALLET_PRIVATE_KEY": "0x<small-balance-wallet-key>",        "MAX_PER_CALL_USD": "0.25",        "MAX_SESSION_USD": "2.00"      }    }  }}
  1. Restart the client. The free x402_market_pulse tool works immediately (no wallet needed); every paid tool description states its price, e.g. [costs $0.01 USDC per call] Score an x402 resource before paying it…

Spend guardrails

  • MAX_PER_CALL_USD (default 0.25): tools priced above this are refused.
  • MAX_SESSION_USD (default 2.00): cumulative settled spend per server session; calls that would exceed it are refused with a clear message the agent can relay. Restart the server to reset.

Refusals happen before any payment is signed.

Env reference

VarDefaultPurpose
GATEWAY_URLhttps://pulse.aye.todayGateway base URL (override for local/testnet)
WALLET_PRIVATE_KEY—Buyer key (small balance!). Without it, tools list but calls fail with a clear error
MAX_PER_CALL_USD0.25Per-call cap
MAX_SESSION_USD2.00Per-session cap
EXPECTED_PAY_TOAye treasury addressPinned payment destination; override only for a controlled test deployment
EXPECTED_SIGNING_KIDAye production key IDPinned manifest signing key; rotate only with an audited gateway release

If a transport or body-read error occurs after payment authorization, the MCP reserves the full advertised amount as possibly spent. It will not silently restore that session capacity; reconcile the wallet before retrying.

来源:README.md,提交 f06056c

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

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

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。