ssh-mcp-server

ssh-mcp-server

An MCP service based on SSH that allows AI assistants to execute remote SSH commands via a standardized interface.

MCPDevOpen source
Type
MCP
Open source
Yes
GitHub Stars
★ 1.0k
Source
mcp-github

Overview

ssh-mcp-server is a bridge tool that enables AI assistants supporting the MCP protocol to execute remote SSH commands through a standardized interface. This allows AI assistants to securely operate remote servers, run commands, and retrieve results without directly exposing SSH credentials to the AI model. It supports multiple secure connection methods, flexible whitelist/blacklist mechanisms, and bidirectional file transfer. Ideal for developers and system administrators who need remote server management.

Capabilities

  • ▪Supports password and private key authentication
  • ▪Flexible command whitelist/blacklist control
  • ▪Complies with MCP protocol specifications
  • ▪Supports both exec and shell transmission modes
  • ▪Supports HTTP access
  • ▪Supports bidirectional file transfer

Use cases

Remote server managementAutomated operations tasksSecure execution of remote commandsFile transfer

Setup

Requires: Node 环境API Key
Run directly with NPX: `npx -y @fangjunjie/ssh-mcp-server --host <your_host> --port 22 --username <your_username> --password <your_password>`

This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.

FAQ

How to configure SSH connection?

You can configure using account password, private key, or reuse settings from ~/.ssh/config.

What transmission modes are supported?

Supports both exec and shell transmission modes.

How to restrict executable commands?

Set command whitelist and blacklist using the --whitelist and --blacklist parameters.

Related skills