MCP server · Audited from source
ssh-mcp-server
by classfang/ssh-mcp-serverISC licenceAudited 12 Oct 2026 · source b4a6041f0078
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 🎉.
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
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
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
--ssh-config-file <path> Read host aliases from SSH config (default: ~/.ssh/config)
- Why
- touches a credential store
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
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
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
privateKey: '~/.ssh/prod_key'
- Why
- touches a credential store
- Fix
- —
LOWFilesystem / pathfs.credential_store · test/command-line-parser.test.js:45
IdentityFile ~/.ssh/test_key
- Why
- touches a credential store
- Fix
- —
LOWFilesystem / pathfs.credential_store · test/command-line-parser.test.js:80
privateKey: '~/.ssh/key2'
- Why
- touches a credential store
- Fix
- —
LOWFilesystem / pathfs.traversal · src/config/server.ts:5
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
() => 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
() => 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
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
@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
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.
| Tool | What it does | Risk |
|---|---|---|
job-kill | No description in the source | destructive |
execute-command | No description in the source | write |
job-start | No description in the source | write |
upload | No description in the source | write |
write-file | No description in the source | write |
download | No description in the source | read |
job-list | No description in the source | read |
job-status | No description in the source | read |
list-servers | No description in the source | read |
read-file | No description in the source | read |
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
- ✕BLOCK D 69 / 100
First audit ·
b4a6041f0078
README badge
Badges show the current verdict, BLOCK included
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?
What tools does ssh-mcp-server expose?
Is ssh-mcp-server safe to connect to an agent?
What credentials does ssh-mcp-server need?
How does ssh-mcp-server run?
How current is this page?
I already installed ssh-mcp-server. What should I do?
Can the verdict change?
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.
- What is the ssh-mcp-server MCP server?
- What tools does ssh-mcp-server expose?
- Is ssh-mcp-server safe to connect to an agent?