# Octofs [Health: Active]

**Category:** 📂 File Systems  
**Repository:** https://github.com/muvon/octofs  
**GitHub Stars:** 23  
**npm Downloads (last month):** 4073  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/octofs

## Description
Standalone MCP filesystem tools server — view, edit, shell, workdir.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "octofs": {
    "command": "npx",
    "args": ["-y","@muvon/octofs"]
  }
}
```

## Documentation

## What Octofs does

Octofs exposes filesystem and shell capabilities to AI assistants through the Model Context Protocol. It can inspect files and directories, search file contents, create files, apply text replacements, copy selected line ranges, delete files, undo edits, and execute shell commands. File tools can address local paths or remote locations using `ssh://user@host:port/path` URLs, allowing the same operations to work over SSH/SFTP.

The server is designed for coding workflows. An assistant can explore a project, locate matching code, read selected ranges, make targeted changes, and run commands without requiring files to be pasted into the conversation. Directory traversal respects `.gitignore` patterns, and large files are truncated to limit context usage.

## How it works

Octofs runs as a compiled Rust binary and communicates over MCP. It supports both standard input/output and streamable HTTP transports. For local client configurations, the binary uses the `mcp` subcommand; a project can also be supplied with `--path` to establish the working checkout used by the server.

Edits use source-line identifiers in the `N:hh` format. Octofs checks those identifiers against the file when applying a change, so an edit based on stale content fails instead of being written to the wrong location. Batch edits combine multiple insert or replacement operations atomically within one file. Re-reading can return only changed hunks for clients that provide a context epoch.

Long-running shell commands automatically move into the background, with completion notifications. Undo history is kept in memory, with up to 10 undo levels per file.

## Setup and configuration

Install Octofs through Cargo, Homebrew, the npm wrapper, a pre-built release binary, or the MCP Registry. The npm package downloads a matching pre-built binary on first use and can be invoked with `npx -y @muvon/octofs mcp`.

A typical stdio configuration passes the `mcp` subcommand:

```json
{
  "mcpServers": {
    "octofs": {
      "command": "octofs",
      "args": ["mcp"]
    }
  }
}
```

When the executable is not on `PATH`, use its absolute path. Source builds require Rust 1.95 or newer. Pre-built binaries are available for Linux, Windows, and macOS on x86_64 and ARM64 platforms. Claude Desktop also supports the release `.mcpb` bundles where MCP bundles are supported.

## Tools and capabilities

- View files and directories, including glob-based directory listings.
- Read selected line ranges, including negative indexes such as `-1` for the final line.
- Search file contents with surrounding context lines.
- Create files and their missing parent directories.
- Replace exact strings, with a whitespace-tolerant fallback.
- Apply multiple edits atomically to one file.
- Delete files and undo recent edits.
- Copy selected lines from one file into another.
- Run shell commands and continue long-running processes in the background.
- Work with local paths and `ssh://` SSH/SFTP paths.
- Enforce `.gitignore`-aware traversal and stale-write checks.

## Limitations and notes

Batch operations are atomic within a single file rather than across multiple files. Undo history is in-memory and limited to the last 10 edit levels per file. Large-file output may be truncated, and delta re-reads depend on the client reporting a context epoch. Remote access uses SSH/SFTP URL addressing, so the target host and path must be reachable through that mechanism.

_Full upstream README: https://allmcps.com/mcp/octofs/readme_

