+
106
-

回答

打包下载源码并解压:https://github.com/modelcontextprotocol/servers

800_auto

这里除了sqlite外还有其他的mcp服务,包括redis、memory、github、time、fetch、search、filesystem等,都可以通过uv进行操作,

先安装uv

pip install uv

安装完成后再这个路径

C:\Users\<用户名>\AppData\Local\Programs\Python\Python<版本>\Scripts\

800_auto

复制上面的路径

800_auto

添加到环境变量中

800_auto

打开命令行,输入uv -help 

生效了

800_auto

在cursor等支持mcp聊天软件中配置mcp

# Add the server to your claude_desktop_config.json
"mcpServers": {
  "sqlite": {
    "command": "uv",
    "args": [
      "--directory",
      "parent_of_servers_repo/servers/src/sqlite",
      "run",
      "mcp-server-sqlite",
      "--db-path",
      "~/test.db"
    ]
  }
}

parent_of_servers_repo/servers/src/sqlite就是下载的源码位置

800_auto

我们在cursor中测试下效果

800_auto

网友回复

我知道答案,我要回答