Trash Cleaner MCP Server

Trash Cleaner MCP Server

trash-cleaner-mcp-server•bydabing1022

A desktop MCP service that provides tools to scan, analyze, and clean junk files, with macOS-optimized cleaning tools and cross-platform filesystem utilities.

License: Not specified•Runtime: Awaiting documentation review•Category: file systems-docs

WHAT IT DOES

  • •Provides macOS cleaning tools such as cleanAppCaches, cleanTempFiles, cleanAppRemnants, and smartCleanSystem, most supporting dryRun.
  • •Offers filesystem utilities including finding large files, scanning directories, computing folder sizes, and listing directories.
  • •Includes audit tools to view the application's recent log lines and to delete the main log file.
  • •Provides a scheduler for creating, listing, updating, enabling, disabling, deleting, and manually running scheduled tasks that target registered tools.

BEST FOR

  • •Removing macOS application caches, temporary files, and leftovers from uninstalled applications.
  • •Analyzing disk usage by finding large files and calculating directory sizes.
  • •Cleaning outdated VS Code extensions across supported editors.

ABOUT TRASH-CLEANER-MCP-SERVER

Trash Cleaner MCP Server is cataloged as an MCP server attributed to dabing1022. A desktop MCP service that provides tools to scan, analyze, and clean junk files, with macOS-optimized cleaning tools and cross-platform filesystem utilities. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Trash Cleaner MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Do the cleaning tools work on non-macOS systems?

Most cleaning tools are designed and tested specifically for macOS, and running them on other systems might not work or could lead to unexpected behavior.

Do cleaning tools delete files by default?

Cleaning tools accept a dryRun option that defaults to true, allowing preview before actual deletion.

Where are scheduled task definitions stored?

Scheduled task definitions are stored in ~/.trash-cleaner/schedules.json.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 7adab3743933 · 采集于 2026-11-13 10:46:51 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

trash-cleaner-mcp-server

中文 README

A desktop MCP service providing tools to scan, analyze, and clean junk files, primarily optimized for macOS.

Note: Most cleaning tools (cleanAppCaches, cleanTempFiles, cleanAppRemnants, smartCleanSystem) are designed and tested specifically for macOS. Running them on other systems might not work or lead to unexpected behavior.

Features

  • Cross-Platform: (Planned) Windows, macOS, Linux support.
  • Intelligent Scanning: Identifies various types of junk files (caches, logs, temp files, etc.).
  • Selective Cleaning: Tools for cleaning specific areas like application caches, temp files, and application remnants.
  • VS Code Extension Management: Tools to find and clean old/unused VS Code extensions.
  • Filesystem Utilities: Tools for directory analysis, file finding, size calculation, deletion, etc.
  • System Information: Basic OS detection.
  • Audit Logging: Tracks operations via [Audit] tools.
  • Scheduled Tasks: Automate cleaning and other tasks using a flexible scheduler.
    • Define tasks using cron expressions or simple intervals.
    • Target any registered tool for execution.
    • Create/update tasks using exact tool names (toolName) or natural language queries (toolQuery) via fuzzy matching.
    • Full task management (list, details, update, enable/disable, delete).
    • Manual triggering and execution history tracking.

Available Tools (Features)

This server registers several tools callable via the MCP protocol:

macOS Cleaning Tools (Optimized for macOS):

  • macOSWarning: Displays a warning if run on a non-macOS system.
  • cleanAppCaches: Cleans various application caches (user cache, saved app state).
    • Options: dryRun (bool, default: true), olderThan (int, optional - days).
  • cleanTempFiles: Cleans system temporary files.
    • Options: dryRun (bool, default: true), olderThan (int, optional, default: 7 days).
  • cleanAppRemnants: Scans for and cleans configuration/cache files left by uninstalled applications.
    • Options: appName (string, optional - partial name match), dryRun (bool, default: true).
  • smartCleanSystem: Performs system cleaning based on predefined levels (targets common junk locations).
    • Options: cleanLevel (enum: "safe", "normal", "deep", default: "safe"), dryRun (bool, default: true).

