
Diff Patch Tools
A lightweight utility server hosted on Cloudflare Workers that gives Claude diff and patch capabilities over HTTP. It exposes tools for generating unified diffs between text versions and applying patches to content, which is handy when you need Claude to compare file versions, show precise changes, or apply specific modifications without rewriting entire documents. The streamable HTTP transport means you can point Claude at it without running anything locally. Reach for this when you're doing iterative editing work and want to see exact line-by-line changes, or when you need to apply patches programmatically during code reviews or documentation updates.
- tools
- 6
- transport
- HTTP
- last updated
- May 16, 2026
Install
From registry metadata$ npx add-mcp https://api.lazy-mac.com/diff-patch-tools/mcp --name diff-patch-toolsRun in your terminal. add-mcp asks which agents to add it to (Claude Code, Codex, Cursor and more). Add -g to install it for every project.
Review the command, arguments and environment values before installing. MCP servers run with your local permissions.
Other ways
Claude Code
$ claude mcp add --transport http diff-patch-tools https://api.lazy-mac.com/diff-patch-tools/mcpRun in your terminal. Add --scope user to make it available in every project.
Tools
Verified live · 6 toolsVerified live against the running server on Nov 6, 2026.
text_diffGenerate a unified diff between two text strings. Ideal for comparing file versions before and after edits.5 params
Generate a unified diff between two text strings. Ideal for comparing file versions before and after edits.
contextnumbermodified*stringmodified_filestringoriginal*stringoriginal_filestringjson_diffCompute a structural diff between two JSON values, showing added, removed, and replaced fields.2 params
Compute a structural diff between two JSON values, showing added, removed, and replaced fields.
modified*valueoriginal*valueapply_patchApply a unified diff patch to an original text and return the patched result.2 params
Apply a unified diff patch to an original text and return the patched result.
original*stringpatch*stringthree_way_mergePerform a three-way merge of base, ours, and theirs. Conflicts are marked with standard diff3 conflict markers.5 params
Perform a three-way merge of base, ours, and theirs. Conflicts are marked with standard diff3 conflict markers.
base*stringours*stringours_labelstringtheirs*stringtheirs_labelstringdiff_statsParse a unified diff string and return line-level statistics: additions, deletions, hunks, files changed.1 params
Parse a unified diff string and return line-level statistics: additions, deletions, hunks, files changed.
diff*stringpatch_validateCheck whether a unified diff patch can be applied cleanly to an original text without actually applying it.2 params
Check whether a unified diff patch can be applied cleanly to an original text without actually applying it.
original*stringpatch*stringSponsors
Readme
diff-patch-tools-api
Cloudflare Workers MCP server: diff-patch-tools. REST + MCP (JSON-RPC 2.0). Live: api.lazy-mac.com/diff-patch-tools
Details
- Repository
- github.com/lazymac2x/diff-patch-tools-api
- Category
- Cloud & Infrastructure
- Transport
- HTTP
- Registry
- MCP registry, active
- Tools verified
- Nov 6, 2026
More from lazymac2x
- Domain Intel
- Email Validator
- Embedding Search
- Env Blueprint Validator
- Font Metadata
- Govdata Korea
- Graphql Dos Shield
- Graphql Rest Bridge
- Llm Output Quality Monitor
- Api Mock Server
- Interactive Api Playground
- Smart Data Extractor
- Mcpwatch
- A11y Scorer
- Agent Loop Detector
- Agent Memory
- Agent Trace Auditor
- Agent Workflow Engine
- Ai Agent Scratchpad
- Ai Budget Planner
- Ai Changelog Writer
- Ai Cost Optimizer
- Ai Eval
- Ai Guardrails