Python MCP服务器

使用Python构建自定义MCP服务器,支持通过UV工具运行和管理多个MCP服务实例。

  • by maneeshsit
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 maneeshsit/pythoncmcpserver

使用说明

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” ] } } }