Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

ssh-mcp-server

by classfang/ssh-mcp-serverISC licenceAudited 12 Oct 2026 · source b4a6041f0078

npm @fangjunjie/ssh-mcp-server 1.10.0stdio★ 939
✕BLOCKGrade D · 69/100 · 12 Oct 2026 · b4a6041

Is it safe? No — BLOCK, grade D (69/100). It exposes 10 tools: 5 read, 4 write and 1 destructive. The audit recorded 12 findings (0 critical, 2 high, 1 medium, 9 low). Maintainer's description: 基于 SSH 的 MCP 服务 🧙♀️。已被MCP官方收录 🎉。 SSH MCP Server 🧙♀️. It has been included in the community MCP repository 🎉.

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “ssh-mcp-server (classfang/ssh-mcp-server)”. Retrieved 12 Oct 2026. https://modelsatlas.com/mcp/classfang/ssh-mcp-server

Why this is BLOCK. The audit found 0 critical and 2 high findings; the most severe is Filesystem / path at src/cli/command-line-parser.ts:618. Each finding is listed below with its file and line.

Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.

Trust audit

Audit 0.4.1 · full source read 12 Oct 2026

Trust score69/100✕BLOCK D
0 critical2 high1 medium9 low0 info

12 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemDeclared4 observations
  • NetworkNone observedNothing seen in the source
  • ShellDeclared3 observations
  • DependenciesNot pinnedSome ranges float
  • SecretsNone foundNo keys in source

Findings (12)

Sorted by severity

HIGHFilesystem / pathfs.credential_store · src/cli/command-line-parser.ts:618
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const defaultNames = ["id_rsa", "id_ecdsa", "id_ed25519", "id_xmss", "id_dsa"];
Why
touches a credential store
Fix
—
HIGHFilesystem / pathfs.credential_store · src/index.ts:11
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
--ssh-config-file <path>         Read host aliases from SSH config (default: ~/.ssh/config)
Why
touches a credential store
Fix
—
MEDIUMFilesystem / pathmcp.destructive_tools
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
job-kill
Why
1 tool(s) can delete or overwrite
Fix
prefer a read-only mode or scoped tokens; the page states the blast radius
LOWCode injectioncode.eval_exec · test/ssh-connection-manager.test.js:174
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
exec(command, optionsOrCallback, maybeCallback) {
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
LOWFilesystem / pathfs.credential_store · test/command-line-parser.test.js:35
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
privateKey: '~/.ssh/prod_key'
Why
touches a credential store
Fix
—
LOWFilesystem / pathfs.credential_store · test/command-line-parser.test.js:45
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
IdentityFile ~/.ssh/test_key
Why
touches a credential store
Fix
—
LOWFilesystem / pathfs.credential_store · test/command-line-parser.test.js:80
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
privateKey: '~/.ssh/key2'
Why
touches a credential store
Fix
—
LOWFilesystem / pathfs.traversal · src/config/server.ts:5
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
readFileSync(new URL("../../package.json", import.meta.url), "utf8"),
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · test/ssh-connection-manager.test.js:565
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
() => manager.validateRemotePath('/home/ops/inbox/../../../etc/passwd', 'dev'),
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · test/ssh-connection-manager.test.js:588
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
() => manager.validateRemotePath('/home/ops/inbox/../../../etc/passwd', 'dev'),
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · test/ssh-connection-manager.test.js:2684
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
for (const bad of ['', 'nope', 'job-abcdefgh-0000; rm -rf /', '../../etc']) {
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@modelcontextprotocol/sdk, socks, ssh2, zod, @types/node, @types/ssh2, typescript
Why
7 dependency range(s) float
Fix
pin exact versions or ship a lockfile

Tools it exposes

10 declared in source · 1 destructive

5 read4 write1 destructive

1 tool can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.

ToolWhat it doesRisk
job-killNo description in the sourcedestructive
execute-commandNo description in the sourcewrite
job-startNo description in the sourcewrite
uploadNo description in the sourcewrite
write-fileNo description in the sourcewrite
downloadNo description in the sourceread
job-listNo description in the sourceread
job-statusNo description in the sourceread
list-serversNo description in the sourceread
read-fileNo description in the sourceread

Safer alternatives

We could not match this server to a job, so we cannot suggest a like-for-like alternative. Read-only servers are the least-privilege place to start.

Audit history

  1. ✕BLOCK D 69 / 100

    First audit · b4a6041f0078

README badge

Badges show the current verdict, BLOCK included

ModelsAtlas: BLOCK DMODELSATLASBLOCK · D

A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.

Questions about ssh-mcp-server

What is the ssh-mcp-server MCP server?
基于 SSH 的 MCP 服务 🧙♀️。已被MCP官方收录 🎉。 SSH MCP Server 🧙♀️. It has been included in the community MCP repository 🎉.
What tools does ssh-mcp-server expose?
10 in total: 5 read-only, 4 that write, and 1 that can delete or overwrite (job-kill). Every one is listed on this page with its risk.
Is ssh-mcp-server safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (69/100) and found 2 critical or high issues in the source. Each one is listed on this page with the file and line it is on. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does ssh-mcp-server need?
It reads SSH_AUTH_SOCK and SSH_MCP_PASSPHRASE from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does ssh-mcp-server run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as @fangjunjie/ssh-mcp-server at 1.10.0.
How current is this page?
The grade is for one exact copy of the source (b4a6041f0078), read on 2026-10-12. The repository is watched and re-audited when it changes.
I already installed ssh-mcp-server. What should I do?
Remove it from your client's MCP configuration, then rotate any API keys and tokens that were in your environment while it ran.
Can the verdict change?
Yes. The repository is watched and re-audited when its source changes. If the findings are removed the verdict updates, and the history on this page shows it.

Sources

  • classfang/ssh-mcp-server on GitHub — the source we read, its licence, stars and activityObserved · 12 Oct 2026
  • ModelsAtlas trust audit — BLOCK verdict for commit b4a6041f0078Observed · 12 Oct 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.