SSH Tools

by lightfate

1 stars
263 downloads
Not rated
GitHub

About

Provides a secure SSH interface for connecting to remote servers, executing commands, and maintaining persistent sessions throughout conversations for system administration and server management tasks.

Details

Author
lightfate
Repository
lightfate/ssh-tools-mcp
GitHub stars
1
Downloads
263
Categories
Productivity, Design, Developer Tools, AI, Project Management, Frontend, Infrastructure

- Connect to an SSH server with hostname, username, password, and port
- Execute remote commands on the connected server
- Disconnect the current SSH session

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name SSH Tools
    Command (node, npx, python, etc.) npx
    Arguments
    • Argument 1 -y
    • Argument 2 @highlight/mcp-server

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install dependencies with pip install -r requirements.txt, then run the server with python ssh_server.py. The server exposes three tools: connect_ssh, run_command, and disconnect_ssh, which can be called with the specified parameters.

connect_ssh

连接到SSH服务器. 参数: hostname (服务器IP地址或主机名), password (SSH密码), username (SSH用户名,默认:root), port (SSH端口,默认:22)

run_command

在已连接的服务器上执行命令. 参数: command (要执行的命令,例如:nvidia-smi)

disconnect_ssh

断开当前SSH连接

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "ssh tools": {
            "env": {},
            "args": [
                "-y",
                "@highlight/mcp-server"
            ],
            "command": "npx"
        }
    }
}

Linux

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Macos

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Windows

{
    "env": [],
    "args": [
        "/c",
        "npx",
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "cmd"
}

SSH Tools MCP

这是一个基于MCP (Model Context Protocol) 的SSH工具,允许你通过简单的命令连接到远程服务器并执行命令。

功能

- 连接到SSH服务器
- 执行远程命令(如 nvidia-smi)
- 断开SSH连接

安装

1. 安装依赖:

pip install -r requirements.txt

2. 运行服务器:

python ssh_server.py

使用方法

该MCP服务器提供以下工具:

1. connect_ssh - 连接到SSH服务器
- 参数:
- hostname: 服务器IP地址或主机名
- password: SSH密码
- username: SSH用户名(默认:root)
- port: SSH端口(默认:22)

2. run_command - 在已连接的服务器上执行命令
- 参数:
- command: 要执行的命令(例如:nvidia-smi)

3. disconnect_ssh - 断开当前SSH连接

示例

1. 连接到服务器:

connect_ssh(hostname="192.168.1.100", password="your_password")

2. 执行 nvidia-smi 命令:

run_command(command="nvidia-smi")

3. 断开连接:

disconnect_ssh()

注意事项

- 确保目标服务器允许SSH密码认证
- 建议在使用完毕后调用 disconnect_ssh 断开连接
- 所有命令执行都会返回命令的输出或错误信息

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.