BACH FileCommander

效率与工作流

by lukisch

39 tools for filesystem, process management, sessions, search, JSON repair, and PDF export.

什么是 BACH FileCommander

39 tools for filesystem, process management, sessions, search, JSON repair, and PDF export.

README

<p align="center"> <img src="assets/filecommander_banner.jpg" alt="FileCommander banner" width="700"> </p>

ellmos FileCommander MCP Server

🇩🇪 Deutsche Version

Part of the ellmos-ai family.

License: MIT npm version Node.js FileCommander tests

A comprehensive Model Context Protocol (MCP) server that gives AI assistants full filesystem access, bounded multi-file content search, process management, interactive shell sessions, and async filename search capabilities.

47 tools in a single server - everything an AI agent needs to interact with the local system.

Discovery keywords: local filesystem MCP server, multi-file content search MCP, safe delete MCP, Recycle Bin MCP server, process management MCP, interactive shell MCP, async file search for AI agents, cloud-lock-safe file operations, Markdown to PDF MCP, OCR MCP server, ZIP archive MCP.

Registry status: published on npm, indexed by jsDelivr, visible on LobeHub, listed on Glama, and prepared for the official MCP Registry via server.json. Some third-party directories still show older 43-tool metadata, so the canonical README/npm metadata should remain the source of truth until their reindex catches up.

[!NOTE] For AI Agents & LLM Integrations: FileCommander provides 47 specialized tools accessible via standard stdio transport. All tool names use the fc_ prefix to prevent namespace collisions. For LLMs, compact context and schema overviews are available in llms.txt and server.json.


Why FileCommander?

Most filesystem MCP servers only cover basic read/write operations. FileCommander goes further:

  • Safe Delete - Moves files to Recycle Bin (Windows) or Trash (macOS/Linux) instead of permanent deletion
  • Interactive Sessions - Start and interact with REPLs (Python, Node.js, shells) through the MCP protocol
  • Async Search - Search large directory trees in the background while the AI continues working
  • Explicit Content Search - Search literal text or regex across a bounded list of files without recursion or glob expansion
  • Process Management - List, start, and terminate system processes
  • String Replace - Edit files by matching unique strings with context validation
  • Format Conversion - Convert between JSON, CSV, INI, YAML, TOML, XML, and TOON
  • ZIP Archives - Create, extract, and list ZIP archives
  • File Checksums - MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashing with compare
  • OCR - Extract text from images (optional tesseract.js dependency)
  • Safety Mode - Toggle to route all deletes through Recycle Bin / Trash
  • Markdown Export - Convert Markdown to professional HTML/PDF with code blocks, tables, nested lists, blockquotes
  • Cloud-Lock Safe - Automatic copy+delete fallback when cloud sync filters (OneDrive, Dropbox, Google Drive, iCloud) block rename operations
  • Cloud Lock Diagnosis - Check whether a path is at risk of sync-filter conflicts before operating
  • Cross-platform - Works on Windows, macOS, and Linux with platform-specific optimizations

System Architecture

mermaid
flowchart TD
    subgraph Client["MCP Client Layer"]
        Claude["Claude Desktop / Claude Code"]
        Custom["Custom LLM Agents / Frameworks"]
    end

    subgraph Transport["Transport Layer"]
        Stdio["Stdio Transport (JSON-RPC)"]
    end

    subgraph Core["ellmos FileCommander Engine (47 Tools)"]
        FS["Filesystem & Cloud-Lock Guard\n(14 tools: read, write, edit, safe-delete, cloud-lock safe)"]
        Search["Search Engine\n(6 tools: explicit content search plus 5 async filename-search tools)"]
        Proc["Process & REPL Sessions\n(9 tools: exec, background proc, interactive REPLs)"]
        Repair["Repair & Format Converter\n(9 tools: JSON fix, Mojibake fix, duplicates, format convert)"]
        Export["Export & Web Scraper\n(3 tools: Markdown->HTML/PDF, web_fetch)"]
        Sys["System & Utilities\n(6 tools: OCR, ZIP, checksums, safe-mode, time)"]
    end

    Client -->|JSON-RPC| Stdio
    Stdio --> Core
    Core --> FS
    Core --> Search
    Core --> Proc
    Core --> Repair
    Core --> Export
    Core --> Sys

