mcp-file-operations-server

mcp-file-operations-server

3.4

If you are the rightful owner of mcp-file-operations-server 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 Model Context Protocol (MCP) server that provides enhanced file operation capabilities with streaming, patching, and change tracking support.

The File Operations MCP Server is designed to facilitate a wide range of file and directory operations with advanced features such as streaming, change tracking, and real-time progress reporting. It supports basic file operations like copying, reading, writing, moving, and deleting files, as well as directory operations such as creating, removing, and copying directories. The server also includes file watching capabilities to monitor changes in files and directories, and it maintains a history of file operations for tracking purposes. With streaming support, the server efficiently handles large files, and it provides robust error handling and enhanced security measures, including path validation and input sanitization. The server is built with TypeScript, ensuring type safety and strict type checking. Additionally, it offers rate limiting to protect against excessive requests and supports resource access through MCP resources.

Features

  • Basic File Operations: Copy, read, write, move, and delete files
  • Directory Operations: Create, remove, and copy directories
  • File Watching: Monitor files and directories for changes
  • Change Tracking: Track and query file operation history
  • Streaming Support: Handle large files efficiently with streaming

Tools

  1. copy_file

    Copy a file to a new location

  2. read_file

    Read content from a file

  3. write_file

    Write content to a file

  4. move_file

    Move/rename a file

  5. delete_file

    Delete a file

  6. append_file

    Append content to a file

  7. make_directory

    Create a directory

  8. remove_directory

    Remove a directory

  9. copy_directory

    Copy a directory recursively (with progress reporting)

  10. watch_directory

    Start watching a directory for changes

  11. unwatch_directory

    Stop watching a directory

  12. get_changes

    Get the list of recorded changes

  13. clear_changes

    Clear all recorded changes