disk-clean-mcp

disk-clean-mcp

Enables read-only analysis of local disk usage to identify cleanup targets by size, type, recency, and duplicates.

Category
访问服务器

README

Disk Clean MCP

mcp-name: io.github.superandyfre/disk-clean-mcp

npm version build license node

Available Languages: English | Fran?ais | 简体中文 | 繁體中文 | ??? | 日本語


English

A Model Context Protocol (MCP) server that analyzes local disk usage in read-only mode and suggests cleanup targets by size, type, recency, and duplicates.

Features

  • Directory Scanning: Scan directories to summarize total size, file count, and directory count with configurable depth limits and glob patterns.
  • Extension Analysis: Breakdown disk usage by file extension to identify the largest file types.
  • Directory Ranking: List the heaviest subdirectories by aggregate file size.
  • Large File Detection: Find the largest files with optional filters for size, age, and glob patterns.
  • Stale File Suggestions: Identify large and old files that may be candidates for cleanup.
  • Duplicate Detection: Find groups of files with identical sizes and content hashes (read-only).
  • Configurable Limits: Use ignoreGlobs, includeGlobs, maxFiles, and maxDepth to refine scope and control workload.

Requirements

  • Node.js >= 18
  • Read-only operation (no delete/move functions)
  • Common folders ignored by default: node_modules, .git, dist, build, .cache

Installation & Usage

Published Package (Recommended)

npm install -g disk-clean-mcp
# or use directly without installation
npx disk-clean-mcp

Configuration for Claude Desktop

{
  "mcpServers": {
    "disk-clean": {
      "command": "disk-clean-mcp",
      "args": [],
      "cwd": "/path/to/workdir"
    }
  }
}

Local Development

git clone https://github.com/Superandyfre/disk-clean-mcp.git
cd disk-clean-mcp
npm install
npm run build
npm start
# or dev mode with auto-compilation
npm run dev

Tools

  • scan_summary – Get total size, file count, directory count with optional depth and ignore globs
  • by_type – Top file extensions ranked by total size
  • top_dirs – Heaviest subdirectories by aggregate size
  • top_files – Largest files with filters (min size, age, glob include/exclude)
  • stale_candidates – Large and old files (cleanup suggestions)
  • duplicate_candidates – Groups of files with identical size and content hash (read-only)

MCP Hub / Claude Submission (EN/中文)

  • Status: pending listing; add MCP Hub link after approval.
  • Provide when submitting: repo URL, npm install command (npm install -g disk-clean-mcp / npx disk-clean-mcp), command name (disk-clean-mcp), Node >= 18, MIT license, and the tool list above.
  • Config snippet (Claude Desktop): see “Configuration for Claude Desktop” JSON above.
  • 中文要点:提交时准备仓库链接、npm 安装指令、命令名、Node 版本要求、MIT 许可、工具清单、Claude 配置示例。

Release Checklist

  • [ ] Run npm run build to verify compilation
  • [ ] Confirm Node.js >= 18
  • [ ] Update version: npm version patch|minor|major
  • [ ] Publish to npm: npm publish (requires npm login)
  • [ ] Update README and CHANGELOG if applicable
  • [ ] Update repository URLs in package.json if needed

License

MIT – Copyright (c) 2026 Superandyfre


<a id="fr"></a>

Fran?ais

Un serveur Model Context Protocol (MCP) qui analyse l'utilisation du disque local en mode lecture seule et suggère des cibles de nettoyage par taille, type, récence et doublons.

