Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Diff Python

FreeNot checked

Diff Python — Model Context Protocol server

GitHubEmbed

About

Diff Python — Model Context Protocol server

README

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.

Server Diff Python MCP server

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

from github.com/tatn/mcp-server-diff-python

Installing Diff Python

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/tatn/mcp-server-diff-python

FAQ

Is Diff Python MCP free?

Yes, Diff Python MCP is free — one-click install via Unyly at no cost.

Does Diff Python need an API key?

No, Diff Python runs without API keys or environment variables.

Is Diff Python hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Diff Python in Claude Desktop, Claude Code or Cursor?

Open Diff Python on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Diff Python with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs