filesystem vs mcp-shell
并排对比,帮你在这两个 MCP server 之间做选择。
filesystem by modelcontextprotocol | mcp-shell by sonirico | |
|---|---|---|
| Stars | ★ 85,748 | ★ 77 |
| 30天用量 | — | — |
| 综合分 | 77 | 46 |
| 官方 | ✓ | — |
| 分类 | 本地文件系统开发者工具效率工具 | 开发者工具安全运维基建 |
| 实现语言 | TypeScript | Go |
| 最近提交 | 本月 | 1 个月前 |
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
mcp-shell · 概述
MCP 服务器提供安全可审计的 shell 命令执行功能,支持自定义安全策略配置。
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
mcp-shell · 使用场景
- 在受限制环境中安全地允许 AI 代理执行 shell 命令
- 审计和控制 AI 系统执行的所有 shell 操作
- 通过 AI 代理为文件系统操作提供安全接口
filesystem · 安装
安装
使用 NPX
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/directory"
]
}
}
}使用 Docker
{
"mcpServers": {
"filesystem": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount", "type=bind,src=/path/to/allowed/dir,dst=/projects/allowed/dir",
"mcp/filesystem",
"/projects"
]
}
}
}VS Code 扩展
点击 README 中的安装按钮直接在 VS Code 中安装。
mcp-shell · 安装
安装
**Docker (推荐)**:
docker run -it --rm -v /tmp/mcp-workspace:/tmp/mcp-workspace sonirico/mcp-shell:latest**从源码安装**:
git clone https://github.com/sonirico/mcp-shell && cd mcp-shell
make install
mcp-shell**Claude Desktop 配置**: 添加到您的 MCP 配置中:
{
"mcpServers": {
"shell": {
"command": "docker",
"args": ["run", "--rm", "-i", "sonirico/mcp-shell:latest"],
"env": { "MCP_SHELL_LOG_LEVEL": "info" }
}
}
}对于自定义配置,挂载安全文件:
{
"command": "docker",
"args": ["run", "--rm", "-i", "-v", "/path/to/security.yaml:/etc/mcp-shell/security.yaml", "-e", "MCP_SHELL_SEC_CONFIG_FILE=/etc/mcp-shell/security.yaml", "sonirico/mcp-shell:latest"]
}