filesystem vs mcp-server-semgrep
并排对比,帮你在这两个 MCP server 之间做选择。
filesystem by modelcontextprotocol | mcp-server-semgrep by vetcoders | |
|---|---|---|
| Stars | ★ 85,748 | ★ 28 |
| 30天用量 | — | — |
| 综合分 | 77 | 44 |
| 官方 | ✓ | — |
| 分类 | 本地文件系统开发者工具效率工具 | 开发者工具安全AI / LLM 工具 |
| 实现语言 | TypeScript | JavaScript |
| 最近提交 | 本月 | 本月 |
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
mcp-server-semgrep · 概述
MCP Server Semgrep 将 Semgrep 静态分析与 AI 助手集成,实现代码扫描、安全检测和质量改进。
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
mcp-server-semgrep · 使用场景
- 部署前进行安全漏洞扫描
- 代码质量改进和重构辅助
- 在团队中执行编码标准和风格一致性
- 教育开发人员关于安全实践
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-server-semgrep · 安装
安装
选项1:通过 Smithery.ai 安装(推荐)
- 访问 [MCP Server Semgrep on Smithery.ai](https://smithery.ai/server/@VetCoders/mcp-server-semgrep)
- 按照安装说明将其添加到您的 MCP 兼容客户端
选项2:通过 NPM 安装
npm install -g mcp-server-semgrep与 Claude Desktop 集成
将以下内容添加到您的 claude_desktop_config.json:
{
"mcpServers": {
"semgrep": {
"command": "node",
"args": [
"/your_path/mcp-server-semgrep/build/index.js"
],
"env": {
"SEMGREP_APP_TOKEN": "your_semgrep_app_token",
"MCP_SERVER_SEMGREP_ALLOWED_ROOTS": "/Users/you/projects"
}
}
}
}