# file-organizer-mcp [Health: Active]

**Category:** 📂 File Systems  
**Repository:** https://github.com/kridaydave/File-Organizer-MCP  
**GitHub Stars:** 46  
**npm Downloads (last month):** 1045  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/file-organizer-mcp

## Description
Intelligent file organization MCP server for Claude with security-hardened operations, auto-categorization, and duplicate detection

## Tools
Capabilities this server exposes over MCP:

- **file_organizer_scan_directory** — List a directory with detailed file info. `directory` is required; `include_subdirs` toggles recursion.
- **file_organizer_read_file** — Read a file through the validated path pipeline. `path` is required; `encoding` is utf-8, base64, or binary.
- **file_organizer_batch_rename** — Rename many files by pattern, regex, or numbering. Checks the whole plan for name collisions first: if a real run would put two files on one name, or overwrite a name a different file already holds, the batch is rejected before anything moves and the conflicts come back as structured data.
- **file_organizer_undo_last_operation** — Reverse the most recent organization, or any pass you name by the manifest id it returned and `file_organizer_view_history` lists. Pass `cascade: true` to walk back through every pass made after that one, newest first. An older pass whose files a newer pass also touched is refused unless you ask fo…
- **file_organizer_quarantine_files** — Set flagged files aside for review, reversibly. See below.
- **file_organizer_restore_quarantine** — Put quarantined files back where they came from.
- **file_organizer_search_history** — Filter the history by path glob (`path_glob`), date range (`from`/`to`), or operation type. Every filter is optional and they combine, so a long history stays queryable instead of one flat list.
- **file_organizer_export_report** — Write a health report for a directory in one call: totals, space per category, duplicate groups, largest files. Pass `output_path` to leave a file behind, or leave it out and nothing is written. See below.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "file-organizer-mcp": {
    "command": "npx",
    "args": ["-y","file-organizer-mcp"]
  }
}
```

## Documentation

## What file-organizer-mcp does

file-organizer-mcp exposes a filesystem organization workflow through MCP. It can inspect directories, read files, rename batches, classify files into 12 or more categories, organize content by type, date, project, photos, or music, and identify duplicate, empty, old, or unusually large files. The tool set also supports disk-usage analysis, metadata inspection, broken-symlink checks, integrity verification, and generated health reports.

Organization operations are designed to group planning and file changes into a single request. Date-based sorting can use a photo’s EXIF capture date or the file modification time, and the result reports which date source was used. Duplicate analysis uses SHA-256 content hashes. Photo EXIF and audio ID3 metadata can be extracted where applicable.

## How it works

The server validates paths before performing filesystem operations and includes protections for path traversal and time-of-check/time-of-use issues. Before an organization run, its plan validation can check for naming conflicts, occupied destinations, cross-device moves, and files blocked by the sensitive-file gate.

Organization supports a dry-run preview, atomic moves, and rollback. Previous operations are recorded in manifests and can be inspected through history tools or reversed with the undo operation. Undo can target a returned manifest ID; a cascade option walks back later passes first when several operations depend on one another.

Quarantine provides a reversible alternative to deletion. Files are moved into a hidden quarantine directory inside the selected directory by default, or into another validated directory. Quarantine runs are dry-run by default, do not delete files, avoid same-name collisions, and can be restored to their original paths. Files listed for one batch must remain inside the chosen directory.

Automatic workflows can watch directories and organize them on a cron schedule. Watch status, directory listings, and operation history are available through separate tools.

## Setup and configuration

Node.js 20 or newer is required. For a guided setup, run:

```bash
npx file-organizer-mcp --setup
```

The setup wizard detects clients including Claude Desktop, Cursor, Windsurf, and Cline, then helps configure the server, select folders, and choose preferences. For repeated use, install the package globally with:

```bash
npm install -g file-organizer-mcp
```

The server supports Windows, macOS, and Linux. Folder access and quarantine locations are subject to its path-validation rules.

## Tools and capabilities

The server provides 42 tools, including:

- Directory scanning, file listing, single and batch file reading, and validated renaming.
- Organization by category, date, project, photo type, music type, or smart strategy.
- Preview and validation before changes, plus undo, history viewing, history search, and integrity checks.
- Duplicate discovery, duplicate analysis, duplicate-deletion previews, and duplicate deletion.
- Quarantine and restoration for reversible file isolation.
- Metadata inspection, category disk usage, largest-file searches, old-file searches, and empty-directory detection.
- Directory watch management, scheduled organization, custom rules, suggestions, sensitive-file scanning, and configuration export.
- Report export with totals, category space usage, duplicate groups, and largest files.

## Limitations and notes

Organization can be rejected before execution when its validation detects collisions, occupied destinations, cross-device moves, or sensitive-file restrictions. Quarantine changes file locations rather than removing files, and its default location is derived from the directory being processed. Tool parameters and return structures are defined by the server’s API documentation.

_Full upstream README: https://allmcps.com/mcp/file-organizer-mcp/readme_

