
SSH
STDIO允许LLM通过SSH执行远程shell命令的MCP服务器
允许LLM通过SSH执行远程shell命令的MCP服务器
SSH MCP Server is a local Model Context Protocol (MCP) server that exposes SSH control for Linux and Windows systems, enabling LLMs and other MCP clients to execute shell commands securely via SSH.
exec
: Execute a shell command on the remote servergit clone https://github.com/tufantunc/ssh-mcp.git cd ssh-mcp
npm install
You can configure Claude Desktop to use this MCP Server.
host
: Hostname or IP of the Linux or Windows serverport
: SSH port (default: 22)user
: SSH usernamepassword
: SSH password (or use key
for key-based auth) (optional)key
: Path to private SSH key (optional){ "mcpServers": { "ssh-mcp": { "command": "npx", "args": [ "ssh-mcp", "-y", "--", "--host=1.2.3.4", "--port=22", "--user=root", "--password=pass", "--key=path/to/key" ] } } }
You can use the MCP Inspector for visual debugging of this MCP Server.
npm run inspect
SSH MCP Server is provided under the MIT License. Use at your own risk. This project is not affiliated with or endorsed by any SSH or MCP provider.
If you find SSH MCP Server helpful, consider starring the repository or contributing! Pull requests and feedback are welcome.