Fonctionnalités

  • Analyse de répertoires: Scannez les répertoires pour résumer la taille totale, le nombre de fichiers et répertoires avec limites de profondeur configurables et motifs glob.
  • Analyse par extension: Décomposez l'utilisation du disque par extension de fichier pour identifier les types de fichiers les plus volumineux.
  • Classement des répertoires: Listez les sous-répertoires les plus volumineux par taille de fichier agrégée.
  • Détection de fichiers volumineux: Trouvez les fichiers les plus volumineux avec filtres optionnels par taille, ?ge et motifs glob.
  • Suggestions de fichiers obsolètes: Identifiez les fichiers volumineux et anciens pour nettoyage potentiel.
  • Détection des doublons: Trouvez les groupes de fichiers avec tailles et hachages de contenu identiques (lecture seule).
  • Limites configurables: Utilisez ignoreGlobs, includeGlobs, maxFiles et maxDepth pour affiner la portée.

Configuration requise

  • Node.js >= 18
  • Opération en lecture seule (pas de fonctions de suppression/déplacement)
  • Dossiers ignorés par défaut: node_modules, .git, dist, build, .cache

Installation et utilisation

Paquet publié (recommandé)

npm install -g disk-clean-mcp
# ou utiliser directement
npx disk-clean-mcp

Configuration pour Claude Desktop

{
  "mcpServers": {
    "disk-clean": {
      "command": "disk-clean-mcp",
      "args": [],
      "cwd": "/path/to/workdir"
    }
  }
}

Développement local

git clone https://github.com/Superandyfre/disk-clean-mcp.git
cd disk-clean-mcp
npm install
npm run build
npm start
npm run dev  # mode dev avec recompilation automatique

Outils disponibles

  • scan_summary – Obtenez la taille totale, le nombre de fichiers et répertoires
  • by_type – Extensions de fichier classées par taille totale
  • top_dirs – Sous-répertoires les plus volumineux
  • top_files – Fichiers les plus volumineux avec filtres
  • stale_candidates – Fichiers volumineux et anciens
  • duplicate_candidates – Groupes de fichiers doublons

Licence

MIT – Copyright (c) 2026 Superandyfre


<a id="zh-cn"></a>

简体中文

一个 Model Context Protocol (MCP) 服务器,用于分析本地磁盘使用情况(只读模式),并按大小、类型、新旧程度和重复项建议清理目标。

功能特性

  • 目录扫描: 扫描目录以汇总总大小、文件数和目录数,支持可配置的深度限制和全局匹配模式。
  • 扩展名分析: 按文件扩展名分解磁盘使用情况,识别最大的文件类型。
  • 目录排名: 按聚合文件大小列出最大的子目录。
  • 大文件检测: 查找最大的文件,支持按大小、年龄和全局模式过滤。
  • 陈旧文件建议: 识别可能需要清理的大型且老旧的文件。
  • 重复项检测: 查找具有相同大小和内容哈希的文件组(只读)。
  • 可配置限制: 使用 ignoreGlobsincludeGlobsmaxFilesmaxDepth 来调整范围和控制工作负载。

系统要求

  • Node.js >= 18
  • 只读操作(无删除/移动功能)
  • 默认忽略的文件夹:node_modules.gitdistbuild.cache

安装与使用

已发布的包(推荐)

npm install -g disk-clean-mcp
# 或直接使用
npx disk-clean-mcp

Claude Desktop 配置示例

{
  "mcpServers": {
    "disk-clean": {
      "command": "disk-clean-mcp",
      "args": [],
      "cwd": "/path/to/workdir"
    }
  }
}

本地开发

git clone https://github.com/Superandyfre/disk-clean-mcp.git
cd disk-clean-mcp
npm install
npm run build
npm start
npm run dev  # 开发模式,自动编译

工具列表

  • scan_summary – 获取总大小、文件数、目录数,支持深度和忽略模式
  • by_type – 按总大小排列的文件扩展名
  • top_dirs – 最大的子目录(按聚合大小)
  • top_files – 最大的文件,支持过滤(大小、年龄、模式)
  • stale_candidates – 大型且老旧的文件(清理建议)
  • duplicate_candidates – 重复文件组(相同大小和哈希)

