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"] } }}