x402 Structured Data & Headless Scraper
Static & headless web scraping, HTML-to-JSON extraction & compliance checks ($0.01-$0.05/call).
¿Debería usar esto?
Calidad y seguridad
Hallazgos (1)
- LOWen parse_web_schema
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"x402-cluster": {
"url": "https://x402-cluster.ian-944.workers.dev/v1/mcp.json"
}
}
}Puntos de conexión remotos
https://x402-cluster.ian-944.workers.dev/v1/mcp.jsonstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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).
Esquema de entrada
{
"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).
Esquema de entrada
{
"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.
Esquema de entrada
{
"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).
Esquema de entrada
{
"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"
]
}Comunidad
Evidencia