agent-file-organiser
🗂️ Agent File Organizer
An intelligent, safety-first, cross-platform file organizer for Windows, macOS, and Linux.
Organize your Downloads, Documents, Pictures, Videos, and Music folders with one command — or let your AI agent do it for you. Works with Windows File Explorer, macOS Finder, and Linux file managers (Nautilus, Dolphin, Thunar, etc.) without any plugins or special setup.
💡 No AI agent? No problem. The CLI works completely offline with no internet connection, no API keys, and no AI agent required. The intelligence is built in.
✨ What Makes It Smart
Unlike tools that blindly sort by file extension, Agent File Organizer uses content-aware heuristics:
📸 Smart Photos — Tells apart screenshots, camera shots (via EXIF), and scanned receipts
🎵 Music Hierarchy — Sorts by
Artist / Albumusing ID3 tags or filename patterns🎥 Video Classification — Separates screen recordings (OBS, Zoom) from regular videos
🎮 Game Mod Detection — Identifies Minecraft mod
.jarfiles and keeps them separate from regular apps🔒 Always Safe — Dry-run preview before anything moves, full undo support, no silent overwrites
Related MCP server: Organizer MCP Server
📦 Install
Via pip (works offline, no agent needed)
pip install agent-file-organizer👉 pypi.org/project/agent-file-organizer
Via Smithery (for AI agent MCP setup)
Smithery auto-installs and configures the MCP server for your agent — no manual JSON editing needed.
# Claude Code / Claude Desktop
npx -y @smithery/cli install michaelattah80/file-organizer --client claude
# Cursor
npx -y @smithery/cli install michaelattah80/file-organizer --client cursor
# Codex
npx -y @smithery/cli install michaelattah80/file-organizer --client codex👉 smithery.ai/server/michaelattah80/file-organizer
Via GitHub (for the Agent Skill)
git clone https://github.com/NerdBlaq/agent-file-organizer.gitOr download as ZIP — no git required.
🚀 3 Ways to Use
1. 💻 CLI — Offline, No Agent Required
After pip install agent-file-organizer, run these commands directly in your terminal:
Scan and preview (nothing moves yet):
file-organizer scan --targets ~/Downloads --output /tmp/plan.jsonApply the plan:
file-organizer apply --plan /tmp/plan.jsonUndo any past run:
file-organizer undo ~/.file-organizer/logs/moves-<timestamp>.logDetect existing folder structure first:
file-organizer detect --targets ~/Pictures ~/Videos ~/Music2. 🤖 Agent Skill — For AI Coding Assistants
Drop the skill into your agent and simply say "Organize my Downloads folder".
Agent | Install Command |
Antigravity (global) |
|
Antigravity (project) |
|
Claude Code |
|
Codex / Any agent | Copy |
Works with any agent that supports external skills, custom rules, or runbooks (Cursor, Windsurf, Aider, Devin, GitHub Copilot, etc.).
3. ⚙️ MCP Server — For AI Desktop Apps
Connect Agent File Organizer directly to Claude Desktop, ChatGPT for Desktop, Cursor, Zed, or Windsurf via the Model Context Protocol.
Easiest way — use Smithery (see Install section above).
Or configure manually — add this to your MCP settings file (claude_desktop_config.json, Cursor MCP config, etc.):
{
"mcpServers": {
"file-organizer": {
"command": "file-organizer-mcp",
"args": []
}
}
}Available MCP tools your agent can call:
Tool | What it does |
| Detects if a folder is flat, by-year, or custom-organized |
| Scans files and builds a dry-run move plan |
| Adjusts a planned destination before applying |
| Excludes a file from the plan |
| Applies moves safely with collision protection |
| Reverses any previous run |
🛡️ Safety Guarantees
Dry-run first — nothing moves until you review and confirm the plan
Move, never delete — duplicates are flagged for your review, never auto-deleted
No silent overwrites — filename collisions get a suffix:
file (1).jpg,file (2).jpgFull undo — every move is logged and 100% reversible
Skips system files — ignores
.DS_Store,Thumbs.db,.git,.tmp,.crdownload, etc.Remembers past runs — files already organized won't be moved again
📄 License
Released under the MIT License.
This server cannot be installed
Maintenance
Related MCP Connectors
Agent-first skill marketplace with USK open standard for Claude, Cursor, Gemini, Codex CLI.
Path-scoped team memories, rules and skills for Claude Code, Cursor, Codex and other MCP clients.
Git-backed platform for skills, tools, and context for AI agents
BugBug skills and MCP workflows for AI agents
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceFile Organizer AI - MCP server providing AI-powered tools and automation by MEOK AI Labs15MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to intelligently organize files by scanning folders, detecting duplicates, suggesting meaningful names, and moving files into logical folders.MIT
- AlicenseNot gradedqualityDmaintenanceTurns Claude-style skill folders into MCP tools, resources, and prompts for discovering and using skills.131MIT
- FlicenseNot gradedqualityCmaintenanceLets AI assistants analyze and organize local directories by file type, with dry-run support and safe sorting.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/NerdBlaq/agent-file-organizer'
If you have feedback or need assistance with the MCP directory API, please join our Discord server