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 整合