lab-ops
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@lab-opsshow me the GPU status on the training server"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🧪 lab-ops
一个跑在本地的 MCP server,把训练服务器上那些反复手写的 SSH 操作封装成工具,交给支持 MCP 的 AI 助手(Claude Code 等)直接调度:查 GPU、后台提交训练任务、追踪任务状态、看日志、传文件——不用再每次现场敲命令。
服务器侧不需要装任何东西,本地通过 SSH/SCP 远程操作,密钥认证,零额外服务常驻。
✨ 特性
🎮 GPU 状态一览 — 显存占用、利用率,一条命令看全部卡
🚀 后台任务提交 — 基于
tmux,关掉终端任务也不会断🧠 提交前显存预检查 — 自动解析命令里的
CUDA_VISIBLE_DEVICES,显存不够直接拒绝提交,避免又一次眼睁睁看着 OOM📊 任务状态追踪 —
running/completed/failed,附带真实退出码,不用再靠肉眼翻 Traceback📄 日志随时看 — 支持只看最后 N 行
📦 文件双向传输 — 上传/下载任意文件(checkpoint、推理结果图、脚本……)
🔒 目录白名单 — 所有远程路径操作限制在配置好的目录范围内,防止手滑
Related MCP server: Simple SSH MCP Server
🛠️ 工具列表
工具 | 作用 |
| 查看各 GPU 显存占用和利用率 |
| 列出当前活跃的 tmux 任务 session |
| 提交后台训练/评估任务,自带显存预检查 |
| 查看任务状态 + 退出码 + 最新日志 |
| 终止指定任务 |
| 查看日志最后 N 行 |
| 列出远程目录文件(按修改时间排序) |
| 下载远程文件到本地 |
| 上传本地文件到远程 |
📋 环境要求
本地:Python 3.10+,能通过密钥免密 SSH 到目标服务器
远程:
tmux、conda(或调整config.py里的激活逻辑换成你自己的环境管理方式)
🚀 快速开始
git clone <your-repo-url> lab-ops
cd lab-ops
pip install -r requirements.txt
cp config.example.json config.json编辑 config.json,填入你自己的信息:
{
"host": "your.server.ip",
"user": "your_ssh_username",
"conda_base": "/home/your_username/anaconda3",
"ssh_timeout": 15,
"default_min_free_mb": 2048,
"remote_base_dirs": [
"/home/your_username/your_project_dir"
]
}⚠️
config.json已被.gitignore忽略,不会被提交,放心填真实信息。
本地调试:
python server.py
# 或用 MCP inspector
mcp dev server.py🔌 接入 Claude Code
claude mcp add lab-ops -- python /path/to/lab-ops/server.py注册后运行 /mcp 确认 lab-ops 已连接,就可以直接用自然语言让助手帮你查 GPU、提交任务、看日志了。
🔐 安全说明
远程命令统一走
ssh -o BatchMode=yes,密钥认证失败会直接报错,不会卡住等密码输入所有涉及路径的工具(
workdir、remote_dir、remote_path、log_path)都会校验是否在remote_base_dirs白名单内submit_job/kill_job会先检查同名 session 是否存在,避免误覆盖或误杀正在跑的任务本项目不存储、不上传任何密码;SSH 认证完全基于密钥
📄 License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server that enables remote SSH command execution and bidirectional file transfers through a standardized interface. It allows AI assistants to securely manage remote servers while keeping credentials isolated and applying command-level security controls.Last updatedISC
- Alicense-qualityDmaintenanceAn MCP server that gives AI assistants full SSH/SFTP remote operations — session management, command execution, interactive shells, file transfers, port forwarding, and system diagnostics.Last updated1MIT
- AlicenseAqualityCmaintenanceMCP server for managing multiple SSH servers via AI assistants, offering tools for remote command execution, file operations, and system monitoring.Last updated11MIT
- Alicense-qualityAmaintenanceMCP server enabling AI assistants to securely operate remote servers via persistent SSH sessions, with tools for command execution, file transfer, directory listing, and system monitoring.Last updated2MIT
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
MCP server for Wan AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AceIke/lab-ops'
If you have feedback or need assistance with the MCP directory API, please join our Discord server