Installation

Prerequisites

Option 1: Install from NPM

bash
npm install -g ellmos-filecommander-mcp

Option 2: Install from Source

bash
git clone https://github.com/ellmos-ai/ellmos-filecommander-mcp.git
cd ellmos-filecommander-mcp
npm install
npm run build

Configuration

Claude Desktop

Add to your claude_desktop_config.json:

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

If installed globally via NPM:

json
{
  "mcpServers": {
    "filecommander": {
      "command": "ellmos-filecommander"
    }
  }
}

If installed from source:

json
{
  "mcpServers": {
    "filecommander": {
      "command": "node",
      "args": ["/absolute/path/to/filecommander-mcp/dist/index.js"]
    }
  }
}

Restart Claude Desktop after saving.

Other MCP Clients

The server communicates via stdio transport. Point your MCP client to the dist/index.js entry point or the ellmos-filecommander binary.


Tools Overview

Filesystem Operations (14 tools)

ToolDescription
fc_read_fileRead file contents with optional line limit
fc_read_multiple_filesRead up to 20 files in a single call
fc_write_fileWrite/create/append to files
fc_edit_fileLine-based editing (replace, insert, delete lines)
fc_str_replaceReplace a unique string in a file with context validation
fc_list_directoryList directory contents (recursive, configurable depth)
fc_create_directoryCreate directories (including parents)
fc_delete_fileDelete a file (permanent)
fc_delete_directoryDelete a directory (with optional recursive flag)
fc_safe_deleteMove to Recycle Bin / Trash (recoverable!)
fc_moveMove or rename files and directories (cloud-lock safe)
fc_copyCopy files and directories
fc_file_infoGet detailed file metadata (size, dates, type)
fc_search_filesSynchronous file search with wildcard patterns

Content Search (1 tool)

ToolDescription
fc_search_contentRead-only literal or regex search within an explicit ordered list of files, with case, context, global, and per-file limits

fc_search_content never expands globs, traverses directories, or recursively discovers files. It accepts at most 50 explicit UTF-8 text files, skips binary and files over 10 MB, and returns deterministic JSON. Matches are limited to 200 globally and 100 per file, context to 10 lines, excerpts to 500 characters, and serialized output to 200,000 characters. Missing, cloud-only, permission, encoding, binary, and size failures are reported per file so readable files still produce results. Common secret formats are redacted from excerpts.

Async Search (5 tools)

ToolDescription
fc_start_searchStart a background search (returns immediately)
fc_get_search_resultsRetrieve results with pagination
fc_stop_searchCancel a running search
fc_list_searchesList all active/completed searches
fc_clear_searchRemove completed searches from memory

Process Management (4 tools)

ToolDescription
fc_execute_commandExecute a shell command (blocking, with timeout)
fc_start_processStart a background process (non-blocking)
fc_list_processesList running system processes
fc_kill_processTerminate a process by PID or name

Interactive Sessions (5 tools)

ToolDescription
fc_start_sessionStart an interactive process (Python, Node, shell...)
fc_read_outputRead session output
fc_send_inputSend input to a running session
fc_list_sessionsList all sessions
fc_close_sessionTerminate a session

File Maintenance & Repair (9 tools)

