本指南将详细介绍 Unraid MCP 服务器的安装、配置、功能使用、集成等方面,帮助您顺利搭建并使用该服务器。
git clone https://github.com/your-repository/unraid-mcp.git
cd unraid-mcp
pip install -r requirements.txt
创建配置文件 unraid_mcp_config.json:
{
"mcpServers": {
"unraid": {
"command": "/path/to/python",
"args": ["/path/to/unraid-mcp/run_server.py"],
"env": {
"UNRAID_API_URL": "http://your-unraid-server:port/graphql",
"UNRAID_API_KEY": "your-api-key",
"LOG_LEVEL": "INFO",
"CLAUDE_MCP_SERVER": "true"
},
"disabled": false,
"autoApprove": []
}
}
}
unraid://system/info:系统信息(CPU、内存、运行时间)unraid://system/plugins:已安装插件unraid://docker/containers:所有 Docker 容器列表unraid://docker/{container_name}:特定容器详情unraid://array/status:当前存储阵列状态unraid://vms/list:所有虚拟机列表unraid://vms/{vm_name}:特定虚拟机详情unraid://storage/shares:用户共享信息get_system_info:获取详细系统信息get_network_info:获取网络接口信息get_array_status:以人类可读格式显示当前阵列状态get_parity_history:获取奇偶校验检查历史记录get_docker_containers:获取 Docker 容器信息get_docker_networks:获取 Docker 网络信息list_containers:以人类可读格式列出 Docker 容器get_vms:获取虚拟机信息get_vm_details:获取特定虚拟机详细信息list_vms:以人类可读格式列出虚拟机get_notifications:获取服务器上的通知create_notification:创建新通知archive_notification:归档指定通知get_shares:获取网络共享信息get_share_details:获取特定共享详细信息get_disks:获取所有磁盘信息get_disk_details:获取特定磁盘详细信息get_unassigned_devices:获取未分配设备信息get_users:获取所有用户信息get_api_keys:获取所有 API 密钥信息git clone https://github.com/your-repository/unraid-mcp.git
cd unraid-mcp
pip install -r requirements.txt
创建配置文件 unraid_mcp_config.json:
{
"mcpServers": {
"unraid": {
"command": "/path/to/python",
"args": ["/path/to/unraid-mcp/run_server.py"],
"env": {
"UNRAID_API_URL": "http://your-unraid-server:port/graphql",
"UNRAID_API_KEY": "your-api-key",
"LOG_LEVEL": "INFO",
"CLAUDE_MCP_SERVER": "true"
},
"disabled": false,
"autoApprove": []
}
}
}
{
"mcpServers": {
"unraid": {
"command": "/path/to/python",
"args": ["/path/to/unraid-mcp/run_server.py"],
"env": {
"UNRAID_API_URL": "http://your-unraid-server:port/graphql",
"UNRAID_API_KEY": "your-api-key",
"LOG_LEVEL": "INFO",
"CLAUDE_MCP_SERVER": "true"
},
"disabled": false,
"autoApprove": []
}
}
}
curl -X GET http://localhost:port/unraid//system/info
日志文件位于 logs/unraid_mcp.log,包含详细的错误信息。
git pull origin main
pip install -r requirements.txt
systemctl restart unraid-mcp
通过以上步骤,您可以成功设置和使用 Unraid 的 MCP 服务器,并集成到您的开发环境中。如需进一步帮助,请参考官方文档或联系支持团队。