Provides Docker environment management for remote servers, enabling execution of commands within containers.
Supports connection and command execution on Linux-based remote servers through SSH.
Enables remote terminal access and command execution on macOS systems.
Requires Node.js environment for running the MCP server with support for Node.js version 14.0.0+.
Provides GPU monitoring capabilities for NVIDIA GPUs, including usage statistics and management on remote servers.
Requires Python 3.8+ for the MCP server with support for executing Python scripts on remote servers.
Supports running PyTorch training scripts on remote GPU servers, particularly for AI development workflows.
Supports monitoring and management of Tesla GPU servers (A100, V100) for high-performance computing tasks.
Provides comprehensive tmux session management for persistent terminal sessions on remote servers.
Uses YAML for configuration files, including server definitions and connection settings.
🖥️ Remote Terminal MCP
统一远程终端管理工具 - 基于Model Context Protocol (MCP)
🌟 功能特色
- 🎯 零安装使用 - 只需编辑mcp.json,npx自动处理一切依赖和配置
- 🚀 智能连接管理 - 支持relay-cli、跳板机、直连多种模式
- 🐳 Docker容器支持 - 自动检测、创建、管理Docker开发环境
- 🔄 会话持久化 - 基于tmux的会话管理,断线重连无压力
- 🛠️ 环境自动配置 - 云存储同步、SSH密钥、zsh环境一键设置
- 📊 统一管理界面 - 在Cursor中通过AI对话管理所有远程服务器
🎯 快速开始
1. 零安装配置(推荐)
只需编辑一个文件,无需任何安装!
在 ~/.cursor/mcp.json
中添加:
重启Cursor即可使用!首次运行时npx会自动下载和配置。
2. 其他安装方式
方式一:NPM全局安装
方式二:源码安装(开发者)
然后在mcp.json中使用本地路径:
3. 开始使用
配置完成后,在Cursor中直接与AI对话:
高级配置(可选)
如果使用npm全局安装,可以使用CLI工具:
🔧 服务器配置
基础配置文件结构
配置文件位置:~/.remote-terminal-mcp/config.yaml
支持的连接模式
1. 直连模式 (Direct)
2. 跳板机模式 (Jump Host)
3. 双层跳板机模式
🚀 使用方法
在Cursor中使用
启动Cursor后,在对话中直接使用自然语言:
直接使用tmux
使用Python脚本
🐳 Docker集成
自动容器管理
系统会自动:
- 检测Docker服务是否可用
- 查找指定名称的容器
- 如果容器存在且运行中,直接进入
- 如果容器存在但停止,重新启动并进入
- 如果容器不存在,自动创建并进入
Docker配置示例
📊 管理功能
添加新服务器
- 编辑配置文件:
- 添加服务器配置到
servers
段 - 重启Cursor MCP服务或重新加载
服务器类型说明
local_tmux
- 本地tmux会话script_based
- 远程服务器(支持Docker、云存储等高级功能)direct_ssh
- 简单SSH连接
常用操作
🛠️ 高级功能
云存储集成
支持自动配置云存储服务:
环境自动化
会话管理
🐛 故障排除
常见问题
- 连接超时
- 检查网络连接
- 确认服务器地址正确
- 验证SSH密钥或密码
- Docker容器问题
- 确认Docker服务运行
- 检查镜像是否存在
- 验证容器权限设置
- tmux会话问题
- 检查tmux是否安装
- 确认会话名称唯一
- 验证会话状态
调试命令
📝 配置模板
基础服务器模板
GPU服务器模板
🤝 贡献指南
- Fork 项目
- 创建功能分支 (
git checkout -b feature/amazing-feature
) - 提交更改 (
git commit -m 'Add amazing feature'
) - 推送到分支 (
git push origin feature/amazing-feature
) - 开启 Pull Request
📄 License
MIT License - 详见 LICENSE 文件
🙏 致谢
- Model Context Protocol - 强大的AI工具集成协议
- tmux - 终端多路复用器
- Cursor - AI代码编辑器
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A unified remote terminal management server that simplifies complex SSH connections and server management through MCP protocol, allowing users to control multiple remote servers with natural language commands as easily as local operations.
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that enables secure terminal command execution, directory navigation, and file system operations through a standardized interface for LLMs.Last updated -1023PythonMIT License
- -securityFlicense-qualityA simple MCP server that allows accessing and executing shell commands on a VM machine through a web-based terminal interface, with automatic tunneling to make the VM accessible from anywhere.Last updated -392JavaScript
- -securityFlicense-qualityA server that enables remote command execution over SSH through the Model Context Protocol (MCP), supporting both password and private key authentication.Last updated -JavaScript
- -securityFlicense-qualityA simple MCP server that allows running terminal commands with output capture, enabling command execution on the host system from MCP-compatible clients like Claude Desktop.Last updated -Python