webcap

io.github.shoutsid-lab由 GitHub 帳號 shoutsid-lab 發布v0.1.0更新於 Oct 24, 2026

Screenshot, extract or audit any URL. Paid per call in USDC over x402; free tools need no wallet.

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取瀏覽器自動化資料與分析

概覽

AI 產生的概覽

遠端 MCP 伺服器,讓助理對任意 URL 截圖、擷取內容、稽核、蒐集站點連結與 AI 分析,免費工具與按次 USDC 付費並存。

可以做什麼
  • 免費預覽網頁並讀取 Open Graph 中繼資料,依 IP 限流
  • 把頁面截成 PNG/JPEG/PDF 圖片,或捲動錄製成 WebM 影片
  • 擷取結構化 JSON(標題、標題層級、段落、連結、圖片、Markdown),支援單頁或最多 50 個 URL 的批次
  • 稽核 SEO 基本項目與連結、Open Graph 健康度,並從 sitemap、robots.txt 加一跳檢索列出站點 URL
  • 對單一 URL 做 AI 分析,並查詢服務目錄中的價格與剩餘免費額度
適用情境
適合助理需要查看真實網頁的情境:截圖、批次取得頁面結構化內容、檢查 SEO 與連結健康,或在不自建爬蟲的情況下找出站點 URL。
執行需求
透過 streamable HTTP 連線 webcap.shoutsid.fyi 遠端端點,無需安裝,免費工具不需要帳號或 API 金鑰。付費工具需要 Base 網路上的 USDC 錢包(x402,免 gas)或營運方儲值的 API 金鑰;可選的本機 stdio 伺服器需要 Node.js 以及 WEBCAP_MCP_WALLET_KEY 或 WEBCAP_MCP_API_KEY。
安裝前請注意
付費工具每次呼叫都會花費真實 USDC(例如每次截圖 0.001 美元、每批擷取 0.01 美元),遠端端點會回傳 402 挑戰交由用戶端結算。本機 stdio 設定可能在 WEBCAP_MCP_WALLET_KEY 中保存錢包私鑰。截圖會產生公開的持久化產物連結,送出的 URL 由第三方服務抓取。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 webcap,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.shoutsid-lab%2Fwebcap/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "webcap": {
      "type": "http",
      "url": "https://webcap.shoutsid.fyi/mcp"
    }
  }
}

README

webcap

[License: MIT] [Live Demo]

Screenshot any URL, extract structured data, monitor pages for changes — all via a single HTTP API call. Pay-per-call with no accounts, no API keys.

GET  /v1/extract/preview?url=...  →  Free preview (title, headings, links)POST /v1/x402/capture             →  PNG/JPEG/PDF screenshot + persistent linkPOST /v1/x402/extract             →  Structured JSON (title, headings, markdown)POST /v1/x402/video               →  Scroll-capture video (WebM/VP8)POST /v1/watches                  →  Scheduled monitoring with webhook alerts

Pricing: $0.001/screenshot · $0.01/extraction batch · No subscriptions, no minimums.

Why webcap?

FeaturewebcapScreenshot APIs (typical)
Price$0.001/screenshot$0.01–0.10/screenshot
Accounts requiredNoYes
API keysNoYes
PaymentCard (Stripe) or crypto (USDC)Credit card only
Batch supportUp to 50 URLs per paymentLimited
Self-hostableYes (Docker)No
Open sourceYes (MIT)No

Features

EndpointWhat you getPrice
POST /v1/x402/captureScreenshot as PNG/JPEG/PDF (base64) + persistent public artifact link + OG metadata$0.001
POST /v1/x402/extractStructured page data as JSON: title, description, headings, paragraphs, links, images, word count, markdown. Batch up to 50 URLs per payment.$0.01
POST /v1/x402/auditSEO basics + link/OG health in one call$0.002
POST /v1/x402/map-liteSite URL list from sitemap/robots + 1-hop crawl (up to 50 URLs)$0.002
POST /v1/x402/videoScroll-capture a page as WebM/VP8 video$0.005
POST /v1/watchesCreate a scheduled monitor (free to create, prepay 100-run packs)$0.10–$1.00/pack

Bearer-token rail (no signing key)

The same products are buyable with an API key: POST /v1/register ({"address"} → {apiKey}), fund with a plain USDC transfer via POST /v1/invoice, then send Authorization: Bearer <apiKey> to POST /v1/extract, POST /v1/audit, POST /v1/map-lite, POST /v1/video, POST /v1/analyze, or POST /v1/analyze/batch. Every call costs 1 credit, refunded whenever the call does not return 200; an empty balance answers 402 with a 1-credit top-up invoice. Watches fund the same way: POST /v1/watches/{id}/topup {"runs": 100} (capture pack 10 credits, extract pack 100). Full spec: GET /openapi.json (tags: accounts).