Cross-Platform Tools (Scanning, File System, OS):

  • cleanVSCodeExtensions: Cleans outdated versions of VS Code (and compatible editors like VSCodium, Cursor) extensions.
    • Options: editorPath (string, optional - path to specific editor's extensions, default: scans all known locations), dryRun (bool, default: true).
  • reportVSCodeExtensions: Generates a report listing outdated VS Code extensions that can be cleaned.
    • Options: editorPath (string, optional).
  • findLargeFiles: Finds files exceeding a specified size within a directory.
    • Options: path (string), minSize (int, default: 100MB), maxDepth (int, default: 3).
  • scanFullSystem: Scans the entire system's file structure (respecting exclusions) to report on space usage.
    • Options: excludePaths (string[], optional), maxDepth (int, default: 10).
  • scanDirectory: Analyzes the contents and size distribution within a specific directory.
    • Options: path (string), excludePaths (string[], optional), maxDepth (int, default: 10), includeSubdirs (bool, default: true).
  • getFolderSize: Calculates and returns the total size of a folder.
    • Options: path (string).
  • listDirectory: Lists the files and subdirectories within a specified path.
    • Options: path (string), showHidden (bool, default: false).
  • findFiles: Searches for files matching a specific pattern (wildcards supported) within a directory.
    • Options: path (string), pattern (string), maxDepth (int, default: 5).
  • analyzeDirectory: Provides statistics on file types and size distribution within a directory.
    • Options: path (string), includeSubdirs (bool, default: true).
  • getFileHash: Computes the MD5, SHA1, or SHA256 hash of a file.
    • Options: path (string), algorithm (enum: "md5", "sha1", "sha256", default: "md5").
  • getFileType: Retrieves basic file information, including MIME type.
    • Options: path (string).
  • deletePath: Deletes a specified file or folder (requires explicit confirmation, with extra checks for dangerous paths).
    • Options: path (string), confirm (bool, must be true), dangerConfirm (bool, optional - required for potentially risky deletions).
  • checkPathExists: Checks if a given path exists and identifies if it's a file or directory.
    • Options: path (string).
  • getSystemType: Returns the operating system identifier (e.g., 'darwin', 'win32', 'linux').

Audit Tools:

  • viewAuditLog: Views the most recent lines from the application's main log file (combined.log).
    • Options: lines (int, default: 100, max: 1000).
  • clearAuditLog: Deletes the main application log file (combined.log). Requires confirmation.
    • Options: confirm (bool, must be true).

Scheduled Tasks (TrashCleaner_Scheduler Tools)

Provides functionality to schedule the execution of other registered tools.

  • TrashCleaner_Scheduler_CreateTask: Creates a new scheduled task.
    • Requires name, cronExpression.
    • Requires either toolName (exact tool name like "TrashCleaner_CleanAppCaches") or toolQuery (fuzzy description like "clean app caches").
    • Optional toolParams, enabled.
  • TrashCleaner_Scheduler_ListTasks: Lists all configured scheduled tasks and their status.
  • TrashCleaner_Scheduler_GetTaskDetails: Gets detailed information about a specific task by ID.
  • TrashCleaner_Scheduler_UpdateTask: Updates an existing task. Can modify name, schedule, target tool (via toolName or toolQuery), parameters, and enabled status.
  • TrashCleaner_Scheduler_EnableTask: Enables a disabled task.
  • TrashCleaner_Scheduler_DisableTask: Disables an enabled task.
  • TrashCleaner_Scheduler_DeleteTask: Permanently deletes a scheduled task.
  • TrashCleaner_Scheduler_RunTaskNow: Manually triggers the execution of a task immediately.
  • TrashCleaner_Scheduler_GetTaskHistory: Retrieves the recent execution history (success/failure) for a task.

Tech Stack

  • Bun.js
  • TypeScript

Usage

After publishing to npm, you can run the MCP server using either Bun or npm:

Using Bun:

bunx @childhoodandy/trash-cleaner-mcp-server
# or with auto-install
bunx -y @childhoodandy/trash-cleaner-mcp-server

Using npm:

npx @childhoodandy/trash-cleaner-mcp-server
# or with auto-install
npx -y @childhoodandy/trash-cleaner-mcp-server

Installation

# Clone the repository
git clone <repository-url>
cd trash-cleaner-mcp-server

# Install dependencies (using Bun)
bun install

Running the Server

bun start

Configuration

  • Logging configuration is in src/utils/logger.ts.
  • Scheduled task definitions are stored in ~/.trash-cleaner/schedules.json.

Development

(Development guidelines remain here...)

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Trash Cleaner MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/trash-cleaner-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related file systems-docs MCP Servers

Alternative and complementary servers in the same category

View all in file systems-docs →

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Repository stats unavailable
Files & Documentation
LoreKeeper MCP server
lorekeeper-rpg-lorekeeper-com•lore-keeper

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

Repository stats unavailable
Files & Documentation

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.

Repository stats unavailable
Files & Documentation