Json Mender Mcp

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.

VerifiedSTDIODesktop onlyDeveloper ToolsData & Analytics

Overview

AI-generated overview

Local MCP server that repairs malformed JSON, tests regex patterns, and validates data against JSON Schema, all as deterministic offline computation.

What you can do
  • Repair broken JSON (trailing commas, unquoted keys, unescaped quotes, truncated structures) and return the parsed result
  • Test a regex pattern against one or more strings and get match details
  • Validate JSON data against a draft 2020-12 JSON Schema and get per-field error messages
When to use it
Useful when an assistant or agent keeps producing JSON that fails to parse, when you want to check that a generated regex actually matches the intended strings, or when structured output must be checked against a schema before it is used.
Requirements
Runs as a local process via npm; needs Node.js v18 or later. No API keys, environment variables, headers, or network access are declared.
Before you install
The README states no network calls, telemetry, or credentials are used, and the tools only compute locally; repair and validation results should still be reviewed before being trusted as corrected data.

Installation

In SourceWeft

  1. Open Json Mender Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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

Source: README.md at commit 0f903b3

Tools

3

repair_json

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

Parameterstextrequired

validate_regex

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

ParametersflagspatternrequiredtestStringsrequired

validate_against_schema

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

Parametersdatarequiredschemarequired

Version history

1
  1. v0.2.1LatestOct 22, 2026

Score

90% 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.

  • Reached in the last 30 days25 pts
  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts