Diff & Patch Calculator

Diff & Patch Calculator MCP Connector for Claude

A+

Compute line-level and word-level diffs, generate unified patches, and calculate text similarity.

4 tools Official Updated Oct 1, 2026 Official Vinkius Partner

The Diff & Patch Calculator MCP connects AI agents to precise text comparison utilities. Using the Myers algorithm, it identifies structural changes at both line and word granularity. You can use generate_line_diff to see added or removed lines in a unified diff format, analyze_word_changes for fine-grained token mutations, apply_patch_operation to transform text using an existing patch, and evaluate_similarity to quantify content overlap between two blocks.

diffpatchtext-comparisonmyers-algorithmgit-format

4 tools expose this connector's capabilities to your AI agent.

analyze_word_changes

Perform word-level comparison for specific lines

apply_patch_operation

Transform a base text block using a provided unified diff patch

evaluate_similarity

Provide a high-level similarity metric between two text blocks

generate_line_diff

Identify structural changes between two blocks of text at the line level

See how to talk to your AI agent using Diff & Patch Calculator.

Compare these two lines and tell me what changed: 'Hello world' and 'Hello brave new world'.

The words 'brave' and 'new' were added to the line.

Generate a line diff between 'Line 1 Line 2' and 'Line 1 Line 2 Line 3'.

The unified diff shows one line added: '+Line 3'.

How similar are 'Apple' and 'Apple Inc.'?

The similarity percentage is approximately 50%.

This server implements the Myers diff algorithm to find the shortest edit script for both line and word-level comparisons.

Related Connectors