File Manage MCP Server

File Manage MCP Server

Enables LLMs to organize and manage Windows file systems with intelligent file analysis, automated grouping, renaming with date prefixes, and safe operations through dry-run mode and sandbox restrictions.

Category
访问服务器

README

📂 File Manage MCP Server

Windows용 로컬 MCP 서버로, LLM이 파일 시스템을 정리할 수 있도록 도구를 제공합니다.

✨ 주요 기능

  • 디렉토리 분석: 파일/폴더 목록 조회, 날짜 정보 추출
  • 파일 내용 확인: 텍스트/코드 파일 스니펫 읽기 (cp949/euc-kr 인코딩 지원)
  • 이미지 메타데이터: EXIF 정보에서 촬영 날짜 추출
  • 지능형 파일 분석: 텍스트 분석 및 이미지 분석을 통한 파일명 제안 (LLM 연동)
  • 파일 그룹핑: 관련 파일 분석 및 자동 그룹핑 제안
  • 파일 작업: 이동, 이름 변경, 폴더 생성, 의미를 알 수 없는 파일명 정리
  • 일괄 처리: 날짜 접두사 일괄 추가, 다중 파일 그룹 폴더 이동
  • 안전 기능: Dry Run 모드, 샌드박스 제한, 시스템 폴더 보호

📋 파일 정리 규칙

2가지 절대 규칙

  1. 5단계 규칙: 디렉토리 깊이는 최대 5단계까지
  2. 번호 체계: 폴더는 00~99 접두사 사용 (예: 01_Project), 99는 Archive용

명명 규칙

  • 폴더: NN_이름 형식 (예: 01_Business, 02_Project)
  • 파일: YYMMDD_파일명 형식 (예: 251202_회의록.docx)
  • 버전: _v1.0 형식 (Final, 최최최종 금지!)

🚀 설치 및 실행

요구 사항

  • Windows 10/11
  • Python 3.13+
  • uv

uv dependency 설치

uv pip install -r requirements.txt

⚙️ Claude Desktop 설정

Claude Desktop 설정 (claude_desktop_config.json)

Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "file-organization-agent": {
      "command": "uv",
      "args": [
        "--directory",
        "{your_path}/FileManageMCP",
        "run",
        "python",
        "server.py"
      ]
    }
  }
}

🛠️ 사용 가능한 도구

설정 도구

도구 설명
tool_set_dry_run Dry Run 모드 설정 (기본: 활성화)
tool_get_status 현재 설정 상태 확인
tool_configure_workspace 작업 영역(샌드박스) 설정

분석 도구 (Read-Only)

도구 설명
tool_list_directory 디렉토리 내용 조회 (날짜 정보 포함)
tool_read_file_snippet 파일 내용 미리보기
tool_get_image_metadata 이미지 EXIF 정보 추출
tool_analyze_directory_structure 디렉토리 구조 분석 및 문제점 파악

고급 분석 및 정리 도구

도구 설명
tool_find_files_needing_rename 의미를 알 수 없는 파일명을 가진 파일 찾기 (정리 대상 발굴)
tool_suggest_filename_from_content 파일 내용(텍스트/문서) 분석용 요약 정보 반환
tool_get_image_for_analysis 이미지 파일 분석용 데이터 반환 (LLM Vision 연동)
tool_analyze_file_relationships 파일 관계 분석 및 그룹핑 제안

액션 도구 (Dry Run 지원)

도구 설명
tool_move_file 파일 이동
tool_rename_file 파일/폴더 이름 변경
tool_rename_with_suggestion LLM 제안 이름으로 변경 (고급)
tool_create_folder 새 폴더 생성
tool_group_files_into_folder 관련 파일들을 새 폴더로 일괄 이동 (고급)
tool_batch_rename_with_date 날짜 접두사 일괄 추가

🔒 안전 기능

Dry Run 모드 (기본 활성화)

  • 모든 파일 수정 작업은 기본적으로 시뮬레이션만 수행
  • 실제 변경 전 예상 결과 확인 가능
  • tool_set_dry_run(false) 호출로 실제 모드 전환

샌드박스 제한

  • tool_configure_workspace로 작업 영역 설정
  • 설정된 영역 외부 접근 차단

시스템 폴더 보호

접근 차단되는 경로:

  • C:\Windows
  • C:\Program Files
  • C:\Program Files (x86)
  • .git, node_modules

📖 사용 예시

기본 워크플로우

User: D:\Downloads 폴더를 정리해줘

AI: 
1. 먼저 작업 영역을 설정합니다.
   → tool_configure_workspace("D:\\Downloads")

2. 현재 상태를 확인합니다.
   → tool_get_status()  # Dry Run 활성화 확인

3. 디렉토리 구조를 분석합니다.
   → tool_analyze_directory_structure("D:\\Downloads")

4. 의미를 알 수 없는 파일명 파일들을 찾아 정리합니다.
   → tool_find_files_needing_rename("D:\\Downloads")
   → tool_suggest_filename_from_content(...) 또는 tool_get_image_for_analysis(...)
   → tool_rename_with_suggestion(...)

5. 남은 파일들을 주제별로 그룹핑합니다.
   → tool_analyze_file_relationships("D:\\Downloads")
   → tool_group_files_into_folder("D:\\Downloads", "01_References", ["file1.txt", "file2.pdf"])

6. 결과 확인 후 실제 실행합니다.
   → tool_set_dry_run(false)
   → (위 작업 실제 수행)

📁 프로젝트 구조

FileManageMCP/
├── server.py          # MCP 서버 진입점 (FastMCP)
├── tools.py           # MCP 도구 함수 구현
├── utils.py           # 유틸리티 (경로 검증, 인코딩 처리)
├── requirements.txt   # Python 의존성
└── README.md          # 이 문서

📸 실행 예시

FileManageMCP Result

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选