drio
Open app

mcp-server-diff-python

Source

Catalog onlyCatalog onlySTDIO

Overview

The mcp-server-diff-python is a server application designed to obtain text differences between two strings using Python's standard library difflib. It generates differences in Unified diff format, making it suitable for text comparison and version control tasks.

To use the server, you need to configure it with your application (e.g., Claude Desktop) by adding the server configuration to the appropriate config file or by cloning the repository and running the server commands.

  • Provides a single tool to get differences between two texts in Unified diff format. - Requires two arguments: string_a (source text) and string_b (target text). - Returns a string containing the differences in Unified diff format.
  1. Comparing different versions of text documents.
  2. Assisting in version control by highlighting changes between file revisions.
  3. Facilitating collaborative editing by showing differences in text.

Add to your AI client

Use these steps to connect mcp-server-diff-python in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-server-diff-python-tatn": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-diff-python-tatn"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-server-diff-python-tatn": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-diff-python-tatn"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-server-diff-python-tatn": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-diff-python-tatn"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-server-diff-python-tatn": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-diff-python-tatn"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-server-diff-python-tatn": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-diff-python-tatn"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-server-diff-python-tatn": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-diff-python-tatn"
      ]
    }
  }
}

FAQ

What is Unified diff format?

Unified diff format is a way of displaying differences between two files, showing lines that have been added, removed, or changed.

Can I use this server for large texts?

Yes, but performance may vary based on the size of the texts being compared.

Is there any installation required?

Yes, you need to clone the repository and set up the server according to the provided instructions.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":948,"uuid":"c6d1cb42-bd38-4a91-9f41-dfd919ee0508","name":"mcp-server-diff-python","title":"mcp-server-diff-python","description":null,"avatar_url":"https://avatars.githubusercontent.com/u/7001834?v=4","created_at":"2025-01-28T02:19:59.605Z","updated_at":"2025-02-23T07:19:16.573Z","status":"created","author_name":"tatn","author_avatar_url":"https://avatars.githubusercontent.com/u/7001834?v=4","tags":"mcp-server,text-diff,version-control","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/tatn/mcp-server-diff-python","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/100e0ee4847bbb7b922659116c166b9f221f5b87b9591ff4b2767b158a34d4e9/68747470733a2f2f676c616d612e61692f6d63702f736572766572732f716277737832673476642f6261646765","type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]