smart-data-extractor

v1.0.0
io.github.lazymac2x/smart-data-extractor Checked 7 hours ago Published 6 months ago

smart-data-extractor MCP server on Cloudflare Workers · REST + MCP JSON-RPC · free tier

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

extract_from_url

Idempotent · 30s timeout · Extract structured data from URL content with auto schema learning. Pass `idempotency_key` to deduplicate identical calls within 5 minutes.

ParameterTypeDescription
url *stringHTTP(S) URL to fetch (will auto-download and parse), or raw content string (up to 200KB). Max 200KB after fetch.
idempotency_keystringOptional UUID or unique identifier for 5-minute deduplication cache. Same key + tool = cached result in <5ms, zero re-fetching.
schemaobjectOptional pre-defined JSON Schema (draft-07). If omitted, schema is auto-inferred from content. Provide to enforce strict field extraction and type coercion.

extract_from_api

Idempotent · 30s timeout · Extract structured data from API response JSON with schema adaptation. Pass `idempotency_key` to deduplicate within 5 minutes.

ParameterTypeDescription
content *stringAPI response body as raw JSON string (max 200KB). Can be single object, array of objects, or array of primitives. Automatically parsed and validated.
idempotency_keystringOptional deduplication key (UUID or unique string) for 5-minute cache. Identical calls return cached result instantly.
schemaobjectOptional target JSON Schema (draft-07) for field extraction. If omitted, inferred from content structure. Enforces consistent field extraction across multiple API responses.

auto_schema_learn

Idempotent · 30s timeout · Automatically infer JSON Schema from sample data without extraction. Pass `idempotency_key` to deduplicate within 5 minutes.

ParameterTypeDescription
sample_data *stringRepresentative sample data as JSON string (array of objects or single object). Schema is inferred from structure; use first 1-10 rows for array samples. Max 200KB.
idempotency_keystringOptional cache key (UUID/string) for 5-minute deduplication. Repeat calls with same key return cached inferred schema instantly.

batch_extract

Idempotent · 30s timeout · Extract data from multiple sources (JSON/JSONL/text) with a single consistent schema. Pass `idempotency_key` to deduplicate within 5 minutes.

ParameterTypeDescription
sources *arrayArray of 1-100 data sources to extract from. Each source includes type (format) and content (raw data).
idempotency_keystringOptional deduplication key (UUID/string) for 5-minute cache. Identical batch calls (same sources + schema + key) return cached results instantly.
schemaobjectOptional target JSON Schema (draft-07) applied to all sources. If omitted, inferred from first source and reused across remaining sources. Enables consistent field extraction from diverse formats.