mcp-ssh-multi

v0.4.0
mcp-ssh-multi Checked 2 days ago Published 3 months ago

MCP 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()

ParameterTypeDescription
_placeholderbooleanPlaceholder. 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")

ParameterTypeDescription
server_name *stringServer 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)

ParameterTypeDescription
command *stringShell command to execute
server_name *stringServer name to execute on (from ssh_list_servers)
timeoutintegerCommand 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.

ParameterTypeDescription
local_path *stringLocal file path to upload
remote_path *stringRemote destination path
server_name *stringTarget 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.

ParameterTypeDescription
local_path *stringLocal destination path
remote_path *stringRemote file path to download
server_name *stringSource 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")

ParameterTypeDescription
remote_path *stringRemote path to check
server_name *stringServer 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)

ParameterTypeDescription
server_name *stringServer name
limitintegerMax entries to return, 0 for all (default: 200)
offsetintegerNumber of entries to skip (default: 0)
remote_pathstringRemote 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)

ParameterTypeDescription
remote_path *stringRemote file path to read
server_name *stringServer name
max_sizeintegerMax 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")

ParameterTypeDescription
content *stringContent to write to the file
remote_path *stringRemote file path to write
server_name *stringServer 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)

ParameterTypeDescription
server_name *stringServer name
linesintegerNumber of lines to tail (default: 50)
log_pathstringPath 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")

ParameterTypeDescription
server_name *stringServer name
filter_nameOptional: filter processes by name (grep pattern)