Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

SSH MCP Server

Latest version: v0.20.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
MCP server Transport: stdio Publisher: YawLabs
6 Stars
1 Forks
27 Versions
TypeScript Repo language

Scan summary

SSH MCP Server was last scanned on 23 Nov 2026 at version 0.20.0. Risk score 0 of 100. High-severity rules fired.

  • Releases: 27 versions; the latest 2 were published within 3 days (21–23 Nov 2026).
  • Findings: 1 rule fired in version 0.20.0 (1 high). The score describes this version only.
  • MCP server: Runs over stdio.

Versions

27 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.20.0 LATEST 23 Nov 2026 1 rule fired
0.19.0 21 Nov 2026 1 rule fired
0.18.6 16 Nov 2026 1 rule fired
0.18.5 16 Nov 2026 Not shown
0.18.4 16 Nov 2026 Not shown

Rules fired in 0.20.0: 1

Findings

1 High

Findings for v0.20.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Several suspicious behaviors form a known attack pattern

Several behaviors that are each common on their own, such as reading registry credentials, contacting a variable host or running shell commands, appear together in this package in a combination associated with attacks. The finding message lists the behaviors that were combined.

HIGH
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 0.20.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@yawlabs/ssh-mcp

One click adds this to your local Yaw MCP config so it's available in every Yaw Terminal session. Tested with Yaw MCP 1.1.13 or newer. Or install manually below.

npm version License: MIT

Make SSH work for AI tools. MCP server that manages your SSH environment, diagnoses what's broken, fixes it, and gives your agent remote access to anything.

Built and maintained by Yaw Labs.

The problem

AI CLI tools run in subprocesses where SSH is constantly broken. The agent tries to git pull and gets Permission denied (publickey). It tries to SSH into a server and the agent socket is stale. It tries to deploy and the host key changed because the instance was recreated. Every time, the AI has no idea what's wrong and spirals.

This happens across every situation that needs SSH keys:

  • Git — clone, pull, push, fetch, submodules, LFS
  • Package managers — npm install, pip install, go get, cargo, composer from private repos
  • Server access — SSH, SCP, SFTP, rsync
  • Tunneling — port forwarding to databases, SOCKS proxies
  • Deployment — Ansible, Terraform, Capistrano, deploy scripts
  • Cloud — AWS EC2, GCP, Azure, DigitalOcean, any VPS

ssh-mcp fixes this. It manages the SSH agent, loads keys, diagnoses failures with actionable fix commands, and provides remote operations — all as MCP tools your AI agent can call.

Quick start

Add to your MCP client config:

{
  "mcpServers": {
    "ssh": {
      "command": "npx",
      "args": ["-y", "@yawlabs/ssh-mcp@latest"]
    }
  }
}

On Windows wrap with cmd /c since Node 20+ can't spawn .cmd files directly:

{
  "mcpServers": {
    "ssh": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@yawlabs/ssh-mcp@latest"]
    }
  }
}

The @latest tag makes npx re-resolve against the registry on every spawn, so each MCP session uses the newest published version. Or install globally if you'd rather pin (no auto-update):

npm install -g @yawlabs/ssh-mcp
# then in client config: "command": "ssh-mcp"

Tools

SSH environment management

Tools that fix your local SSH setup so everything else — git, deploys, tunnels — stops breaking.

Tool Description
ssh_agent_ensure Ensure ssh-agent is running. Starts one if needed and sets env vars for the session.
ssh_key_list List all SSH keys in ~/.ssh/ with type, fingerprint, and agent status.
ssh_key_load Load a key into the running agent. Ensures the agent is started first.
ssh_config_lookup Resolve the effective SSH config for a host (hostname, user, port, proxy, identity files).
ssh_known_hosts_fix Remove a stale host key and re-scan. Fixes "host key verification failed" errors.
ssh_git_check Test Git-over-SSH auth to GitHub, GitLab, Bitbucket, etc.
ssh_test Quick connectivity test with timing and actionable error details.
Diagnostics
Tool Description
ssh_diagnose Full SSH environment diagnostic. Checks agent, keys, config, known_hosts, and connectivity. Returns exact fix commands for every failure.
Remote operations
Tool Description
ssh_exec Execute a command on a remote host. Returns up to three content blocks, status first: [exit code: N] (plus [signal: NAME] with code: -1 when the channel closed signal-only, and a flag when a stream hit the 10 MB cap), then [stderr], then [stdout]. Status leads so a proxy that cuts long results — Yaw MCP keeps about 100 KB by default — never drops the exit code. A non-zero exit or a signal is reported as a normal result, not a tool error (isError is not set): read the [exit code: N] block. Optional env param sets per-call environment variables (POSIX-safe prefix, works regardless of sshd's AcceptEnv). Subject to command policy if configured.
ssh_read_file Read a file from a remote host via SFTP (whole file up to 10 MB). Optional offset and length (bytes) read one page and return a [bytes A-B of SIZE; next offset: N] status block before the text — use them for a large file, or behind a proxy that caps results. A file that reports size 0 (/proc, a device, a FIFO) pages as of unknown size.
ssh_write_file Write content to a file on a remote host via SFTP.
ssh_upload Upload a local file to a remote host via SFTP.
ssh_download Download a file from a remote host to local filesystem.
ssh_ls List files in a directory on a remote host.
ssh_stat Get metadata for a file or directory (size, mode in octal, uid/gid, mtime/atime, path type (file / directory / symlink -> target kind)). Use instead of parsing ls -la.
ssh_mkdir Create a directory via SFTP. Set recursive: true for mkdir -p behavior. Unlike the other SFTP tools, the path may be relative — it resolves against the SFTP working directory (normally the remote user's home). ~ is not expanded; SFTP has no shell.
ssh_delete Delete a file or empty directory via SFTP. Auto-dispatches unlink vs rmdir based on the path's own type (lstat), so a symlink is always unlinked — never followed — including a dangling one or one pointing at a directory. Recursive directory delete is intentionally NOT supported -- use ssh_exec rm -rf if you need it.
Higher-level operations

Tools that wrap common patterns agents build with ssh_exec — faster and less error-prone.

Tool Description
ssh_multi_exec Run a command on multiple hosts in parallel. Returns results per host, and flags the whole call isError when any host errored or exited non-zero (unlike ssh_exec). Optional env param sets per-call environment variables (same POSIX-safe prefix as ssh_exec, applied once and sent to every host). Subject to command policy if configured (policy is checked once, against the env-prefixed command, before fan-out).
ssh_find Search for files remotely with structured parameters (name, type, size, depth, newer — match files modified more recently than a reference path).
ssh_tail Read the last N lines of a file, optionally filtered by a grep pattern.
ssh_service_status Check systemd service status (active, PID, uptime, description). Flags isError only when the unit could not be found / queried, not when an existing unit is intentionally stopped.
Auto-diagnostics

When any remote operation fails, ssh-mcp automatically runs diagnostics and includes the results in the error response. Your agent doesn't need to call ssh_diagnose separately — it gets told what's wrong and how to fix it right in the error message.

The diagnostics are matched to the kind of failure, so the real cause is not buried under checks that cannot explain it:

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @yawlabs/ssh-mcp
  • MCP Registry io.github.YawLabs/ssh-mcp

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Frame 2085668439 (1)
Group 1261154229