LensExtract x402 On-Chain Data MCP Server
Web extraction and live on-chain/crypto data tools, paid per call in Base USDC via x402.
LensExtract x402 On-Chain Data scores 66 (Good), licensed MIT and written in JavaScript. It installs as a local process. It declares 13 tools. Filed under Finance. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
88/100 for listing completeness. Lost points: 1 of 13 tools barely described, short summary, no docs link.
How quality is graded
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "alkeke45-cpu-lens-x402-onchain-mcp": { "command": "npx", "args": [ "-y", "https://github.com/alkeke45-cpu/lens-x402-onchain-mcp/releases/download/v0.1.0/lens-x402-onchain-mcp.mcpb" ], "env": { "LENS_X402_PRIVATE_KEY": "YOUR_LENS_X402_PRIVATE_KEY" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
LENS_X402_PRIVATE_KEYSecret | Optional | Your own Base wallet private key holding USDC, used locally to sign per-call x402 payments. Never share it. |
Tools13Tool docs quality grade D
All capabilitiesask_kinetic_dunetoolAsk the Kinetic Dune tutor — paid on the Stacks rail (10 sats sBTC); this EVM client returns the live 402 requirements for a Stacks-capable client
Live Base gas, base fee, blob fee snapshot
base_wallet_scantoolBase address balances (ETH, USDC, WETH, DAI), tx count, contract flag
Live Morpho Vaults V2 TVL & APY feed
BTC/ETH/SOL momentum stats (price, 7d change, RSI-14) — descriptive, not advice
defi_yield_radartoolTop 20 USDC yields on Base & Arbitrum (DeFiLlama, live)
ens_lookuptoolENS forward/reverse resolution
fear_greedtoolFear & Greed index + 30d history (live)
lens_discovertoolLive x402 discovery document (endpoints, prices, payTo)
lens_extracttoolClean markdown/text extraction from any public web page
Morpho Vaults V2 census & timelock audit (68 vaults ≥ $5M, dual-RPC verified)
USD stablecoin peg deviations in bps (live)
About
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
| Tool | What it does | Price |
|---|---|---|
lens_discover | Live x402 discovery document (endpoints, prices, payTo) | free |
lens_extract | Clean markdown/text extraction from any public web page | $0.001 |
morpho_vault_audit | Morpho Vaults V2 census & timelock audit (68 vaults ≥ $5M, dual-RPC verified) | $0.10 |
crypto_alpha_feed | Live Morpho Vaults V2 TVL & APY feed | $0.05 |
base_gas_and_sequencer | Live Base gas, base fee, blob fee snapshot | $0.005 |
defi_yield_radar | Top 20 USDC yields on Base & Arbitrum (DeFiLlama, live) | $0.01 |
token_contract_guard | Heuristic ERC-20 contract screen (bytecode, proxy, views) — a screen, not a safety guarantee | $0.01 |
crypto_momentum_signals | BTC/ETH/SOL momentum stats (price, 7d change, RSI-14) — descriptive, not advice | $0.01 |
stablecoin_peg_monitor | USD stablecoin peg deviations in bps (live) | $0.005 |
fear_greed | Fear & Greed index + 30d history (live) | $0.005 |
base_wallet_scan | Base address balances (ETH, USDC, WETH, DAI), tx count, contract flag | $0.01 |
ens_lookup | ENS forward/reverse resolution | $0.005 |
ask_kinetic_dune | Ask the Kinetic Dune tutor — paid on the Stacks rail (10 sats sBTC); this EVM client returns the live 402 requirements for a Stacks-capable client | 10 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)
git clone https://github.com/alkeke45-cpu/lens-x402-onchain-mcp.git
cd lens-x402-onchain-mcp
npm install
Claude Desktop / Cursor / VS Code MCP config:
{
"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
docker build -t lens-x402-onchain-mcp .
docker run -i --rm -e LENS_X402_PRIVATE_KEY=0xYOUR_KEY lens-x402-onchain-mcp
Configuration
| Variable | Required | Meaning |
|---|---|---|
LENS_X402_PRIVATE_KEY | for paid tools | Your own Base wallet private key holding USDC. Never share it; it stays on your machine. |
LENS_X402_BASE_URL | no | Override the API base URL (default https://lens-extract-x402.alkeke45.workers.dev). |
Smoke test
npm run smoke # handshake + tools/list + live free discovery call
npm 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.
Frequently asked questions
What is LensExtract x402 On-Chain Data MCP Server?
Web extraction and live on-chain/crypto data tools, paid per call in Base USDC via x402.
How do I install LensExtract x402 On-Chain Data MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. LensExtract x402 On-Chain Data MCP Server runs locally from the MCP bundle https://github.com/alkeke45-cpu/lens-x402-onchain-mcp/releases/download/v0.1.0/lens-x402-onchain-mcp.mcpb with the command npx -y https://github.com/alkeke45-cpu/lens-x402-onchain-mcp/releases/download/v0.1.0/lens-x402-onchain-mcp.mcpb.
Is LensExtract x402 On-Chain Data MCP Server free and open source?
Yes. LensExtract x402 On-Chain Data MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does LensExtract x402 On-Chain Data MCP Server support remote (HTTP) connections?
No remote endpoint is listed for LensExtract x402 On-Chain Data MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does LensExtract x402 On-Chain Data MCP Server provide?
LensExtract x402 On-Chain Data MCP Server provides 13 tools, including ask_kinetic_dune, base_gas_and_sequencer, base_wallet_scan, and crypto_alpha_feed. See the full tool list for descriptions and parameters.
How is LensExtract x402 On-Chain Data MCP Server's trust score calculated?
LensExtract x402 On-Chain Data MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.