原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

fs-mcp-rs

作者:nihmadev版本 1.2.4i★ –i在你的电脑上运行
注册名称io.github.nihmadev/fs-mcp-rs

安装

概览

作者提供的说明(英文原文)

A fast, configurable filesystem server for the Model Context Protocol (MCP), written in Rust.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 开发者工具

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "fs-rs": {
      "command": "npx",
      "args": [
        "-y",
        "fs-mcp-rs"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add fs-rs -- npx -y fs-mcp-rs

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "fs-rs": {
      "command": "npx",
      "args": [
        "-y",
        "fs-mcp-rs"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "fs-rs": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "fs-mcp-rs"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 nihmadev 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“开发者工具”中的其他服务器比较i

  • 星标数多于此分类中其他 4906 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 4906 个服务器的 28% 更新
  • 基础检查结果等于或优于此分类中其他 4906 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

fs-mcp-rs 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.2.4)于4个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:GitHub, Desktop Commander, Cloudflare MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

GitHub

作者:github

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

电脑或云端★ 34,245MIT4天前更新
安装

Desktop Commander

作者:wonderwhy-er

MCP server for terminal commands, file operations, and process management

在你的电脑上运行★ 10,225MIT16天前更新
安装

Cloudflare MCP

作者:cloudflare

Cloudflare MCP servers

在云端运行★ 4,446Apache-2.014个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

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.

Why one crate?

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:

cargo install fs-mcp-rs

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.

Features

  • MCP over JSON-RPC HTTP POST and line-delimited STDIO (stdin/stdout).
  • Zero-install execution via npx fs-mcp-rs.
  • Explicit allow-list of one or more filesystem roots (via CLI positional arguments or TOML config).
  • Read-only mode for safe deployments.
  • Optional write, move, edit, directory creation, and removal operations.
  • Bounded reads, writes, search results, and concurrency.
  • Literal and regular-expression content search.
  • .gitignore support and configurable hidden-file handling.
  • Symlink traversal disabled by default.
  • Atomic file replacement and BLAKE3 hashes.
  • Optional arbitrary terminal command execution with time and output limits.
  • Persistent terminal sessions with incremental output cursors, long polling, stdin, process-tree termination, retention, and bounded buffers.
  • Concise tool execution logging ([OK] / [WARN]).
  • No telemetry and no automatic network discovery.

Requirements

  • Node.js (v18+) for npx execution, or Rust 1.85+ when building from source.
  • An MCP client that can connect via STDIO JSON-RPC or Streamable HTTP/JSON-RPC endpoint.
  • A configuration file or explicit root paths passed to the server.

Installation

Via npx (Zero Installation)

The easiest way to run fs-mcp-rs with any MCP client (such as Claude Desktop or Cursor) is using npx:

npx fs-mcp-rs /path/to/project

The npm package automatically downloads the appropriate precompiled binary for your operating system and architecture (Windows x64, Linux x64, macOS x64/arm64).

From crates.io
cargo install fs-mcp-rs

fs-mcp-rs --version

From source
git clone https://github.com/nihmadev/fs-mcp-rs.git

cd fs-mcp-rs cargo build --release

The executable will be at target/release/fs-mcp-rs on Unix-like systems or target\release\fs-mcp-rs.exe on Windows.

Create a configuration

Copy configs/example.toml somewhere appropriate and edit it. The server intentionally has no default config path:

cp configs/example.toml fs-mcp-rs.toml

Windows PowerShell:

Copy-Item configs\example.toml fs-mcp-rs.toml

Minimal read-only configuration:

[server]

host = "127.0.0.1" port = 8000 max_concurrency = 32 max_io_concurrency = 16

[filesystem] roots = ["/home/alice/projects"] read_only = true max_read_bytes = 8388608 max_write_bytes = 8388608 follow_links = false

[search] max_results = 1000 max_concurrency = 4 worker_threads = 4 regex_cache_capacity = 64 include_hidden = false respect_gitignore = true

WARNING: enables arbitrary commands with the server process permissions.

[terminal] enabled = true max_concurrency = 2 default_timeout_ms = 30000 max_timeout_ms = 300000 max_output_bytes = 4194304

Windows roots use escaped backslashes or forward slashes:

roots = ["C:\\Users\\Alice\\Projects", "D:/Shared/Documentation"]

Relative roots are resolved relative to the directory containing the configuration file, not relative to an arbitrary process working directory.

Configuration reference
[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 the server

Positional root paths (Quickstart)

Start directly by specifying allowed filesystem directories on the command line:

fs-mcp-rs /home/alice/project1 /home/alice/project2

If no configuration file or positional roots are passed, fs-mcp-rs uses default settings scoped to the current working directory.

With a configuration file

Pass the configuration explicitly:

fs-mcp-rs --config /absolute/path/to/fs-mcp-rs.toml

Or use the environment variable:

FS_MCP_CONFIG=/absolute/path/to/fs-mcp-rs.toml fs-mcp-rs

PowerShell:

$env:FS_MCP_CONFIG = "C:\config\fs-mcp-rs.toml"

fs-mcp-rs

Transport Modes (STDIO vs HTTP)
  • STDIO Mode: Activated automatically when stdout/stdin are non-interactive pipes (e.g. when spawned as an MCP subprocess) or when passing --stdio. Structured logs are written to stderr to keep stdout clean for line-delimited JSON-RPC messages.
  • HTTP Mode: Activated by default during interactive execution. Listens on the configured host/port for /health and /mcp endpoints.

Check HTTP health:

curl http://127.0.0.1:8000/health

Expected response:

ok

The MCP endpoint is:

http://127.0.0.1:8000/mcp
Start the server and a tunnel together

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:

fs-mcp-rs run --ngrok /path/to/allowed/directory

fs-mcp-rs run --ngrok --config ./fs-mcp-rs.toml fs-mcp-rs run --cloudflared /path/to/allowed/directory fs-mcp-rs run --zrok /path/to/allowed/directory

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:

fs-mcp-rs run --ngrok --tunnel-window hidden --ngrok-arg=--region=eu

fs-mcp-rs run --ngrok --ngrok-bin /opt/ngrok/ngrok fs-mcp-rs run --cloudflared --cloudflared-arg=--no-autoupdate fs-mcp-rs run --zrok --zrok-bin /opt/zrok/zrok

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.

Expose the server through a secure tunnel

For testing with a remote MCP client, keep fs-mcp-rs bound to loopback and expose it through a tunnel. Start the server first:

fs-mcp-rs --config ./fs-mcp-rs.toml

Verify the local endpoint before creating a tunnel:

curl http://127.0.0.1:8000/health

[!CAUTION]

A public tunnel URL gives remote clients a path to the tools and filesystem roots allowed by your configuration. Start with read_only = true, grant only narrowly scoped roots, never expose secrets, and stop the tunnel when it is no longer needed. Quick tunnels are intended for development—not permanent production hosting.

Cloudflare Tunnel

Install cloudflared, then create a temporary Quick Tunnel:

cloudflared tunnel --url http://127.0.0.1:8000

cloudflared prints a temporary URL similar to https://random-name.trycloudflare.com. Use the MCP endpoint with /mcp appended:

https://random-name.trycloudflare.com/mcp

For a stable hostname, create a named Cloudflare Tunnel, map a DNS hostname to it, and route that hostname to http://127.0.0.1:8000. Protect long-lived deployments with Cloudflare Access or another authentication layer.

ngrok

Install ngrok, authenticate its CLI if required by your account, and start an HTTP tunnel:

ngrok http 8000

Use the HTTPS forwarding URL shown by ngrok and append /mcp:

https://example.ngrok-free.app/mcp

The local inspection UI is normally available at http://127.0.0.1:4040. It can expose request details, so keep it local and do not share it publicly.

Connect a remote MCP client

Use the public HTTPS URL as an HTTP/Streamable HTTP MCP server:

{

"mcpServers": { "filesystem": { "transport": "http", "url": "https://your-public-host.example/mcp" } } }

Test both endpoints after the tunnel starts:

curl https://your-public-host.example/health

curl -i https://your-public-host.example/mcp

A non-200 response from a plain `G

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx