Other / SSH — policy-gated remote access
SSH — policy-gated remote access
io.github.tufantunc/ssh-mcp · v2.25.1
Policy-gated, audited SSH for Linux and Windows hosts: roles, approvals, and an audit log.
Description supplied by the publisher in the MCP Registry. We have not tested this server.
Ranks #3 of 1,679 Other servers on Socketlist by score, with 872 GitHub stars and a last code push 18d ago.
Install
npx -y ssh-mcpAssembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.
Connect SSH — policy-gated remote access to Claude Code, Cursor or VS Code
Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.
Claude Code
Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.
claude mcp add --env SSH_MCP_PASSWORD=<ssh_mcp_password> --env SSH_MCP_PASSPHRASE=<ssh_mcp_passphrase> --env SSH_MCP_SUDO_PASSWORD=<ssh_mcp_sudo_password> --transport stdio ssh-policy-gated-remote-access -- npx -y ssh-mcp.mcp.json (Claude Code project scope, VS Code with Copilot)
Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.
{
"mcpServers": {
"ssh-policy-gated-remote-access": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"ssh-mcp"
],
"env": {
"SSH_MCP_PASSWORD": "${SSH_MCP_PASSWORD}",
"SSH_MCP_PASSPHRASE": "${SSH_MCP_PASSPHRASE}",
"SSH_MCP_SUDO_PASSWORD": "${SSH_MCP_SUDO_PASSWORD}"
}
}
}
}Cursor
Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.
{
"mcpServers": {
"ssh-policy-gated-remote-access": {
"command": "npx",
"args": [
"-y",
"ssh-mcp"
],
"env": {
"SSH_MCP_PASSWORD": "${env:SSH_MCP_PASSWORD}",
"SSH_MCP_PASSPHRASE": "${env:SSH_MCP_PASSPHRASE}",
"SSH_MCP_SUDO_PASSWORD": "${env:SSH_MCP_SUDO_PASSWORD}"
}
}
}
} Configuration the publisher declares
| Environment variable | Required | Secret | Publisher's note |
|---|---|---|---|
SSH_MCP_PASSWORD | No | Yes | Password for the configured profile; a per-profile SSH_MCP_<PROFILE>_PASSWORD takes precedence. Credentials are never accepted as CLI arguments. |
SSH_MCP_KEY | No | No | Path to the private key file to authenticate with — the path, not the key material. A per-profile SSH_MCP_<PROFILE>_KEY takes precedence. |
SSH_MCP_PASSPHRASE | No | Yes | Passphrase for an encrypted private key. |
SSH_MCP_SUDO_PASSWORD | No | Yes | Password the sudo tool escalates with, when the policy in force allows the privileged class. |
"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.
Allowlist entry
If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.
{
"allowedMcpServers": [
{
"serverCommand": [
"npx",
"-y",
"ssh-mcp"
]
}
]
} How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.
Signals
| GitHub stars | 872 |
| npm weekly downloads | 5,023 |
| Last push | 18d ago |
| Licence | MIT |
| Open issues | 3 |
| SECURITY.md | Yes |
| Language | TypeScript |
| Latest version published | 2026-11-11 |
Signals captured from GitHub, npm and the official MCP Registry on November 11, 2026. See the scoring method.
Similar servers compare all →
applemusic-mcp
Score 85Apple Music MCP server: playlists, library, catalog, playback and Up Next, on Mac/Windows/Linux.
DeliverKit
Score 80Plan and verify multi-ecosystem packaging (Linux, Windows, macOS, HarmonyOS) for AI agents.
Marrow AI: Control Layer for AI Agents
Score 79Approval gate and audit trail for AI agent actions: policy check first, proof after. Any MCP client.
Five MCP servers worth your time, every week
The Plug Weekly is a free email picked from these scores. About a 3-minute read. Unsubscribe any time.