filesystem vs mcphub.nvim
并排对比,帮你在这两个 MCP server 之间做选择。
filesystem by modelcontextprotocol | mcphub.nvim by ravitemer | |
|---|---|---|
| Stars | ★ 85,748 | ★ 1,765 |
| 30天用量 | — | — |
| 综合分 | 77 | 55 |
| 官方 | ✓ | — |
| 分类 | 本地文件系统开发者工具效率工具 | 开发者工具效率工具AI / LLM 工具 |
| 实现语言 | TypeScript | Lua |
| 最近提交 | 本月 | 4 个月前 |
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
mcphub.nvim · 概述
Neovim 客户端,集成 MCP 服务器与聊天插件,增强开发工作流。
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
mcphub.nvim · 使用场景
- 将 MCP 驱动的工具集成到 Neovim 中以增强编码辅助
- 从单个界面管理多个 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 中安装。
mcphub.nvim · 安装
使用 lazy.nvim
{
'ravitemer/mcphub.nvim',
dependencies = {
'nvim-lua/plenary.nvim',
'MunifTanjim/nui.nvim',
'nvim-telescope/telescope.nvim'
},
opts = {
-- 您的配置在这里
}
}使用 packer.nvim
use {
'ravitemer/mcphub.nvim',
requires = {
'nvim-lua/plenary.nvim',
'MunifTanjim/nui.nvim',
'nvim-telescope/telescope.nvim'
}
}Claude Desktop 配置
{
"mcpServers": {
"mcp-hub": {
"command": "nvim",
"args": ["--headless", "--clean", "-c", "lua require('mcphub').start()"],
"env": {}
}
}
}