Scrape, crawl, map and extract the web. Pay per call in USDC, no account or API key.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Premium web intelligence API for AI agents, with x402 micropayments. No accounts, no API keys β pay per request in USDC on Base.
π Live API: https://api.weblens.dev π Interactive docs: https://api.weblens.dev/docs π€ Agent guide: https://api.weblens.dev/llms.txt π Marketplace: listed on x402scan
No wallet, no signup β these are rate limited to 10 requests/hour per IP:
An agent shouldn't have to buy a call to learn what it returns. POST /preview is free and
answers that up front β the live price, a one-line summary, and a real sample of the exact
response shape:
Live vs recorded. A real, truncated live preview runs only for endpoints whose marginal cost
is a plain fetch β currently /fetch/basic, /contents and /map β and only when you pass a
url. Everything else is backed by a metered upstream (SerpAPI, Anthropic); running those free
would burn upstream credits, so they return the recorded sample, which still shows every field
name and type. An endpoint that isn't sold returns 404.
Rate limited to 10 requests/hour per IP like the rest of the free tier.
ERC-8004 (Trustless Agents) keeps compact signals on-chain and the detailed documents off-chain. WebLens hosts the off-chain half β the part a service operator can run without deploying a contract. To be precise about what that is and isn't: WebLens is not registered on-chain, holds no agent id, and writes nothing to any registry.
| Endpoint | What it gives you |
|---|---|
GET /.well-known/agent-registration.json | The ERC-8004 registration document: name, description, image, services, x402Support, payment info, feedback endpoints. registrations is empty (no on-chain registration) and supportedTrust is ["feedback"]. |
GET /receipts/{requestId} | The receipt for a paid call β endpoint, status, outcome, price, payment method, network, pay-to. Every paid response returns X-Receipt-Id and X-Receipt-Url headers pointing here. Kept 30 days. |
POST /feedback | Host a feedback document you author; returns {feedbackURI, feedbackHash} (keccak-256), the pair giveFeedback() expects. Required fields: agentRegistry, agentId, clientAddress, createdAt, value, valueDecimals β a missing one returns 400 naming it. |
GET /feedback/{id} | Serves that document byte-for-byte, so its keccak-256 hash matches the feedbackHash you were given. This URL is the feedbackURI. |
Two more things worth stating plainly:
mac is a symmetric HMAC tag (the same construction as proof-of-context). Only a
holder of the key can verify it β it is not a third-party-verifiable signature, and nothing here
is trustless.giveFeedback() themselves. WebLens only
hosts the document verbatim and returns its hash; it never authors, edits, or submits feedback.All paid endpoints are POST with a JSON body. Prices are per request in USDC.
| Endpoint | Description | Price |
|---|---|---|
/fetch/basic | Fetch a webpage as clean markdown | $0.002 |
/fetch/pro | Fetch with full JavaScript rendering (SPAs) | $0.006 |
/fetch/resilient | Auto-fallback: native scraper β headless Chromium | $0.008 |
/contents | Bulk page text for 1β20 URLs | $0.0015/URL |
/screenshot | Capture a webpage screenshot (PNG) | $0.008 |
/batch/fetch | Fetch 2β20 URLs in parallel | $0.0015/URL |
/map | Discover a site's URLs (sitemaps + links, no page fetches) | $0.004 |
/domain | Registration + DNS + SaaS stack + risk signals for a domain | $0.005 |
/tech | Detect a site's framework, CMS, CDN, analytics and payments stack | $0.005 |
/package | npm/PyPI package health: deprecation, downloads, maintenance | $0.003 |
/discussions | Hacker News stories on a topic, with aggregates | $0.004 |
/intel/project | Off-chain project due diligence: domain age, team/whitepaper, contract cross-check, AβF grade | $0.05 |
/crawl | Bounded whole-site crawl β markdown per page | $0.0015/page |
| Endpoint | Description | Price |
|---|---|---|
/search | Real-time web search (includeContent adds page markdown, +$0.0015/result) | $0.015 |
/search/news | Google News articles with source and date | $0.015 |
/search/images | Image results with dimensions and source pages | $0.015 |
/search/places | Local businesses: address, rating, phone, coordinates | $0.045 |
/search/shopping | Products with prices, sellers, ratings | $0.015 |
/search/scholar | Academic papers with citation counts | $0.015 |
/search/autocomplete | Query suggestions (keyword/intent research) | $0.015 |
/search/trends | Interest-over-time timeline | $0.015 |
| Endpoint | Description | Price |
|---|---|---|
/social/youtube/transcript | Full video transcript with timestamps | $0.03 |
| Endpoint | Description | Price |
|---|---|---|
/extract | Structured extraction against a JSON schema | $0.03 |
/extract/smart | Natural-language extraction (no schema needed) | $0.035 |
/pdf | Extract text and metadata from a PDF | $0.004 |
/answer | Grounded answer with inline [n] citations | $0.05 |
/research | Search + fetch + AI summary with sources | $0.08 |
/research/deep | Multi-step cited research: sub-questions β search each β answer with inline [n] citations | $0.20β$0.35 |
/compare | Compare 2β3 webpages with AI analysis | $0.05 |
/research/deep is the only long-running endpoint: it plans sub-questions, runs a web search per
sub-question, fetches and dedupes the sources, then synthesizes a cited answer β all in one
synchronous call. A standard run (3 sub-questions, 8 sources, $0.20) takes roughly 30β60
seconds; deep (5 sub-questions, 12 sources, $0.35) takes longer. Set a generous HTTP timeout
(120s+) and don't retry on a client timeout, or you'll pay twice.
| Endpoint | Description | Price |
|---|---|---|
/intel/site-audit | SEO / performance / security audit | $0.75 |
/intel/company | Company deep dive | $1.00 |
/intel/market | Market research report | $5.00 |
/intel/competitive | Competitive analysis with SWOT | $8.00 |
| Endpoint | Description | Price |
|---|---|---|
/memory/set | Persistent key-value storage for agents | $0.001 |
/monitor/create | URL change monitor with webhooks | $0.01 + $0.001/check |
/credits/buy | Prepay credits (bonus 20β40% at $10/$50/$100) | $2β$1000 |
Free and unauthenticated: /, /health, /docs, /openapi.json, /llms.txt, /discovery, /.well-known/x402, /mcp, /r/{url}, /s/{query}, /free/fetch, /free/search, /preview, /.well-known/agent-registration.json, /receipts/{requestId}, /feedback, /feedback/{id}.
Dynamically-priced endpoints (/fetch/pro, /extract) apply a complexity multiplier β up to 3Γ for bot-protected domains. Cached responses on the fetch family are 70% cheaper. The exact price is always in the 402 challenge.
Remote HTTP β nothing to install:
Local with automatic payment:
See mcp-server/README.md for the full tool list and setup.
Each returns 402 Payment Required with the price until you attach payment β see below.
WebLens implements x402 v2:
POST any paid endpoint with no payment.402 Payment Required with a PAYMENT-REQUIRED header carrying the price, network, asset, and pay-to address.Payment-Signature header.Settlement runs through the PayAI facilitator on Base mainnet. Any x402 v2 client works β @x402/axios, @x402/fetch, or the bundled MCP server, which handles the whole flow for you.
Prepaid credits are an alternative to per-request payment: buy credits with /credits/buy, then send X-CREDIT-WALLET / X-CREDIT-SIGNATURE / X-CREDIT-TIMESTAMP headers. Failed requests are refunded automatically.
Secrets are set with wrangler, never committed:
| Variable | Purpose |
|---|---|
PAY_TO_ADDRESS | Wallet that receives payments (wrangler.toml var) |
NETWORK | base (production) or base-sepolia (testnet) |
SERP_API_KEY | SerpAPI key β search, verticals, YouTube transcripts |
ANTHROPIC_API_KEY | Claude β extraction, research, answers, intel |
SIGNING_PRIVATE_KEY | Optional: HMAC key for proof-of-context tags |
PAYAI_FACILITATOR_URL | Optional: override the facilitator endpoint |
Get free testnet USDC from the Circle faucet on Base Sepolia.
/openapi.json doubles as the discovery document for x402scan β it carries info.x-guidance, per-operation x-payment-info, and security: [] on free operations. WebLens is listed on x402scan and indexed in the PayAI facilitator catalog.
Note on the Coinbase CDP Bazaar: it only indexes services whose payments the CDP facilitator itself settles. WebLens uses PayAI as its primary facilitator (CDP has an open Base-mainnet settlement bug, x402#1065), so it does not appear there.
MIT
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/weblens)<a href="https://allmcps.com/mcp/weblens"><img src="https://allmcps.com/api/badge/weblens?style=directory" alt="WebLens on AllMCPs" /></a>