mcp-ssh-multi
v0.4.0MCP SSH Multi - Multi-server SSH access through MCP
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ssh_list_servers
List all configured SSH servers with connection status. Returns server names, hosts, usernames, descriptions, and whether each server currently has an active connection. EXAMPLES: - List all servers: ssh_list_servers()
| Parameter | Type | Description |
|---|---|---|
_placeholder | boolean | Placeholder. Always pass true. |
ssh_disconnect
Disconnect from a specific SSH server. Closes the active SSH connection to the named server. The connection will be re-established automatically on next command. EXAMPLES: - Disconnect: ssh_disconnect("proxmox")
| Parameter | Type | Description |
|---|---|---|
server_name * | string | Server name to disconnect from (from ssh_list_servers) |
ssh_execute
Execute a command on a remote SSH server. Runs the given shell command on the specified server and returns stdout, stderr, and exit code. Connections are established automatically and reused. EXAMPLES: - Run command: ssh_execute("proxmox", "uptime") - With timeout: ssh_execute("truenas", "zpool status", timeout=60)
| Parameter | Type | Description |
|---|---|---|
command * | string | Shell command to execute |
server_name * | string | Server name to execute on (from ssh_list_servers) |
timeout | integer | Command timeout in seconds (default: 30) |
ssh_upload
Upload a local file to a remote server via SFTP. Use this tool (NOT scp via ssh_execute) to transfer files FROM the local machine TO a remote SSH server. For server-to-server transfers, download from source first, then upload to destination.
| Parameter | Type | Description |
|---|---|---|
local_path * | string | Local file path to upload |
remote_path * | string | Remote destination path |
server_name * | string | Target server name |
ssh_download
Download a file from a remote server to the local machine via SFTP. Use this tool (NOT scp via ssh_execute) to transfer files FROM a remote SSH server TO the local machine.
| Parameter | Type | Description |
|---|---|---|
local_path * | string | Local destination path |
remote_path * | string | Remote file path to download |
server_name * | string | Source server name |
ssh_file_exists
Check if a file or directory exists on a remote server. Returns existence status, type (file/directory), size, and permissions. EXAMPLES: - ssh_file_exists("proxmox", "/etc/pve/qemu-server/100.conf")
| Parameter | Type | Description |
|---|---|---|
remote_path * | string | Remote path to check |
server_name * | string | Server name |
ssh_list_dir
List contents of a remote directory. Returns file names, types, sizes, and permissions. Supports pagination with limit/offset for large directories. EXAMPLES: - ssh_list_dir("truenas", "/mnt/data") - ssh_list_dir("proxmox") # lists home directory - ssh_list_dir("proxmox", "/var/log", limit=50, offset=100)
| Parameter | Type | Description |
|---|---|---|
server_name * | string | Server name |
limit | integer | Max entries to return, 0 for all (default: 200) |
offset | integer | Number of entries to skip (default: 0) |
remote_path | string | Remote directory path (default: home directory) |
ssh_read_file
Read a text file from a remote server. Returns the file contents as a string. For binary or large files, use ssh_download instead. EXAMPLES: - ssh_read_file("proxmox", "/etc/hostname") - ssh_read_file("truenas", "/var/log/messages", max_size=5000000)
| Parameter | Type | Description |
|---|---|---|
remote_path * | string | Remote file path to read |
server_name * | string | Server name |
max_size | integer | Max file size in bytes (default: 1MB) |
ssh_write_file
Write content to a file on a remote server. Creates or overwrites the file with the given content. EXAMPLES: - ssh_write_file("proxmox", "/tmp/test.txt", "Hello World")
| Parameter | Type | Description |
|---|---|---|
content * | string | Content to write to the file |
remote_path * | string | Remote file path to write |
server_name * | string | Server name |
ssh_tail_log
Tail a log file on a remote server. Returns the last N lines of the specified log file. EXAMPLES: - ssh_tail_log("proxmox") - ssh_tail_log("truenas", "/var/log/messages", lines=100)
| Parameter | Type | Description |
|---|---|---|
server_name * | string | Server name |
lines | integer | Number of lines to tail (default: 50) |
log_path | string | Path to log file (default: /var/log/syslog) |
ssh_process_list
List running processes on a remote server. Returns process list sorted by CPU usage. Optionally filter by name. EXAMPLES: - ssh_process_list("proxmox") - ssh_process_list("truenas", filter_name="zfs")
| Parameter | Type | Description |
|---|---|---|
server_name * | string | Server name |
filter_name | Optional: filter processes by name (grep pattern) |