发布检查清单

  • [ ] 运行 npm run build 验证编译
  • [ ] 确认 Node.js >= 18
  • [ ] 更新版本:npm version patch|minor|major
  • [ ] 发布到 npm:npm publish(需要 npm 登录)
  • [ ] 更新 README 和 CHANGELOG(如适用)

许可证

MIT – Copyright (c) 2026 Superandyfre


<a id="zh-tw"></a>

繁體中文

一個 Model Context Protocol (MCP) 伺服器,用於分析本機磁碟使用情況(唯讀模式),並按大小、類型、新舊程度和重複項建議清理目標。

功能特性

  • 目錄掃描: 掃描目錄以彙總總大小、檔案數和目錄數,支援可設定的深度限制和通用配對模式。
  • 副檔名分析: 按檔案副檔名分解磁碟使用情況,識別最大的檔案類型。
  • 目錄排名: 按聚合檔案大小列出最大的子目錄。
  • 大檔案偵測: 查找最大的檔案,支援按大小、年齡和通用模式篩選。
  • 陳舊檔案建議: 識別可能需要清理的大型且老舊的檔案。
  • 重複項偵測: 查找具有相同大小和內容雜湊的檔案組(唯讀)。
  • 可設定限制: 使用 ignoreGlobsincludeGlobsmaxFilesmaxDepth 來調整範圍和控制工作負載。

系統需求

  • Node.js >= 18
  • 唯讀作業(無刪除/移動功能)
  • 預設忽略的資料夾:node_modules.gitdistbuild.cache

安裝與使用

已發佈的套件(推薦)

npm install -g disk-clean-mcp
# 或直接使用
npx disk-clean-mcp

Claude Desktop 設定範例

{
  "mcpServers": {
    "disk-clean": {
      "command": "disk-clean-mcp",
      "args": [],
      "cwd": "/path/to/workdir"
    }
  }
}

本機開發

git clone https://github.com/Superandyfre/disk-clean-mcp.git
cd disk-clean-mcp
npm install
npm run build
npm start
npm run dev  # 開發模式,自動編譯

工具清單

  • scan_summary – 取得總大小、檔案數、目錄數,支援深度和忽略模式
  • by_type – 按總大小排列的檔案副檔名
  • top_dirs – 最大的子目錄(按聚合大小)
  • top_files – 最大的檔案,支援篩選(大小、年齡、模式)
  • stale_candidates – 大型且老舊的檔案(清理建議)
  • duplicate_candidates – 重複檔案組(相同大小和雜湊)

授權

MIT – Copyright (c) 2026 Superandyfre


<a id="ko"></a>

???

?? ??? ???? ?? ?? ??? ???? ??, ??, ??? ? ?? ???? ?? ??? ???? Model Context Protocol (MCP) ?????.

??

  • ???? ??: ????? ???? ? ??, ?? ? ? ???? ?? ????, ?? ??? ?? ?? ? ??? ??? ?????.
  • ??? ??: ?? ????? ??? ???? ???? ?? ? ?? ??? ?????.
  • ???? ??: ?? ?? ???? ?? ? ?? ????? ?????.
  • ? ?? ??: ??, ?? ? ??? ???? ??? ??? ???? ?? ? ??? ????.
  • ??? ?? ??: ?? ??? ? ? ?? ?? ??? ??? ?????.
  • ?? ??: ??? ?? ? ??? ??? ?? ?? ??? ????(?? ??).
  • ?? ??? ??: ignoreGlobs, includeGlobs, maxFiles ? maxDepth? ???? ??? ?????.

?? ??

  • Node.js >= 18
  • ?? ?? ??(??/?? ?? ??)
  • ????? ???? ??: node_modules, .git, dist, build, .cache

?? ? ??

??? ???(??)

npm install -g disk-clean-mcp
# ?? ?? ??
npx disk-clean-mcp

Claude Desktop ?? ?

{
  "mcpServers": {
    "disk-clean": {
      "command": "disk-clean-mcp",
      "args": [],
      "cwd": "/path/to/workdir"
    }
  }
}

?? ??

git clone https://github.com/Superandyfre/disk-clean-mcp.git
cd disk-clean-mcp
npm install
npm run build
npm start
npm run dev  # ?? ???? ?? ?? ??

??

  • scan_summary – ? ??, ?? ?, ???? ? ??
  • by_type – ? ???? ??? ?? ???
  • top_dirs – ?? ???? ?? ? ?? ????
  • top_files – ??? ?? ?? ? ??(??, ??, ??)
  • stale_candidates – ?? ??? ??(?? ??)
  • duplicate_candidates – ?? ?? ??(??? ?? ? ??)

????

MIT – Copyright (c) 2026 Superandyfre


<a id="ja"></a>

日本語

ローカルディスクの使用状況を読み取り専用モードで分析し、サイズ、タイプ、最新性、および重複によってクリーンアップ対象を提案するModel Context Protocol(MCP)サーバーです。

機能

  • ディレクトリスキャン: ディレクトリをスキャンして、合計サイズ、ファイル数、ディレクトリ数を要約します。構成可能な深度制限とグロブパターンをサポートします。
  • 拡張分析: ファイル拡張子別にディスク使用量を分解し、最大のファイルタイプを識別します。
  • ディレクトリランキング: 集計ファイルサイズ別に最大のサブディレクトリを一覧表示します。
  • 大きなファイル検出: サイズ、年齢、グロブパターンでフィルタリング可能な最大のファイルを検索します。
  • 古いファイルの提案: クリーンアップの対象となる可能性がある大きくて古いファイルを識別します。
  • 重複検出: 同じサイズとコンテンツハッシュを持つファイルグループを検索します(読み取り専用)。
  • 構成可能な制限: ignoreGlobsincludeGlobsmaxFilesmaxDepthを使用してスコープを調整します。

要件

  • Node.js >= 18
  • 読み取り専用操作(削除/移動機能なし)
  • デフォルトで無視されるフォルダ: node_modules.gitdistbuild.cache

インストールと使用

公開パッケージ(推奨)

npm install -g disk-clean-mcp
# または直接使用
npx disk-clean-mcp

Claude Desktop設定例

{
  "mcpServers": {
    "disk-clean": {
      "command": "disk-clean-mcp",
      "args": [],
      "cwd": "/path/to/workdir"
    }
  }
}

ローカル開発

git clone https://github.com/Superandyfre/disk-clean-mcp.git
cd disk-clean-mcp
npm install
npm run build
npm start
npm run dev  # 自動コンパイル付きの開発モード

ツール

  • scan_summary – 合計サイズ、ファイル数、ディレクトリ数を取得
  • by_type – 合計サイズ別にソートされたファイル拡張子
  • top_dirs – 集計サイズ別に最大のサブディレクトリ
  • top_files – フィルタ付きの最大ファイル(サイズ、年齢、パターン)
  • stale_candidates – 大きくて古いファイル(クリーンアップ提案)
  • duplicate_candidates – 重複ファイルグループ(同じサイズとハッシュ)

ライセンス

MIT – Copyright (c) 2026 Superandyfre

  • 更新 README/CHANGELOG 如有改动
  • 将 package.json 中的 repository / bugs / homepage 替换为实际仓库地址

Tools

  • scan_summary – total size/files/dirs, optional depth and ignore globs.
  • by_type – top extensions by total size.
  • top_dirs – heaviest subdirectories.
  • top_files – largest files with filters (min size, age, glob include/exclude).
  • stale_candidates – large and old files.
  • duplicate_candidates – groups of files with identical sizes and hashes (read-only).

Notes

  • Read-only: no delete/move operations.
  • Defaults skip common noisy folders: node_modules, .git, dist, build, .cache.
  • Use ignoreGlobs / includeGlobs to refine scope.
  • Use maxFiles/maxDepth to control workload.
  • License: MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选