Diff Anything
Let an AI client compare local files, folders and API schemas with the Diff Anything CLI
- Pricing
- Freemium
- Platforms
- macOS, Windows, CLI
- Runs
- Locally
- Version
- 0.1.0
- Listing updated
- 2 days ago
About Diff Anything
Diff Anything is a freemium MCP server for developer tools. It runs locally on your machine and is started by your AI client.
This server does not do the comparing itself. It launches the installed Diff Anything command line as a child process, so you need the desktop app on macOS or Windows plus Node.js 22 or newer. On a Mac App Store install the sandbox blocks file access from the command line, so a free command-line helper is required; the Microsoft Store version provides the command through an app execution alias.
Safety comes from DIFF_ANYTHING_ROOTS, a required JSON array of absolute directories the server may compare; until it is set only discovery works, and the README suggests a dedicated folder. Folder and API schema comparisons need Diff Anything Pro, while the free CLI allows plain-text and JSON comparisons within daily and file-size limits. The check_api_compatibility tool needs a CLI that supports --fail-on breaking and otherwise returns update_required.
The desktop product itself compares code, spreadsheets, databases, PDFs, images and archives, which gives the assistant more than plain text diffs to work with.
Install
Run in a terminal
claude mcp add diff-anything --env DIFF_ANYTHING_ROOTS='<DIFF_ANYTHING_ROOTS>' -- npx -y @grunersoftware/diff-anything-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"diff-anything": {
"command": "npx",
"args": [
"-y",
"@grunersoftware/diff-anything-mcp"
],
"env": {
"DIFF_ANYTHING_ROOTS": "<DIFF_ANYTHING_ROOTS>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"diff-anything": {
"command": "npx",
"args": [
"-y",
"@grunersoftware/diff-anything-mcp"
],
"env": {
"DIFF_ANYTHING_ROOTS": "<DIFF_ANYTHING_ROOTS>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"diff-anything": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@grunersoftware/diff-anything-mcp"
],
"env": {
"DIFF_ANYTHING_ROOTS": "<DIFF_ANYTHING_ROOTS>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"diff-anything": {
"command": "npx",
"args": [
"-y",
"@grunersoftware/diff-anything-mcp"
],
"env": {
"DIFF_ANYTHING_ROOTS": "<DIFF_ANYTHING_ROOTS>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"diff-anything": {
"command": "npx",
"args": [
"-y",
"@grunersoftware/diff-anything-mcp"
],
"env": {
"DIFF_ANYTHING_ROOTS": "<DIFF_ANYTHING_ROOTS>"
}
}
}
}Configuration
DIFF_ANYTHING_ROOTSJSON array of absolute existing directories this server may compare.RequiredDIFF_ANYTHING_CLIOptional absolute path to the installed Diff Anything executable.
Tools this server provides (1)
Taken from the project documentation; the running server may differ.
- check_api_compatibility
- Checks API schemas for breaking changes; needs a CLI supporting --fail-on breaking.
What it does
- Local-only comparison
- Compares files under directories you whitelist.
- Folder comparison
- Compares folders, with Pro.
- API schema checks
- check_api_compatibility can flag breaking schema changes.
- Rooted access
- DIFF_ANYTHING_ROOTS limits which paths the server can touch.
- Pinned npm package
- Runs via npx with a pinned version or a global install.
- Windows and macOS
- Works with the Store or direct app installs.
Good for
- Ask an assistant what changed between two config files
- Compare two project folders
- Check an API schema change for breaking edits
- Review JSON differences without sharing files online
- Run comparisons from a Claude Code session
Pricing
Freemium
Free tier with limits; Pro adds folder and API schema comparison
Prices change. Check martingruner.com before you buy.
Diff Anything FAQ
Do I need the desktop app?
Yes. The server calls the installed Diff Anything command line.
Which comparisons are free?
The free CLI allows plain-text and JSON comparisons within daily and size limits; folders and schemas need Pro.
Which Node version?
Node.js 22 or newer.
Why does the Mac App Store version not work?
Its sandbox cannot read files named on a command line, so install the free command-line helper.
Is Diff Anything free?
Diff Anything has a free plan, with paid plans for more usage or features.
How do I add Diff Anything to Claude Code?
Run this command in your terminal: claude mcp add diff-anything --env DIFF_ANYTHING_ROOTS='<DIFF_ANYTHING_ROOTS>' -- npx -y @grunersoftware/diff-anything-mcp
What are the best alternatives to Diff Anything?
The closest alternatives to Diff Anything are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to Diff Anything

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools