filesystem vs mysql-mcp-server
并排对比,帮你在这两个 MCP server 之间做选择。
filesystem by modelcontextprotocol | mysql-mcp-server by TickHaiJun | |
|---|---|---|
| Stars | ★ 85,748 | ★ 31 |
| 30天用量 | — | — |
| 综合分 | 77 | 41 |
| 官方 | ✓ | — |
| 分类 | 本地文件系统开发者工具效率工具 | 数据库开发者工具AI / LLM 工具 |
| 实现语言 | TypeScript | JavaScript |
| 最近提交 | 本月 | 9 个月前 |
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
mysql-mcp-server · 概述
一个基于Node.js的MCP服务器,提供MySQL数据库连接与SQL查询功能。
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
mysql-mcp-server · 使用场景
- 需要查询或分析MySQL数据的AI助手
- 需要自动化管理工具的数据库管理员
- 需要SQL执行功能的数据分析工作流
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 中安装。
mysql-mcp-server · 安装
安装
- 克隆仓库
git clone https://github.com/TickHaiJun/mysql-mcp-server.git
cd mysql-mcp-server- 安装依赖
npm install- 配置数据库连接(创建.env文件)
DB_HOST=localhost
DB_PORT=3306
DB_USER=root
DB_PASSWORD=yourpassword
DB_NAME=yourdatabase- 启动服务器
node src/index.jsClaude Desktop 配置
添加到Claude Desktop配置文件中:
{
"mcpServers": {
"mysql": {
"command": "node",
"args": ["/path/to/mysql-mcp-server/src/index.js"],
"env": {
"DB_HOST": "localhost",
"DB_PORT": "3306",
"DB_USER": "yourusername",
"DB_PASSWORD": "yourpassword",
"DB_NAME": "yourdatabase"
}
}
}
}