diff-mcp

by benjamine

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 ✨

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.

-
security - not tested
A
license - permissive license
-
quality - not tested

compare 2 text or data (supports text diffs, json, json5, yaml, toml, xml and html). powered by jsondiffpatch

  1. Tool
    1. diff
  2. Setup
    1. Usage with Claude Desktop
  3. All contributors ✨
    1. License

      Related MCP Servers

      • A
        security
        A
        license
        A
        quality
        This MCP server provides unified diffs of two text inputs using Python's standard library difflib.
        Last updated -
        1
        4
        Python
        MIT License
        • Apple
      • A
        security
        A
        license
        A
        quality
        This server provides a tool to generate unified diffs between two text strings, facilitating text comparison and analysis.
        Last updated -
        1
        8
        2
        JavaScript
        MIT License
        • Apple
      • A
        security
        A
        license
        A
        quality
        Enables extracting data from websites using natural language prompts, allowing users to specify exactly what content they want in plain English and returning structured JSON data.
        Last updated -
        1
        1,379
        4
        TypeScript
        MIT License
        • Apple
        • Linux
      • -
        security
        A
        license
        -
        quality
        A tool that helps rank codebase files by importance (1-10 scale), track file dependencies, and provide summaries, all accessible through a simple JSON-based interface.
        Last updated -
        2
        TypeScript
        GPL 3.0
        • Linux

      View all related MCP servers

      ID: wgclragkbx