repair_json
Repair malformed JSON (trailing commas, unescaped quotes, missing brackets) and return the parsed result.
text必填
io.github.headlessherm-creator由 GitHub 账号 headlessherm-creator 发布v0.2.1更新于 Oct 30, 2026
Local MCP server: JSON repair, regex testing, JSON-Schema validation for AI agents.
本地 MCP 服务器,可修复格式错误的 JSON、测试正则表达式,并按 JSON Schema 校验数据,全部为确定性的离线计算。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
参照 仓库 中的启动说明。
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
来源:README.md,提交 0f903b3
Repair malformed JSON (trailing commas, unescaped quotes, missing brackets) and return the parsed result.
text必填Test a regex pattern against one or more strings deterministically and return match details.
flagspattern必填testStrings必填Validate data against a real JSON-Schema (draft 2020-12) and report all errors.
data必填schema必填已满足适用检查项的 90%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
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"] } }}