mcp-ssh
by shuakami·★ 62·Score 45
An MCP server that provides AI-powered SSH management capabilities through standardized protocols.
Overview
mcp-ssh is a comprehensive MCP (Model Context Protocol) server that enables AI models to manage SSH connections and execute remote commands. It supports connection management, command execution, tmux session handling, file operations, and process monitoring. The server features intelligent command execution with blocking detection, tmux integration for persistent sessions, and robust error recovery mechanisms.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose this server when you need AI-powered SSH management capabilities with tmux integration and intelligent command processing.
When NOT to choose this
Avoid this if you need a pure SSH client without AI capabilities or if you're working in a restricted environment without Python support.
Tools this server exposes
12 tools extracted from the READMEcreate_ssh_connectionCreate a new SSH connection to a remote server
execute_commandExecute a command on a connected SSH server
execute_composite_commandExecute multiple commands connected by && or ;
create_tmux_sessionCreate a new tmux session on the remote server
list_tmux_sessionsList all active tmux sessions on the remote server
send_tmux_keysSend key sequences to a tmux session
capture_tmux_outputCapture output from a specific tmux session
upload_fileUpload a file to the remote server via SSH
download_fileDownload a file from the remote server to local
read_fileRead the contents of a file on the remote server
detect_blocking_processesDetect blocking processes on the remote server
list_ssh_connectionsList all configured SSH connections
Comparable tools
Installation
Installation
- Clone and install:
git clone https://github.com/shuakami/mcp-ssh.git
cd mcp-ssh
npm install
npm run build- Configure in your MCP client (e.g., Cursor):
{
"mcpServers": {
"ssh-mcp": {
"command": "python3",
"args": ["/path/to/mcp-ssh/bridging_ssh_mcp.py"]
}
}
}- Restart your client to activate the MCP server.
FAQ
- What authentication methods does mcp-ssh support?
- mcp-ssh supports both password authentication and SSH key authentication. It can handle various key formats and secure credential storage.
- How does it handle long-running commands?
- The server implements intelligent blocking detection, automatically detecting and waiting for blocking processes. It supports timeouts and provides options for force execution.
Compare mcp-ssh with
Last updated · Auto-generated from public README + GitHub signals.