filesystem vs sourcerer-mcp
并排对比,帮你在这两个 MCP server 之间做选择。
filesystem by modelcontextprotocol | sourcerer-mcp by st3v3nmw | |
|---|---|---|
| Stars | ★ 85,748 | ★ 113 |
| 30天用量 | — | — |
| 综合分 | 77 | 44 |
| 官方 | ✓ | — |
| 分类 | 本地文件系统开发者工具效率工具 | 开发者工具搜索AI / LLM 工具 |
| 实现语言 | TypeScript | Go |
| 最近提交 | 本月 | 6 个月前 |
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
sourcerer-mcp · 概述
MCP服务器提供语义代码搜索,帮助AI代理高效导航代码库并减少令牌浪费。
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
sourcerer-mcp · 使用场景
- 大型代码库中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 中安装。
sourcerer-mcp · 安装
安装
Go
go install github.com/st3v3nmw/sourcerer-mcp/cmd/sourcerer@latestHomebrew
brew tap st3v3nmw/tap
brew install st3v3nmw/tap/sourcererClaude Code 配置
claude mcp add sourcerer -e OPENAI_API_KEY=your-openai-api-key -e SOURCERER_WORKSPACE_ROOT=$(pwd) -- sourcerermcp.json 配置
{
"mcpServers": {
"sourcerer": {
"command": "sourcerer",
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"SOURCERER_WORKSPACE_ROOT": "/path/to/your/project"
}
}
}
}