About JsonMend
Repair broken JSON from LLM output and validate it against a JSON Schema.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://jsonmend.mike-tusa.workers.dev/mcpclaude mcp add --transport http dev-workers-mike-tusa-jsonmend-jsonmend https://jsonmend.mike-tusa.workers.dev/mcp{"mcpServers":{"dev-workers-mike-tusa-jsonmend-jsonmend":{"type":"http","url":"https://jsonmend.mike-tusa.workers.dev/mcp"}}}Open in Cursor{"servers":{"dev-workers-mike-tusa-jsonmend-jsonmend":{"type":"http","url":"https://jsonmend.mike-tusa.workers.dev/mcp"}}}Open in VS Code{"mcpServers":{"dev-workers-mike-tusa-jsonmend-jsonmend":{"type":"http","url":"https://jsonmend.mike-tusa.workers.dev/mcp"}}}{"mcpServers":{"dev-workers-mike-tusa-jsonmend-jsonmend":{"serverUrl":"https://jsonmend.mike-tusa.workers.dev/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
https://jsonmend.mike-tusa.workers.dev/mcpAuth requiredTools
2| Parameter | Type | Required | Description |
|---|---|---|---|
| draft | enum | No | JSON Schema draft. Default: from the schema's $schema, else 2020-12.2020-12 | 2019-09 | 7 | 4 |
| input | string | Yes | 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 | boolean | No | 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 | No | Layout of the returned text: compact (default), pretty (2-space indent), or preserve (jsonrepair's output, keeps original spacing and long-number digits).compact | pretty | preserve |
| schema | object | No | 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. |
Details
The maintainer has not added details yet. Check the README in the repository.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.