Basic information
About Text Diff (Python) MCP Server
Text Diff (Python) uses Python's difflib for unified diffs, enabling efficient text comparison and version control workflows.
Text Diff (Python) is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by tatn. It exposes 1 tool, including get-unified-diff. Supported transport: stdio. Runtime: Python. License: MIT License. The repository has 7 GitHub stars. Source code is hosted on github.com. Related topics: community, developer-tools, mcp-server, text-diff, version-control.
Setup
{
"mcpServers": {
"mcp-server-diff-python": {
"command": "uvx",
"args": [
"mcp-server-diff-python"
]
}
}
}
{
"mcpServers": {
"mcp-server-diff-python": {
"command": "uvx",
"args": [
"mcp-server-diff-python"
]
}
}
}
{
"servers": {
"mcp-server-diff-python": {
"command": "uvx",
"args": [
"mcp-server-diff-python"
]
}
}
}
Text Diff (Python) MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-server-diff-python": {
"command": "uvx",
"args": [
"mcp-server-diff-python"
]
}
}
}
Text Diff (Python) MCP Server tools
- get-unified-diff — Get the difference between two text articles in Unified diff format. Use this when you want to extract the difference between texts.
Overview
What is Text Diff (Python)?
mcp-server-diff-python is an MCP server that computes text differences between two strings using Python's standard library difflib. It returns differences in Unified diff format, making it useful for text comparison and version control tasks.
How to use Text Diff (Python)?
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.
Key features of Text Diff (Python)
- Single tool:
get-unified-difffor computing text differences. - Returns differences in Unified diff format.
- Leverages Python's built-in
diffliblibrary. - Lightweight—no external dependencies beyond Python standard library.
- Runs via
uvxor localuvinstallation.
Use cases of Text Diff (Python)
- Comparing two versions of a document or code snippet.
- Generating patches or change summaries between text revisions.
- Enabling AI assistants to show what changed between two text inputs.
- Version control workflows requiring inline diff output.
Frequently asked questions
1 What tool does the server provide?
The server provides a single tool called get-unified-diff, which computes and returns the Unified diff between two input strings.
2 What arguments does `get-unified-diff` require?
It requires two string arguments: string_a (source text) and string_b (target text), both mandatory.
3 How do I install and configure the server with Claude Desktop?
Add the server configuration to your Claude Desktop config file using uvx mcp-server-diff-python as the command, or clone the repo and run via uv run with a local directory path.
4 What library does the server use to compute diffs?
It uses Python's standard library module difflib—no additional dependencies are needed.
5 Is there a way to test or debug the server?
Yes, you can start the MCP Inspector by running npx @modelcontextprotocol/inspector uvx mcp-server-diff-python to interactively test the server.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In