filesystem vs mcp-go
并排对比,帮你在这两个 MCP server 之间做选择。
filesystem by modelcontextprotocol | mcp-go by XiaoConstantine | |
|---|---|---|
| Stars | ★ 85,748 | ★ 10 |
| 30天用量 | — | — |
| 综合分 | 77 | 37 |
| 官方 | ✓ | — |
| 分类 | 本地文件系统开发者工具效率工具 | 开发者工具AI / LLM 工具其它 |
| 实现语言 | TypeScript | Go |
| 最近提交 | 本月 | 5 个月前 |
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
mcp-go · 概述
Go语言实现的MCP协议库,提供客户端和服务端组件,支持stdio和HTTP传输。
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
mcp-go · 使用场景
- 构建基于Go的MCP服务器,将系统工具作为MCP能力暴露
- 创建Go客户端以与现有MCP服务器集成
- 开发将Go系统与LLM客户端连接的上下文提供者
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-go · 安装
go get github.com/XiaoConstantine/mcp-go对于Claude Desktop,添加到claude_desktop_config.json中:
{
"mcpServers": {
"mcp-go": {
"command": "go",
"args": ["run", "github.com/XiaoConstantine/mcp-go"]
}
}
}