JsonDiffPatch
About
Compares and patches JSON objects with a compact delta format that captures additions, modifications, deletions, and array moves for efficient data synchronization and change visualization.
Details
- Author
- benjamine
- Repository
- benjamine/jsondiffpatch
- GitHub stars
- 4,975
- Downloads
- 644
- License
- MIT License
- Categories
- Developer Tools, AI, Infrastructure
- Tags
- #web
Jump to
- compare text (using text diff powered by google-diff-match-patch )
- compare data (json, json5, yaml, toml, xml, html) and get a readable diff in multiple output formats (text, json, jsonpatch)
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
JsonDiffPatchCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
diff-mcp
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Add this to your claude_desktop_config.json:
`` json``
{
"mcpServers": {
"diff": {
"command": "npx",
"args": [
"-y",
"diff-mcp"
]
}
}
}
diff
Compare text or data and get a readable diff. Inputs: left (string | unknown[] | Record<string, unknown>), leftFormat (optional string), right (string | unknown[] | Record<string, unknown>), rightFormat (optional string), outputFormat (optional string)
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"jsondiffpatch": {
"env": {},
"args": [
"-y",
"diff-mcp"
],
"shell": false,
"command": "npx"
}
}
}
Linux
{
"env": [],
"args": [
"-y",
"diff-mcp"
],
"shell": false,
"command": "npx"
}
Macos
{
"env": [],
"args": [
"-y",
"diff-mcp"
],
"shell": false,
"command": "npx"
}
Windows
{
"env": [],
"args": [
"/c",
"npx",
"-y",
"diff-mcp"
],
"shell": false,
"command": "cmd"
}
diff
compare text or data and get a readable diff.
Inputs:
- left (string | unknown[] | Record<string, unknown>): left text or data
- leftFormat (string, optional): text, json, json5 (default), yaml, toml, xml, html
- right (string | unknown[] | Record<string, unknown>): right text or data (to compare with left)
- rightFormat (string, optional): text, json, json5 (default), yaml, toml, xml, html
- outputFormat (string, optional): text (default), json, jsonpatch
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




