diff-mcp
Allows comparison of TOML data, generating diffs between TOML structures, and processing TOML content for difference analysis
Supports comparison of XML data, generating diffs between XML structures, and processing XML content for difference analysis
Enables comparison of YAML data, generating diffs between YAML structures, and processing YAML content for difference analysis
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@diff-mcp compare these two JSON configs and show me what changed"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
powered by jsondiffpatch
Features
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)
Related MCP server: Unified Diff MCP Server
Tool
diff
compare text or data and get a readable diff.
Inputs:
left(string | unknown[] | Record<string, unknown>): left text or dataleftFormat(string, optional): text, json, json5 (default), yaml, toml, xml, htmlright(string | unknown[] | Record<string, unknown>): right text or data (to compare with left)rightFormat(string, optional): text, json, json5 (default), yaml, toml, xml, htmloutputFormat(string, optional): text (default), json, jsonpatch
Setup
Usage with Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"diff": {
"command": "npx",
"args": [
"-y",
"diff-mcp"
]
}
}
}All contributors ✨
License
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.
Available Tools
1 tooldiffC
compare text or data and get a readable diff
Inputs: state (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only a single tool, there is no possibility of confusion or overlap between tools. The tool's purpose is clearly stated and distinct by default.
The single tool name 'diff' is concise, descriptive, and matches the server's purpose. There is no mixed convention or inconsistency since there is only one tool.
One tool is on the low end of typical server sizes, but for a narrowly scoped diff utility it is a reasonable and focused set. It doesn't feel trivial since diff is a meaningful operation.
The server's stated purpose is to compare text or data and produce a readable diff, which is exactly what the tool provides. There are no obvious gaps for this single-operation domain.
Maintenance
Related MCP Connectors
Compare two JSON files deeply, ignoring order, to surface every difference. Get a clear, structure…
Compare two JSON files deeply, regardless of order. Get a detailed difference report highlighting…
Compare two JSON files deeply without worrying about key or array order. Detect missing, extra, an…
Returns what was added, removed or changed between two Apify datasets, files, Google Sheets or...
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables deep, order-independent comparison of JSON files to detect differences including missing keys, value mismatches, and type differences. Provides detailed reports with path tracking for precise identification of variations between JSON structures.MIT
- AlicenseNot gradedqualityDmaintenanceTransforms code diffs into beautiful visual comparisons with support for GitHub Gist sharing and local file output (HTML/PNG).12 npm12MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to compare documents, analyze changes, and retrieve document info using GroupDocs.Comparison. Supports various formats and includes licensing for production use.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to compare two texts line-by-line and receive a structured diff with additions, deletions, unchanged lines, and summary statistics, paid per call via x402 micropayments.1MIT
Appeared in Searches
- Compare all differences between two source code folders, including binary files
- A system for legal document analysis and contract management
- A method or tool for converting code into a tree structure
- Steps for analyzing new API documentation and writing test cases
- Tools or methods for editing files using diffs