mcp-file-operations-server
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
copy_file
Copy a file to a new location
read_file
Read content from a file
write_file
Write content to a file
move_file
Move/rename a file
delete_file
Delete a file
append_file
Append content to a file
make_directory
Create a directory
remove_directory
Remove a directory
copy_directory
Copy a directory recursively (with progress reporting)
watch_directory
Start watching a directory for changes
unwatch_directory
Stop watching a directory
get_changes
Get the list of recorded changes
clear_changes
Clear all recorded changes