mcp-server-mariadb vs filesystem
并排对比,帮你在这两个 MCP server 之间做选择。
mcp-server-mariadb by abel9851 | filesystem by modelcontextprotocol | |
|---|---|---|
| Stars | ★ 20 | ★ 85,748 |
| 30天用量 | — | — |
| 综合分 | 34 | 77 |
| 官方 | — | ✓ |
| 分类 | 数据库开发者工具AI / LLM 工具 | 本地文件系统开发者工具效率工具 |
| 实现语言 | Python | TypeScript |
| 最近提交 | 14 个月前 | 本月 |
mcp-server-mariadb · 概述
MCP 服务器,提供对 MariaDB 数据库的只读访问,支持查询工具和模式资源。
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
mcp-server-mariadb · 使用场景
- 允许 AI 助手查询现有数据库进行数据分析与报告
- 通过 MCP 资源探索和记录数据库模式
- 为需要从现有数据库读取数据的 AI 系统创建数据驱动应用程序
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
mcp-server-mariadb · 安装
安装
- 安装 MariaDB Connector/C:
``bash brew install mariadb-connector-c echo 'export PATH="/opt/homebrew/opt/mariadb-connector-c/bin:$PATH"' >> ~/.bashrc export MARIADB_CONFIG=$(brew --prefix mariadb-connector-c)/bin/mariadb_config ``
- 安装 MCP 服务器:
``bash uv add mariadb ``
Claude Desktop 配置
添加到您的 claude_desktop_config.json:
{
"mcpServers": {
"mcp_server_mariadb": {
"command": "/PATH/TO/uvx",
"args": [
"mcp-server-mariadb",
"--host",
"${DB_HOST}",
"--port",
"${DB_PORT}",
"--user",
"${DB_USER}",
"--password",
"${DB_PASSWORD}",
"--database",
"${DB_NAME}"
]
}
}
}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 中安装。