MCP Catalogs
首页

LocalFilesOrganizer-MCP

by TobiasArg·1·综合分 36

一个MCP服务器,提供安全的本地文件组织、读取、写入和分析工具,带有内置保护功能。

file-systemproductivitydeveloper-tools
0
Forks
0
活跃 Issue
3 个月前
最近提交
2 天前
收录于

概述

LocalFilesOrganizer-MCP是一个全面的MCP服务器,用于管理本地文件系统。它提供了一套强大的工具集,用于读取和写入文件(支持UTF-8和base64)、目录操作、使用正则表达式模式的内容搜索、通过MD5哈希比较的重复检测和文件分析功能。该服务器强调安全性,具有可配置的允许路径、受保护路径和正则表达式模式,以防止意外删除重要文件。它跨平台兼容,并包含对系统目录和敏感文件(如.git、.env和.ssh目录)的内置保护。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:按扩展名或日期组织项目文件以改善工作区管理
:在代码库中搜索特定模式或内容
:清理重复文件以节省存储空间
:这个服务器提供哪些安全保护?
:我可以用这个服务器对文件进行批量操作吗?

什么时候选它

当您需要一个专门用于安全本地文件操作的 MCP 接口,具有特定组织需求和安全限制时,选择此服务器。

什么时候不要选它

如果您需要在允许路径之外进行更广泛的文件系统访问,或需要此处未提供的更高级的元数据或内容分析功能,请避免使用此服务器。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • read_file

    Read file contents (UTF-8 or base64)

  • write_file

    Write content to file (UTF-8 or base64)

  • delete_file

    Safely delete a file with protection checks

  • move_file

    Move file with optional empty directory cleanup

  • analyze_file

    Get file stats (size, MIME, lines, words)

  • list_directory

    List files with optional recursion and glob patterns

  • delete_directory

    Safely delete directory (requires confirmation for recursive)

  • organize_by_type

    Organize files into folders by extension/date/size

  • search_content

    Search for regex patterns in file contents

  • find_duplicates

    Find duplicate files by MD5 hash

  • sort_file_content

    Sort lines in a file

  • rename_files

    Batch rename files using regex patterns

可对比工具

filesystem-mcpfile-explorer-mcpshell-mcp

安装

安装

使用NPX(推荐)

将以下内容添加到您的Claude Desktop配置文件中:

**macOS**: ~/Library/Application Support/Claude/claude_desktop_config.json **Windows**: %APPDATA%\Claude\claude_desktop_config.json **Linux**: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "local-files": {
      "command": "npx",
      "args": ["-y", "fsorg"]
    }
  }
}

从源码安装

git clone https://github.com/argtobias/fsorg.git
cd fsorg
pnpm install
pnpm build

然后配置Claude Desktop以使用构建好的服务器:

FAQ

这个服务器提供哪些安全保护?
该服务器允许您配置允许删除的路径,定义额外的受保护路径,并为受保护的文件名指定正则表达式模式。系统路径和关键用户目录始终受到保护。
我可以用这个服务器对文件进行批量操作吗?
是的,该服务器包含使用正则表达式模式批量重命名文件以及按扩展名、日期或大小将文件组织到文件夹中的工具。

LocalFilesOrganizer-MCP 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。