
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@noamjose/schemasure
Advanced tools
SchemaSure MCP client: turn text/HTML or document images into guaranteed schema-valid JSON via x402 V2.
MCP client for SchemaSure exposing two outcome-shaped tools:
extract_to_schema(input, schema) turns messy text/HTML into validated JSON.extract_image_to_schema(image, schema) reads PNG, JPEG, or WebP invoices, receipts, forms,
screenshots, labels, and photographed documents into validated JSON.Both return data guaranteed to validate against your JSON Schema (Ajv, draft 2020-12), or a typed error.
This package is a thin client: it forwards calls to the hosted SchemaSure API and relays the response. It ships no extraction logic and needs no LLM API key. It runs in one of two modes, selected automatically:
POST /extract with a small
free allowance.SCHEMASURE_PRIVATE_KEY and the client calls the always-paid
production APIs POST /v2/extract and POST /v2/extract-image (x402 V2, USDC on Base mainnet,
charge-only-on-success). Your key
is used locally to sign the x402 payment and is never sent to SchemaSure, returned in tool
output, or logged.Image extraction is V2-only and always paid. It has no V1 endpoint and no free calls; when no
wallet is configured, the image tool returns PAYMENT_REQUIRED without uploading the image.
Benchmarked 100% schema-valid with ~0.99 field F1 and zero hallucinations across a 10-doc-type
corpus (11 items, incl. an adversarial prompt-injection tier), p50 latency ~1.5s. Evidence:
/.well-known/benchmarks.json.
Run directly with npx (no install, no key):
npx -y @noamjose/schemasure
mcpServers){
"mcpServers": {
"schemasure": {
"command": "npx",
"args": ["-y", "@noamjose/schemasure"]
}
}
}
.vscode/mcp.json){
"servers": {
"schemasure": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@noamjose/schemasure"]
}
}
}
No configuration is required for free evaluation. Environment variables:
| Var | Default | Purpose |
|---|---|---|
SCHEMASURE_API_URL | https://schemasure.com | Point at a self-hosted or staging deployment |
SCHEMASURE_TIMEOUT_MS | 90000 | Per-call request timeout (ms) |
SCHEMASURE_PRIVATE_KEY | (unset) | 0x-prefixed 32-byte EVM key. Presence enables paid x402 V2 mode. Used only to sign payments locally |
SCHEMASURE_MAX_PRICE_USD | 0.10 | Client-side spend cap per call; the client refuses to pay if the server advertises more |
{
"mcpServers": {
"schemasure": {
"command": "npx",
"args": ["-y", "@noamjose/schemasure"],
"env": { "SCHEMASURE_PRIVATE_KEY": "0x<your-funded-base-mainnet-key>" }
}
}
}
When SCHEMASURE_PRIVATE_KEY is set, the client calls the matching V2 text or image endpoint, decodes the
PAYMENT-REQUIRED challenge, signs an exact-scheme USDC authorization on Base mainnet
(eip155:8453), and retries with PAYMENT-SIGNATURE. On success it returns { data, meta }; the
PAYMENT-RESPONSE receipt is handled internally and never surfaced to the model.
Security notes
SCHEMASURE_MAX_PRICE_USD caps per-call spend as a guard against a misconfigured/hijacked endpoint.extract_to_schema takes input (text/HTML) and a schema (JSON Schema, draft 2020-12). It
returns { data, meta } where data is guaranteed to validate against your schema, or a typed
error (and no charge) if it cannot.
For images, pass raw base64 bytes without a data-URL prefix:
{
"image": { "data": "<base64 PNG/JPEG/WebP bytes>", "mimeType": "image/png" },
"schema": {
"type": "object",
"required": ["invoiceNumber", "total"],
"properties": {
"invoiceNumber": { "type": "string" },
"total": { "type": "number" }
}
}
}
FAQs
SchemaSure MCP client: turn text/HTML or document images into guaranteed schema-valid JSON via x402 V2.
We found that @noamjose/schemasure demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.