A fast, configurable filesystem server for the Model Context Protocol (MCP), written in Rust.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A fast, configurable filesystem server for the Model Context Protocol (MCP), written in Rust.
fs-mcp-rs gives an MCP client a small set of filesystem tools while keeping access inside directories selected by the operator. It has no implicit filesystem root, no built-in personal path, and no writable default. The server starts only when you provide a configuration file.
The public distribution is one crate and one executable, both named fs-mcp-rs. The protocol, policy, filesystem, search, and settings components remain separate Rust modules inside that crate. This keeps installation simple:
Users do not need to install or understand a graph of internal crates. The benchmark runner remains a development-only workspace member and is not included in the crates.io package.
npx fs-mcp-rs..gitignore support and configurable hidden-file handling.[OK] / [WARN]).npx execution, or Rust 1.85+ when building from source.The easiest way to run fs-mcp-rs with any MCP client (such as Claude Desktop or Cursor) is using npx:
The npm package automatically downloads the appropriate precompiled binary for your operating system and architecture (Windows x64, Linux x64, macOS x64/arm64).
The executable will be at target/release/fs-mcp-rs on Unix-like systems or target\release\fs-mcp-rs.exe on Windows.
Copy configs/example.toml somewhere appropriate and edit it. The server intentionally has no default config path:
Windows PowerShell:
Minimal read-only configuration:
Windows roots use escaped backslashes or forward slashes:
Relative roots are resolved relative to the directory containing the configuration file, not relative to an arbitrary process working directory.
[server]host: IP address to bind. Keep 127.0.0.1 unless remote clients genuinely need access.port: TCP port for /health and /mcp.max_concurrency: maximum number of MCP requests processed at once.max_io_concurrency: maximum number of simultaneous non-search filesystem jobs.log_tools: whether concise tool execution logging ([OK] / [WARN]) is printed (default: true).[filesystem]roots: non-empty list of allowed directories. Every requested path must resolve inside one of them.read_only: when true, all mutating tools are rejected.max_write_bytes: largest permitted write_file or resulting edit_text content.follow_links: whether paths containing symbolic links may be followed. Leave this false unless you have reviewed the consequences.[search]max_results: maximum matches returned by one search.max_concurrency: maximum simultaneous search jobs.worker_threads: filesystem traversal threads used by each search.regex_cache_capacity: number of compiled search patterns cached in memory; 0 disables the cache.include_hidden: include hidden files and directories.respect_gitignore: apply Git ignore files while walking directories.[terminal]enabled: expose command execution. When disabled, run_command returns a tool error.max_concurrency: maximum terminal commands running simultaneously.default_timeout_ms: timeout used when a call does not provide one.max_timeout_ms: largest timeout a call may request.max_output_bytes: maximum combined stdout/stderr bytes retained per terminal session. Old output is evicted and reported as dropped/truncated.max_read_bytes: maximum output bytes returned by one terminal_read call.max_wait_ms: maximum long-poll duration for one terminal_read call.session_retention_ms: how long completed sessions and their output remain readable before automatic cleanup.run_command executes arbitrary commands through cmd.exe on Windows and /bin/sh on GNU/Linux and macOS. It is advertised with destructive and open-world MCP annotations so compatible providers can show a warning. Enabling it gives commands all permissions of the operating-system account running the server; filesystem roots and read-only mode do not sandbox terminal commands.
Unknown fields and zero-valued safety limits are rejected. This catches misspelled settings instead of silently ignoring them.
Start directly by specifying allowed filesystem directories on the command line:
If no configuration file or positional roots are passed, fs-mcp-rs uses default settings scoped to the current working directory.
Pass the configuration explicitly:
Or use the environment variable:
PowerShell:
--stdio. Structured logs are written to stderr to keep stdout clean for line-delimited JSON-RPC messages./health and /mcp endpoints.Check HTTP health:
Expected response:
The MCP endpoint is:
The run subcommand always starts the MCP server in HTTP mode and can manage an ngrok, Cloudflare Quick Tunnel, or zrok public share in the same process lifecycle:
The providers are mutually exclusive. On Windows, the tunnel opens in a new console by default. Use --tunnel-window hidden to avoid a separate visible console while keeping the generated URL in the current terminal, or --tunnel-window inherit to attach normally. On Linux and macOS, new inherits the current terminal because creating a terminal window is desktop-specific. Each provider accepts repeatable extra arguments and an explicit executable path:
Stopping the MCP server also stops the tunnel process. Existing invocations such as fs-mcp-rs [PATHS], fs-mcp-rs --config FILE, and fs-mcp-rs serve are unchanged. The earlier --ngrok-window spelling remains an alias for --tunnel-window.
For testing with a remote MCP client, keep fs-mcp-rs bound to loopback and expose it through a tunnel. Start the server first:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/fs-mcp-rs)<a href="https://allmcps.com/mcp/fs-mcp-rs"><img src="https://allmcps.com/api/badge/fs-mcp-rs?style=directory" alt="Fs MCP Rs on AllMCPs" /></a>