ToolDescription
fc_fix_jsonRepair broken JSON (BOM, trailing commas, comments, single quotes)
fc_validate_jsonValidate JSON with detailed error position and context
fc_cleanup_fileRemove BOM, NUL bytes, trailing whitespace, normalize line endings
fc_fix_encodingFix Mojibake / double-encoded UTF-8 (27+ character patterns)
fc_folder_diffTrack directory changes with snapshots (new/modified/deleted)
fc_batch_renamePattern-based batch renaming (prefix/suffix, replace, auto-detect)
fc_convert_formatConvert between JSON, CSV, INI, YAML, TOML, XML, and TOON formats
fc_detect_duplicatesFind duplicate files using SHA-256 hashing
fc_checksumFile hashing (MD5, SHA-1, SHA-256, SHA-384, SHA-512) with optional compare

Archive (1 tool)

ToolDescription
fc_archiveCreate, extract, and list ZIP archives

OCR (1 tool)

ToolDescription
fc_ocrExtract text from images via tesseract.js (optional dependency)

Cloud Sync (1 tool)

ToolDescription
fc_check_cloud_lockDiagnose whether a path may be blocked by cloud sync filters (Windows)

System (2 tools)

ToolDescription
fc_get_timeGet current system time with timezone info
fc_set_safe_modeToggle safe mode: all deletes go through Recycle Bin / Trash

Export (2 tools)

ToolDescription
fc_md_to_htmlMarkdown to standalone HTML with CSS styling (headers, code blocks, tables, nested lists, blockquotes, images, checkboxes)
fc_md_to_pdfMarkdown to PDF via headless browser (Edge/Chrome). Falls back to HTML if no browser is available

Web (1 tool)

ToolDescription
fc_web_fetchFetch a web page and return content by mode: extract (clean main text), raw (HTTP body), links, forms, or headers. Read-only network tool; SSRF guard blocks internal/private targets by default.

Total: 47 tools


Comparison with Alternatives

FeatureFileCommanderDesktop CommanderOfficial Filesystem
File read/write/copy/move14 toolsYesYes
Safe delete (Recycle Bin)YesNoNo
Explicit multi-file content searchYesNoNo
Async background search5 toolsNoNo
Interactive sessions (REPL)5 toolsYesNo
Process management4 toolsYesNo
Shell command executionYesYesNo
String replace with validationYesYesNo
Line-based file editingYesNoNo
JSON repair & validation2 toolsNoNo
Encoding fix (Mojibake)YesNoNo
Duplicate detection (SHA-256)YesNoNo
Folder diff / change trackingYesNoNo
Batch rename (pattern-based)YesNoNo
Format conversion (JSON/CSV/INI/YAML/TOML/XML/TOON)YesNoNo
ZIP archive (create/extract/list)YesNoNo
File checksums (MD5/SHA-1/SHA-256/SHA-384/SHA-512)YesNoNo
OCR (image to text)OptionalNoNo
Safety mode (delete → Recycle Bin)YesNoNo
Path allowlist / sandboxingNoNoYes
Excel / PDF supportPDF (via browser)YesNo
HTTP transportNoNoNo
Markdown to HTML/PDF exportYesNoNo
Total tools47~15~11
Servers needed11+ extra for processes

Key differentiators:

  • Only MCP server with recoverable delete (Recycle Bin / Trash)
  • Only MCP server with async background search with pagination
  • Built-in JSON repair, encoding fix, and duplicate detection
  • Only MCP server with cloud-lock-safe file operations (automatic copy+delete fallback)
  • Most comprehensive single-server solution (47 tools)
  • Built-in safety mode to prevent accidental permanent deletion

Tool Prefix

All tools use the fc_ prefix (FileCommander) to avoid conflicts with other MCP servers.


Discoverability

FileCommander is designed to be discoverable by both people and AI agents:

  • package.json exposes the official mcpName (io.github.ellmos-ai/ellmos-filecommander-mcp) and MCP-specific npm keywords.
  • server.json follows the official MCP Registry schema and points to the npm package.
  • glama.json provides MCP-directory metadata for Glama-compatible indexes.
  • llms.txt gives compact context for LLMs, agent catalogs, and documentation crawlers.

