ssh-mcp-vn
v0.7.1SSH and SFTP MCP server: remote commands, directory listing and verified file transfers
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_ssh_servers
List configured SSH servers with sanitized auth details and operational warnings. Passwords are never returned. Call with refresh=true after servers were added, removed or changed in the inventory source.
| Parameter | Type | Description |
|---|---|---|
refresh | boolean | Optional boolean, default false. True reloads the server inventory from its source (SSH_URL_HOST API, SSH_CONFIG_FILE or env) before listing; false reuses the cached inventory, which a remote API refr… |
sftp_upload
Stream a staging file to a configured alias, independently SHA-256 verify and publish atomically.
| Parameter | Type | Description |
|---|---|---|
local_path * | string | Required POSIX-relative file path within MCP-host SFTP_STAGING_ROOT, not the caller device; upload source or download destination. No traversal, backslashes, links, devices or ADS. Parent directories… |
remote_path * | string | Required absolute remote file path within allowed_transfer_roots; empty roots allow canonical login home only. Existing parents and regular files only; no traversal, links/reparse points, devices or A… |
expected_sha256 | Optional expected source SHA-256, exactly 64 hexadecimal digits; default null. Both directions always independently verify source and temporary destination SHA-256, even when null. Example: 'ba7816bf8… | |
overwrite | boolean | Optional boolean allowing atomic replacement of an existing regular destination; default false uses atomic no-clobber publication. Ambiguous acknowledgement is never automatically retried. Example: fa… |
server_name | Optional configured server display name string, 1-200 characters, without path separators or control characters; default null selects the only configured server, required with multiple servers. Exampl… |
sftp_download
Download a regular remote file into MCP-host staging with verified atomic publication; never return file bytes.
| Parameter | Type | Description |
|---|---|---|
local_path * | string | Required POSIX-relative file path within MCP-host SFTP_STAGING_ROOT, not the caller device; upload source or download destination. No traversal, backslashes, links, devices or ADS. Parent directories… |
remote_path * | string | Required absolute remote file path within allowed_transfer_roots; empty roots allow canonical login home only. Existing parents and regular files only; no traversal, links/reparse points, devices or A… |
expected_sha256 | Optional expected source SHA-256, exactly 64 hexadecimal digits; default null. Both directions always independently verify source and temporary destination SHA-256, even when null. Example: 'ba7816bf8… | |
overwrite | boolean | Optional boolean allowing atomic replacement of an existing regular destination; default false uses atomic no-clobber publication. Ambiguous acknowledgement is never automatically retried. Example: fa… |
server_name | Optional configured server display name string, 1-200 characters, without path separators or control characters; default null selects the only configured server, required with multiple servers. Exampl… |
ssh_execute_command
Execute an arbitrary shell command on the remote machine via SSH and wait for it to finish. The call is synchronous and bounded by SSH_COMMAND_TIMEOUT (default 30 seconds). Uses the configured server named by 'server_name'.
| Parameter | Type | Description |
|---|---|---|
command * | string | Required shell command string, 1-100,000 characters, run by the remote login shell; no default. Waits for completion up to SSH_COMMAND_TIMEOUT seconds (default 30). Example: 'df -h /srv'. |
server_name | Optional configured server display name string, 1-200 characters, without path separators or control characters; default null selects the only configured server, required with multiple servers. Exampl… |
ssh_create_folder
Create a directory on the remote machine. Parents are created as needed (like mkdir -p). Uses the configured server named by 'server_name'.
| Parameter | Type | Description |
|---|---|---|
path * | string | Required remote directory path string to create; parents are created as needed like mkdir -p; no default. Example: '/srv/releases/2026-09'. |
server_name | Optional configured server display name string, 1-200 characters, without path separators or control characters; default null selects the only configured server, required with multiple servers. Exampl… |
sftp_list_directory
List the contents of a directory on the remote machine via SFTP. Uses the configured server named by 'server_name'.
| Parameter | Type | Description |
|---|---|---|
path * | string | Required remote directory path string to list; absolute or relative to the login home; no default. Example: '/srv/releases'. |
server_name | Optional configured server display name string, 1-200 characters, without path separators or control characters; default null selects the only configured server, required with multiple servers. Exampl… |