ai-ssh-toolkit
MCP server for AI-driven SSH sessions with pluggable credential backends
Versions
0.3.0latest0.2.30.2.20.1.0Tools 28
ssh_execute Execute a command on a remote host via an interactive SSH PTY session.
ssh_multi_execute Execute SSH commands across multiple hosts in parallel.
credential_get Retrieve credential metadata (username, availability) for a given ref. Never returns passwords.
credential_list_backends List all registered credential backends and their availability in the current environment.
ssh_check_host Verify SSH host reachability via TCP connect, SSH banner probe (default), or full auth check.
ssh_session_open Open a persistent interactive SSH shell session. Returns a session_id for use with ssh_session_execute and ssh_session_close.
ssh_session_execute Execute a command inside an open persistent SSH session.
ssh_session_close Close a persistent SSH session opened with ssh_session_open.
credential_diagnose Diagnose credential map resolution for a given host. Shows which rule matched and whether the backend is available.
credential_map_reload Reload the credential map configuration from disk.
ssh_forward_local Start a local SSH port forward (-L). Binds a local port and tunnels traffic to a remote host:port through the SSH server. Uses key/agent auth (BatchMode).
ssh_stream_read Read output chunks from a streaming SSH command started with stream=true.
ssh_upload Upload a local file to a remote host via SFTP.
ssh_forward_remote Start a remote SSH port forward (-R). Binds a port on the SSH server and tunnels traffic back to a local host:port. Uses key/agent auth (BatchMode).
ssh_stream_cancel Cancel a running streaming SSH command.
ssh_download Download a remote file to the local filesystem via SFTP.
ssh_forward_dynamic Start a dynamic SOCKS proxy SSH forward (-D). Binds a local port as a SOCKS proxy through the SSH server. Uses key/agent auth (BatchMode).
ssh_forward_close Close an active SSH port forward.
ssh_forward_list List all active SSH port forwards with their status and configuration.
ssh_stream_list List all active and recent streaming SSH commands.
ssh_sftp_list List remote directory contents via SFTP.
ssh_list_hosts List SSH host aliases from ~/.ssh/config (including Include directives). Returns a sanitized inventory with alias, hostname, user, port, and source file.
version_check Check installed ai-ssh-toolkit version against latest published npm version.
ssh_audit_log_read Read the last N audit log records from the file destination (if configured via AI_SSH_AUDIT_LOG).
ssh_host_info Retrieve SSH host information (banner, OS hint, host key fingerprints) without authentication.
ssh_host_key_trust Pin or re-pin a host key fingerprint. If fingerprint is omitted, fetches live keys from the host.
ssh_host_key_list List all pinned host key fingerprints.
ssh_host_key_remove Remove a pinned host key, forgetting a previously trusted host.
Permissions 4
network medium filesystem low shell high env_vars low