Primary search terms: ellmos-filecommander-mcp, FileCommander MCP, filesystem MCP server, multi-file content search MCP, safe delete MCP, async file search MCP, process management MCP, Markdown PDF MCP.

External discovery notes: npm and jsDelivr may show the previously published metadata until version 1.10.0 is released. LobeHub indexes the GitHub repo as an MCP server. Use the package description and this README as the canonical 47-tool source for the current repository.


Security

This server has full filesystem access with the running user's permissions.

See SECURITY.md for detailed security information and recommendations.

Key points:

  • fc_execute_command runs arbitrary shell commands
  • fc_delete_* tools perform permanent deletion by default (use fc_safe_delete or enable safe mode via fc_set_safe_mode to route all deletes through Recycle Bin / Trash)
  • No built-in sandboxing - security is delegated to the MCP client layer
  • Designed for local use via stdio transport only

Development

bash
# Install dependencies
npm install

# Watch mode (auto-rebuild on changes)
npm run dev

# One-time build
npm run build

# Start the server
npm start

# Run test suite
npm test

Testing

The project includes 175 Vitest tests plus 69 standalone i18n checks (244 total) covering filesystem operations, bounded content search, format conversion, encoding repair, archive handling, duplicate detection, language packs, and more.

bash
npm test              # Run all tests
node test-i18n.mjs    # Run standalone i18n checks
npx vitest run        # Same as above
npx vitest --watch    # Watch mode

Tests are verified on Windows, macOS, and Linux. Pushes and pull requests run CI on Node.js 20, 22, and 24 with npm ci, TypeScript build, Vitest, and an npm package dry-run.

See CONTRIBUTING.md for contribution guidelines.


Changelog

See CHANGELOG.md for the full version history.


License

MIT - Lukas Geiger (ellmos-ai)


History

This project was originally developed as BACH FileCommander (bach-filecommander-mcp). It has been renamed to ellmos FileCommander (ellmos-filecommander-mcp) as part of the ellmos-ai organization.

The legacy package name bach-filecommander-mcp is deprecated. Please use ellmos-filecommander-mcp instead:

bash
npm uninstall -g bach-filecommander-mcp
npm install -g ellmos-filecommander-mcp

ellmos-ai Ecosystem

This MCP server is part of the ellmos-ai ecosystem — AI infrastructure, MCP servers, and intelligent tools.

MCP Server Family

ServerToolsFocusnpm
FileCommander47Filesystem, content search, process management, interactive sessions, cloud-lock-safe operationsellmos-filecommander-mcp
CodeCommander22Code analysis, JSON repair, imports, diffs, regexellmos-codecommander-mcp
Clatcher12File repair, format conversion, batch operationsellmos-clatcher-mcp
n8n Manager18n8n workflow management via AI assistantsn8n-manager-mcp
ControlCenter20MCP stack discovery, profile management, control planeellmos-controlcenter-mcp
Homebase45Local-first LLM memory, knowledge, state, routing, swarm orchestrationellmos-homebase-mcp (alpha)
ServerCommander8Server operations: health checks, log analysis, deploy dry-runs, mail diagnosticsellmos-servercommander-mcp (alpha)
Blender Use3Headless Blender asset QA and FBX reimport verificationellmos-blender-use-mcp (alpha)
Open Compute10Model-agnostic computer use: capture, safety-gated actions, Windows UIAopen-compute-mcp (alpha)

AI Infrastructure

ProjectDescription
BACHLocal-first text-based OS for LLM agents — 113+ handlers, 550+ tools, SQLite memory
open-computeModel-agnostic computer-use core powering Open Compute MCP
clutchProvider-neutral LLM orchestration with auto-routing and budget tracking
rinnsalLightweight agent memory, connectors, and automation infrastructure
ellmos-stackSelf-hosted AI research stack (Ollama + n8n + Rinnsal + KnowledgeDigest)
MarbleRunAutonomous agent chain framework for Claude Code
gardenerMinimalist database-driven LLM OS prototype (4 functions, 1 table)
ellmos-testsTesting framework for LLM operating systems (7 dimensions)

