repair_json
Repair malformed JSON (trailing commas, unescaped quotes, missing brackets) and return the parsed result.
textrequired
io.github.headlessherm-creatorPublished by GitHub account headlessherm-creatorv0.2.1Updated Oct 30, 2026
Local MCP server: JSON repair, regex testing, JSON-Schema validation for AI agents.
Local MCP server that repairs malformed JSON, tests regex patterns, and validates data against JSON Schema, all as deterministic offline computation.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Follow the launch instructions in the repository.
A free, local MCP server that fixes broken JSON output from LLMs, validates data against a real JSON Schema, and tests regex patterns deterministically — no API keys, no network calls, no telemetry.
If you're building an AI agent and keep hitting JSONDecodeError, unterminated strings, trailing commas, or unquoted keys in model output, this is the MCP server for that exact problem.
Same local-first, deterministic philosophy as polymath-megablaster-mcp, applied specifically to the "model wrote JSON that doesn't parse" problem.
LLMs — especially smaller or local models (Llama, Qwen, Mistral) — routinely produce JSON that looks right but fails to parse: trailing commas, single quotes instead of double, unescaped inner quotes, missing commas, truncated output. Asking the model to "fix the JSON" usually just produces a second broken attempt. repair_json fixes it deterministically, every time, the same way, with no second model call needed.
jsonrepair.1. Install Node.js (v18+) if you don't have it: https://nodejs.org
2. Clone and install:
3. Point your MCP client at it:
Setup docs for common clients:
No fetch/http import anywhere in src/tools.js — every tool runs as pure local computation using jsonrepair and ajv, both well-established, actively maintained npm packages. Nothing you send through this server leaves your machine.
JSON repair MCP server, fix broken JSON from LLM, malformed JSON parser, JSON schema validation MCP, regex tester MCP, local MCP server no API key, Claude MCP JSON tools, AI agent structured output validation.
Same local-first philosophy, different problems:
MIT
Source: README.md at commit 0f903b3
Repair malformed JSON (trailing commas, unescaped quotes, missing brackets) and return the parsed result.
textrequiredTest a regex pattern against one or more strings deterministically and return match details.
flagspatternrequiredtestStringsrequiredValidate data against a real JSON-Schema (draft 2020-12) and report all errors.
datarequiredschemarequired90% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
git clone https://github.com/headlessherm-creator/json-mender-mcp.gitcd json-mender-mcpnpm install{ "mcpServers": { "json-mender": { "command": "node", "args": ["/path/to/json-mender-mcp/src/index.js"] } }}