db-mcp-server vs filesystem
并排对比,帮你在这两个 MCP server 之间做选择。
db-mcp-server by FreePeak | filesystem by modelcontextprotocol | |
|---|---|---|
| Stars | ★ 377 | ★ 85,748 |
| 30天用量 | — | — |
| 综合分 | 52 | 77 |
| 官方 | — | ✓ |
| 分类 | 数据库开发者工具AI / LLM 工具 | 本地文件系统开发者工具效率工具 |
| 实现语言 | Go | TypeScript |
| 最近提交 | 1 个月前 | 本月 |
db-mcp-server · 概述
多数据库 MCP 服务器,为 AI 助手提供连接 MySQL、PostgreSQL、SQLite 和 Oracle 的标准化 SQL 接口。
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
db-mcp-server · 使用场景
- AI 助手同时查询多个数据库进行数据分析
- 自动化数据库模式探索和文档生成
- 在异构数据库环境中进行性能监控和优化
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
db-mcp-server · 安装
安装
Docker 部署
docker pull freepeak/db-mcp-server:latest
docker run -p 9092:9092 \
-v $(pwd)/config.json:/app/my-config.json \
-e TRANSPORT_MODE=sse \
-e CONFIG_PATH=/app/my-config.json \
freepeak/db-mcp-server源码安装
git clone https://github.com/FreePeak/db-mcp-server.git
cd db-mcp-server
make build
./bin/server -t sse -c config.jsonClaude Desktop 集成
添加到 claude_desktop_config.json:
{
"mcpServers": {
"db-mcp-server": {
"command": "path/to/db-mcp-server/server",
"args": ["-t", "stdio", "-c", "/path/to/config.json"]
}
}
}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 中安装。