MCP Catalogs
首页

mysql_mcp_server vs filesystem

并排对比,帮你在这两个 MCP server 之间做选择。

mysql_mcp_server
by designcomputer
filesystem
by modelcontextprotocol
Stars★ 1,251★ 85,748
30天用量
综合分5277
官方
分类
数据库开发者工具安全
本地文件系统开发者工具效率工具
实现语言PythonTypeScript
最近提交12 个月前本月

mysql_mcp_server · 概述

MCP 服务器,提供结构化 API 安全交互 MySQL 数据库。

filesystem · 概述

功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。

mysql_mcp_server · 使用场景

  • AI 模型通过安全 SQL 查询进行数据分析
  • AI 助手的数据库探索和模式检查
  • MySQL 数据与 AI 驱动应用程序的集成

filesystem · 使用场景

  • 使 AI 模型能够读取和写入项目文件进行开发
  • 允许 Claude 或其他 MCP 客户端浏览和分析代码库
  • 为内容生成提供对特定目录的安全沙盒访问

mysql_mcp_server · 安装

安装

手动安装
pip install mysql-mcp-server
通过 Smithery 安装

通过 [Smithery](https://smithery.ai/server/mysql-mcp-server) 为 Claude Desktop 自动安装 MySQL MCP Server:

npx -y @smithery/cli install mysql-mcp-server --client claude
配置

设置以下环境变量:

MYSQL_HOST=localhost     # 数据库主机
MYSQL_PORT=3306         # 可选:数据库端口(未指定时默认为 3306)
MYSQL_USER=your_username
MYSQL_PASSWORD=your_password
MYSQL_DATABASE=your_database
与 Claude Desktop 配合使用

将此添加到您的 claude_desktop_config.json 文件中:

{
  "mcpServers": {
    "mysql": {
      "command": "uv",
      "args": [
        "--directory",
        "path/to/mysql_mcp_server",
        "run",
        "mysql_mcp_server"
      ],
      "env": {
        "MYSQL_HOST": "localhost",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "your_username",
        "MYSQL_PASSWORD": "your_password",
        "MYSQL_DATABASE": "your_database"
      }
    }
  }
}

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 中安装。

对比内容由 README + GitHub 公开数据自动生成,定期更新。