# sshmcp [Health: Active]

**Category:** 🖥️ Command Line  
**Repository:** https://github.com/NikolaNddTesla/ssh-mcp-server  
**GitHub Stars:** 11  
**npm Downloads (last month):** 794  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/sshmcp

## Description
SSH server management with zero-token SFTP file transfer and SOCKS proxy support

## Tools
Capabilities this server exposes over MCP:

- **list_servers** — List all configured servers and active connections
- **get_server** — View server configuration details
- **connect** — Manually connect to server (usually not needed, tools auto-connect)
- **quick_connect** — Temporary server connection (not saved). Returns host:port as server_id for subsequent operations
- **disconnect** — Disconnect from server
- **test_connection** — Test server connectivity (does not affect existing connections)
- **execute** — Execute shell command on remote server
- **write_file** — Write content to remote file (overwrite)
- **read_file** — Read remote file content (supports line range, suitable for logs and config files)
- **upload_file** — Upload local file to remote server (path-based, zero token cost. Use async mode for large files)
- **upload_directory** — Upload local directory to remote server (auto compress, transfer, and extract. Use async for large dirs)
- **download_file** — Download file from remote server (use async mode for large files)
- **download_directory** — Download remote directory (remote compress → download → local extract. Use async for large dirs)
- **transfer_status** — Check background transfer task progress (use with async_transfer=true)
- **add_server** — Add or update server configuration
- **update_server** — Update server configuration (only pass fields to change, rest unchanged)
- **delete_server** — Delete server configuration
- **rename_server** — Rename server ID (alias)
- **list_proxies** — List all configured SOCKS proxies
- **add_proxy** — Add or update SOCKS proxy preset
- **delete_proxy** — Delete proxy preset

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "sshmcp": {
    "command": "npx",
    "args": ["-y","@nl4ever/sshmcp"]
  }
}
```

## Documentation

## What the sshmcp MCP server does

The sshmcp MCP server exposes SSH administration and file-transfer operations through MCP. An MCP-compatible assistant can maintain named server configurations, connect to multiple hosts, run shell commands, inspect or modify remote files, and transfer files or directories.

Server configurations can use passwords, private keys, ssh-agent authentication, or keyboard-interactive authentication such as OTP or 2FA. A temporary connection can be created with `quick_connect`; its returned `host:port` value acts as the `server_id` until the connection is disconnected.

## How it works

Operation tools identify their target with `server_id`. The connection pool opens connections on demand and reuses them, so a tool call normally does not require a separate manual `connect` step. Multiple servers can remain active at the same time. `test_connection` checks reachability without changing an existing connection, while `disconnect` can close one connection or all active connections.

File transfers use SFTP paths rather than passing file contents through the model. Individual files can be uploaded or downloaded synchronously, or started in the background with asynchronous mode. Directory operations package the source directory before transfer and unpack it at the destination. `transfer_status` reports progress for background jobs, including transferred size, speed, and estimated time remaining.

Connections may use a configured SOCKS4 or SOCKS5 proxy. A server can also specify another configured server as a jump host for ProxyJump-style access to hosts behind a bastion.

## Setup and configuration

Install the package globally with npm:

```bash
npm install -g @nl4ever/sshmcp
```

The package requires Node.js 18 or newer and an MCP-compatible client. Claude Code can register it with `claude mcp add sshmcp sshmcp`. Claude Desktop and Cursor can launch it with `npx -y @nl4ever/sshmcp` in their MCP configuration.

Server and proxy settings are stored in `~/.ssh-mcp/config.json`. The configuration includes credentials supplied through server-management tools.

## Tools and capabilities

The sshmcp MCP server provides tools in four groups:

- **Server connections:** list, inspect, add or update, delete, rename, connect, temporarily connect, disconnect, and test configured servers.
- **Remote commands:** run shell commands with a configurable timeout.
- **Files:** read remote text, optionally by line range; write text; upload or download files; transfer directories; and monitor asynchronous transfer jobs.
- **Proxies:** list, add, and delete SOCKS4 or SOCKS5 proxy presets.

Use `upload_directory` or `download_directory` when transferring many files, since these operations compress the directory for transport and decompress it at the destination. Use asynchronous file operations when a transfer should continue in the background instead of blocking the tool call.

## Limitations and notes

The sshmcp MCP server requires network access to an SSH-capable remote host and valid authentication details. It is an interface for SSH operations, so command behavior and permissions depend on the remote account and host.

Credentials must be handled carefully because saved passwords are plaintext in the configuration file. The material specifically recommends private-key authentication for production use.

_Full upstream README: https://allmcps.com/mcp/sshmcp/readme_

