io.github.namtran/diskcleankit-mcp

السجل الرسمي أخرى

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

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package @vannamtran/diskcleankit-mcp
Claude Code
claude mcp add diskcleankit-mcp -- npx -y @vannamtran/diskcleankit-mcp@1.0.0
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "diskcleankit-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@vannamtran/diskcleankit-mcp@1.0.0"
            ]
        }
    }
}

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. DiskCleanKit MCP Server
  2. Prerequisites
  3. Installation
  4. Configuration
  5. Available Tools
  6. What Gets Cleaned
  7. Usage Examples
  8. How It Works
  9. Security
  10. Troubleshooting
  11. License
  12. Links

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

Installation

npm install -g @vannamtran/diskcleankit-mcp
From Source
git clone https://github.com/namtran/diskcleankit-mcp
cd diskcleankit-mcp
npm install
npm run build

Configuration

Claude Desktop

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 Code (CLI)
claude mcp add --transport stdio diskcleankit -- npx @vannamtran/diskcleankit-mcp

Or edit ~/.claude/settings.json:

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

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.

VS Code (GitHub Copilot)

Add to your settings.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:

{
  "mcpServers": {
    "diskcleankit": {
      "command": "npx",
      "args": ["@vannamtran/diskcleankit-mcp"]
    }
  }
}
Ollama (via mcphost)

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

pip install mcphost
mcphost -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

الأسئلة الشائعة

ما هو io.github.namtran/diskcleankit-mcp؟

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

كيف أثبّت io.github.namtran/diskcleankit-mcp؟

يعمل على جهازك. في Claude Code: claude mcp add diskcleankit-mcp -- npx -y @vannamtran/diskcleankit-mcp@1.0.0. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج io.github.namtran/diskcleankit-mcp إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل io.github.namtran/diskcleankit-mcp مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون io.github.namtran/diskcleankit-mcp؟

ينشره namtran. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.