remote-fs-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_FS_HOST | No | Address to listen on. | 0.0.0.0 |
| MCP_FS_PORT | No | Port. | 8765 |
| MCP_FS_ROOT | Yes | The only folder the file tools can access. | |
| MCP_FS_SHELL | No | Shell used for commands, e.g. `pwsh`. | bash / cmd.exe |
| MCP_FS_TOKEN | Yes | Access token. | |
| MCP_FS_TOKENS | No | Several tokens, comma separated, so each AI gets its own. | |
| MCP_FS_READ_ONLY | No | Allow reading only. Hides all write, delete and command tools. | false |
| MCP_FS_URL_TOKEN | No | Accept the token in the URL: `https://host/<token>`. | false |
| MCP_FS_DENY_GLOBS | No | Files the AI can never touch, e.g. `.env,*.pem,*.key`. | |
| MCP_FS_ALLOW_DELETE | No | Turn deleting on or off. | true |
| MCP_FS_ALLOW_HIDDEN | No | Allow access to dotfiles. | true |
| MCP_FS_ALLOWED_HOSTS | No | Your public domain. Wildcards work, e.g. `*.ngrok-free.app`. | |
| MCP_FS_MAX_PROCESSES | No | Maximum background processes at once. | 16 |
| MCP_FS_ALLOW_COMMANDS | No | Turn the terminal tools on or off. | true |
| MCP_FS_ALLOWED_ORIGINS | No | Allowed web origins, e.g. `https://claude.ai`. | |
| MCP_FS_COMMAND_TIMEOUT | No | Default command timeout in seconds. | 120 |
| MCP_FS_MAX_OUTPUT_CHARS | No | Maximum size of each tool response. | 100000 |
| MCP_FS_MAX_COMMAND_TIMEOUT | No | Longest timeout a command can ask for. | 1800 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Remote filesystem + terminal. All paths are relative to the server root (see server_info). Tips for speed and low token use:
Explore with list_directory (depth 2-3), find_files and search_text before reading.
Read big files in ranges (read_file offset/limit); read several small files with read_many_files.
Change existing files with edit_file (find/replace + diff) instead of rewriting them with write_file.
run_command waits for exit; for dev servers/watchers use start_process + process_output(since=next_offset).
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| read_fileA | Read a file. Text is returned by line range; binary files can be returned as base64. |
| read_many_filesA | Read several text files in one round-trip. Errors are reported per file, not raised. |
| get_file_infoC | Size, type, permissions and timestamps for a path. |
| list_directoryB | List a folder (optionally recursive). Returns compact lines: 'd name/' for folders, 'f name size' for files. |
| find_filesB | Find files by name/glob, fast (uses ripgrep when installed). |
| search_textB | Grep across files (ripgrep speed when installed). Returns 'path:line: text' lines. |
| write_fileA | Create or replace a file atomically (never leaves a half-written file). |
| edit_fileA | Surgical edit: replace exact text blocks and return a unified diff. Much cheaper than rewriting a whole file. |
| create_directoryB | Create a folder and any missing parents. |
| move_pathC | Move or rename a file or folder. |
| copy_pathB | Copy a file or a whole folder. |
| delete_pathB | Permanently delete a file or folder. |
| run_commandA | Run a shell command and wait for it to finish. Returns exit code, stdout and stderr. For servers/watchers that never exit, use start_process instead. |
| start_processA | Start a background process and return its id. Poll it with process_output. |
| process_outputA | Read output from a background process (incrementally with |
| send_process_inputA | Type into a running process's stdin (answer prompts, REPLs). |
| stop_processB | Stop a background process and all its children. |
| list_processesA | List background processes started by this server. |
| server_infoA | Server root, OS/shell, enabled features and limits. Call once at the start. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 19 tools
Each tool targets a distinct resource+action pair: read/write/edit/move/copy/delete operate on clearly different file operations, and the filesystem search trio (list_directory, find_files, search_text) is well separated by what each returns. The process set (start_process, process_output, send_process_input, stop_process, list_processes) maps cleanly onto distinct lifecycle stages, and run_command explicitly documents its boundary against start_process.
The overwhelming majority follow a verb_noun pattern (read_file, create_directory, delete_path, start_process, list_processes). Two outliers break it: server_info (noun-only) and process_output (noun_verb), a minor but noticeable deviation from the otherwise uniform convention.
19 tools is on the heavy side of the ideal range, but nearly every one earns its place across two coherent sub-domains (filesystem and process control). Nothing looks redundant or padded, though the process tooling adds bulk an agent may rarely use.
Full CRUD plus metadata, recursive listing, glob find, and text grep cover the filesystem domain thoroughly, and the background process lifecycle is complete (start/output/input/stop/list). Minor gaps remain: no append/tail, no permission or timestamp mutation (chmod/touch), and no symlink or archive handling.