使用说明
PythonCMPC服务器
使用Python构建自定义MCP服务器
安装UV
https://docs.astral.sh/uv/getting-started/installation/#installation-方法
为Windows安装UV
powershell-执行策略ByPass-c“irmhttps://astral.sh/uv/install.ps1|iex”
安装克劳德桌面
https://claude.ai/download
编辑配置
claude_desktop_config json { “mcpServers”:{ “演示”:{ “command”:“uv”, “args”:[ “运行”, “--带有”, “mcp[cli]”, “mcp”, “运行”, “C:\用户\用户\桌面\MCP服务器教程\main.py” ] }, “AI便签”:{ “command”:“uv”, “args”:[ “运行”, “--带有”, “mcp[cli]”, “mcp”, “运行”, “C:\PythonCMCServer\main.py” ] } } }