
rust-mcp-filesystem
by rust-mcp-stack·★ 149·综合分 49
高性能的 Rust MCP 服务器,用于异步文件系统操作。
概述
Rust MCP Filesystem 是一个完全用 Rust 构建的文件系统操作 MCP 服务器,相比 JavaScript 版本具有更好的性能。服务器提供全面的文件操作功能,包括高级通配符匹配、ZIP 压缩支持以及可配置的只读访问模式,确保安全性。其轻量级设计无需外部依赖,适合在各种环境中部署。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要基于 Rust 环境下的高性能、异步文件系统操作,以及高级 glob 模式匹配和 ZIP 档案支持时,选择此服务器。
什么时候不要选它
如果您需要默认写入访问权限或需要与其他语言集成,请不要选择此服务器,因为它默认专为只读操作而设计。
此 server 暴露的工具
从 README 抽取出 12 个工具read_fileRead the contents of a file
write_fileWrite content to a file
list_filesList files and directories in a path
create_directoryCreate a new directory
delete_fileDelete a file
delete_directoryDelete a directory
globFind files matching glob patterns
create_zipCreate a ZIP archive from files or directories
extract_zipExtract files from a ZIP archive
move_fileMove a file to a new location
copy_fileCopy a file to a new location
file_infoGet metadata information about a file or directory
说明:Tool names were inferred from the project description mentioning 'filesystem operations' and referencing the original JavaScript-based @modelcontextprotocol/server-filesystem, as the README doesn't explicitly list the tools. The specific to
可对比工具
安装
安装
使用 Shell 脚本
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-mcp-stack/rust-mcp-filesystem/releases/download/v0.4.1/rust-mcp-filesystem-installer.sh | sh使用 PowerShell
powershell -ExecutionPolicy Bypass -c "irm https://github.com/rust-mcp-stack/rust-mcp-filesystem/releases/download/v0.4.1/rust-mcp-filesystem-installer.ps1 | iex"使用 Homebrew
brew install rust-mcp-stack/tap/rust-mcp-filesystem使用 Cargo
cargo install rust-mcp-filesystem --locked使用 NPM
npm i -g @rustmcp/rust-mcp-filesystem@latestClaude Desktop 配置
添加到 claude_desktop_config.json:
{
"mcpServers": {
"rust-mcp-filesystem": {
"command": "rust-mcp-filesystem",
"args": []
}
}
}FAQ
- 服务器默认是只读的吗?
- 是的,服务器默认没有写入权限以确保安全性。写入权限必须明确配置才能启用。
- 它支持 Windows 路径吗?
- 服务器支持标准路径格式,正确格式化后应该可以与 Windows 路径配合使用。
rust-mcp-filesystem 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。