JsonMend is an MCP server published by dev.workers.mike-tusa.jsonmend, hosted at jsonmend.mike-tusa.workers.dev. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 2 tools, including repair_json, validate_json.
Repair broken JSON from LLM output and validate it against a JSON Schema.
29 connections through 4 shared values. Tap any node.
Turn broken or messy JSON text into valid JSON. Strips Markdown code fences and prose before/after the JSON, removes comments and trailing commas, converts single/curly quotes, quotes unquoted keys, maps Python None/True/False, inserts missing commas, closes truncated strings/arrays/objects, and wraps NDJSON / several concatenated objects into one array. Returns the parsed value (json), the repaired text, and the list of fixes applied; valid input passes through unchanged with no fixes. Optional schema (+ coerce) also validates the result. Fails with isError (code unrepairable / no_json_found) when nothing JSON-like can be recovered. Pure computation: read-only, no network access, inputs not stored. Same engine and limits as POST /api/v1/repair.
| Parameter | Type | Description |
|---|---|---|
| draft | string | JSON Schema draft. Default: from the schema's $schema, else 2020-12. |
| input * | string | The raw (possibly broken) JSON text, e.g. an LLM reply with code fences and prose around the JSON. Max 102,400 bytes (UTF-8). |
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
| coerce |
| boolean |
| Convert values toward the schema's declared types before validating: "42" → 42, "true" → true, "null" → null, 5 → "5", x → [x]. Each change is listed in coercions. |
| format | string | Layout of the returned text: compact (default), pretty (2-space indent), or preserve (jsonrepair's output, keeps original spacing and long-number digits). |
| schema | object | A JSON Schema (draft 2020-12 by default; 2019-09, 7 and 4 also supported). Only local $refs (#/...) resolve; remote $refs are an error. Max 32 KB. |
{
"name": "repair_json",
"title": "Repair broken JSON (LLM output) and list the fixes",
"description": "Turn broken or messy JSON text into valid JSON. Strips Markdown code fences and prose before/after the JSON, removes comments and trailing commas, converts single/curly quotes, quotes unquoted keys, maps Python None/True/False, inserts missing commas, closes truncated strings/arrays/objects, and wraps NDJSON / several concatenated objects into one array. Returns the parsed value (json), the repaired text, and the list of fixes applied; valid input passes through unchanged with no fixes. Optional schema (+ coerce) also validates the result. Fails with isError (code unrepairable / no_json_found) when nothing JSON-like can be recovered. Pure computation: read-only, no network access, inputs not stored. Same engine and limits as POST /api/v1/repair.",
"inputSchema": {
"type": "object",
"required": [
"input"
],
"properties": {
"draft": {
"enum": [
"2020-12",
"2019-09",
"7",
"4"
],
"type": "string",
"description": "JSON Schema draft. Default: from the schema's $schema, else 2020-12."
},
"input": {
"type": "string",
"maxLength": 102400,
"minLength": 1,
"description": "The raw (possibly broken) JSON text, e.g. an LLM reply with code fences and prose around the JSON. Max 102,400 bytes (UTF-8)."
},
"coerce": {
"type": "boolean",
"default": false,
"description": "Convert values toward the schema's declared types before validating: \"42\" → 42, \"true\" → true, \"null\" → null, 5 → \"5\", x → [x]. Each change is listed in coercions."
},
"format": {
"enum": [
"compact",
"pretty",
"preserve"
],
"type": "string",
"default": "compact",
"description": "Layout of the returned text: compact (default), pretty (2-space indent), or preserve (jsonrepair's output, keeps original spacing and long-number digits)."
},
"schema": {
"type": "object",
"description": "A JSON Schema (draft 2020-12 by default; 2019-09, 7 and 4 also supported). Only local $refs (#/...) resolve; remote $refs are an error. Max 32 KB."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"ok",
"changed",
"inputWasValid",
"fixes",
"json"
],
"properties": {
"ok": {
"type": "boolean"
},
"json": {
"description": "The repaired JSON value (coerced if coerce was used)"
},
"plan": {
"enum": [
"anonymous",
"key"
],
"type": "string"
},
"fixes": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"enum": [
"removed_bom",
"stripped_code_fence",
"removed_surrounding_text",
"removed_leading_text",
"removed_trailing_text",
"extra_closing_brackets",
"wrapped_multiple_values",
"comments",
"single_quotes",
"smart_quotes",
"unquoted_keys",
"unquoted_strings",
"trailing_commas",
"extra_commas",
"missing_commas",
"missing_colons",
"python_literals",
"non_json_literals",
"invalid_numbers",
"control_characters",
"truncated",
"other_syntax_fixes"
],
"type": "string"
},
"count": {
"type": "integer",
"minimum": 2
},
"message": {
"type": "string"
}
}
}
},
"format": {
"enum": [
"compact",
"pretty",
"preserve"
],
"type": "string"
},
"schema": {
"type": "object",
"required": [
"valid",
"errorCount",
"errors"
],
"properties": {
"draft": {
"enum": [
"2020-12",
"2019-09",
"7",
"4"
],
"type": "string"
},
"valid": {
"type": "boolean"
},
"errors": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"keyword",
"message"
],
"properties": {
"path": {
"type": "string",
"description": "JSON Pointer to the failing value (\"\" = root)"
},
"keyword": {
"type": "string"
},
"message": {
"type": "string"
},
"schemaPath": {
"type": "string"
}
}
}
},
"coerced": {
"type": "boolean"
},
"coercions": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"from",
"to"
],
"properties": {
"to": {
"type": "string"
},
"from": {
"type": "string"
},
"path": {
"type": "string"
}
}
}
},
"errorCount": {
"type": "integer",
"description": "Total errors (at most 50 are listed); a lower bound when errorsTruncated is true"
},
"errorsTruncated": {
"type": "boolean",
"description": "true when the validator produced more than 5,000 raw errors and only the first 5,000 were examined"
}
}
},
"values": {
"type": "integer",
"description": "Number of top-level JSON values found (more than 1 = wrapped in an array)"
},
"changed": {
"type": "boolean",
"description": "false when the input was already valid JSON"
},
"version": {
"type": "string"
},
"warnings": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"inputBytes": {
"type": "integer"
},
"outputBytes": {
"type": "integer"
},
"inputWasValid": {
"type": "boolean"
}
}
},
"annotations": {
"title": "Repair JSON",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Check JSON against a JSON Schema and get every error with its JSON Pointer path. Send the JSON either as text ("input"; broken text is repaired first, and the fixes are listed) or as an already-parsed value ("data"). Optional coerce converts "42" → 42, "true" → true, etc. toward the schema's types before validating and lists each change. A schema mismatch is a normal result (valid: false), not an error. Drafts 2020-12 (default), 2019-09, 7, 4; only local $refs. Pure computation: read-only, no network access, inputs not stored. Same engine and limits as POST /api/v1/validate.
| Parameter | Type | Description |
|---|---|---|
| data | any | An already-parsed JSON value to validate. Send this or "input", not both. |
| draft | string | JSON Schema draft. Default: from the schema's $schema, else 2020-12. |
| input | string | JSON text to validate (repaired first if broken). Send this or "data", not both. Max 102,400 bytes. |
| coerce | boolean | Convert values toward the schema's declared types before validating: "42" → 42, "true" → true, "null" → null, 5 → "5", x → [x]. Each change is listed in coercions. |
| schema * | object | A JSON Schema (draft 2020-12 by default; 2019-09, 7 and 4 also supported). Only local $refs (#/...) resolve; remote $refs are an error. Max 32 KB. |
{
"name": "validate_json",
"title": "Validate JSON against a JSON Schema (repairs broken input first)",
"description": "Check JSON against a JSON Schema and get every error with its JSON Pointer path. Send the JSON either as text (\"input\"; broken text is repaired first, and the fixes are listed) or as an already-parsed value (\"data\"). Optional coerce converts \"42\" → 42, \"true\" → true, etc. toward the schema's types before validating and lists each change. A schema mismatch is a normal result (valid: false), not an error. Drafts 2020-12 (default), 2019-09, 7, 4; only local $refs. Pure computation: read-only, no network access, inputs not stored. Same engine and limits as POST /api/v1/validate.",
"inputSchema": {
"type": "object",
"required": [
"schema"
],
"properties": {
"data": {
"description": "An already-parsed JSON value to validate. Send this or \"input\", not both."
},
"draft": {
"enum": [
"2020-12",
"2019-09",
"7",
"4"
],
"type": "string",
"description": "JSON Schema draft. Default: from the schema's $schema, else 2020-12."
},
"input": {
"type": "string",
"maxLength": 102400,
"minLength": 1,
"description": "JSON text to validate (repaired first if broken). Send this or \"data\", not both. Max 102,400 bytes."
},
"coerce": {
"type": "boolean",
"default": false,
"description": "Convert values toward the schema's declared types before validating: \"42\" → 42, \"true\" → true, \"null\" → null, 5 → \"5\", x → [x]. Each change is listed in coercions."
},
"schema": {
"type": "object",
"description": "A JSON Schema (draft 2020-12 by default; 2019-09, 7 and 4 also supported). Only local $refs (#/...) resolve; remote $refs are an error. Max 32 KB."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"ok",
"valid",
"errorCount",
"errorsTruncated",
"errors",
"json"
],
"properties": {
"ok": {
"type": "boolean"
},
"json": {
"description": "The validated value (after repair and coercion)"
},
"plan": {
"enum": [
"anonymous",
"key"
],
"type": "string"
},
"draft": {
"enum": [
"2020-12",
"2019-09",
"7",
"4"
],
"type": "string"
},
"fixes": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"enum": [
"removed_bom",
"stripped_code_fence",
"removed_surrounding_text",
"removed_leading_text",
"removed_trailing_text",
"extra_closing_brackets",
"wrapped_multiple_values",
"comments",
"single_quotes",
"smart_quotes",
"unquoted_keys",
"unquoted_strings",
"trailing_commas",
"extra_commas",
"missing_commas",
"missing_colons",
"python_literals",
"non_json_literals",
"invalid_numbers",
"control_characters",
"truncated",
"other_syntax_fixes"
],
"type": "string"
},
"count": {
"type": "integer",
"minimum": 2
},
"message": {
"type": "string"
}
}
}
},
"valid": {
"type": "boolean"
},
"errors": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"keyword",
"message"
],
"properties": {
"path": {
"type": "string",
"description": "JSON Pointer to the failing value (\"\" = root)"
},
"keyword": {
"type": "string"
},
"message": {
"type": "string"
},
"schemaPath": {
"type": "string"
}
}
}
},
"coerced": {
"type": "boolean"
},
"version": {
"type": "string"
},
"repaired": {
"type": "boolean",
"description": "true when \"input\" needed repair before validation"
},
"warnings": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"coercions": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"from",
"to"
],
"properties": {
"to": {
"type": "string"
},
"from": {
"type": "string"
},
"path": {
"type": "string"
}
}
}
},
"errorCount": {
"type": "integer",
"description": "Total errors (at most 50 are listed); a lower bound when errorsTruncated is true"
},
"errorsTruncated": {
"type": "boolean",
"description": "true when the validator produced more than 5,000 raw errors and only the first 5,000 were examined"
}
}
},
"annotations": {
"title": "Validate JSON",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}JsonMend turns broken JSON (typically LLM output) into valid JSON. Call repair_json with the raw text as "input": it strips Markdown code fences and prose around the JSON, fixes trailing commas, single or curly quotes, unquoted keys, comments, Python None/True/False, missing commas, and closes truncated strings/arrays/objects; it returns the parsed value ("json"), the repaired text, and a list of the fixes applied. Already-valid JSON is returned unchanged with no fixes. Pass an optional JSON Schema ("schema", with "coerce": true to convert "42" → 42 etc.) to also get validation errors. Use validate_json to check JSON text or an already-parsed value ("data") against a schema. Input limit 102,400 bytes. Pure computation: nothing is fetched and inputs are not stored. Anonymous use is limited to about 10 requests per minute and 30 per day per IP; send "Authorization: Bearer <key>" or "X-API-Key: <key>" with a free jm_ key (POST /api/v1/keys) for about 30 per minute and 1,000 per month.
Names, descriptions and schemas were written by the server and are shown as data.
Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators.