使用说明
MCP远程服务器
MCP(模型上下文协议)远程服务器,用于在VPS上运行Claude AI集成。
🚀 快速访问
服务器正在运行: http://212.224.93.149:3000
📡 端点
- SSE 终端:
http://212.224.93.149:3000/sse - 健康检查:
http://212.224.93.149:3000/health - 察看连接信息:
http://212.224.93.149:3000/ - 测试工具:
POST http://212.224.93.149:3000/test-tool
🛠️ 可用工具
- 添加 -加两个数字
- 乘 -将两个数字相乘
- get_weather -获取某个地点的天气
- 获取时间 -获取当前时间
- 系统信息 -获取VPS系统信息
🔌 与克劳德桌面连接
添加到您的Claude Desktop配置文件中:
视窗: %APPDATA%\Claude\claude_desktop_config.json
苹果电脑: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"vps-server": {
"command": "npx",
"args": [
"@modelcontextprotocol/mcp-remote-client",
"sse",
"http://212.224.93.149:3000/sse"
]
}
}
}
🧪 测试工具
# Test add tool
curl -X POST http://212.224.93.149:3000/test-tool \
-H "Content-Type: application/json" \
-d '{"tool":"add","args":{"a":10,"b":20}}'
# Test weather tool
curl -X POST http://212.224.93.149:3000/test-tool \
-H "Content-Type: application/json" \
-d '{"tool":"get_weather","args":{"location":"Madrid"}}'
# Test system info
curl -X POST http://212.224.93.149:3000/test-tool \
-H "Content-Type: application/json" \
-d '{"tool":"system_info","args":{}}'
📦 安装(用于开发)
git clone https://github.com/Comunsoft/mcp-remote-server.git
cd mcp-remote-server
npm install
npm start
📝 许可证
麻省理工学院
