filesystem vs ChatSQL
并排对比,帮你在这两个 MCP server 之间做选择。
filesystem by modelcontextprotocol | ChatSQL by thomasjerard | |
|---|---|---|
| Stars | ★ 85,748 | ★ 0 |
| 30天用量 | — | — |
| 综合分 | 77 | 30 |
| 官方 | ✓ | — |
| 分类 | 本地文件系统开发者工具效率工具 | 数据库AI / LLM 工具开发者工具 |
| 实现语言 | TypeScript | Python |
| 最近提交 | 本月 | 11 个月前 |
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
ChatSQL · 概述
ChatSQL 使用 Gemini 和 FastMCP 协议将自然语言转换为 PostgreSQL 查询。
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
ChatSQL · 使用场景
- 业务分析师无需 SQL 知识即可查询数据库
- 通过提问而非编写查询进行快速数据探索
- 通过自然语言交互学习 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 中安装。
ChatSQL · 安装
安装步骤
- 克隆仓库:
git clone https://github.com/thomasjerard/ChatSQL.git
cd chatSQL- 创建包含您的数据库凭证和 Gemini API 密钥的 .env 文件:
DB_NAME=chattosql
DB_USER=postgres
DB_PASS=yourpassword
DB_HOST=localhost
DB_PORT=5432
GEMINI_API_KEY=your-gemini-api-key- 在一个终端中运行服务器:
./run_server.sh- 在另一个终端中运行客户端:
./run_client.sh