mcp-file-edit

mcp-file-edit

3.3

If you are the rightful owner of mcp-file-edit and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A simple Model Context Protocol (MCP) server that provides comprehensive file system operations including the ability to patch files and perform basic code analysis aimed at reducing Claude Desktop's token usage when compared to other similar tools. Built on FastMCP.

The MCP File Edit server is a robust tool designed to streamline file system operations and enhance code management. It offers a wide range of functionalities, from basic file operations to advanced code analysis, making it an essential tool for developers looking to optimize their workflow. The server is built on the FastMCP framework, ensuring high performance and reliability. It supports both text and binary files, providing flexibility in handling different file types. With built-in safety features, it ensures secure operations, protecting against path traversal attacks and enforcing project boundaries. Additionally, the server supports SSH connections, allowing for seamless remote file management. This makes it ideal for developers working in distributed environments. The integration with Claude Desktop further enhances its utility, providing a seamless experience for users looking to manage their projects efficiently.

Features

  • File Operations: Comprehensive file management including read, write, create, delete, move, and copy.
  • Directory Management: List files, create directories, and perform recursive operations.
  • Search and Replace: Advanced search capabilities with regex support and text replacement across multiple files.
  • Patch: Apply precise modifications using line, pattern, or context-based patches.
  • Code Analysis: Extract functions, classes, and structure from code files for better understanding and management.

Tools

  1. read_file

    Read file contents with optional line range.

  2. write_file

    Write content to a file.

  3. delete_file

    Delete a file or directory.

  4. move_file

    Move or rename files.

  5. copy_file

    Copy files or directories.