Remote Terminal MCP

Remote Terminal MCP

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.

Category
Visit Server

README

Remote Terminal MCP

🚀 简单易用的远程终端管理MCP服务器

📦 快速安装

方式一:NPM安装(推荐)

# 安装包
npm install -g remote-terminal-mcp

# 直接启动(自动创建配置)
npm start

方式二:本地开发

# 克隆项目
git clone https://github.com/your-username/remote-terminal-mcp.git
cd remote-terminal-mcp

# 安装依赖
pip install -r requirements.txt

# 直接启动(自动创建配置)
python3 python/mcp_server.py

🎯 功能特点

开箱即用 - 默认配置本地tmux会话管理
🔧 简单配置 - 一个YAML文件搞定所有设置
🏠 用户友好 - 配置文件自动存储在 ~/.remote-terminal-mcp/
🖥️ 本地优先 - 先支持本地终端,再扩展远程连接

📋 基础工具

工具名称 功能描述 使用示例
system_info 获取系统信息 "显示系统信息"
run_command 执行本地命令 "运行命令: ls -la"
list_tmux_sessions 列出tmux会话 "列出所有tmux会话"
create_tmux_session 创建tmux会话 "创建名为test的tmux会话"
list_directory 列出目录内容 "显示当前目录内容"

🔌 在Cursor中使用

  1. 安装并启动服务器
  2. 在Cursor设置中添加MCP服务器配置
  3. 直接对话测试:
    • "列出所有tmux会话"
    • "在dev-session中执行 pwd"
    • "显示系统信息"

⚙️ 配置说明

配置文件位置:~/.remote-terminal-mcp/config.yaml

默认配置示例:

servers:
  local-dev:
    type: "local_tmux"
    description: "本地开发会话"
    session:
      name: "dev-session"           # 📍 修改会话名
      working_directory: "~/Code"   # 📍 修改工作目录
      shell: "/bin/zsh"            # 📍 修改shell类型

global_settings:
  default_server: "local-dev"
  connection_timeout: 30

添加远程服务器(可选):

servers:
  # ... 保留local-dev配置
  
  remote-gpu:
    type: "direct_ssh"
    description: "GPU服务器"
    host: "gpu.example.com"
    username: "your-username"
    private_key_path: "~/.ssh/id_rsa"

🛠️ 开发命令

npm run start      # 启动服务器
npm run dev        # 调试模式启动
npm run test       # 运行测试
npm run lint       # 代码检查

📂 目录结构

~/.remote-terminal-mcp/
├── config.yaml          # 用户配置文件
└── logs/                # 日志文件(自动创建)

项目目录/
├── python/              # Python MCP服务器
├── scripts/             # 安装和管理脚本
├── config/              # 配置模板
└── package.json         # NPM配置

🤝 贡献

欢迎提交Issue和Pull Request!

📄 许可证

MIT License


💡 设计理念:简化优先,开箱即用,逐步扩展

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured