SSH MCP Server

It uses the OpenSSH client already on your machine: your keys, your ~/.ssh/config, your jump hosts, your agent forwarding. Nothing bundled, nothing to compile, no native bindings.

Local serverstdioMIT

What is the SSH MCP Server?

ssh-mcp-server is an MCP project maintained in the hypnosis/ssh-mcp-server repository. The maintainer describes its purpose as “It uses the OpenSSH client already on your machine: your keys, your ~/.ssh/config, your jump hosts, your agent forwarding. Nothing bundled, nothing to compile, no…”. Read the project documentation for the complete scope.

Installation

The documented npm package is @hypnosis/ssh-mcp-server. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares SSH_PROFILES_FILE. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
ssh_execRun one command or a batch, with the destructive-command guard and optional detach
ssh_file_readRead one or several files, text or binary
ssh_file_writeWrite files with atomic rename and optional SHA-256 verification
ssh_file_listList a directory, with optional glob and recursion
ssh_uploadUpload a file or directory over SSH, binary-safe with integrity checks; a directory replaces the target or merges into it
ssh_downloadDownload a file or directory over SSH, binary-safe with integrity checks
ssh_job_statusState of a background job: running, finished, or lost
ssh_job_outputRead accumulated output from a byte offset
ssh_job_listList jobs, sweeping finished ones past their TTL
ssh_job_killSignal a job's whole process group
ssh_log_tailLast N lines of one or several logs, glob supported; a container by name
ssh_log_searchPattern search across logs, or through a container's log
ssh_snapshotOne-shot health snapshot: services, resources, Docker, network, errors
ssh_monitorTransport control: stats, reload, test, list, close
ssh_audit_baselineSystem, disk, memory, network, ssh, services, Docker, firewall, updates
ssh_tls_checkCertificate expiry, SAN, chain and renewal hook for a domain
ssh_disk_breakdownWhere the disk went: du top-N, Docker, journald, caches
ssh_service_statussystemctl status plus a journalctl tail for one unit

How to install the SSH MCP Server

{
  "mcpServers": {
    "ssh": {
      "command": "npx",
      "args": [
        "-y",
        "@hypnosis/ssh-mcp-server"
      ],
      "env": {
        "SSH_PROFILES_FILE": "~/.claude/ssh-profiles.json"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
SSH_PROFILES_FILEDeclared in the maintainer’s client configuration.Yes