SSH Server

Execute remote commands securely over SSH using the Model Context Protocol. Benefit from type safety and easy integration with your applications. Simplify your remote command execution with robust authentication options.

Installation

Installing for Claude Desktop

Option 1: One-Command Installation

npx mcpbar@latest install mfangtao/mcp-ssh-server -c claude

This command will automatically install and configure the SSH Server MCP server for your selected client.

Option 2: Manual Configuration

Run the command below to open your configuration file:

npx mcpbar@latest edit -c claude

After opening your configuration file, copy and paste this configuration:

View JSON configuration
{
  "mcpServers": {
    "SSH Server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-server"
      ],
      "env": {}
    }
  }
}

SSH MCP Server

Node.js Version TypeScript

一个基于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

Share:
Details:
  • Stars


    1
  • Forks


    1
  • Last commit


    3 months ago
  • Repository age


    3 months
View Repository

Auto-fetched from GitHub .

MCP servers similar to SSH Server:

 

 
 
  • Stars


  • Forks


  • Last commit


 

 
 
  • Stars


  • Forks


  • Last commit


 

 
 
  • Stars


  • Forks


  • Last commit