
Local File Organizer
STDIOPython-based file organization system using MCP to safely manage files across directories.
Python-based file organization system using MCP to safely manage files across directories.
A Python-based file organization system that leverages the Model Context Protocol (MCP) to safely organize and manage files across directories.
This project implements a file organization system using the Model Context Protocol (MCP) framework to:
# Clone the repository git clone https://github.com/diganto-deb/local_file_organizer.git cd local_file_organizer # Install requirements pip install -r requirements.txt
Create or modify the .cursor/mcp.json
file in your project directory:
{ "mcpServers": { "filesystem": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-filesystem", "/path/to/organize/dir1", "/path/to/organize/dir2" ] } } }
Replace the paths with the directories you want to allow the MCP server to access.
After configuring the .cursor/mcp.json
file:
MCP
filesystem
server in the list of MCP servers
Once the MCP server is enabled, you can use the file organization commands directly in Cursor's Agent:
# List all available categories
list_categories
# Analyze a directory without making changes
analyze_directory /path/to/directory
# Create category folders in a target directory
create_category_directories /path/to/target
# Organize files by type
organize_files /path/to/directory
# Search for files
search_files /path/to/directory "*.jpg"
The system uses:
The following features are planned for upcoming releases:
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.