What is trash-cleaner-mcp-server?
trash-cleaner-mcp-server is a desktop MCP service that provides tools to scan, analyze, and clean junk files. It is primarily optimized for macOS, with cross-platform support (Windows, Linux) planned. The server is built with Bun.js and TypeScript and is intended for users who want to manage system clutter, application remnants, and temporary files programmatically via the Model Context Protocol.
How to use trash-cleaner-mcp-server?
The server can be run using bunx @childhoodandy/trash-cleaner-mcp-server or npx @childhoodandy/trash-cleaner-mcp-server. For development, clone the repository, run bun install, then bun start. Configuration for logging is in src/utils/logger.ts and scheduled task definitions are stored at ~/.trash-cleaner/schedules.json. The server registers numerous tools callable via MCP, with most cleaning tools marked as macOS-only.
Key features of trash-cleaner-mcp-server
- Intelligent scanning of junk files (caches, logs, temp files)
- Selective cleaning for application caches, temp files, and remnants
- VS Code extension management (find and clean outdated extensions)
- Filesystem utilities (directory analysis, file finding, size calculation, deletion)
- System information detection (OS type)
- Audit logging with view and clear tools
- Scheduled task system with cron or interval-based execution
Use cases of trash-cleaner-mcp-server
- Clean application caches and temporary files on macOS with dry-run support
- Remove configuration and cache files left by uninstalled applications
- Identify and delete outdated VS Code extensions across editors like VSCodium and Cursor
- Find large files in a directory to free up disk space
- Automate regular system cleaning tasks using the built-in scheduler
评论