Patch File MCP

An MCP Server to patch existing files using block format. This allows AI agents (like Claude) to make precise changes to files in your projects.

Local serverstdio

What is the Patch File MCP Server?

Patch File MCP is an MCP project maintained in the pynesys/patch-file-mcp repository. The maintainer describes its purpose as “An MCP Server to patch existing files using block format. This allows AI agents (like Claude) to make precise changes to files in your projects”. Read the project documentation for the complete scope.

Installation

The documented pypi package is patch-file-mcp. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
patch_file

How to install the Patch File MCP Server

{
  "mcpServers": {
    "patch-file": {
      "command": "uvx",
      "args": [
        "patch-file-mcp",
        "--allowed-dir",
        "/Users/your-username/projects",
        "--allowed-dir",
        "/Users/your-username/Documents/code"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.