remoteshell-mcp

v1.1.4
remoteshell-mcp Checked 4 days ago Published 2 months ago

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

ParameterTypeDescription
auth_type *stringAuthentication method: 'password' or 'private_key'
connection_id *stringUnique identifier for this server connection
credential *stringPassword for 'password' auth, or path/PEM text for 'private_key' auth
host *stringServer hostname or IP address
user *stringSSH username
portSSH 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")

ParameterTypeDescription
connection_id *stringUnique 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")

ParameterTypeDescription
command *stringShell command to execute (non-interactive only)
connection_id *stringUnique 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/")

ParameterTypeDescription
connection_id *stringUnique identifier of the server connection
remote_path *stringDestination path on the remote server
local_pathLocal 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/")

ParameterTypeDescription
connection_id *stringUnique identifier of the server connection
remote_path *stringPath to the remote file to download
local_pathLocal destination path. Defaults to ~/.config/remoteshell/downloads/<connection_id>/