File Organizer
БесплатноПоддерживаетсяA powerful, security-hardened MCP server for intelligent file organization. Provides high-level atomic tools for organizing files into categories, detecting dup
Описание
A powerful, security-hardened MCP server for intelligent file organization. Provides high-level atomic tools for organizing files into categories, detecting duplicates, extracting EXIF/ID3 metadata, scheduling automatic organization, and more — for use with Claude, Cursor, and Gemini CLI.
README
Version 3.5.0 | MCP protocol 2024-11-05 | Node.js 18+
npm version npm downloads License Tests
A Model Context Protocol (MCP) server that organizes files. It gives a Claude-style assistant a single atomic operation to categorize, sort, dedupe, and rename files, instead of making it chain dozens of primitive read, write, and rename calls.
- Why
- Quick start
- Features
- Tools
- File categories
- Example workflows
- Security
- Troubleshooting
- Architecture
- Documentation
Why
A filesystem MCP server built only on read, write, make, and delete forces an assistant to plan every move and rename as a separate step. Each step costs tokens, and more steps means more chances to get the path wrong.
File Organizer MCP replaces those chains with one call:
| Primitive approach | File Organizer MCP |
|---|---|
Many read / write / rename calls |
organize_files() runs the whole move atomically |
| Dozens of reasoning steps | One reasoning step |
| High token use | Minimal token use |
| Easy to corrupt on partial failure | Rollback-safe operations |
Quick start
One-command setup
npx file-organizer-mcp --setup
The wizard detects installed AI clients (Claude Desktop, Cursor, Windsurf, Cline, and others), configures them, and walks you through folder selection and preferences.
Requirements
Node.js 18 or newer.
After setup
You can ask the assistant things like:
- "Organize my Downloads folder"
- "Find duplicate files in my Documents"
- "Show me my largest files"
Install methods
| Method | Command | Use case |
|---|---|---|
| npx | npx file-organizer-mcp --setup |
Occasional use or a trial |
| Global | npm install -g file-organizer-mcp |
Regular use, faster startup |
Features
- Categorization into 12 or more file types.
- Cron-based automatic organization and directory watch mode.
- Duplicate detection by SHA-256 content hash.
- Metadata extraction: EXIF for photos, ID3 for audio, topic extraction for documents.
- Smart organization that picks the right strategy per file type.
- Dry-run preview, atomic moves, and rollback.
- Path traversal protection, TOCTOU mitigation, and metadata scrubbing.
- Windows, macOS, and Linux.
Tools
Core tools
file_organizer_scan_directory- List a directory with detailed file info.directoryis required;include_subdirstoggles recursion.file_organizer_read_file- Read a file with 8-layer path validation.pathis required;encodingis utf-8, base64, or binary.file_organizer_organize_smart- Handle music, photos, and documents in one pass, choosing the best strategy per file.file_organizer_batch_rename- Rename many files by pattern, regex, or numbering.file_organizer_undo_last_operation- Reverse the most recent organization.
Full tool list
file_organizer_analyze_duplicatesfile_organizer_batch_read_filesfile_organizer_categorize_by_typefile_organizer_delete_duplicatesfile_organizer_find_duplicate_filesfile_organizer_find_largest_filesfile_organizer_get_categoriesfile_organizer_inspect_metadatafile_organizer_list_filesfile_organizer_list_watchesfile_organizer_organize_by_contentfile_organizer_organize_filesfile_organizer_organize_musicfile_organizer_organize_photosfile_organizer_preview_organizationfile_organizer_read_filefile_organizer_scan_directoryfile_organizer_set_custom_rulesfile_organizer_smart_suggestfile_organizer_system_organizefile_organizer_undo_last_operationfile_organizer_unwatch_directoryfile_organizer_view_historyfile_organizer_watch_directory
For parameters and return shapes, see API.md.
File categories
| Category | Typical extensions |
|---|---|
| Executables | .exe, .msi, .bat, .sh |
| Videos | .mp4, .avi, .mkv, .mov |
| Documents | .pdf, .doc, .docx, .txt, .md |
| Images | .jpg, .jpeg, .png, .gif, .webp |
| Audio | .mp3, .wav, .flac, .m4a |
| Archives | .zip, .rar, .7z, .tar.gz |
| Code | .py, .js, .ts, .java, .go, .json |
Example workflows
Clean up a Downloads folder
- Scan the folder and review the file distribution and space use.
- Identify duplicates and stale files.
- Preview the moves and conflicts.
- Confirm, then organize into category folders.
Result: a sorted folder, duplicates flagged, and reclaimed space.
Organize a project
The assistant scans the project, splits files into Code, Assets, and Docs, keeps the src/ tree intact, and moves loose config files, readmes, and screenshots into their proper folders.
Find and handle duplicates
The assistant hashes files, groups duplicates, scores each copy by location, name quality, and age, and recommends which to keep and which to delete. It reports the wasted space. You decide whether to delete.
Discover large files
Point it at a folder and it lists the largest files by size, flags old backups you can archive, and notes any large duplicates.
Organize music
It reads ID3 tags and rebuilds the folder as Artist / Album / Title.mp3.
Before:
Downloads/
song1.mp3
track02.mp3
music_file.mp3
After:
Music/
Coldplay/
A Rush of Blood to the Head/
Clocks.mp3
The Scientist.mp3
Radiohead/
OK Computer/
Paranoid Android.mp3
Karma Police.mp3
Organize photos
It reads the capture date from EXIF and sorts photos into YYYY / MM / DD folders.
Before:
Pictures/
IMG_001.jpg
photo123.png
DSC_4567.raw
After:
Pictures/
2023/
12/
25/
IMG_001.jpg
31/
photo123.png
2024/
01/
15/
DSC_4567.raw
Security-screen a folder
It extracts metadata and content signatures, then flags sensitive metadata, such as EXIF GPS coordinates in a PDF or personal identifiers in a resume, and suggests redaction or quarantine.
Set up automatic organization
Register a directory with a cron schedule:
{
"directory": "/Users/john/Downloads",
"schedule": "0 9 * * *",
"min_file_age_minutes": 5
}
The server organizes the folder on that schedule. Add more watches for other directories.
Security configuration
Access is restricted to a whitelist of user directories by default. System directories stay blocked.
Allowed by default
The server enables these locations if they exist on the machine:
| Platform | Allowed directories |
|---|---|
| Windows | Desktop, Documents, Downloads, Pictures, Videos, Music, OneDrive, Projects, Workspace |
| macOS | Desktop, Documents, Downloads, Movies, Music, Pictures, iCloud Drive, Projects |
| Linux | Desktop, Documents, Downloads, Music, Pictures, Videos, ~/dev, ~/workspace |
Always blocked
These paths stay blocked even if you add them to the config:
- Windows:
C:\Windows, Program Files, AppData,$Recycle.Bin - macOS:
/System,/Library,/Applications,/private,/usr - Linux:
/etc,/usr,/var,/root,/sys,/proc - Everywhere:
node_modules,.git,.vscode,.idea,dist,build
Custom configuration
Edit the user config file:
- Windows:
%APPDATA%\file-organizer-mcp\config.json - macOS:
$HOME/Library/Application Support/file-organizer-mcp/config.json - Linux:
$HOME/.config/file-organizer-mcp/config.json
Add paths to customAllowedDirectories:
{
"customAllowedDirectories": [
"C:\\Users\\Name\\My Special Folder",
"D:\\Backups"
]
}
You can paste a folder path straight from your file explorer's address bar.
External drives and network mounts
Paths outside your home directory are blocked unless you opt in. To allow an external volume such as /Volumes/My Drive on macOS or /media/user/usb on Linux, set allowExternalVolumes to true:
{
"allowExternalVolumes": true,
"customAllowedDirectories": [
"/Volumes/MyExternalDrive",
"/Volumes/Photography Backup"
]
}
Windows drive letters like D:\ work without this flag.
Restart the client after editing the config.
Conflict strategy
{
"conflictStrategy": "rename"
}
rename(default) - Append a suffix to the new file, for examplefile (1).txt.skip- Keep the existing file and skip the new one.overwrite- Replace the existing file, after writing a backup.
Legacy auto-organize schedule
For a simple hourly, daily, or weekly schedule:
{
"autoOrganize": {
"enabled": true,
"schedule": "daily"
}
}
For anything more granular, use the file_organizer_watch_directory tool.
Defenses
| Attack type | Protection |
|---|---|
| Unauthorized access | Whitelist plus blacklist enforcement |
| Path traversal | 8-layer validation pipeline |
| Symlink attacks | Real path resolution |
| DoS | Resource limits on file count, depth, and size |
Troubleshooting
The MCP server does not appear
- Check the config file path is correct.
- Confirm Node.js 18 or newer:
node --version. - Fully restart the client.
- Check the path in the client config file.
Permission errors
- Windows: run the client as Administrator.
- macOS/Linux: check folder permissions with
ls -la. - Confirm the target directory is writable.
Files are not moving
- Make sure
dry_runis not enabled. - Close programs that may be locking the files.
- Check for sufficient disk space.
- Read the operation summary for error messages.
Architecture
The server runs a screen-then-enrich pipeline: an MCP protocol handler passes every request through security screening (path validation, sensitive-file detection, rate limiting), then metadata enrichment (EXIF, ID3, document properties), then the service layer that performs the operation. All file operations go through validated paths and support rollback.
See ARCHITECTURE.md for the full diagram and design notes.
Documentation
- API.md - Complete tool reference
- ARCHITECTURE.md - Design and architecture
- CONTRIBUTING.md - Contribution guidelines
- MIGRATION.md - v2 to v3 upgrade guide
- CHANGELOG.md - Version history
- SECURITY.md - Security model and reporting
Contributing
Read CONTRIBUTING.md, then clone and build:
git clone https://github.com/kridaydave/File-Organizer-MCP.git
cd File-Organizer-MCP
npm install
npm run build
npm test
Report bugs and feature requests on GitHub Issues. For a security vulnerability, email [email protected].
License
MIT. See LICENSE.
Установить File Organizer в Claude Desktop, Claude Code, Cursor
unyly install file-organizer-mcpСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add file-organizer-mcp -- npx -y file-organizer-mcpПошаговые гайды: как установить File Organizer
FAQ
File Organizer MCP бесплатный?
Да, File Organizer MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для File Organizer?
Нет, File Organizer работает без API-ключей и переменных окружения.
File Organizer — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить File Organizer в Claude Desktop, Claude Code или Cursor?
Открой File Organizer на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Изменения
Версии и запрашиваемые доступы со временем.
- Новая версия опубликована
- Новая версия опубликована
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
автор: lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
MCPHub
Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.
MCP Servers Rating and User Reviews
Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)
mkinf
An Open Source registry of hosted MCP Servers to accelerate AI agent workflows.
Compare File Organizer with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
