LensExtract x402 On-Chain Data

io.github.alkeke45-cpu由 GitHub 账号 alkeke45-cpu 发布v0.1.0更新于 Nov 19, 2026

Web extraction and live on-chain/crypto data tools, paid per call in Base USDC via x402.

发布方自己的服务:Agent.chain.tokyo Address Contracts

已验证STDIO仅桌面网页搜索与抓取金融

概览

AI 生成的概览

将助手连接到 LensExtract x402 API,提供网页正文提取与实时链上、加密市场数据,按次以 Base 上的 USDC 付费。

可以做什么
  • 从公开网页提取干净的 Markdown 或纯文本
  • 获取实时 DeFi 与加密数据:Morpho 金库审计与 TVL/APY 数据、USDC 收益排行、Base gas 与 blob 费用、稳定币脱锚幅度、恐惧与贪婪指数历史
  • 筛查 ERC-20 合约,查询 Base 地址余额、交易数与 ENS 名称
  • 读取 BTC/ETH/SOL 动量统计,以及免费的 x402 发现文档
适用场景
适合希望助手获取实时加密与 DeFi 指标或抓取网页、又不想管理 API 密钥和订阅,并愿意用 Base 钱包按次支付几分钱的场景。
运行要求
以 Node.js 本地进程运行(Claude Desktop 可用 MCPB 包,也可从源码或 Docker 安装),需要访问 LensExtract API 的网络。付费工具需要环境变量 LENS_X402_PRIVATE_KEY,即持有少量 USDC 的 Base 钱包私钥;LENS_X402_BASE_URL 可覆盖 API 地址。
安装前请注意
需要提供 Base 钱包私钥(LENS_X402_PRIVATE_KEY)用于签署真实 USDC 付款,建议使用只放少量资金的专用钱包。每次调用付费工具都会花钱,单价约 0.001 至 0.10 美元。合约筛查与动量信号被说明为启发式或描述性结果,并非安全保证或投资建议。请求会发送给第三方 API 运营方。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

LensExtract x402 On-Chain MCP

An open-source MCP (Model Context Protocol) server that connects MCP clients — Claude Desktop, Cursor, VS Code, Hermes Agent — to the LensExtract x402 API (https://lens-extract-x402.alkeke45.workers.dev): web-page extraction plus live on-chain / crypto-market data, paid per call in USDC on Base with the x402 protocol. No API keys, no subscriptions — each tool call settles its own micropayment.

Listed in the Official MCP Registry as io.github.alkeke45-cpu/lens-x402-onchain-mcp.

Tools

ToolWhat it doesPrice
lens_discoverLive x402 discovery document (endpoints, prices, payTo)free
lens_extractClean markdown/text extraction from any public web page$0.001
morpho_vault_auditMorpho Vaults V2 census & timelock audit (68 vaults ≥ $5M, dual-RPC verified)$0.10
crypto_alpha_feedLive Morpho Vaults V2 TVL & APY feed$0.05
base_gas_and_sequencerLive Base gas, base fee, blob fee snapshot$0.005
defi_yield_radarTop 20 USDC yields on Base & Arbitrum (DeFiLlama, live)$0.01
token_contract_guardHeuristic ERC-20 contract screen (bytecode, proxy, views) — a screen, not a safety guarantee$0.01
crypto_momentum_signalsBTC/ETH/SOL momentum stats (price, 7d change, RSI-14) — descriptive, not advice$0.01
stablecoin_peg_monitorUSD stablecoin peg deviations in bps (live)$0.005
fear_greedFear & Greed index + 30d history (live)$0.005
base_wallet_scanBase address balances (ETH, USDC, WETH, DAI), tx count, contract flag$0.01
ens_lookupENS forward/reverse resolution$0.005
ask_kinetic_duneAsk the Kinetic Dune tutor — paid on the Stacks rail (10 sats sBTC); this EVM client returns the live 402 requirements for a Stacks-capable client10 sats

All Base prices are USDC on Base (chain 8453), paid to the API operator 0x8488E45d428a3B2BC7116c8657b8FF23Cd042ef6.

How payment works

The API answers unpaid calls with HTTP 402 and an x402 v2 PAYMENT-REQUIRED challenge. This server wraps fetch with the official @x402/fetch client and the @x402/evm exact scheme: it signs an EIP-3009 USDC transferWithAuthorization with your wallet key and retries with a PAYMENT-SIGNATURE header. The API's facilitator settles on Base. Your key is used locally only — it is never sent anywhere.

You need a Base wallet holding a small amount of USDC (a dollar covers hundreds of calls). Without a key, the free discovery tool still works and paid tools return the API's payment requirements instead of data.

Install

MCPB bundle (Claude Desktop)

Download lens-x402-onchain-mcp.mcpb from the latest GitHub release and open it with Claude Desktop (or double-click it). You will be asked for your Base wallet private key once; it is stored by the host as a secret.

From source (any MCP client)

bash
git clone https://github.com/alkeke45-cpu/lens-x402-onchain-mcp.gitcd lens-x402-onchain-mcpnpm install

Claude Desktop / Cursor / VS Code MCP config:

json
{  "mcpServers": {    "lens-x402": {      "command": "node",      "args": ["/absolute/path/to/lens-x402-onchain-mcp/src/index.js"],      "env": {        "LENS_X402_PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY"      }    }  }}

Docker

bash
docker build -t lens-x402-onchain-mcp .docker run -i --rm -e LENS_X402_PRIVATE_KEY=0xYOUR_KEY lens-x402-onchain-mcp

Configuration

VariableRequiredMeaning
LENS_X402_PRIVATE_KEYfor paid toolsYour own Base wallet private key holding USDC. Never share it; it stays on your machine.
LENS_X402_BASE_URLnoOverride the API base URL (default https://lens-extract-x402.alkeke45.workers.dev).

Smoke test

bash
npm run smoke         # handshake + tools/list + live free discovery callnpm run smoke:offline # handshake + tools/list only

Publishing (maintainers)

server.json is published to the Official MCP Registry by .github/workflows/publish-mcp.yml on every push to main: it builds the MCPB bundle, uploads it to the v0.1.0 GitHub release, writes its SHA-256 into server.json, then publishes with mcp-publisher using GitHub OIDC (no stored credentials). Bump the version in package.json, server.json, manifest.json and the workflow's RELEASE_TAG together for a new release.

License

MIT — see LICENSE.

来源:README.md,提交 6f99f4c

工具

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

版本历史

1
  1. v0.1.0最新Nov 19, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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

其他 Chain 集成