SSH MCP Server

by mfangtao

Integrations

  • Provides remote command execution over SSH, allowing interaction with Git repositories through commands like clone, push, pull, etc.

  • Enables remote execution of Node.js scripts and commands via SSH, returning stdout, stderr, and exit codes.

  • Allows remote execution of TypeScript compilation and scripts via SSH commands, with typed response handling.

SSH MCP Server

一个基于SSH2和Model Context Protocol (MCP)的SSH服务器,提供远程命令执行功能。

功能特性

  • 通过MCP协议提供SSH远程命令执行工具
  • 支持密码和私钥认证
  • 返回命令执行结果(stdout/stderr/exit code)
  • 基于TypeScript开发,类型安全

安装

# 克隆仓库 git clone https://github.com/your-repo/ssh-server.git cd ssh-server # 安装依赖 npm install # 构建项目 npm run build

使用方法

  1. 启动服务器:
npm start
  1. 通过MCP客户端调用execute_ssh_command工具:

请求示例:

{ "connection": { "host": "example.com", "port": 22, "username": "user", "password": "password" // 或使用 privateKey }, "command": "ls -la" }

开发

# 开发模式 npm run build -- --watch # 运行测试 # (需要添加测试脚本)

依赖

许可证

MIT

-
security - not tested
F
license - not found
-
quality - not tested

A server that enables remote command execution over SSH through the Model Context Protocol (MCP), supporting both password and private key authentication.

  1. 功能特性
    1. 安装
      1. 使用方法
        1. 开发
          1. 依赖
            1. 许可证

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                A secure shell command execution server implementing the Model Context Protocol (MCP). This server allows remote execution of whitelisted shell commands with support for stdin input.
                Last updated 9 days ago
                1
                68
                Python
                MIT License
                • Apple
              • A
                security
                A
                license
                A
                quality
                A secure terminal execution server that enables controlled command execution with security features and resource limits via the Model Context Protocol (MCP).
                Last updated 3 months ago
                1
                12
                1
                JavaScript
                MIT License
                • Apple
              • -
                security
                F
                license
                -
                quality
                A secure SSH server implementation for Model Context Protocol that enables remote command execution and file operations, supporting both password and key-based authentication.
                Last updated 5 months ago
                8
                TypeScript
              • A
                security
                F
                license
                A
                quality
                A Model Context Protocol server implementation that enables secure remote command execution via SSH, with features for managing and using SSH credentials.
                Last updated 18 days ago
                5
                2
                JavaScript

              View all related MCP servers

              ID: ufllwg5jw6