MCP File Edit MCP Server

A simple Model Context Protocol (MCP) server that provides comprehensive file system operations including the ability to patch files and perform

Local serverstdioPython

What is the MCP File Edit MCP Server?

A simple Model Context Protocol (MCP) server that provides comprehensive file system operations including the ability to patch files and perform basic code analysis

What it actually does

  • 📁 File Operations: Read, write, create, delete, move, and copy files
  • 📂 Directory Management: List files, create directories, recursive operations
  • 🔍 Search: Search for patterns in files using regex with depth control
  • 🔄 Replace: Find and replace text across multiple files
  • 🔧 Patch: Apply precise modifications using line, pattern, or context-based patches
  • 📍 Project Directory: Set a working directory for simplified relative paths

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

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
read_fileRead file contents with optional line range
write_fileWrite content to a file
create_fileCreate a new file
delete_fileDelete a file or directory
move_fileMove or rename files
copy_fileCopy files or directories
list_filesList files with glob patterns and depth control
get_file_infoGet detailed file metadata
search_filesSearch for patterns with regex support
replace_in_filesFind and replace across multiple files
patch_fileApply precise modifications to files
set_project_directorySet the working directory context
get_project_directoryGet current project directory

How to install the MCP File Edit MCP Server

{
  "mcpServers": {
    "file-edit": {
      "command": "uv",
      "args": [
        "run",
        "mcp",
        "run",
        "/path/to/mcp-file-edit/server.py"
      ]
    }
  }
}

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

Frequently asked questions

A simple Model Context Protocol (MCP) server that provides comprehensive file system operations including the ability to patch files and perform basic code analysis Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.