remoteshell-mcp
v1.1.4MCP server for managing SSH connections and executing remote commands
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_servers List Servers
List all servers saved locally by this MCP server (persistent inventory). When to use: When the user asks to connect to a server, manage machines, or did not specify a connection_id. When NOT to use: Not needed if you already know the correct connection_id. Example: "Show me which servers I have."
save_server Save Server
Persist (create or update) a server connection profile in the local host store. When to use: When the user provides new SSH details, or after an auth_failed error to update credentials. When NOT to use: Do not ask for credentials again if they are already saved and still valid. Example: save_server(connection_id="srv1", host="1.2.3.4", user="root", auth_type="password", credential="<password>", port=2222)
| Parameter | Type | Description |
|---|---|---|
auth_type * | string | Authentication method: 'password' or 'private_key' |
connection_id * | string | Unique identifier for this server connection |
credential * | string | Password for 'password' auth, or path/PEM text for 'private_key' auth |
host * | string | Server hostname or IP address |
user * | string | SSH username |
port | SSH port. Defaults to 22. If omitted, keeps the existing saved port (if any). |
remove_server Remove Server
Permanently delete a saved server profile from the local host store. When to use: Only when the user explicitly asks to forget/remove a server. When NOT to use: Do not remove servers just because a connection failed. Example: remove_server(connection_id="srv1")
| Parameter | Type | Description |
|---|---|---|
connection_id * | string | Unique identifier of the server to remove |
execute_command Execute Command
Execute a non-interactive shell command on a remote server and return stdout/stderr/exit_code. When to use: Status checks (df, ls), file ops (cp, mv), and scripts that do not require live interaction. When NOT to use: Do not run interactive tools (vim, htop, top) or commands that require manual prompts. Example: execute_command(connection_id="srv1", command="df -h")
| Parameter | Type | Description |
|---|---|---|
command * | string | Shell command to execute (non-interactive only) |
connection_id * | string | Unique identifier of the server connection |
upload_file Upload File
Upload a local file (on the machine running this MCP server) to a remote server via SFTP. When to use: Deploy configs, scripts, or artifacts to the remote. When NOT to use: Do not upload huge files blindly; verify size/permissions first. Example: upload_file(connection_id="srv1", local_path="./config.yaml", remote_path="/etc/app/")
| Parameter | Type | Description |
|---|---|---|
connection_id * | string | Unique identifier of the server connection |
remote_path * | string | Destination path on the remote server |
local_path | Local file path to upload. Defaults to a path in ~/.config/remoteshell/uploads/ |
download_file Download File
Download a remote file to a local path (on the machine running this MCP server) via SFTP. When to use: Fetch logs, reports, or backups from the remote. When NOT to use: Avoid very large downloads (>100MB) unless you verified size first. Example: download_file(connection_id="srv1", remote_path="/var/log/syslog", local_path="./logs/")
| Parameter | Type | Description |
|---|---|---|
connection_id * | string | Unique identifier of the server connection |
remote_path * | string | Path to the remote file to download |
local_path | Local destination path. Defaults to ~/.config/remoteshell/downloads/<connection_id>/ |