LensExtract x402 On-Chain Data

io.github.alkeke45-cpuPublished by GitHub account alkeke45-cpuv0.1.0Updated Nov 19, 2026

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

The publisher's own server: Agent.chain.tokyo Address Contracts

VerifiedSTDIODesktop onlyWeb Search & ScrapingFinance

Overview

AI-generated overview

Connects an assistant to the LensExtract x402 API for web-page extraction and live on-chain and crypto-market data, paid per call in USDC on Base.

What you can do
  • Extract clean markdown or text from public web pages
  • Pull live DeFi and crypto data: Morpho vault audits and TVL/APY feeds, USDC yield rankings, Base gas and blob fees, stablecoin peg deviations, Fear & Greed history
  • Screen ERC-20 contracts and look up Base wallet balances, transaction counts and ENS names
  • Read BTC/ETH/SOL momentum statistics and the free x402 discovery document
When to use it
Useful when you want an assistant to fetch live crypto and DeFi metrics or scrape a page without managing API keys or subscriptions, and you are comfortable paying a few cents per call from a Base wallet.
Requirements
Runs locally as a Node.js process (MCPB bundle for Claude Desktop, source install, or Docker) and needs network access to the LensExtract API. Paid tools require the LENS_X402_PRIVATE_KEY environment variable holding a Base wallet private key with a small USDC balance; LENS_X402_BASE_URL optionally overrides the API endpoint.
Before you install
The server asks for a Base wallet private key (LENS_X402_PRIVATE_KEY) that signs real USDC payments; use a dedicated wallet holding only small funds. Every paid tool call spends money, with prices from about $0.001 to $0.10 per call. Contract screening and momentum signals are described as heuristic or descriptive, not safety guarantees or advice. Requests go to a third-party API operator.

Installation

In SourceWeft

  1. Open LensExtract x402 On-Chain Data in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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.

Source: README.md at commit 6f99f4c

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.0LatestNov 19, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

Other Chain integrations