Desktop Software

Our partner organization open-bricks bundles AI-native desktop applications — a modern, open-source software suite built for the age of AI. Categories include file management, document tools, developer utilities, and more.

Haftung / Liability

Dieses Projekt ist eine unentgeltliche Open-Source-Schenkung im Sinne der §§ 516 ff. BGB. Die Haftung des Urhebers ist gemäß § 521 BGB auf Vorsatz und grobe Fahrlässigkeit beschränkt. Ergänzend gilt der Haftungsausschluss der MIT-Lizenz.

Nutzung auf eigenes Risiko. Keine Wartungszusage, keine Verfügbarkeitsgarantie, keine Gewähr für Fehlerfreiheit oder Eignung für einen bestimmten Zweck.

This project is an unpaid open-source donation. Liability is limited to intent and gross negligence (§ 521 German Civil Code). The MIT license disclaimer also applies. Use at your own risk. No warranty, no maintenance guarantee, no fitness-for-purpose assumed.

常见问题

BACH FileCommander 是什么?

39 tools for filesystem, process management, sessions, search, JSON repair, and PDF export.

相关 Skills

技能工坊

by anthropics

Universal
热门

覆盖 Skill 从创建到迭代优化全流程:起草能力、补测试提示、跑评测与基准方差分析,并持续改写内容和描述,提升效果与触发准确率。

技能工坊把技能从创建、迭代到评测串成闭环,方差分析加描述优化,特别适合把触发准确率打磨得更稳。

效率与工作流
未扫描165.3k

PPT处理

by anthropics

Universal
热门

处理 .pptx 全流程:创建演示文稿、提取和解析幻灯片内容、批量修改现有文件,支持模板套用、合并拆分、备注评论与版式调整。

涉及PPTX的创建、解析、修改到合并拆分都能一站搞定,连备注、模板和评论也能处理,做演示文稿特别省心。

效率与工作流
未扫描165.3k

PDF处理

by anthropics

Universal
热门

遇到 PDF 读写、文本表格提取、合并拆分、旋转加水印、表单填写或加解密时直接用它,也能提取图片、生成新 PDF,并把扫描件通过 OCR 变成可搜索文档。

PDF杂活别再来回切工具了,文本表格提取、合并拆分到OCR识别一次搞定,连扫描件也能变可搜索。

效率与工作流
未扫描165.3k

相关 MCP Server

文件系统

编辑精选

by Anthropic

热门

Filesystem 是 MCP 官方参考服务器,让 LLM 安全读写本地文件系统。

这个服务器解决了让 Claude 直接操作本地文件的痛点,比如自动整理文档或生成代码文件。适合需要自动化文件处理的开发者,但注意它只是参考实现,生产环境需自行加固安全。

效率与工作流
89.1k

by wonderwhy-er

热门

Desktop Commander 是让 AI 直接执行终端命令、管理文件和进程的 MCP 服务器。

这工具解决了 AI 无法直接操作本地环境的痛点,适合需要自动化脚本调试或文件批量处理的开发者。它能让你用自然语言指挥终端,但权限控制需谨慎,毕竟让 AI 执行 rm -rf 可不是闹着玩的。

效率与工作流
9.0k

by stickerdaniel

热门

LinkedIn Profile and Job Scraper 是让 Claude 直接抓取 LinkedIn 个人资料、公司信息和职位详情的工具。

这个服务器解决了招聘和商业调研中手动复制粘贴 LinkedIn 数据的痛点,适合猎头或市场分析师快速获取候选人背景和公司动态。不过,LinkedIn 反爬机制频繁更新,数据稳定性需要持续维护,使用时建议搭配人工验证。

效率与工作流
3.0k

评论