filesystem vs mongodb-mcp-server
并排对比,帮你在这两个 MCP server 之间做选择。
filesystem by modelcontextprotocol | mongodb-mcp-server by mongodb-js | |
|---|---|---|
| Stars | ★ 85,748 | ★ 1,023 |
| 30天用量 | — | — |
| 综合分 | 77 | 55 |
| 官方 | ✓ | — |
| 分类 | 本地文件系统开发者工具效率工具 | 数据库开发者工具云存储 |
| 实现语言 | TypeScript | TypeScript |
| 最近提交 | 本月 | 本月 |
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
mongodb-mcp-server · 概述
MongoDB MCP Server 连接 MongoDB 数据库和 Atlas 集群,提供数据库操作和 Atlas 管理工具。
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
mongodb-mcp-server · 使用场景
- AI 查询和分析 MongoDB 数据库而无需直接数据库访问
- 通过支持 MCP 的客户端自动化 MongoDB Atlas 集群管理
- 构建能够访问 MongoDB 数据作为上下文资源的 RAG 应用程序
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 中安装。
mongodb-mcp-server · 安装
安装
通过 NPM (适用于 Claude Desktop)
{
"mcpServers": {
"MongoDB": {
"command": "npx",
"args": ["-y", "mongodb-mcp-server@latest", "--readOnly"],
"env": {
"MDB_MCP_CONNECTION_STRING": "mongodb://localhost:27017/myDatabase"
}
}
}
}通过 Docker
{
"mcpServers": {
"MongoDB": {
"command": "docker",
"args": [
"run",
"--rm",
"-e",
"MDB_MCP_READ_ONLY=true",
"-i",
"mongodb/mongodb-mcp-server:latest"
]
}
}
}