Integrations
Leverages Python's difflib library to generate differences between two texts in Unified diff format.
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.
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
- Arguments:
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
or Add the following configuration:
Development
Debugging
You can start the MCP Inspector using npxwith the following commands:
You must be authenticated.
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
This MCP server provides unified diffs of two text inputs using Python's standard library difflib.
Related Resources
Related MCP Servers
- -securityFlicense-qualityServer for using Dify. It achieves the invocation of the Dify workflow by calling the tools of MCP.Last updated -189Python
- AsecurityAlicenseAqualityThis server provides a tool to generate unified diffs between two text strings, facilitating text comparison and analysis.Last updated -182JavaScriptMIT License
- -securityFlicense-qualityA Python MCP server for invoice and receipt processing that uses OCR technology to extract data from PDFs and images, offering AI assistants the ability to process, extract text from, and merge invoice documents.Last updated -Python
- -securityAlicense-qualityA Python-based text editor server built with FastMCP that provides tools for file operations. This server enables reading, editing, and managing text files through a standardized API following a multi-step process.Last updated -2PythonMIT License