# Json Mender MCP

> Json Mender MCP is an open-source MCP server for developer tools. Local MCP server that repairs broken JSON, tests regex and validates JSON Schema. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted, macOS, Windows, Linux
- **Repository:** https://github.com/headlessherm-creator/json-mender-mcp
- **MCP Registry name:** io.github.headlessherm-creator/json-mender-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-18

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

- `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.

## 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/json-mender-mcp
