MCP server to compare text or data and get a readable diff (supports text, json, jsonc, yaml, toml, etc.)
npm install diff-mcp
jsondiffpatch.com
MCP Server to compare text or data and get a diff
---
powered by jsondiffpatch
- 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)
compare text or data and get a readable diff.
Inputs:
- left (string | unknown[] | Record
- leftFormat (string, optional): text, json, json5 (default), yaml, toml, xml, html
- right (string | unknown[] | Record
- rightFormat (string, optional): text, json, json5 (default), yaml, toml, xml, html
- outputFormat (string, optional): text (default), json, jsonpatch
Add this to your claude_desktop_config.json:
`` json``
{
"mcpServers": {
"diff": {
"command": "npx",
"args": [
"-y",
"diff-mcp"
]
}
}
}
This MCP server is licensed under the MIT License.
This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.