Skip to main content
Glama

MCP Server Diff Python

by tatn

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

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
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

This MCP server provides unified diffs of two text inputs using Python's standard library difflib.

  1. Features
    1. Tools
  2. Usage
    1. Claude Desktop
  3. Development
    1. Debugging

Related MCP Servers

  • -
    security
    F
    license
    -
    quality
    Server for using Dify. It achieves the invocation of the Dify workflow by calling the tools of MCP.
    Last updated -
    250
    Python
  • A
    security
    A
    license
    A
    quality
    This server provides a tool to generate unified diffs between two text strings, facilitating text comparison and analysis.
    Last updated -
    1
    251
    3
    JavaScript
    MIT License
    • Apple
  • -
    security
    F
    license
    -
    quality
    A Python-based server that helps users easily install and configure other MCP servers across different platforms.
    Last updated -
    2
    Python
    • Apple
    • Linux
  • A
    security
    F
    license
    A
    quality
    MCP server providing Git-related functionalities, primarily a tool to generate diffs for Git merge commits against their first parent.
    Last updated -
    2
    TypeScript

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tatn/mcp-server-diff-python'

If you have feedback or need assistance with the MCP directory API, please join our Discord server