# keremurat-json [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/keremurat/mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/keremurat-json

## Description
Compare two JSON files deeply without worrying about key or array order. Detect missing, extra, an…

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/keremurat/mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/yourusername/json-compare-mcp.git
```

2. Run:

```sh
cd json-compare-mcp
```

3. Install:

```sh
pip install -r requirements.txt
```

4. Start the server:

```sh
python server.py
```

5. Install:

```sh
docker build -t json-compare-mcp .
```

6. Start the server:

```sh
docker run -p 8000:8000 json-compare-mcp
```

## Documentation

## What keremurat-json MCP server does

keremurat-json MCP server exposes one MCP tool, `compare_json`, for comparing two JSON documents supplied as strings. It examines nested objects, properties, and arrays rather than limiting the check to top-level fields. Object and property order do not affect the result, and array order is also ignored according to the repository description.

The comparison distinguishes four conditions: a key present only in the first input, a key present only in the second, unequal values, and differing data types. Each reported issue includes a path such as `root.user.settings.theme`, making it possible to locate the problem in a nested document. The response also contains an overall status, a total difference count, individual difference records, and counts grouped by category.

## How it works

The tool receives `json1` and `json2` as JSON-formatted strings. It parses the inputs and recursively compares matching structures. Keys are matched independently of their ordering, while missing and additional keys are recorded instead of being treated as a generic failure. Values are checked for equality, and their types are compared separately so a type difference can be reported distinctly.

A matching document returns an `identical` status in the documented test scenarios. When differences exist, the result uses a `different` status and provides details such as the difference type, location, relevant values, and a human-readable message. The repository describes the implementation as a recursive comparison algorithm.

## Setup and configuration

The project requires Python 3.11 or newer and lists `mcp` and `requests` as dependencies. Install the dependencies from `requirements.txt`, then start the server with `python server.py`. The repository also includes a test script, `test_compare.py`, covering reordered content, differing values, and comparing a document with itself.

keremurat-json MCP server can also be packaged with the included Dockerfile. The documented container command builds an image and runs it with port 8000 published. A Smithery configuration file is included for deployment through Smithery.

## Tools and capabilities

The available MCP tool is:

- `compare_json`: Compares two JSON strings and returns structured difference information.

Supported reporting includes missing keys, extra keys, value mismatches, type mismatches, nested paths, and summary counts. The examples show direct string inputs rather than file paths, so callers should load or obtain the JSON content before invoking the tool.

## Limitations and notes

The documented interface accepts JSON strings, not file paths. The material does not describe schema validation, patch generation, automatic correction, or additional MCP tools.

The comparison is intentionally order-independent for objects, properties, and arrays. That behavior is useful when equivalent JSON may be serialized in different orders, but it means the tool is not suitable for checks where array position itself carries meaning. keremurat-json MCP server also reports differences rather than modifying either input.

_Full upstream README: https://allmcps.com/mcp/keremurat-json/readme_

