Claude AI远程服务器

MCP远程服务器为Claude AI提供集成服务,支持多种工具调用和VPS系统信息获取。

  • by Comunsoft
  • JavaScript
  • 本地部署
  • 更新于
在 GitHub 查看 comunsoft/mcp-remote-server

使用说明

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

🛠️ 可用工具

  1. 添加 -加两个数字
  2. 乘 -将两个数字相乘
  3. get_weather -获取某个地点的天气
  4. 获取时间 -获取当前时间
  5. 系统信息 -获取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

📝 许可证

麻省理工学院