JsonMend

•

Repair malformed JSON generated by LLMs and validate structured data against JSON Schemas.

JsonMend is a specialized utility designed to handle imperfect and broken JSON outputs commonly generated by Large Language Models. Built as a fast Cloudflare Worker with both an API and a remote Streamable HTTP MCP server, it enables AI assistants and developer pipelines to automatically repair invalid syntax, syntax errors, and formatting flaws. In addition to syntax recovery, it validates repaired payloads directly against custom JSON Schemas to ensure downstream applications receive predictable, well-formed data.

主な機能

01Automatic repair of truncated, malformed, or syntax-broken JSON strings
02JSON Schema validation to verify structure, types, and required fields
03Remote Streamable HTTP MCP server compatible with Cursor, Windsurf, Cline, and Claude Desktop
04Exposes dedicated repair_json and validate_json MCP tools
05Serverless, low-latency deployment built on Cloudflare Workers
060 GitHub stars

ユースケース

01Fixing syntactically invalid JSON outputs produced during LLM structured generation
02Validating extracted agent data against strict schemas before database insertion
03Equipping AI coding assistants with tools to sanitize and check complex JSON structures