io.github.namtran/diskcleankit-mcp
MCP server for DiskCleanKit - One Touch Scan and Clean for Mac
Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
@vannamtran/diskcleankit-mcpclaude mcp add diskcleankit-mcp -- npx -y @vannamtran/diskcleankit-mcp@1.0.0
{
"mcpServers": {
"diskcleankit-mcp": {
"command": "npx",
"args": [
"-y",
"@vannamtran/diskcleankit-mcp@1.0.0"
]
}
}
}
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.
Sommaire
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)
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
- 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
Questions fréquentes
Qu'est-ce que io.github.namtran/diskcleankit-mcp ?
MCP server for DiskCleanKit - One Touch Scan and Clean for Mac
Comment installer io.github.namtran/diskcleankit-mcp ?
Il s'exécute sur votre machine. Dans Claude Code : claude mcp add diskcleankit-mcp -- npx -y @vannamtran/diskcleankit-mcp@1.0.0. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour io.github.namtran/diskcleankit-mcp ?
Son entrée au registre n'indique aucune clé ni secret obligatoire. Certaines fonctions peuvent tout de même demander un compte auprès du service auquel il se connecte.
io.github.namtran/diskcleankit-mcp est-il open source ?
Oui. Son code est sur GitHub sous licence MIT.
Qui maintient io.github.namtran/diskcleankit-mcp ?
Il est publié par namtran. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.