diff-mcp
by benjamine
diff-mcp is an MCP server that compares text or data and provides a readable diff. It is powered by jsondiffpatch and can compare various data formats.
Last updated: N/A
What is diff-mcp?
diff-mcp is an MCP server designed to compare text or data and generate a readable diff. It leverages jsondiffpatch for its core functionality.
How to use diff-mcp?
To use diff-mcp, configure it within your claude_desktop_config.json
file by adding a 'diff' entry under 'mcpServers' with the specified command and arguments. This allows Claude Desktop to utilize the server for comparing text and data.
Key features of diff-mcp
Compares text using google-diff-match-patch.
Compares data (JSON, JSON5, YAML, TOML, XML, HTML).
Provides diffs in multiple output formats (text, JSON, JSONPatch).
Supports various input formats for both left and right sides of the comparison.
Easy integration with Claude Desktop.
Use cases of diff-mcp
Comparing different versions of configuration files.
Highlighting changes in text documents.
Generating patches for data updates.
Identifying differences between API responses.
Comparing HTML or XML structures.
FAQ from diff-mcp
What data formats are supported for comparison?
What data formats are supported for comparison?
The server supports text, JSON, JSON5, YAML, TOML, XML, and HTML.
What output formats are available for the diff?
What output formats are available for the diff?
The diff can be outputted in text, JSON, or JSONPatch format.
How do I integrate this with Claude Desktop?
How do I integrate this with Claude Desktop?
Add the provided configuration snippet to your claude_desktop_config.json
file.
What is jsondiffpatch?
What is jsondiffpatch?
jsondiffpatch is a library used by diff-mcp to perform the comparison and generate the diff.
Is this server open source?
Is this server open source?
Yes, this MCP server is licensed under the MIT License.