Skip to content
MCP server

Json Mender MCP

Local MCP server that repairs broken JSON, tests regex and validates JSON Schema

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
CLI, self-hosted, macOS
Runs
Locally
Version
0.2.1
Listing updated
today

Similar MCP servers

About Json Mender MCP

Json Mender MCP is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Models often return JSON with trailing commas, single quotes, unquoted keys or truncated endings, and asking them to fix it tends to fail again. This server repairs such output in code, so the same input always gives the same result and no second model call is needed.

It runs on your machine over stdio. The README says it has no network calls, no API keys and no telemetry, and that the tools use the jsonrepair and ajv npm packages. Setup is a git clone, npm install and a client entry pointing node at src/index.js; Node.js 18 or newer is required.

The author lists sibling servers for math, hiring systems and helpdesks. This one is aimed at agent builders who need dependable structured output, including with smaller local models. The licence is MIT.

Install

Run in a terminal

claude mcp add json-mender-mcp -- npx -y json-mender-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "json-mender-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "json-mender-mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "json-mender-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "json-mender-mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "json-mender-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "json-mender-mcp"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "json-mender-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "json-mender-mcp"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "json-mender-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "json-mender-mcp"
      ]
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

repair_json
Fixes malformed JSON and returns the corrected, parsed result.
validate_regex
Tests a regex pattern against one or more strings.
validate_against_schema
Validates JSON data against a JSON Schema with per-field error messages.

What it does

JSON repair
Fixes trailing commas, unquoted keys, bad quotes and truncated structures, then returns the parsed result.
Regex testing
Runs a pattern against one or more strings so the match behaviour is checked, not assumed.
Schema validation
Checks data against a JSON Schema and gives per-field, readable errors.
Fully local
No network calls, API keys or telemetry.
Deterministic
Same input always yields the same output.

Good for

  • Clean up malformed JSON from a local Llama or Qwen model
  • Check that a regex really matches the strings it should
  • Validate agent output against a schema before using it
  • Pinpoint which field fails validation

Pricing

Open source

MIT licence; free

Json Mender MCP FAQ

Does it send data anywhere?

No. The README says nothing leaves your machine and no network code is used in the tools.

What do I need to run it?

Node.js 18 or newer, then clone, npm install and point your client at src/index.js.

What licence is it under?

MIT.

Is Json Mender MCP free?

Yes. Json Mender MCP is open source, so you can use and self-host it for free.

How do I add Json Mender MCP to Claude Code?

Run this command in your terminal: claude mcp add json-mender-mcp -- npx -y json-mender-mcp

What are the best alternatives to Json Mender MCP?

The closest alternatives to Json Mender MCP are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers