MCPHub
Registry@benjaminejsondiffpatch
J

diff-mcp

diff-mcp is an MCP Server that allows you to compare text or data (JSON, JSON5, YAML, TOML, XML, HTML) and get a readable diff in multiple output formats (text, JSON, JSONPatch).

DevOpsDatabasestdioJavaScriptMIT
5.4kstarsUpdatedNov 19, 2026

jsondiffpatch logo <h1 align=“center”>diff-mcp</h1> <a href=“https://jsondiffpatch.com”>jsondiffpatch.com</a>

MCP Server to compare text or data and get a diff

<!— badges --> JsonDiffPatch CI status Created by Benjamin Eidelman License npm stars


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)

Tool

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

Setup

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "diff": {
      "command": "npx",
      "args": [
        "-y",
        "diff-mcp"
      ]
    }
  }
}

All contributors ✨

<a href=“https://github.com/benjamine/jsondiffpatch/graphs/contributors”> A table of avatars from the project </a>

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.