d

diskcleankit-mcp

@namtran/diskcleankit-mcp
Hosted
0 Stars 5 次浏览 namtran 更新于 2026-08-23

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

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

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

可用工具 (5 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

tavily_search 14 个参数 需填 1 项

Search the web for current information on any topic. Use for news, facts, or data beyond your knowledge cutoff. Returns snippets and source URLs.

必填参数:query

tavily_extract 6 个参数 需填 1 项

Extract content from URLs. Returns raw page content in markdown or text format.

必填参数:urls

tavily_crawl 11 个参数 需填 1 项

Crawl a website starting from a URL. Extracts content from pages with configurable depth and breadth.

必填参数:url

tavily_map 8 个参数 需填 1 项

Map a website's structure. Returns a list of URLs found starting from the base URL.

必填参数:url

tavily_research 2 个参数 需填 1 项

Perform comprehensive research on a given topic or question. Use this tool when you need to gather information from multiple sources to answer a question or complete a task. Returns a detailed response based on the research findings.

必填参数:input

服务介绍

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)

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

| 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 (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

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

# What Gets Cleaned

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.

# 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

相关 MCP 服务