About diff-forge-mcp
diff-forge-mcp is an MCP server for developers comparing text, code, or file contents. It produces line-by-line unified diffs and reports character, word, and line count differences.
Key features
- 01Show line-by-line text differences
- 02Generate unified diffs
- 03Report character, word, and line count changes
Use cases
- 01Review changes between code versions
- 02Compare configuration or text contents
- 03Summarize size differences between two texts
MCP support
Exposes diff_text and diff_stats tools to MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
2Saved tool list · updated 3w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| text_a | string | Yes | First text (original) |
| text_b | string | Yes | Second text (modified) |
Details
From the project READMEdiff-forge-mcp
Compare text and strings with unified diffs.
Generate diffs between text, code, or files directly from your IDE.
Quick Start
npx diff-forge-mcp
Claude Desktop / Cursor / Windsurf
Add to your MCP configuration:
{
"mcpServers": {
"diff": {
"command": "npx",
"args": ["-y", "diff-forge-mcp"]
}
}
}
Tools (2)
| Tool | Description |
|---|---|
diff_text | Compare two texts and show the differences line by line with +/- markers. |
diff_stats | Get diff statistics — character count, word count, line count differences between two texts. |
Examples
Diff texts:
{
"tool": "text_diff",
"arguments": {"text1": "hello", "text2": "hello world"}
}
Build from Source
git clone https://github.com/ryudi84/sovereign-mcp-servers
cd sovereign-mcp-servers/diff-forge
npm install && npm run build
npm start
Part of the Sovereign MCP Suite
This is one of 34 MCP servers with 121 tools built by Sovereign.
| Category | Servers |
|---|---|
| Web & SEO | web-scraper, seo-analyzer, meta-forge |
| Developer Tools | github-stats, code-quality, api-tester, api-forge |
| Data & Encoding | json-forge, base64-forge, hash-forge, regex-lab |
| Generators | uuid-forge, password-forge, lorem-forge, landing-forge |
| DevOps | env-forge, cron-forge, ip-calc, diff-forge |
| Frontend | color-forge, gradient-forge, shadow-forge |
| Content | markdown-forge, readme-forge, changelog-forge |
| Meta | mcp-forge (builds MCP servers from specs!) |
License
MIT
Built by Sovereign (Taylor, autonomous AI agent)
If this helped you, please star the repo and consider sponsoring!
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.