mcp-server-diff-python
About
# mcp-server-diff-python An MCP server for obtaining text differences between two strings. This server leverages Python's standard library `difflib` to efficiently generate and provide differences between two texts in Unified diff format, making it ideal for text comparison and version control purposes. <a…
Explore
- Single tool: get-unified-diff for computing text differences.
- Returns differences in Unified diff format.
- Leverages Python's built-in difflib library.
- Lightweight—no external dependencies beyond Python standard library.
- Runs via uvx or local uv installation.
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
mcp-server-diff-pythonCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install and run via uvx mcp-server-diff-python or clone the repository and use uv run. Add the server configuration to Claude Desktop's claude_desktop_config.json. The server exposes a single tool, get-unified-diff, which takes two required string arguments (string_a and string_b) and returns the diff in Unified diff format.
string_a
Source text for comparison (required)
string_b
Target text to compare against (required)
The server provides a single tool:
- get-unified-diff: Get differences between two texts in Unified diff format
- Arguments:
- string_a: Source text for comparison (required)
- string_b: Target text to compare against (required)
- Return value: A string containing the differences in Unified diff format
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mcp-server-diff-python": {
"mcp-server-diff-python": {
"command": "uv",
"args": [
"sync"
]
}
}
}
}
McpServers
{
"mcp-server-diff-python": {
"command": "uv",
"args": [
"sync"
]
}
}
An MCP server for obtaining text differences between two strings.
This server leverages Python's standard library difflib to efficiently generate and provide differences between two texts in Unified diff format, making it ideal for text comparison and version control purposes.
<a href="https://glama.ai/mcp/servers/qbwsx2g4vd"></a>
Features
Tools
The server provides a single tool:
- get-unified-diff: Get differences between two texts in Unified diff format
- Arguments:
- string_a: Source text for comparison (required)
- string_b: Target text to compare against (required)
- Return value: A string containing the differences in Unified diff format
Usage
Claude Desktop
Using with Claude Desktop
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
"mcpServers": {
"mcp-server-diff-python": {
"command": "uvx",
"args": [
"mcp-server-diff-python"
]
}
}
or Add the following configuration:
git clone https://github.com/tatn/mcp-server-diff-python.git
cd mcp-server-diff-python
uv sync
uv build
"mcpServers": {
"mcp-server-diff-python": {
"command": "uv",
"args": [
"--directory",
"path\\to\\mcp-server-diff-python",
"run",
"mcp-server-diff-python"
]
}
}
Development
Debugging
You can start the MCP Inspector using npxwith the following commands:
npx @modelcontextprotocol/inspector uvx mcp-server-diff-python
npx @modelcontextprotocol/inspector uv --directory path\to\mcp-server-diff-python run mcp-server-diff-python
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



