创建您的第一个自己的服务器
Linux
python3 -m venv .venv
source .venv/bin/activate
pip install mcp
touch server.py更多MCP服务器和客户端
- 在Github上
Claude桌面设置
- 安装 克劳德桌面
- 打开克劳德桌面
- 使用Apple Key+添加新的mcp服务器,更改为选项卡developer并打开
- 在claude_desktop_config json中添加一个新的mcp服务器
{
"mcpServers": {
"count-r": {
"command": "/Users/ma3u/projects/mcp-server-count-r-/.venv/bin/python",
"args": [
"/Users/ma3u/projects/mcp-server-count-r-/server.py"
],
"host": "127.0.0.1",
"port": 5000,
"timeout": 10000
}
}
}- 重新启动克劳德桌面
- Test with Claude Desktop and the nice german word: 牛肉标签监督任务转移法
- 接受新的mcp服务器
8.检查克劳德桌面的日志:
tail -n 20 -F ~/Library/Logs/Claude/mcp*.log | grep "count-r"
