Diskcleankit Mcp

io.github.namtran由 GitHub 账号 namtran 发布v1.0.0更新于 Oct 24, 2026

MCP server for DiskCleanKit - One Touch Scan and Clean for Mac

已验证STDIO仅桌面效率与工作流文件与存储

概览

AI 生成的概览

让助手通过 DiskCleanKit 应用扫描并清理 macOS 垃圾文件,并查看磁盘空间和清理历史。

可以做什么
该 MCP 服务器把 DiskCleanKit 的 One Touch 功能开放给 AI 助手。工具包括 one_touch_scan(仅扫描,不删除)、one_touch_clean(自动扫描并清理)、get_disk_status、get_cleanable_estimate 和 get_cleaning_history。它通过 diskcleankit:// URL scheme 触发 DiskCleanKit 应用,并从临时文件读取应用返回的结果。
适用场景
在 Mac 上需要让助手查看磁盘空间、估算可清理空间,或清除系统缓存、应用缓存、浏览器缓存和旧日志时使用。它面向日常 macOS 磁盘清理,而不是通用文件管理。
运行要求
需要 macOS 并安装 DiskCleanKit 应用,以及 Node.js v18 或更高版本,通过 stdio 运行 npm 包 @vannamtran/diskcleankit-mcp。未声明任何身份验证、环境变量或请求头。该服务器仅限桌面端,不能在网页中运行。
安装前请注意
one_touch_clean 会在没有单独确认步骤的情况下删除文件,尽管 README 称其只针对可再生的缓存和日志。运行前请先查看它报告的可清理内容,并注意该服务器通过 URL scheme 和本机临时响应文件与 DiskCleanKit 应用通信。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

DiskCleanKit MCP Server

[npm version]

MCP (Model Context Protocol) server that enables AI assistants like Claude to control DiskCleanKit's One Touch feature for Mac disk cleaning.

Prerequisites

Installation

Via npm (Recommended)

bash
npm install -g @vannamtran/diskcleankit-mcp

From Source

bash
git clone https://github.com/namtran/diskcleankit-mcpcd diskcleankit-mcpnpm installnpm run build

Configuration

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "diskcleankit": {      "command": "npx",      "args": ["@vannamtran/diskcleankit-mcp"]    }  }}

Then restart Claude Desktop.

Claude Code (CLI)

bash
claude mcp add --transport stdio diskcleankit -- npx @vannamtran/diskcleankit-mcp

Or edit ~/.claude/settings.json:

json
{  "mcpServers": {    "diskcleankit": {      "command": "npx",      "args": ["@vannamtran/diskcleankit-mcp"]    }  }}

Cursor

Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project-specific):

json
{  "mcpServers": {    "diskcleankit": {      "command": "npx",      "args": ["@vannamtran/diskcleankit-mcp"]    }  }}

Or go to Cursor Settings → Tools & Integrations → New MCP Server.

VS Code (GitHub Copilot)

Add to your settings.json:

json
{  "mcp.servers": {    "diskcleankit": {      "command": "npx",      "args": ["@vannamtran/diskcleankit-mcp"]    }  }}

Other MCP Clients

ClientConfig File
ClineVS Code extension settings
Windsurf~/.windsurf/mcp.json
Zed~/.config/zed/settings.json
Continue~/.continue/config.json

Use the same configuration structure:

json
{  "mcpServers": {    "diskcleankit": {      "command": "npx",      "args": ["@vannamtran/diskcleankit-mcp"]    }  }}

Ollama (via mcphost)

Ollama doesn't natively support MCP, but you can use mcphost:

bash
pip install mcphostmcphost -m ollama:qwen2.5 --config config.json

Unsupported

  • ChatGPT: No native MCP support

Available Tools

ToolDescription
one_touch_scanScan for junk files (safe, no deletion)
one_touch_cleanRecommended - Scan AND clean junk files automatically
get_disk_statusCheck disk space and health status
get_cleanable_estimateEstimate cleanable space by category
get_cleaning_historyView past cleaning sessions

What Gets Cleaned

one_touch_clean automatically scans and cleans safe items only:

CategoryDescription
System CachesmacOS system cache files
Application CachesApp-generated cache files
Application LogsOld log files from apps
Browser CachesSafari, Chrome, Firefox cache

These are all safe to delete and will be regenerated by the system/apps as needed.

Usage Examples

Once configured, ask your AI assistant:

  • "Scan my Mac for junk files" → one_touch_scan
  • "Clean up my Mac" → one_touch_clean
  • "How much disk space do I have?" → get_disk_status
  • "What can be cleaned?" → get_cleanable_estimate
  • "Show my cleaning history" → get_cleaning_history

How It Works

AI Assistant → MCP Server → URL Scheme → DiskCleanKit App                   ↑                            ↓              JSON Response ← Temp File ← Response
  1. AI calls MCP server tools
  2. MCP server triggers DiskCleanKit via diskcleankit:// URL scheme
  3. DiskCleanKit processes request and writes response to /tmp/diskcleankit_mcp_response.json
  4. MCP server reads response and returns to AI

Security

  • one_touch_scan is safe - only scans, never deletes
  • one_touch_clean automatically scans AND cleans safe items (caches & logs only)
  • Only cleans regenerable files - no personal data or documents are ever touched
  • All processing happens locally on your Mac
  • No data sent to external servers

Note: one_touch_clean is safe to run directly - it only removes system/app caches and logs that will be regenerated automatically.

Troubleshooting

"Timeout waiting for response"

  • Ensure DiskCleanKit app is installed
  • Try opening DiskCleanKit manually first

Server not appearing in Claude

  • Verify config path is correct
  • Restart Claude Desktop after config changes
  • Check Claude logs for errors

License

MIT

Links

来源:README.md,提交 28bfdc4

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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