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
"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
Metadata
Release files for iflow-mcp_mcp-server-diff-python 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| iflow_mcp_mcp_server_diff_python-0.1.2.tar.gz | 53.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iflow_mcp_mcp_server_diff_python-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 57.8 kB
Release files / iflow_mcp_mcp_server_diff_python-0.1.2.tar.gz
| Download URL | iflow_mcp_mcp_server_diff_python-0.1.2.tar.gz |
|---|---|
| Size | 53.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e42343d09b32120027e7ec858957d37eb3dee81e3b5677f9e9c14a9fd4b1d53
|
|
BLAKE2b-256 checksum How to use checksums |
827117228dd205cca25f7c6fbe1eca2a6a8d10998b58073ffec1ae55596075ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.9
|
Release files / iflow_mcp_mcp_server_diff_python-0.1.2-py3-none-any.whl
| Download URL | iflow_mcp_mcp_server_diff_python-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
34d78ba0bbaf8ff3e0964a6aa1278f282560f9c4410d7cb9e03ea5cdf62c4167
|
|
BLAKE2b-256 checksum How to use checksums |
abcc7aaaa0adf6f27cbf46f8620994fc71d6200db2130c1daeddba0208be8be4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.9
|
Security for iflow-mcp_mcp-server-diff-python 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.