x402 Structured Data & Headless Scraper
Static & headless web scraping, HTML-to-JSON extraction & compliance checks ($0.01-$0.05/call).
사용해야 할까요
품질 및 안전성
발견 사항 (1)
- LOWparse_web_schema에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"x402-cluster": {
"url": "https://x402-cluster.ian-944.workers.dev/v1/mcp.json"
}
}
}원격 엔드포인트
https://x402-cluster.ian-944.workers.dev/v1/mcp.jsonstreamable-http할 수 있는 일
도구 목록
도구 (6)
🟢preview_extract(url, dynamic, wait_ms, raw_text, target_schema, ...)
FREE schema & DOM preview (3 calls/hour per IP). Runs the exact same headless Chromium + LLM extraction pass as paid runs so null/missing fields match 1:1, while masking populated values and returning a 300s preview_token to eliminate snapshot drift.
입력 스키마
{
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "Public HTTP/HTTPS URL to test extraction against."
},
"dynamic": {
"type": "boolean",
"description": "Use headless Chromium (default true). Set false for static HTML fetch."
},
"wait_ms": {
"type": "number",
"description": "Optional extra delay in ms (0-3000) after network idle."
},
"raw_text": {
"type": "string",
"maxLength": 500,
"description": "Optional raw text snippet instead of a URL."
},
"target_schema": {
"type": "object",
"description": "JSON schema to test against the page."
},
"include_metadata": {
"type": "boolean",
"description": "When true, returns { data, meta } envelope with resolved_url, status, block_reason, and preview_token."
}
},
"required": [
"target_schema"
]
}🟢extract_structured_data(raw_text, target_schema, preview_token, include_metadata)
Convert raw text, email bodies, receipts, logs, or HTML snippets already in memory into strict typed JSON conforming to target_schema. Use when you already have the source text and need deterministic schema enforcement without burning local reasoning tokens. Strictly capped at 6,000 bytes.
입력 스키마
{
"type": "object",
"properties": {
"raw_text": {
"type": "string",
"maxLength": 6000,
"description": "Unstructured text, HTML fragment, or document snippet to normalize (max 6,000 bytes)."
},
"target_schema": {
"type": "object",
"description": "Declarative key-type map defining the exact JSON structure to return."
},
"preview_token": {
"type": "string",
"description": "Optional 300s preview token returned by preview_extract to immediately return the unmasked snapshot without re-processing."
},
"include_metadata": {
"type": "boolean",
"description": "When true, wraps output in { data, meta: { resolved_url, status, block_reason, cached } }."
}
},
"required": [
"raw_text"
]
}🟢parse_web_schema(content, fields, preview_token, include_metadata)
Fast key-value entity extraction from raw web or document text when you only need a flat list of named fields rather than a full nested JSON Schema. Ideal for pulling contacts, dates, tickers, or metadata out of messy text (max 6,000 bytes).
입력 스키마
{
"type": "object",
"properties": {
"content": {
"type": "string",
"maxLength": 6000,
"description": "Raw web or document text to scan (max 6,000 bytes)."
},
"fields": {
"type": "array",
"minItems": 1,
"items": {
"type": "string"
},
"description": "Exact entity or field names to extract as keys."
},
"preview_token": {
"type": "string",
"description": "Optional 300s preview token returned by preview_extract to immediately return the unmasked snapshot without re-processing."
},
"include_metadata": {
"type": "boolean",
"description": "When true, wraps output in { data, meta: { resolved_url, status, block_reason, cached } }."
}
},
"required": [
"content",
"fields"
]
}🟢validate_compliance(payload, rules, include_metadata)
Audit a JSON payload against regulatory, PII, or business policy rules before executing downstream transactions or API writes. Returns pass/fail status and specific rule violations (e.g., PII exposure, OFAC/KYC checks, field bounds).
입력 스키마
{
"type": "object",
"properties": {
"payload": {
"type": "object",
"description": "Structured JSON object to audit against compliance rules."
},
"rules": {
"type": "array",
"items": {
"type": "string"
},
"description": "Natural-language or policy rules the payload must satisfy."
},
"include_metadata": {
"type": "boolean",
"description": "When true, wraps output in { data, meta: { status, block_reason, cached } }."
}
},
"required": [
"payload"
]
}🟢extract_from_url(url, target_schema, preview_token, include_metadata)
Fetch a public static webpage URL, strip HTML/navigation boilerplate, and return strict typed JSON matching target_schema in one atomic step ($0.01/call). Best for static HTML pages, docs, and articles. For React/Next.js/Vue SPAs, use extract_dynamic_url.
입력 스키마
{
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "Public HTTP or HTTPS webpage URL to fetch and parse."
},
"target_schema": {
"type": "object",
"description": "JSON object defining desired output keys and expected types."
},
"preview_token": {
"type": "string",
"description": "Optional 300s preview token returned by preview_extract to immediately return the unmasked snapshot without re-fetching."
},
"include_metadata": {
"type": "boolean",
"description": "When true, wraps output in { data, meta: { resolved_url, status, block_reason, cached } }."
}
},
"required": [
"url",
"target_schema"
]
}🟢extract_dynamic_url(url, target_schema, wait_ms, preview_token, include_metadata)
Render a JavaScript-heavy webpage (React, Next.js, Vue, dynamic pricing tables, SPAs) in headless Chromium on Cloudflare's edge, wait for client-side hydration, and return strict typed JSON matching target_schema ($0.01/call or 1 prepaid credit).
입력 스키마
{
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "Public HTTP or HTTPS URL requiring full JavaScript browser rendering."
},
"target_schema": {
"type": "object",
"description": "JSON object defining desired output keys and expected types."
},
"wait_ms": {
"type": "number",
"description": "Optional extra delay in milliseconds (0-3000) after network idle for late client renders."
},
"preview_token": {
"type": "string",
"description": "Optional 300s preview token returned by preview_extract to immediately return the pinned unmasked snapshot without re-rendering in Chromium."
},
"include_metadata": {
"type": "boolean",
"description": "When true, wraps output in { data, meta: { resolved_url, status, block_reason, cached } }."
}
},
"required": [
"url",
"target_schema"
]
}커뮤니티
증거