Free endpoints (no payment)

EndpointDescription
GET /v1/extract/preview?url=...Bounded preview: title, headings, links, word count (10 req/min/IP)
GET /v1/og?url=...Open Graph link-preview metadata
POST /v1/watchesCreate a scheduled monitor (free; prepay via top-up)
GET /v1/healthLiveness check
POST /v1/feedbackTell webcap something (machine or human): {"message":"…","category?"?:"bug|suggestion|pricing|docs|integration|other","endpoint"?:"…"}. No account, rate-limited 60/hr. Human form: GET /feedback

Quick start

Use as an MCP server (agent runtimes)

webcap ships an MCP server, so any MCP host (Claude Desktop, Cursor, agent frameworks) can call it as a tool. Two ways to wire it: a remote endpoint (no install at all) or the stdio server from a checkout.

The remote endpoint is the cheapest path for an agent — nothing to install, no package registry, no account:

json
{  "mcpServers": {    "webcap": { "url": "https://webcap.shoutsid.fyi/mcp" }  }}

POST /mcp speaks MCP Streamable HTTP (JSON-RPC 2.0 over HTTPS; GET is deliberately 405 because the server never opens an SSE stream). It holds no wallet, so it never spends on a caller's behalf: the free tools run directly, and a paid tool returns the live x402 402 challenge for your own client to settle. The endpoint is also described in /.well-known/mcp-tools.json and openapi.json.

It is listed in the official MCP Registry as io.github.shoutsid-lab/webcap, so a runtime that reads the registry can discover it without this README:

bash
curl -s 'https://registry.modelcontextprotocol.io/v0/servers?search=webcap'

The stdio server runs locally and can settle paid calls itself. The free tools need no configuration; set WEBCAP_MCP_WALLET_KEY to a Base-mainnet USDC key to let the paid tools settle automatically (gasless — the payer signs EIP-3009, the facilitator pays gas). With no key, paid tools return the x402 402 challenge for the host to pay. No wallet at all? Set WEBCAP_MCP_API_KEY to an operator-funded account key instead (POST /v1/register, then fund via POST /v1/invoice): paid tools bill 1 credit each from that balance. A configured wallet wins over the key.

From a source checkout — npm ci && npm run build — then point args at its dist/mcp/stdio.js:

json
{  "mcpServers": {    "webcap": {      "command": "node",      "args": ["/absolute/path/to/webcap/dist/mcp/stdio.js"],      "env": { "WEBCAP_MCP_WALLET_KEY": "0x..." }    }  }}

(npm run mcp runs the TypeScript directly, so no build step is needed there.) The npm release will be @shoutsid/webcap — the unscoped webcap name belongs to an unrelated package, and it is not published yet — so until then the remote endpoint above is the install-free option.

