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 "Install 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-mcpcompare 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: JSON Compare 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
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, and the description does not disclose behavioral traits such as whether the operation is read-only, destructive, or requires specific permissions. The description is minimal and does not add behavioral context beyond the tool name.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is very concise at one sentence, with no unnecessary words. However, it could be better structured by front-loading key information. It is adequately sized but lacks depth.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complex nested input schema, multiple format options, and no output schema, the description is insufficient. It does not explain the return value, error cases, or how different formats affect output. The tool requires richer context to be fully usable.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has descriptions for sub-parameters (left, right, formats) but the main 'state' parameter lacks a description. The tool description does not add any parameter information, leaving the agent to rely solely on the schema. Schema coverage is 0% for the top-level parameter, but sub-parameters are documented.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states it compares text or data and returns a diff. The verb and resource are specific, and the tool's name matches the purpose. However, it lacks details on what types of diff outputs are available, which could be more precise.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives, or when not to use it. The description simply states what it does without context for decision making.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
v1.0.0- First observed
diff
TDQS
With only one tool, there is no possibility of confusion or overlap between tools. The tool has a distinct and clear purpose, making disambiguation perfect.
There is only one tool named 'diff', so naming consistency is inherently perfect. No patterns or conventions can be inconsistent in a single-tool set.
A single tool is too few for most server purposes, as it limits functionality and scope. While the tool is well-defined, a server typically needs multiple tools to cover a domain adequately, making this borderline inappropriate.
The server has only one tool for diffing, which is severely incomplete for any meaningful domain. There are obvious gaps, such as no tools for applying diffs, merging, or handling different data formats, leading to dead ends in workflows.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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…
Utilities: JSON, regex, cron, hash, base64, URL, color, diff, CSV, JWT, UUID, Markdown, semver, time
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables intelligent file and folder comparison with advanced text normalization, duplicate detection, and line-level diff analysis. Provides secure workspace-constrained file operations with CRC32-based exact matching and smart text comparison capabilities.-
- 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
- FlicenseCqualityDmaintenanceAn efficient MCP server for performing accurate, deep comparisons between JSON objects or strings using the deepdiff engine. It provides AI agents with standardized difference reports, supporting nested structures and various input formats to ensure precise data analysis.1-
- AlicenseNot gradedqualityFmaintenanceTransforms code diffs into beautiful visual comparisons with support for GitHub Gist sharing and local file output (HTML/PNG).2112MIT
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
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/benjamine/jsondiffpatch'
If you have feedback or need assistance with the MCP directory API, please join our Discord server