LensExtract x402 On-Chain Data
MCP server giving AI clients web extraction and live crypto data, paid per call in USDC
- Pricing
- Open source
- Platforms
- CLI, API, vscode
- Runs
- Locally
- Version
- 0.1.0
- Listing updated
- today
Similar MCP servers
About LensExtract x402 On-Chain Data
LensExtract x402 On-Chain Data is an open-source MCP server for crypto and web3. It runs locally on your machine and is started by your AI client.
The README describes this as an open-source MCP server that connects clients such as Claude Desktop, Cursor and VS Code to a hosted x402 API. Instead of API keys or subscriptions, each tool call settles its own small USDC micropayment on Base, so usage cost tracks how much the assistant actually queries.
The toolset mixes a clean web-page extractor with on-chain and crypto-market lookups: Base gas snapshots, Morpho vault data, DeFi yields, stablecoin peg deviations, a Fear and Greed index, Base wallet balances and ENS resolution. A free discovery tool lists the live endpoints and prices, and the server signs payments locally with the user's own wallet key.
It suits developers and analysts who want an assistant to pull live DeFi or wallet data without setting up separate accounts with each provider. The README notes you need a Base wallet holding some USDC for paid tools, and that some signals are descriptive rather than investment advice.
Install
Run in a terminal
claude mcp add lens-x402-onchain-mcp --env LENS_X402_PRIVATE_KEY='<LENS_X402_PRIVATE_KEY>' -- npx -y https://github.com/alkeke45-cpu/lens-x402-onchain-mcp/releases/download/v0.1.0/lens-x402-onchain-mcp.mcpbAdd to claude_desktop_config.json
{
"mcpServers": {
"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": "<LENS_X402_PRIVATE_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"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": "<LENS_X402_PRIVATE_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"lens-x402-onchain-mcp": {
"type": "stdio",
"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": "<LENS_X402_PRIVATE_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"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": "<LENS_X402_PRIVATE_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"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": "<LENS_X402_PRIVATE_KEY>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
LENS_X402_PRIVATE_KEYYour own Base wallet private key holding USDC, used locally to sign per-call x402 payments. Never share it.
Tools this server provides (13)
Taken from the project documentation; the running server may differ.
- lens_discover
- Live x402 discovery document (endpoints, prices, payTo). Free.
- lens_extract
- Clean markdown/text extraction from any public web page.
- morpho_vault_audit
- Morpho Vaults V2 census and timelock audit.
- crypto_alpha_feed
- Live Morpho Vaults V2 TVL and APY feed.
- base_gas_and_sequencer
- Live Base gas, base fee and blob fee snapshot.
- defi_yield_radar
- Top 20 USDC yields on Base and Arbitrum.
- token_contract_guard
- Heuristic ERC-20 contract screen.
- crypto_momentum_signals
- BTC, ETH and SOL momentum stats.
- stablecoin_peg_monitor
- USD stablecoin peg deviations in bps.
- fear_greed
- Fear and Greed index with 30-day history.
- base_wallet_scan
- Base address balances, transaction count and contract flag.
- ens_lookup
- ENS forward and reverse resolution.
- ask_kinetic_dune
- Kinetic Dune tutor, paid on the Stacks rail; returns 402 requirements for EVM clients.
What it does
- Per-call x402 payments
- Each paid tool call is settled in USDC on Base, with the signing done by a locally held wallet key.
- Free discovery endpoint
- A discovery tool returns the live endpoint list, prices and payment address without requiring payment.
- Web page extraction
- Converts any public web page into clean markdown or text for an assistant to read.
- On-chain and DeFi data
- Covers Base gas, Morpho vault TVL and APY, and top USDC yields on Base and Arbitrum.
- Wallet and contract checks
- Reports Base address balances and runs a heuristic screen on ERC-20 contracts.
- Market signal snapshots
- Provides BTC, ETH and SOL momentum stats, stablecoin peg deviations and a Fear and Greed index.
Good for
- Pulling live Base gas and yield figures into an assistant during DeFi research
- Extracting readable text from web pages for an AI client without a separate scraper
- Checking balances and ENS names for a Base address from inside an MCP client
- Screening an unfamiliar ERC-20 contract before interacting with it
- Monitoring stablecoin peg deviations and crypto sentiment in one place
Pricing
Open source
Open-source MIT server; each tool call costs between $0.001 and $0.10 in USDC on Base, with a free discovery tool.
LensExtract x402 On-Chain Data FAQ
Do I need an API key or subscription?
The README says no API keys or subscriptions are needed; each paid tool call settles its own micropayment in USDC on Base. A wallet with some USDC is required for paid tools.
Where is my private key used?
According to the README, the key is used locally to sign x402 payments and is never sent anywhere.
Which clients are supported?
The README lists Claude Desktop, Cursor, VS Code and Hermes Agent, and offers an MCPB bundle, a source install and a Docker image.
What happens without a wallet key?
The free discovery tool still works, and paid tools return the API's payment requirements instead of data.
Is LensExtract x402 On-Chain Data free?
Yes. LensExtract x402 On-Chain Data is open source, so you can use and self-host it for free.
How do I add LensExtract x402 On-Chain Data to Claude Code?
Run this command in your terminal: claude mcp add lens-x402-onchain-mcp --env LENS_X402_PRIVATE_KEY='<LENS_X402_PRIVATE_KEY>' -- npx -y https://github.com/alkeke45-cpu/lens-x402-onchain-mcp/releases/download/v0.1.0/lens-x402-onchain-mcp.mcpb
What are the best alternatives to LensExtract x402 On-Chain Data?
The closest alternatives to LensExtract x402 On-Chain Data are WarpPay402 MCP Gateway, Edge Signals, Agent Data Tools: Full list (every tool as its own definition), Crypto Prices Mcp and x402 Agent Tools.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.
