filesystem vs lunar
并排对比,帮你在这两个 MCP server 之间做选择。
filesystem by modelcontextprotocol | lunar by TheLunarCompany | |
|---|---|---|
| Stars | ★ 85,748 | ★ 444 |
| 30天用量 | — | — |
| 综合分 | 77 | 51 |
| 官方 | ✓ | — |
| 分类 | 本地文件系统开发者工具效率工具 | 开发者工具可观测性安全 |
| 实现语言 | TypeScript | TypeScript |
| 最近提交 | 本月 | 本月 |
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
lunar · 概述
Lunar.dev 是一个用于 AI 工作负载治理和安全性的 API 网关,具有 MCP 聚合功能。
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
lunar · 使用场景
- 生产环境中 MCP 服务器的集中治理和安全
- 使用外部 API 的 AI 应用流量管理和优化
- 将多个 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 中安装。
lunar · 安装
安装
Lunar 由两个主要组件组成:
- **Lunar Proxy**(核心 API 网关):
``bash git clone https://github.com/TheLunarCompany/lunar.git cd lunar/proxy npm install npm start ``
- **Lunar MCPX**(MCP 聚合器):
``bash cd lunar/mcpx npm install npm start ``
对于 Claude Desktop,添加到您的 config.json 中:
"mcpServers": {
"lunar": {
"command": "node",
"args": ["lunar/mcpx/index.js 的路径"]
}
}