faizbawa/mcp-remote-ssh
MCP server for remote SSH operations -- persistent sessions, structured command execution, SFTP file transfer, and port forwarding for AI agents.
Platform-specific configuration:
{
"mcpServers": {
"mcp-remote-ssh": {
"command": "npx",
"args": [
"-y",
"mcp-remote-ssh"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
[](https://pypi.org/project/mcp-remote-ssh/) [](https://pypi.org/project/mcp-remote-ssh/) [](https://opensource.org/licenses/MIT)
MCP server giving AI agents full SSH access -- persistent sessions, structured command output, SFTP file transfer, and port forwarding. Works with any SSH server on any platform.
Every other SSH MCP server is missing something: no password auth, no persistent sessions, no SFTP, no port forwarding, or no structured exit codes. This one has all of them.
uvx mcp-remote-ssh # or: pip install mcp-remote-ssh{
"mcpServers": {
"remote-ssh": {
"command": "uvx",
"args": ["mcp-remote-ssh"]
}
}
}| Tool | Description | |------|-------------| | ssh_connect | Connect with password, key, or agent auth. Returns session_id | | ssh_list_sessions | List active sessions | | ssh_close_session | Close a session and release resources |
| Tool | Description | |------|-------------| | ssh_execute | Run a command, returns {stdout, stderr, exit_code} | | ssh_sudo_execute | Run with sudo elevation |
| Tool | Description | |------|-------------| | ssh_shell_open | Open persistent shell (preserves cwd, env, processes) | | ssh_shell_send | Send text (with optional Enter) | | ssh_shell_read | Read current output buffer | | ssh_shell_send_control | Send Ctrl+C, Ctrl+D, etc. | | ssh_shell_wait | Wait for a pattern or output to stabilize |
| Tool | Description | |------|-------------| | ssh_upload_file | Upload local file to remote host | | ssh_download_file | Download remote file to local machine | | ssh_read_remote_file | Read a remote text
Loading reviews...