LocalFilesOrganizer-MCP
by TobiasArg·★ 1·Score 36
MCP server with tools to safely organize, read, write, and analyze local files with built-in protections.
Overview
LocalFilesOrganizer-MCP is a comprehensive MCP server for managing local file systems. It provides a robust set of tools for reading and writing files (with UTF-8 and base64 support), directory operations, content searching with regex patterns, duplicate detection via MD5 hash comparison, and file analysis capabilities. The server emphasizes safety with configurable allowed paths, protected paths, and regex patterns to prevent accidental deletion of important files. It's cross-platform compatible and includes built-in protections for system directories and sensitive files like .git, .env, and .ssh directories.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this server when you need a dedicated MCP interface for safe local file operations with specific organizational needs and security constraints.
When NOT to choose this
Avoid this if you need broader file system access outside the allowed paths, or require more advanced metadata or content analysis capabilities not provided here.
Tools this server exposes
12 tools extracted from the READMEread_fileRead file contents (UTF-8 or base64)
write_fileWrite content to file (UTF-8 or base64)
delete_fileSafely delete a file with protection checks
move_fileMove file with optional empty directory cleanup
analyze_fileGet file stats (size, MIME, lines, words)
list_directoryList files with optional recursion and glob patterns
delete_directorySafely delete directory (requires confirmation for recursive)
organize_by_typeOrganize files into folders by extension/date/size
search_contentSearch for regex patterns in file contents
find_duplicatesFind duplicate files by MD5 hash
sort_file_contentSort lines in a file
rename_filesBatch rename files using regex patterns
Comparable tools
Installation
Installation
Using NPX (Recommended)
Add to your Claude Desktop configuration file:
**macOS**: ~/Library/Application Support/Claude/claude_desktop_config.json **Windows**: %APPDATA%\Claude\claude_desktop_config.json **Linux**: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"local-files": {
"command": "npx",
"args": ["-y", "fsorg"]
}
}
}From Source
git clone https://github.com/argtobias/fsorg.git
cd fsorg
pnpm install
pnpm buildThen configure Claude Desktop to use the built server:
FAQ
- What safety protections does this server provide?
- The server allows you to configure allowed paths for deletion, define additional protected paths, and specify regex patterns for protected file names. System paths and critical user directories are always protected.
- Can I use this server for batch operations on files?
- Yes, the server includes tools for batch renaming files using regex patterns and organizing files into folders by extension, date, or size.
Compare LocalFilesOrganizer-MCP with
Last updated · Auto-generated from public README + GitHub signals.