Disk Clean

io.github.Kate941-su由 GitHub 账号 Kate941-su 发布v0.1.0更新于 Nov 7, 2026

Find dev caches, large unused videos and old logs, then move approved items to the OS trash.

发布方自己的服务:Clean

已验证STDIO仅桌面文件与存储开发者工具

概览

AI 生成的概览

本地 MCP 服务器,扫描指定文件夹中的开发缓存、长期未用的大视频和旧日志,只把你确认的条目移入系统回收站。

可以做什么
  • 扫描文件夹并报告占用空间的情况,列出候选路径、类型、大小、最后修改时间以及可释放的总空间
  • 按你指定的类型、大小和时长条件筛选候选,例如大于 500 MB 的视频或一年以上的日志
  • 只把已批准的条目移入系统回收站,并返回处理报告
  • 跳过受保护位置,例如系统文件夹、主目录本身、符号链接,以及属于工具而非项目的 node_modules 和虚拟环境
适用场景
适合磁盘空间不足时,让助手在主目录或项目目录中找出可回收的空间,先查看候选清单,再只清理你确认的内容。对积累了大量缓存、旧日志和大体积闲置视频的开发机尤其有用。
运行要求
以 stdio 方式在本机运行,支持 macOS、Linux 和 Windows。Claude Desktop 可安装打包扩展,由它自行准备 Python;其他客户端通过 uvx 运行,需要先安装 uv,但无需单独安装 Python。未声明任何账号、API 密钥或环境变量。需要对所扫描文件夹的读取权限,macOS 上部分文件夹可能需要“完全磁盘访问权限”。
安装前请注意
它会移动文件,被批准的条目会离开原位置,且只有清空回收站后才真正释放空间;需要时可从系统回收站恢复。单次扫描最长 60 秒,无权限读取的文件夹会被跳过。授予“完全磁盘访问权限”会扩大其可读取范围。批准操作即触发移动,请先核对候选清单。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Disk Clean,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Disk Clean MCP Server

日本語 | English

Ask Claude or another AI assistant to "clean up my disk". This MCP server finds the files that eat your disk space and moves them to the trash.

  • Nothing is deleted. Items go to the OS trash, so you can restore them later
  • You always see a list first, and only the items you approve are moved
  • System folders are never touched

Supported OS: macOS / Linux / Windows

What it finds

TypeExamples
Developer cachesnode_modules, __pycache__, Rust target/, build/ and dist/, Python virtual environments (.venv), ~/.gradle/caches, ~/.cargo/registry
Large, unused videos.mp4, .mov, .mkv and other videos over 100 MB that have not been opened or changed in 90 days
Old logs.log and .log.gz files not updated in 30 days

You can change the size and age limits when you ask (for example "videos over 500 MB" or "logs older than a year").


Install

Claude Desktop (easiest)

  1. Download the latest diskclean-mcp-server-*.mcpb from Releases
  2. Double-click the file, or drag it into Claude Desktop's Settings → Extensions
  3. Click Install

Claude Desktop sets up Python and everything else for you.

Other apps (Claude Code, Cline, manual setup)

These use uv to download and run the server. You do not need to install Python yourself.

Step 1. Install uv

macOS / Linux:

bash
curl -LsSf https://astral.sh/uv/install.sh | sh

Windows (PowerShell):

powershell
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Open a new terminal and check that uv --version works.

Step 2. Add the server to your app

Claude Code
bash
claude mcp add --scope user diskclean -- uvx diskclean-mcp-server

--scope user makes it available in every project.

Optional: install the skill that teaches Claude the safe cleanup steps.

bash
mkdir -p ~/.claude/skills/disk-cleanupcurl -fsSL https://raw.githubusercontent.com/Kate941-su/diskcleaner-mcp/main/.claude/skills/disk-cleanup/SKILL.md \  -o ~/.claude/skills/disk-cleanup/SKILL.md
Claude Desktop (manual setup)

Open the config file:

OSConfig file
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%\Claude\claude_desktop_config.json

Add the following and restart Claude Desktop:

json
{  "mcpServers": {    "diskclean": {      "command": "uvx",      "args": ["diskclean-mcp-server"]    }  }}
Cline (VS Code)

Open the config file from Cline's MCP Servers screen and add the same entry as above.


How to use

Ask your assistant in plain words:

My disk is full. Find files I don't need in my home folder.
Clean up all the node_modules folders under ~/projects.
Find videos in ~/Movies over 1 GB that I haven't watched in six months.
Show me what is using space in ~/Library/Caches, two levels deep.

What happens

  1. The assistant looks at the folder and tells you what is using the space
  2. You get a list of candidates (path, type, size, last modified) and the total space you can free. Nothing has been moved yet
  3. You say what to move ("all of them", "only node_modules", "everything except #3")
  4. Only the approved items go to the trash, and you get a report

Restoring files

Everything goes to the trash, so you can bring it back at any time.

  • macOS: open the Trash in Finder, right-click the item and choose Put Back
  • Windows: open the Recycle Bin, right-click the item and choose Restore
  • Linux: open the trash in your file manager and choose Restore (stored in ~/.local/share/Trash)

Disk space is actually freed when you empty the trash.

What is never moved

  • OS system folders (/usr, /System, C:\Windows, C:\Program Files, and so on)
  • Your home folder itself, and folders directly under the disk root
  • Anything that was not in the list you were shown
  • Symbolic links (and the files they point to)
  • node_modules and virtual environments that belong to tools and apps, not to your projects: the pnpm store, Node.js installed by nvm, VS Code extensions, and anything inside ~/Library, ~/AppData or hidden folders in your home folder. Removing these would break the tool

build/ and dist/ only count as caches when a build file such as package.json sits next to them, so normal folders with the same name are not picked up by mistake.


Updating

The Claude Desktop extension: download the new .mcpb from Releases and install it again.

With uvx: uv keeps a cached copy. To get the latest version, run the following and restart your app.

bash
uv cache clean diskclean-mcp-server

To always start the newest version, use "args": ["diskclean-mcp-server@latest"] instead. This checks for updates every time the server starts.


Troubleshooting

The tools don't show up in my assistant

  • Restart the app after changing settings
  • Claude Desktop may not find uvx. Put the full path in "command". Find it with which uvx on macOS / Linux or where uvx on Windows
  • In Claude Code, check with claude mcp list

"Some folders could not be read" (skipped_errors)

  • Folders you don't have permission to read are skipped. On macOS, giving the app Full Disk Access may help (System Settings → Privacy & Security)

The scan stopped early (timed_out)

  • One scan runs for up to 60 seconds. Ask for a smaller folder, such as ~/projects

For developers

See docs/DESIGN.md for the design, tool specs, development setup and release process (in Japanese).

License

MIT

来源:README.md,提交 590ac26

工具

0
SourceWeft 曾在隔离沙箱中以无凭据方式启动该软件包一次,以列出其工具,但未能完成:软件包安装失败。

版本历史

1
  1. v0.1.0最新Oct 30, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Clean 集成