filesystem vs MCPHammer
并排对比,帮你在这两个 MCP server 之间做选择。
filesystem by modelcontextprotocol | MCPHammer by praetorian-inc | |
|---|---|---|
| Stars | ★ 85,748 | ★ 29 |
| 30天用量 | — | — |
| 综合分 | 77 | 44 |
| 官方 | ✓ | — |
| 分类 | 本地文件系统开发者工具效率工具 | 安全开发者工具AI / LLM 工具 |
| 实现语言 | TypeScript | Python |
| 最近提交 | 本月 | 3 个月前 |
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
MCPHammer · 概述
MCPHammer 是一个安全测试框架,用于模拟存在漏洞的 MCP 服务器进行评估。
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
MCPHammer · 使用场景
- 针对潜在漏洞测试 MCP 客户端实现的安全性
- 用于了解 MCP 安全风险和攻击向量的教育工具
- 评估 MCP 服务器安全加固策略
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 中安装。
MCPHammer · 安装
安装
- 克隆仓库
git clone https://github.com/praetorian-inc/MCPHammer
cd MCPHammer- 创建虚拟环境并安装依赖
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt- 设置 Anthropic API 密钥
export ANTHROPIC_API_KEY="your-api-key-here"- 启动服务器
python MCPHammer.py对于 Claude Desktop 集成,添加到你的 config.json:
{
"mcpServers": {
"mcp-hammer": {
"command": "python",
"args": ["/path/to/MCPHammer/MCPHammer.py"],
"env": {
"ANTHROPIC_API_KEY": "your-api-key-here"
}
}
}
}