Skip to content

配置MySQL数据库MCP Server

  1. MySQL MCP Server地址 https://github.com/designcomputer/mysql_mcp_server

  2. 下载MCP Server,记住下载的路径,CherryStudio配置MCP服务器时要用,我的路径为 D:\workSpace\3_projects\structures\mysql_mcp_server-main,git clone超时的话可以选择下载压缩包到本地,然后解压到目标目录

    image-20250727213214434

  3. 在Cherry Studio上添加MCP服务器

    image-20250727214512862

    image-20250727214529000

    • 参数设置,其中路径就是刚才下载的MySQL MCP Server的绝对路径

      properties
      --directory
      D:\workSpace\3_projects\structures\mysql_mcp_server-main
      run
      mysql_mcp_server
    • 环境变量设置,记住,一定要启动mysql

      properties
      MYSQL_HOST=localhost
      MYSQL_PORT=3306
      MYSQL_USER=root
      MYSQL_PASSWORD=root
      MYSQL_DATABASE=carb_ignite

      image-20250727214811905

  4. 测试效果

    image-20250727214845422

    image-20250727214910011

配置本地文件管理MCP Server(内置服务器)

  1. 添加内置服务器 @cherry/filesystem

    image-20250728134024454

  2. 修改MCP服务器参数

    properties
    # 原始参数
    /Users/username/Desktop
    /path/to/other/allowed/dir
    properties
    # 改成我自己的参数
    C:/Users/33622/Desktop
    /path/to/other/allowed/dir

    image-20250728134644248

  3. 启用MCP服务器

    image-20250728134206366

  4. 测试

    image-20250728134652764

    image-20250728134853951

    image-20250728134931008

配置获取网页内容MCP Server(内置服务器)

  • 添加内置服务器 @cherry/fetch

    image-20250728135557566

  • 启用MCP服务器

    image-20250728135655680

  • 测试

    image-20250728135627043

MIT版权,未经许可禁止任何形式的转载