About Handfree Ssh
Handfree Ssh is an MCP server published by Ironboxplus in the Automation category: handfree SSH MCP Server - A hands-free SSH automation tool via MCP protocol. Conduid read 21 tools from its source: close-connection, command-status, copy, execute-command, help, list-servers and 15 more. It is published to npm as @aaarc/handfree-ssh-mcp and starts with npx.
The repository has 2 stars and 1 forks, and its last commit was on 30 Nov 2026. Conduid has no tagged release on record for it. Its topics include ssh and cli.
Install
claude mcp add handfree-ssh -- npx -y @aaarc/handfree-ssh-mcpnpx -y @aaarc/handfree-ssh-mcpgit clone https://github.com/Ironboxplus/handfree-ssh-mcpTools (21)
close-connectionClose cached SSH connections for a server, including transfer connections. Closing a jump host also closes dependent target connections. Fresh connections from reuseConnection=false close after use.| Parameter | Type | Description |
|---|---|---|
| connectionName | string | Server name from list-servers. Required with multiple enabled servers; optional with one. |
command-statusRead status and output for execute-command with stream=true. Incremental polling advances a process-local cursor per runId; offset overrides it. After MCP restart, status is unavailable; read the saved logPath directly.| Parameter | Type | Description |
|---|---|---|
| incremental | boolean | Default true: return new output. False: return the current tail and advance the cursor to file end. |
| maxOutputBytes | number | Maximum output bytes, default 65536. Incremental backlog is paged with hasMore=true. |
| offset | number | Byte offset overriding the stored cursor; nextOffset becomes the new cursor. |
| runId * | string | runId from execute-command with stream=true. |
copyCopy a file between two remote servers, or within one: from { server, path } to { server, path }. strategy selects relay (via this MCP host, default), direct (the source pushes with its own SSH trust) or auto. archive=true copies a directory as a temporary tar. See help for constraints.| Parameter | Type | Description |
|---|---|---|
| archive | boolean | Default false. Pack the source path into a temporary tar, relay it, extract into the destination directory and remove the temporary archives. |
| archiveCompression | string | With archive=true: none (default), gzip, bzip2, xz or zstd. Both servers need a compatible tar/compressor. |
| chunkSize | number | Bytes per relayed chunk, default 32768; total window at most 64 MiB. |
| connections | number | Single file with strategy=relay only: 1-8 independent SSH/TCP connections per server, default 1. Excludes archive and direct/auto. See help for limits. |
| reuseConnection | boolean | Default true. Set false to use fresh SSH connections after a suspected stale connection. |
| sftpConcurrency | number | Prefetched source chunks, default 64; total window at most 64 MiB. |
| skipIfIdentical | boolean | Default true: skip when the destination already has the same size and MD5 (when the servers can hash). |
| timeout | number | Milliseconds for SSH setup and SFTP channel opening; does not cap transfer duration. |
| vvv | boolean | Default false. Include bounded SSH debug output; fresh handshake logs also require reuseConnection=false. |
execute-commandExecute cmdString unchanged in the remote default shell. stream=false waits for output; stream=true (default) returns runId/logPath immediately for polling with command-status. Each call has separate shell state. Background status is lost on MCP restart; use workspace-run for durable tasks. Full output is saved locally; returned output is capped.| Parameter | Type | Description |
|---|---|---|
| cmdString * | string | Exact command for the remote default shell, e.g. pwd or ls -la. No interpreter prefix is required. Compound commands remain subject to command policy. |
| connectionName | string | Server name from list-servers. Required with multiple enabled servers; optional with one. |
| maxOutputBytes | number | Returned tail limit per stdout/stderr stream, default 65536 bytes. Full output is saved to disk; 0 returns no captured output. |
| reuseConnection | boolean | Default true. Set false to use a fresh SSH connection after a suspected stale connection. |
| stream | boolean | Default true: return immediately and poll command-status. False: wait for final output in this call. |
| timeout | number | Milliseconds to wait. SSH setup fails at this cap; channel opening also respects channelOpenTimeout. A command still running at the cap is NOT stopped: stream=false returns COMMAND_TIMEOUT naming the log that keeps receiving its output; stream=true keeps tracking it in command-status until it exits. Default 300000 for stream=true, 30000 otherwise. |
| vvv | boolean | Default false. Include bounded SSH debug output; fresh handshake logs also require reuseConnection=false. |
helpShow a tool overview, or full parameter docs and examples for the selected tool.| Parameter | Type | Description |
|---|---|---|
| tool | string | Tool name to get detailed help for. Omit to see an overview of all tools. |
list-serversList configured servers with enabled/connected state and jump hosts. Use the returned names as connectionName (server in workspace-run). verbose includes cached system status; refresh probes enabled servers for live status.| Parameter | Type | Description |
|---|---|---|
| refresh | boolean | Default false. Probe enabled servers for live system status; implies verbose. |
| verbose | boolean | Default false. Include cached system status; refresh=true implies verbose. |
plugin-activateCheck the installed version and current skill catalog, using read-only discovery when supported. Missing local registration or PATH is not proof the remote package is absent: confirm existing user-level root and runtime before installing. Discovery-enabled install reuses an existing package; explicit update runs maintenance. First read plugin-list setup and resolve user-specific choices unless delegated. Review workloads; Web update stops and restarts an already running local Web and reports verified version/network diagnostics. Installation is not initialization. Does not start schedulers.| Parameter | Type | Description |
|---|---|---|
| mode | string | |
| timeout | number | Installer timeout in milliseconds (default 300000, maximum 1800000). Set the client request timeout accordingly for slow dependencies. |
plugin-listDiscover enabled plugins, components, installation targets, sources and setup instructions before installation. Read component setup: ask for user-specific directories and initialization choices unless supplied or explicitly delegated. Does not install anything or open SSH connections.plugin-runInvoke a plugin CLI with an argv array, using its configured entry point and settings. Read plugin-skill first. SSH components use the selected SSH connection and its existing command policy. Transfer files with the existing SFTP tools; all supplied paths belong to the component host.| Parameter | Type | Description |
|---|---|---|
| args * | array | |
| timeout | number | Command timeout in milliseconds (default 30000, up to 1800000 for explicit long setup operations). Match the client request timeout. |
plugin-skillRead a skill from the installed plugin. Omit name for its catalog. Fetch again after updating the plugin. This returns instructions; it does not install a global client skill.| Parameter | Type | Description |
|---|---|---|
| name | string |
pullCopy a remote file, directory or file array from a remote server to the MCP host over SFTP (like adb pull). A directory is detected and its whole tree lands in localPath. A file pulled into a local directory keeps its remote name. Path policy is available through show-whitelist.| Parameter | Type | Description |
|---|---|---|
| localPath * | string | Local destination. For a file: a file path, or a directory (an existing one, or a path ending with / or \) that receives the file under its remote name. For a directory or an array: the destination directory. Missing parents are created. Any local path is allowed unless allowedLocalDirectories is configured. |
| remotePath * | any | Absolute remote file or directory: /home/me/x on Linux/macOS, C:\Users\me\x or C:/Users/me/x on Windows. An array (up to 1000 files) lands in the localPath directory as <basename>; duplicate basenames are rejected. |
pushCopy a local file, directory or file array from the MCP host to a remote server over SFTP (like adb push). A directory is detected and its whole tree lands in remotePath. A file pushed to an existing remote directory or a path ending with / keeps its name. Matching remote files are skipped by MD5. Shell scripts with CRLF are converted to LF. Path policy is available through show-whitelist.| Parameter | Type | Description |
|---|---|---|
| localPath * | any | Local file, directory, or file array (1-1000; each lands at remotePath/<basename>, duplicate targets are rejected). Any local path is allowed unless allowedLocalDirectories is configured. |
| remotePath * | string | Absolute remote destination: /home/me/x on Linux/macOS, C:\Users\me\x or C:/Users/me/x on Windows; subject to path policy. For a directory or an array this is the destination directory. |
| skipIfIdentical | boolean | Default true. Skip a file when the remote file has the same size and MD5 (computed on the server with md5sum, md5 -r or rclone md5sum) as the bytes that would be written, after the shell-script CRLF to LF fix. No remote hash command means upload. False forces upload. |
run-cancelCancel a workspace-run task after verifying its live process identity. Send TERM to the process group, then KILL after graceMs if needed. An identity mismatch marks it orphaned without signalling; repeated cancellation is safe.| Parameter | Type | Description |
|---|---|---|
| connectionName | string | Server name from list-servers. Required with multiple enabled servers; optional with one. |
| graceMs | number | Milliseconds after TERM before KILL, default 5000. |
| reuseConnection | boolean | Default true. Set false to use a fresh SSH connection after a suspected stale connection. |
| runId * | string | runId from workspace-run or run-retry. |
run-listList workspace-run tasks on the selected server, newest first. Reads remote state; corrupt or incomplete entries are omitted (query run-status for their errors). Default limit 50, maximum 200.| Parameter | Type | Description |
|---|---|---|
| connectionName | string | Server name from list-servers. Required with multiple enabled servers; optional with one. |
| limit | number | Default 50, maximum 200. |
| profile | string | Filter by saved profile name, or (ad-hoc) for inline tasks. |
| reuseConnection | boolean | Default true. Set false to use a fresh SSH connection after a suspected stale connection. |
| state | string | Filter by task state. |
run-logsRead stdout or stderr of a workspace-run task from the remote file. Continue with offset=nextOffset; hasMore means additional bytes are already available.| Parameter | Type | Description |
|---|---|---|
| connectionName | string | Server name from list-servers. Required with multiple enabled servers; optional with one. |
| maxOutputBytes | number | Maximum bytes to read, default 65536. |
| offset | number | Starting byte offset, default 0. Continue using the returned nextOffset. |
| reuseConnection | boolean | Default true. Set false to use a fresh SSH connection after a suspected stale connection. |
| runId * | string | runId from workspace-run or run-retry. |
| stream | string | Log to read: stdout (default) or stderr. |
run-retryStart a new workspace-run task using an earlier task's saved config snapshot. Returns a new runId with parentRunId; jobId equals the new runId. Missing snapshots return RETRY_SNAPSHOT_UNAVAILABLE; snapshots with secretEnv return SECRET_REQUIRED.| Parameter | Type | Description |
|---|---|---|
| connectionName | string | Server name from list-servers. Required with multiple enabled servers; optional with one. |
| push | boolean | Defaults to saved defaultPush, otherwise true. Inline without pushPaths saves false. True requires saved push sources; false reuses current remote code. |
| reuseConnection | boolean | Default true. Set false to use a fresh SSH connection after a suspected stale connection. |
| runId * | string | Original workspace-run/run-retry runId. |
run-statusRead a workspace-run task status from the remote state directory. Requires the original server to be reachable; works after MCP restart. Returns exitCode/signal when finished.| Parameter | Type | Description |
|---|---|---|
| connectionName | string | Server name from list-servers. Required with multiple enabled servers; optional with one. |
| reuseConnection | boolean | Default true. Set false to use a fresh SSH connection after a suspected stale connection. |
| runId * | string | runId from workspace-run or run-retry. |
sftp-listBrowse a remote directory over the existing SFTP connection. Returns a sorted, filtered page with file types, sizes and modification times. Respects remote path policy; no shell or remote Python required.sftp-manageRename or permanently delete remote entries over SFTP. Uses existing remote directory policy; no shell. Delete requires explicit confirmation; rename never overwrites. No automatic retry after an uncertain result.show-whitelistShow the full command policy (blacklist/whitelist), SFTP path policy and output log location. The legacy tool name does not imply whitelist mode. Use after a policy rejection or to inspect configured restrictions.| Parameter | Type | Description |
|---|---|---|
| connectionName | string | Server name from list-servers. Required with multiple enabled servers; optional with one. |
workspace-runStart a durable task on a Linux remote with bash, setsid and /proc. Pass remoteRoot, entrypoint and venv/executable inline, or use a saved profile. Optionally push code before launch and collect artifacts after completion. Returns after startup unless collect is requested. State survives SSH disconnects and MCP restarts; poll run-status/run-logs with the returned runId and server. jobId equals runId.| Parameter | Type | Description |
|---|---|---|
| args | array | Arguments passed individually with shell quoting; shell metacharacters are not expanded. |
| collect | array | Artifact globs relative to remoteRoot, default profile collect.paths. [] disables. Non-empty collect waits for completion and needs a local destination. |
| collectLocalDir | string | Inline: local output directory; required when collect is non-empty. |
| entrypoint * | string | Script/program path relative to remoteRoot; no absolute paths or .. segments. Profiles also enforce allowedEntrypoints. |
| env | object | Process environment. With a profile, overrides may only use keys declared in its env map; inline accepts valid environment keys. |
| executable | string | Inline: interpreter/program, e.g. python3, bash or /usr/bin/node; with venv, a binary under <venv>/bin. Require venv or executable. |
| profile | string | Optional runProfiles name from YAML. Omit to supply remoteRoot and venv/executable inline. |
| push | boolean | Upload before launch. Inline defaults to whether pushPaths is non-empty. Profiles use defaultPush, otherwise true; enabled push requires sources. False reuses remote code. |
| pushPaths | array | Inline: local files/directories to upload before launch. Enables push by default when non-empty. |
| remoteRoot | string | Inline: absolute remote working directory, containing entrypoint and collected artifacts. A profile overrides this field. |
| reuseConnection | boolean | Default true. Set false to use a fresh SSH connection after a suspected stale connection. |
| server | string | Same server names as connectionName in other tools. Defaults to the profile target, or the sole enabled server. |
| sync | string | Only none or omitted is supported. flush returns SYNC_NOT_AVAILABLE. |
| timeout | number | Collect wait limit in milliseconds; does not limit task runtime. Default profile timeout or 600000. |
| venv | string | Inline: absolute virtualenv path. Runs <venv>/bin/python, or <venv>/bin/<executable> if specified. |
Security checks
6 checks have not been run yet.