MCP.Market

SSH — policy-gated remote access MCP server

by tufantunc·io.github.tufantunc/ssh-mcp·v2.22.2·776 stars

Policy-gated, audited SSH for Linux and Windows hosts: roles, approvals, and an audit log.

B83/100grade B
What users say
No reviews yet
Be the first
Safety scan
B83/100

not scanned yet

Adoption
Established

776 stars12k downloads/wk

Reviews

Write one

Nobody has reviewed SSH — policy-gated remote access yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

SSH — policy-gated remote access tools

No tool declarations could be read from the package source. They show once the server is installed.

Not scanned yet. New listings are scanned within a day or two of arriving.

How SSH — policy-gated remote access compares

Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
83/100
higher than 65% of 48,255 servers
GitHub stars
776
more than 95% of 28,688 servers
Downloads a week
11,632
more than 95% of 12,191 servers with a package

Release history: 15 versions in the registry since 2026-09-17, latest 2026-11-03, typically one every 2 days.

Install SSH — policy-gated remote access in Claude Code, Cursor or VS Code

Runs npx -y ssh-mcp on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add ssh-mcp -- npx -y ssh-mcp
Add to Cursor

What the publisher says

From the SSH — policy-gated remote access repository's README, as published. We do not edit it. Read it on GitHub

SSH MCP Server v2

SSH MCP Server is a security-first Model Context Protocol server that gives LLM agents controlled SSH access to remote hosts — with command classification, policy-based authorization, human-in-the-loop approval, and full audit logging.

The risk this server exists to manage. Giving an LLM shell access on a remote host puts private data, untrusted input and network egress in one place — Simon Willison's "lethal trifecta". Prompt injection has no general fix, so ssh-mcp assumes any command may be attacker-influenced: it classifies before executing, authorizes against a role × host-group matrix, gates destructive work behind approval, and records the decision either way. That narrows the blast radius; it does not remove the risk. Two things stay yours: never point it at a root account, and never set auto approval on a production profile. SECURITY.md has the full threat model.

Quick Start

1. Install

npm install -g ssh-mcp

2. Configure

Without a config the server still starts, so a client or directory can complete the MCP handshake and read tools/list — but every tool call is refused until you configure it, with a message naming the path below. Nothing runs on a host until this step is done.

Create the config file at the path for your platform:

[defaults]
defaultProfile = "dev"
approvalMode = "ask-destructive"

[[profiles]]
name = "dev"
host = "192.168.1.100"
port = 22
user = "deploy"           # NOT root!
auth = "key"
keyRef = "~/.ssh/id_ed25519"
role = "admin"
approvalPolicy = "auto"    # dev is permissive
chmod 700 ~/.config/ssh-mcp && chmod 600 ~/.config/ssh-mcp/config.toml

The config decides which hosts, roles and policy rules this server honours, so it checks that nobody but you can read it — and treats the two platforms differently, because the question has a much clearer answer on one of them.

Linux and macOS: enforced. The mode check above, on the file and the directory — which is why chmod 700 is in that command, since mkdir -p under the default umask leaves the directory 0755. The server refuses to start otherwise. "Only the owner" is unambiguous here and chmod is a one-line fix.

Windows: split by what the ACL actually allows. There are no mode bits, so the ACL is read instead — and read exposure and write exposure are not treated alike, because Windows is much clearer about one of them than the other.

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

SSH — policy-gated remote access: common questions

Is SSH — policy-gated remote access MCP server safe?
Mostly: it is graded B (83/100). Read the SSH — policy-gated remote access safety report
How do I install SSH — policy-gated remote access?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does SSH — policy-gated remote access need an API key?
Yes. The registry entry asks for SSH_MCP_PASSWORD, SSH_MCP_PASSPHRASE, SSH_MCP_SUDO_PASSWORD.
Is SSH — policy-gated remote access maintained?
The last commit was 34 days ago (2026-10-01). The latest release is v2.22.2.
What can I use instead of SSH — policy-gated remote access?
Servers from other publishers that do the same job: SSH Manager MCP server.
How does SSH — policy-gated remote access compare with other MCP servers?
safety score 83/100 (higher than 65% of 48,255 servers); github stars 776 (more than 95% of 28,688 servers); downloads a week 11,632 (more than 95% of 12,191 servers with a package). Full comparison.

Alternatives to SSH — policy-gated remote access

Same job from other publishers: the closest match first, then the best rated.

  • SSH Manager
    SSH for AI agents: commands, files, backups and health, with approval, a vault and an audit trail
    A