Json Mender Mcp

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.

已驗證STDIO僅桌面開發者工具資料與分析

概覽

AI 產生的概覽

本機 MCP 伺服器,可修復格式錯誤的 JSON、測試正規表示式,並依 JSON Schema 驗證資料,全部為確定性的離線運算。

可以做什麼
  • 修復損壞的 JSON(尾隨逗號、未加引號的鍵、未轉義的引號、被截斷的結構)並回傳解析結果
  • 以一個正規表示式比對一個或多個字串並回傳比對詳情
  • 依 draft 2020-12 JSON Schema 驗證 JSON 資料並提供逐欄位的錯誤訊息
適用情境
適用於助理或代理程式反覆產生無法解析的 JSON 時、需要確認產生的正規表示式是否真的比對到目標字串時,或結構化輸出在使用前需要依 schema 檢查時。
執行需求
以 npm 本機程序方式執行,需要 Node.js v18 或更新版本。未宣告需要 API 金鑰、環境變數、標頭或網路存取。
安裝前請注意
README 表示不使用網路請求、遙測或憑證,工具僅在本機運算;但修復與驗證結果仍應在採信為正確資料前人工複核。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Json Mender Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

JSON Mender MCP — Fix Malformed JSON, Validate JSON Schema, Test Regex for AI Agents

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.

The problem this solves

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.

Tools

  • repair_json — fix malformed/invalid JSON (trailing commas, unquoted keys, unescaped quotes, truncated structures) and return the corrected, parsed result. Built on jsonrepair.
  • validate_regex — test a regex pattern against one or more strings deterministically. Useful because models frequently write regex that compiles but doesn't match what they think it matches.
  • validate_against_schema — validate any JSON data against a real JSON Schema (via ajv, the most widely used JS Schema validator) and get precise, per-field, human-readable error messages instead of a generic pass/fail.

Setup

1. Install Node.js (v18+) if you don't have it: https://nodejs.org

2. Clone and install:

bash
git clone https://github.com/headlessherm-creator/json-mender-mcp.gitcd json-mender-mcpnpm install

3. Point your MCP client at it:

json
{  "mcpServers": {    "json-mender": {      "command": "node",      "args": ["/path/to/json-mender-mcp/src/index.js"]    }  }}

Setup docs for common clients:

Why local

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.

Keywords

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.

Related tools

Same local-first philosophy, different problems:

License

MIT

來源:README.md,提交 0f903b3

工具

3

repair_json

Repair malformed JSON (trailing commas, unescaped quotes, missing brackets) and return the parsed result.

輸入參數text必填

validate_regex

Test a regex pattern against one or more strings deterministically and return match details.

輸入參數flagspattern必填testStrings必填

validate_against_schema

Validate data against a real JSON-Schema (draft 2020-12) and report all errors.

輸入參數data必填schema必填

版本歷史

1
  1. v0.2.1最新Oct 22, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分