Bridges Claude and other MCP clients to DiskCleanKit's Mac cleaning app through URL scheme automation. Exposes five tools: one_touch_scan for safe junk file discovery, one_touch_clean to automatically remove system caches and logs, get_disk_status for space monitoring, get_cleanable_estimate for category breakdowns, and get_cleaning_history for past sessions. The server sends commands via diskcleankit:// URLs and reads responses from temporary JSON files. Useful when you want conversational disk maintenance without leaving your AI assistant. Only touches regenerable files like browser caches and application logs, never personal documents. Requires DiskCleanKit installed and runs entirely local with no external server calls.
MCP (Model Context Protocol) server that enables AI assistants like Claude to control DiskCleanKit's One Touch feature for Mac disk cleaning.
npm install -g @vannamtran/diskcleankit-mcp
git clone https://github.com/namtran/diskcleankit-mcp
cd diskcleankit-mcp
npm install
npm run build
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"diskcleankit": {
"command": "npx",
"args": ["@vannamtran/diskcleankit-mcp"]
}
}
}
Then restart Claude Desktop.
claude mcp add --transport stdio diskcleankit -- npx @vannamtran/diskcleankit-mcp
Or edit ~/.claude/settings.json:
{
"mcpServers": {
"diskcleankit": {
"command": "npx",
"args": ["@vannamtran/diskcleankit-mcp"]
}
}
}
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project-specific):
{
"mcpServers": {
"diskcleankit": {
"command": "npx",
"args": ["@vannamtran/diskcleankit-mcp"]
}
}
}
Or go to Cursor Settings → Tools & Integrations → New MCP Server.
Add to your settings.json:
{
"mcp.servers": {
"diskcleankit": {
"command": "npx",
"args": ["@vannamtran/diskcleankit-mcp"]
}
}
}
| Client | Config File |
|---|---|
| Cline | VS Code extension settings |
| Windsurf | ~/.windsurf/mcp.json |
| Zed | ~/.config/zed/settings.json |
| Continue | ~/.continue/config.json |
Use the same configuration structure:
{
"mcpServers": {
"diskcleankit": {
"command": "npx",
"args": ["@vannamtran/diskcleankit-mcp"]
}
}
}
Ollama doesn't natively support MCP, but you can use mcphost:
pip install mcphost
mcphost -m ollama:qwen2.5 --config config.json
| Tool | Description |
|---|---|
one_touch_scan | Scan for junk files (safe, no deletion) |
one_touch_clean | Recommended - Scan AND clean junk files automatically |
get_disk_status | Check disk space and health status |
get_cleanable_estimate | Estimate cleanable space by category |
get_cleaning_history | View past cleaning sessions |
one_touch_clean automatically scans and cleans safe items only:
| Category | Description |
|---|---|
| System Caches | macOS system cache files |
| Application Caches | App-generated cache files |
| Application Logs | Old log files from apps |
| Browser Caches | Safari, Chrome, Firefox cache |
These are all safe to delete and will be regenerated by the system/apps as needed.
Once configured, ask your AI assistant:
one_touch_scanone_touch_cleanget_disk_statusget_cleanable_estimateget_cleaning_historyAI Assistant → MCP Server → URL Scheme → DiskCleanKit App
↑ ↓
JSON Response ← Temp File ← Response
diskcleankit:// URL scheme/tmp/diskcleankit_mcp_response.jsonone_touch_scan is safe - only scans, never deletesone_touch_clean automatically scans AND cleans safe items (caches & logs only)Note: one_touch_clean is safe to run directly - it only removes system/app caches and logs that will be regenerated automatically.
MIT