GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
A fast, configurable filesystem server for the Model Context Protocol (MCP), written in Rust.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 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/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"fs-rs": {
"command": "npx",
"args": [
"-y",
"fs-mcp-rs"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"fs-rs": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"fs-mcp-rs"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 nihmadev 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 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
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。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.
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.
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:
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).
cargo install fs-mcp-rs
fs-mcp-rs --version
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.
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
[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.
[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:
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.
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
--stdio. Structured logs are written to stderr to keep stdout clean for line-delimited JSON-RPC messages./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
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.
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.
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.
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.
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
只显示了开头部分;其余内容请在仓库中阅读