
X402 JSON Repair
- Updated June 15, 2026
- ktcod/x402-json-repair-mcp
x402 JSON Repair is a pay-per-call MCP server that performs deterministic JSON repair and JSON Schema validation so AI agents can obtain schema-conformant structured data from messy model output.
About
x402 JSON Repair is a pay-per-call MCP server that deterministically cleans invalid JSON from LLMs and optionally validates it against JSON Schema, settling micropayments in USDC on Base through x402. It runs serverlessly with no private keys on the hot path, targeting agents that discover and pay for tools autonomously. Use it when agent workflows keep failing on trailing commas, fences, or schema drift and you want a paid, stateless repair endpoint.
- structured_json_repair fixes common LLM JSON defects deterministically
- Optional JSON Schema draft 2020-12 validation and primitive coercion
- x402 pay-per-call USDC on Base with Cloudflare Workers deployment
- Tool-agnostic MCP skeleton separate from repair logic
X402 JSON Repair by the numbers
- Data as of Jul 7, 2026 (Skillselion catalog sync)
claude mcp add --transport http x402-json-repair-mcp https://x402.agentfund.net/mcpAdd your badge
Show developers this MCP server is listed on Skillselion. Paste this into your README.
| Transport | HTTP |
|---|---|
| Auth | None |
| Last updated | June 15, 2026 |
| Repository | ktcod/x402-json-repair-mcp ↗ |
How do agents turn frequently invalid LLM JSON strings into schema-valid objects without running another model call?
Repair malformed LLM JSON and validate against JSON Schema with pay-per-call USDC settlement on Base via x402.
Who is it for?
Agent builders deploying autonomous tool callers that need deterministic repair plus x402 micropayments on Base.
Skip if: Teams that only need free local JSON linting without payment protocols or schema coercion.
What you get
A structured response with ok, repaired data, changed flag, errors, and repair notes after optional USDC payment per call.
Recommended MCP Servers
FAQ
What does structured_json_repair fix?
Trailing commas, single quotes, unquoted keys, Python literals, NaN or Infinity, code fences, and truncated tails.
How is it paid for?
Pay-per-call via the x402 payment protocol with USDC on Base; revenue goes to a public payout address.
Does it call an LLM to repair JSON?
No; repair and validation are deterministic with no model on the hot path.