Skip to main content
Glama

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 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.

Available Tools

1 tool
diffC

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

    B3.3/5.0

    Scored across 1 tool

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count4/5

    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.

    Completeness5/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to compare documents, analyze changes, and retrieve document info using GroupDocs.Comparison. Supports various formats and includes licensing for production use.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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.
      1
      MIT