Tools, all 8 of them (every one is also in /.well-known/openai-tools.json and /.well-known/mcp-tools.json):

  • Free: webcap_service_catalog (every paid endpoint and price, the network and payTo, the how-to-pay flow, and the caller's remaining free allowance), webcap_preview (bounded peek), webcap_og
  • Paid: webcap_capture (png/jpeg/pdf screenshot or PDF, or an mp4/webm scroll video — always recorded as WebM/VP8), webcap_extract (one URL or a batch of up to 50), webcap_audit, webcap_map_lite, webcap_analyze

The free rail is not a tool, it is an allowance: an unpaid call to any of the five paid tools runs the real product, free, inside a rolling per-IP window (default 50 calls / 24h). No wallet, signature or account — every response carries x-webcap-allowance-* headers saying where you stand, and when the window is spent the same call answers the normal x402 402 challenge. A failed call does not consume the allowance. Tunable with WEBCAP_ALLOWANCE_CALLS, WEBCAP_ALLOWANCE_WINDOW_HOURS and WEBCAP_ALLOWANCE_GLOBAL_LIMIT.

Feedback is a REST rail, not a tool: POST /v1/feedback.

Capture a screenshot

bash
# 1. POST without payment → HTTP 402 + a PAYMENT-REQUIRED headercurl -si -X POST "https://webcap.shoutsid.fyi/v1/x402/capture" \  -H 'content-type: application/json' \  -d '{"url":"https://example.com/"}'
# 2. Decode the base64 challenge → sign a gasless EIP-3009 transfer → retry with PAYMENT-SIGNATURE

JavaScript (with x402 auto-payment)

js
import axios from 'axios';import { x402Client, wrapAxiosWithPayment } from '@x402/axios';import { ExactEvmScheme } from '@x402/evm';import { privateKeyToAccount } from 'viem/accounts';
// Needs USDC on Base mainnet (no ETH needed — facilitator pays gas)const payer = privateKeyToAccount(process.env.PAYER_KEY);const client = new x402Client().register('eip155:*', new ExactEvmScheme(payer));const api = wrapAxiosWithPayment(  axios.create({ baseURL: 'https://webcap.shoutsid.fyi' }),  client,);
// Capture a screenshot (auto: unpaid → 402 → sign → retry)const { data } = await api.post('/v1/x402/capture', { url: 'https://example.com', format: 'png' });console.log(data.artifact.url);  // persistent public screenshot link

Python

python
import osfrom x402 import X402Clientfrom x402.schemes import ExactEvmSchemefrom eth_account import Account
payer = Account.from_key(os.environ["PAYER_KEY"])client = X402Client().register("eip155:*", ExactEvmScheme(payer))
response = client.post(    "https://webcap.shoutsid.fyi/v1/x402/capture",    json={"url": "https://example.com", "format": "png"},)print(response.json()["artifact"]["url"])  # persistent public screenshot link

Extract structured data

bash
# Single URLcurl -s -X POST "https://webcap.shoutsid.fyi/v1/x402/extract" \  -H 'content-type: application/json' \  -d '{"url":"https://example.com"}'
# Batch (up to 50 URLs, one payment covers the whole batch)curl -s -X POST "https://webcap.shoutsid.fyi/v1/x402/extract" \  -H 'content-type: application/json' \  -d '{"urls":["https://a.com","https://b.com"],"schema":"company name + tagline"}'

How payment works

The live rail is crypto (x402, USDC on Base) — no accounts, no API keys. Card payments are an operator option, not a hosted feature: until an operator sets STRIPE_SECRET_KEY, POST /v1/stripe/checkout answers stripe_not_configured and points at the crypto rail. (The hosted deployment at https://webcap.shoutsid.fyi is card-less today.)

Card payments (Stripe, when configured)

  1. POST /v1/stripe/checkout with a pack id — Stripe Checkout handles the rest.
  2. Enter your card details. Credits are added to your account instantly.
  3. Use API key authentication for subsequent calls.

Crypto payments (x402 — no accounts needed)

webcap uses x402 v2 — a gasless, accountless payment protocol built on HTTP 402:

  1. POST a paid route with no payment → HTTP 402 + a PAYMENT-REQUIRED header carrying a base64 x402 v2 challenge.
  2. Read the challenge: USDC amount, merchant address, chain info.
  3. Sign a gasless EIP-3009 transferWithAuthorization (from your wallet, to the merchant, for the amount). No ETH needed — the facilitator submits the tx and pays gas.
  4. Retry the same request with the signed payload in the PAYMENT-SIGNATURE header. The facilitator verifies your USDC balance, settles on-chain, and returns the result.

No accounts. No API keys. No credits. Just HTTP + your choice of payment.

Self-hosting

bash
# Clone the repogit clone https://github.com/shoutsid-lab/webcap.gitcd webcap
# Install dependenciesnpm install
# Copy and configure environmentcp .env.example .env# Edit .env with your settings
# Build and runnpm run buildnpm start

From the release tarball (no npm registry account)

The packaged MCP server also ships as a GitHub release asset — install it like any npm dependency, without publishing to npm:

bash
# npm 12+ (Node 24) blocks remote tarball URLs by default — opt in explicitly:npm install --allow-remote=all https://github.com/shoutsid-lab/webcap/releases/download/v0.1.0/shoutsid-webcap-0.1.0.tgz# npm <= 11 accepts the URL without the flag:npm install https://github.com/shoutsid-lab/webcap/releases/download/v0.1.0/shoutsid-webcap-0.1.0.tgznpx webcap-mcp   # stdio MCP server

For MCP hosts the no-install path stays primary: point them at the remote endpoint https://webcap.shoutsid.fyi/mcp (streamable HTTP, no package).

Docker

bash
docker compose builddocker compose up -d

The Docker setup includes health checks, resource limits, and persistent data volumes. See docker-compose.yml for details.

The stack also carries the public edge: the cloudflared service runs the webcap Cloudflare tunnel, with its ingress in cloudflared/config.yml and its credential in CF_TUNNEL_TOKEN (.env). Nothing publishes the app beyond loopback, so the tunnel container is the only way in — and docker compose up -d without it leaves webcap.shoutsid.fyi answering Cloudflare's 530.

bash
docker compose ps cloudflared                       # Up, not Restartingdocker compose logs --tail 20 cloudflared           # "Registered tunnel connection"curl -s -o /dev/null -w '%{http_code}\n' https://webcap.shoutsid.fyi/v1/health   # 200

Local development (Anvil testnet)

bash
npm installnpm run chain:up    # Starts Anvil with mintable USDC
WEBCAP_CHAIN=local \WEBCAP_USDC_ADDRESS=$(jq -r .usdcContract /tmp/webcap-chain.json) \WEBCAP_MERCHANT_ADDRESS=$(jq -r .merchant.address /tmp/webcap-chain.json) \npm start

Configuration

All environment variables are documented in .env.example. Key ones:

VariableDescriptionDefault
WEBCAP_CHAINNetwork: base, base-sepolia, or localbase-sepolia
WEBCAP_PUBLIC_BASE_URLPublic URL for artifact linksrequired
WEBCAP_X402_PRICE_USDCPrice per screenshot in USDC0.001
WEBCAP_X402_EXTRACT_PRICE_USDCPrice per extraction in USDC0.01
X402_FACILITATOR_URLPayment facilitator endpointhttps://x402.org/facilitator

API reference

Full OpenAPI 3.1 spec: GET /openapi.json

Agent discovery: GET /.well-known/x402, GET /v1/x402/service, GET /llms.txt, GET /skill.md

Tests

bash
npm test           # full vitest suite (tests/**/*.test.ts, no exclusions)npm run typecheck  # Type checking

Both must pass before a change ships. Deliberately no test/file counts here: they have gone stale twice (a reader caught the second one in issue #1), and a number nobody regenerates is worse than no number. npm test prints the current totals.

Claim audit

bash
npm run audit:claims                                        # against localhost:8080npm run audit:claims -- --base-url https://webcap.shoutsid.fyi  # against a deployment

The tests check the code; this checks the claims — it reads README.md, /skill.md and /llms.txt and verifies every METHOD /path they advertise is actually served, that every documented price equals the 402 challenge amount, and that the free surface describes the same prices as the paid routes. It exits non-zero on any failure, so it can gate a deploy. Issue #1 was filed by an agent that did this by hand; this is the same check as a command.

License

MIT — see LICENSE for details.

Links

來源:README.md,提交 5cbd6f2

工具

8

webcap_service_catalog

Free service catalog (no payment): every paid endpoint with its exact price in USDC, the settlement network, USDC asset, payTo address, facilitator and the step-by-step x402 how-to-pay flow, plus the free allowance this caller has left. Call this first to learn what webcap sells and what it costs.

無需輸入參數。

webcap_preview

Free bounded preview of a page: title, description, headings, links, word count and a truncated markdown slice. Use it to peek before the full extract. Rate-limited per IP. This is a teaser, not the product: the real products are free too inside the rolling per-IP allowance.

輸入參數url必填

webcap_og

Free Open Graph metadata for a URL: title, description, image, icon. No payment.

輸入參數url必填

webcap_capture

PAID ($0.001 image/PDF, $0.005 video): turn a URL into a persistent public artifact. png/jpeg/pdf are a screenshot or PDF and include free OG metadata; mp4/webm scroll-record the page as WebM/VP8 (mp4 is a legacy alias). Settles gasless USDC over x402 — but an unpaid call runs free while the rolling per-IP allowance lasts, so just call it.

輸入參數url必填formatfullPagedurationMs

webcap_extract

PAID ($0.01, one payment covers a batch of up to 50 URLs): structured content as JSON — title, headings, paragraphs, links, images, document-order markdown. Provide exactly one of "url" (a single page) or "urls" (a batch); "url" is shorthand for a one-item "urls".

輸入參數urlurlsschema

webcap_audit

PAID ($0.002): SEO basics plus link and Open Graph health for one URL in a single call. Returns issues with severity, not just raw tags.

輸入參數url必填

webcap_map_lite

PAID ($0.002): discover a site's URLs from its sitemap and robots.txt plus a 1-hop same-host crawl, and return them as a JSON list. Cheaper than crawling each page with webcap_extract.

輸入參數url必填maxUrls

webcap_analyze

PAID ($0.01): AI analysis of one URL. Pick the task that matches the question you are answering.

輸入參數url必填task必填

版本歷史

1
  1. v0.1.0最新Sep 25, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分