
A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

An MCP server that lets AI agents modify existing files by applying SEARCH/REPLACE block patches, with exact-match and uniqueness checks.
MCP server for applying block-format patches to files is cataloged as an MCP server attributed to pynesys. An MCP server that lets AI agents modify existing files by applying SEARCH/REPLACE block patches, with exact-match and uniqueness checks. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP server for applying block-format patches to files are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
README.md · f62a0d579fc1 · 采集于 2026-11-13 13:42:55 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
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.
Patch File MCP provides a simple way to modify files by applying patches in block format. The key benefits include:
edit_block tool from desktop-commander for most file editing tasksThis method uses uvx (from the uv Python package manager) to run the server without permanent installation:
Install uvx from uv if you don't have it already.
Merge the following config with your existing config file (e.g. claude_desktop_config.json):
{
"mcpServers": {
"patch-file": {
"command": "uvx",
"args": [
"patch-file-mcp",
"--allowed-dir", "/Users/your-username/projects",
"--allowed-dir", "/Users/your-username/Documents/code"
]
}
}
}
Note: Replace
/Users/your-usernamewith the actual path to your own projects and code directories.
git clone https://github.com/your-username/patch-file-mcp.git
cd patch-file-mcp
python -m venv venv
source venv/bin/activate
pip install -e .
Merge the following config with your existing config file (e.g. claude_desktop_config.json):
{
"mcpServers": {
"patch-file": {
"command": "path/to/your/venv/bin/patch-file-mcp",
"args": [
"--allowed-dir", "/Users/your-username/projects",
"--allowed-dir", "/Users/your-username/Documents/code"
]
}
}
}
Note: Replace
/Users/your-usernamewith the actual path to your own projects and code directories.
The --allowed-dir argument is used to specify the directories that the server has access to. You can use it multiple times to allow access to multiple directories. All directories inside the allowed directories are also allowed.
It is optional. If not provided, the server will only have access to the home directory of the user running the server.
The MCP server is started by the client (e.g., Claude Desktop) based on the configuration you provide. You don't need to start the server manually.
Patch File MCP provides one main tool:
Update the file by applying a patch/edit to it using block format.
patch_file(file_path: str, patch_content: str)
The patch content must have the following format:
<<<<<<< SEARCH
Text to find in the file
=======
Text to replace it with
>>>>>>> REPLACE
You can include multiple search-replace blocks in a single request:
<<<<<<< SEARCH
First text to find
=======
First replacement
>>>>>>> REPLACE
<<<<<<< SEARCH
Second text to find
=======
Second replacement
>>>>>>> REPLACE
This tool verifies that each search text appears exactly once in the file to ensure the correct section is modified. If a search text appears multiple times or isn't found, it will report an error.
patch_file to apply these changes to your fileMIT
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP server for applying block-format patches to files from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/patch-file-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.