
Diskcleankit Mcp
io.github.namtran由 GitHub 账号 namtran 发布v1.0.0更新于 Oct 24, 2026
MCP server for DiskCleanKit - One Touch Scan and Clean for Mac
概览
让助手通过 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。未声明任何身份验证、环境变量或请求头。该服务器仅限桌面端,不能在网页中运行。
安装
在 SourceWeft 中
- 打开 控制台中的 Diskcleankit Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
DiskCleanKit MCP Server
MCP (Model Context Protocol) server that enables AI assistants like Claude to control DiskCleanKit's One Touch feature for Mac disk cleaning.
Prerequisites
- macOS
- DiskCleanKit app installed
- Node.js v18+
Installation
Via npm (Recommended)
From Source
Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Then restart Claude Desktop.
Claude Code (CLI)
Or edit ~/.claude/settings.json:
Cursor
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project-specific):
Or go to Cursor Settings → Tools & Integrations → New MCP Server.
VS Code (GitHub Copilot)
Add to your settings.json:
Other MCP Clients
Use the same configuration structure:
Ollama (via mcphost)
Ollama doesn't natively support MCP, but you can use mcphost:
Unsupported
- ChatGPT: No native MCP support
Available Tools
What Gets Cleaned
one_touch_clean automatically scans and cleans safe items only:
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 calls MCP server tools
- MCP server triggers DiskCleanKit via
diskcleankit://URL scheme - DiskCleanKit processes request and writes response to
/tmp/diskcleankit_mcp_response.json - MCP server reads response and returns to AI
Security
one_touch_scanis safe - only scans, never deletesone_touch_cleanautomatically 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版本历史
1- v1.0.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分