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 整合