ssh-client-mcp-server

v1.6.3
io.github.sapientsai/ssh-client-mcp-server Checked 14 hours ago Published 2 days ago

MCP server for executing shell commands on remote hosts via SSH.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

info

Returns identity and build information for this server (name, version, build commit, runtime, capability counts)

exec

Execute a shell command on the remote SSH server and return the output.

ParameterTypeDescription
command *stringShell command to execute on the remote SSH server

tmux_list

List live tmux sessions on the remote host. Returns a JSON array of session names.

tmux_send

Type text into a persistent tmux session on the remote host (creates the session if it does not exist). Use to dispatch work to a long-running interactive process such as a coding agent.

ParameterTypeDescription
input *stringText to type into the session
sessionstringtmux session name (defaults to --tmux-session)
submitbooleanPress Enter after the text (default true)

tmux_read

Capture the recent output (pane transcript) of a tmux session on the remote host.

ParameterTypeDescription
linesintegerLines of scrollback to capture (default 200; capped at 2000)
sessionstringtmux session name (defaults to --tmux-session)

tmux_keys

Send control/special keys to a tmux session (e.g. C-c to interrupt, Escape, Up). Use tmux_send for ordinary text.

ParameterTypeDescription
keys *arraytmux key names, e.g. ['C-c'] or ['Escape']
sessionstringtmux session name (defaults to --tmux-session)