NikolaNddTesla/ssh-mcp-server
@nl4ever/sshmcp
Let AI manage your remote servers. A Model Context Protocol (MCP) server that gives AI assistants full SSH access — execute commands, transfer files, manage multiple servers simultaneously, all through natural conversation.
You: "Deploy the latest build to production server"
AI: connects → uploads build → restarts service → verifies statusFeatures
21 Tools — Connect, execute, upload, download, write files, and more
Connection Pool — Operate multiple servers simultaneously, each command tagged with
server_idZero-Token File Transfer — SFTP path-based transfer, file content never enters AI context
Directory Upload — Auto tar.gz compress → upload → remote decompress (fast for many small files)
Async Transfer + Progress — Background transfer for large files with real-time progress tracking
Quick Connect — Temporary connections without saving config, returns
host:portas temp IDSOCKS4/5 Proxy — Per-connection proxy support
Jump Host — SSH ProxyJump for bastion/gateway access
Multi-Auth — Password, private key, ssh-agent, keyboard-interactive (OTP/2FA)
Related MCP server: Simple SSH MCP Server
Quick Start
Install globally
npm install -g @nl4ever/sshmcpAdd to Claude Code
claude mcp add sshmcp sshmcpAdd to Claude Desktop
Edit claude_desktop_config.json:
{
"mcpServers": {
"sshmcp": {
"command": "npx",
"args": ["-y", "@nl4ever/sshmcp"]
}
}
}Add to Cursor
Go to Settings → MCP Servers → Add:
{
"sshmcp": {
"command": "npx",
"args": ["-y", "@nl4ever/sshmcp"]
}
}Tools Overview
Connection Management
Tool | Description |
| List all configured servers and active connections |
| View server config details |
| Add/update server config (password, key, agent, OTP) |
| Modify server config (only pass fields you want to change) |
| Remove a server |
| Rename a server ID |
| Manually connect (usually not needed, tools auto-connect) |
| Temporary connection, returns |
| Disconnect specific server or all connections |
| Test connectivity without affecting existing connections |
Command Execution
Tool | Description |
| Run shell commands on remote server (with configurable timeout) |
File Operations
Tool | Description |
| Read remote file content (with optional line range) |
| Write text content to remote file |
| Upload local file to remote (supports async mode) |
| Upload directory with auto compress → transfer → decompress |
| Download remote file to local (supports async mode) |
| Download directory with remote compress → transfer → local decompress |
| Check progress of async transfers (size/speed/ETA) |
Proxy Management
Tool | Description |
| List all SOCKS proxy presets |
| Add SOCKS4/5 proxy preset |
| Remove a proxy preset |
Connection Pool: Multi-Server Operations
All operation tools take a server_id parameter. The connection pool auto-manages connections — no manual connect/disconnect needed:
AI: execute(server_id="prod", command="nginx -s reload") ← auto-connects to prod
AI: execute(server_id="dev", command="tail -f /var/log/app.log") ← auto-connects to dev, prod stays
AI: execute(server_id="prod", command="curl localhost") ← reuses prod connectionFor temporary servers, use quick_connect which returns host:port as the ID:
AI: quick_connect(host="1.2.3.4", username="root", password="***")
→ "Connected: root@1.2.3.4:22, use server_id="1.2.3.4:22""
AI: execute(server_id="1.2.3.4:22", command="df -h")
AI: disconnect(server_id="1.2.3.4:22")Async Transfer (Large Files)
For large files, enable background transfer mode to avoid blocking:
AI: upload_file(server_id="prod", local_path="big.tar.gz", remote_path="/data/", async_transfer=true)
→ "Background upload started: tf_1"
AI: transfer_status("tf_1")
→ "🔄 Uploading: 638.2 MB / 1.2 GB (53.2%) — 12.4 MB/s, ETA 46s"
AI: transfer_status("tf_1")
→ "✅ Upload complete: 1.2 GB, 98s, 12.3 MB/s"Small files use synchronous mode by default — no config needed.
Connection Examples
Password authentication
AI: add_server(server_id="prod", name="Production", host="10.0.0.1", username="deploy", password="***")
AI: execute(server_id="prod", command="systemctl status nginx")Private key authentication
AI: add_server(server_id="aws", name="AWS EC2", host="ec2-xx.compute.amazonaws.com", username="ubuntu", private_key="~/.ssh/id_rsa")Quick connect (no config saved)
AI: quick_connect(host="192.168.1.100", username="root", password="***")
→ server_id="192.168.1.100:22"
AI: execute(server_id="192.168.1.100:22", command="df -h")
AI: disconnect(server_id="192.168.1.100:22")Via SOCKS5 proxy
AI: add_proxy(proxy_id="tunnel", name="SSH Tunnel", host="127.0.0.1", port=1080, type="5")
AI: add_server(server_id="internal", ..., proxy="tunnel")Via jump host
AI: add_server(server_id="bastion", name="Bastion", host="bastion.example.com", username="admin", private_key="~/.ssh/id_rsa")
AI: add_server(server_id="internal", name="Internal DB", host="10.0.0.5", username="dbadmin", password="***", jump_host="bastion")Config Location
Server and proxy configurations are stored in:
~/.ssh-mcp/config.jsonPasswords are stored in plaintext. For production use, prefer private key authentication.
Requirements
Node.js >= 18
An MCP-compatible client (Claude Code, Claude Desktop, Cursor, etc.)
Remote server with SSH access
License
MIT
Available Tools
21 toolsadd_proxyC
Add or update SOCKS proxy preset
Inputs: host (required), name (required), port (required), proxy_id (required), +3 more.
add_serverC
Add or update server configuration
Inputs: host (required), name (required), username (required), server_id (required), +9 more.
connectB
Manually connect to server (usually not needed, tools auto-connect)
Inputs: server_id (required).
delete_proxyC
Delete proxy preset
Inputs: proxy_id (required).
delete_serverC
Delete server configuration
Inputs: server_id (required).
disconnectC
Disconnect from server
Inputs: server_id.
download_directoryA
Download remote directory (remote compress → download → local extract. Use async for large dirs)
Inputs: server_id (required), local_path (required), remote_path (required), async_transfer.
download_fileB
Download file from remote server (use async mode for large files)
Inputs: server_id (required), remote_path (required), local_path, async_transfer.
executeC
Execute shell command on remote server
Inputs: command (required), server_id (required), timeout.
get_serverB
View server configuration details
Inputs: server_id (required).
list_proxiesA
List all configured SOCKS proxies
Inputs: no named parameters.
list_serversA
List all configured servers and active connections
Inputs: no named parameters.
quick_connectA
Temporary server connection (not saved). Returns host:port as server_id for subsequent operations
Inputs: host (required), username (required), port, password, +1 more.
read_fileA
Read remote file content (supports line range, suitable for logs and config files)
Inputs: server_id (required), remote_path (required), limit, offset.
rename_serverC
Rename server ID (alias)
Inputs: new_id (required), old_id (required).
test_connectionA
Test server connectivity (does not affect existing connections)
Inputs: server_id (required).
transfer_statusA
Check background transfer task progress (use with async_transfer=true)
Inputs: task_id.
update_serverA
Update server configuration (only pass fields to change, rest unchanged)
Inputs: server_id (required), host, name, port, +9 more.
upload_directoryA
Upload local directory to remote server (auto compress, transfer, and extract. Use async for large dirs)
Inputs: server_id (required), local_path (required), remote_path (required), skip_same, +1 more.
upload_fileA
Upload local file to remote server (path-based, zero token cost. Use async mode for large files)
Inputs: server_id (required), local_path (required), remote_path (required), skip_same, +1 more.
write_fileA
Write content to remote file (overwrite)
Inputs: content (required), server_id (required), remote_path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Each tool targets a distinct operation: file transfer, server configuration, proxy management, connection handling, or command execution. Even similar tools like connect and quick_connect have clear differences (persistent vs temporary). No two tools appear to do the same thing.
Tool names mostly follow a verb_noun pattern (upload_directory, add_server, list_proxies), but a few single-word verbs like connect, disconnect, and execute break the pattern slightly. The inconsistency is minor and does not cause confusion.
With 21 tools, the server spans multiple sub-domains (file transfer, server CRUD, proxy management, connection lifecycle), making the count feel heavy but not excessive. It is on the borderline for a typical MCP server scope.
The tool surface covers server CRUD, proxy management, file transfer (upload/download, file/directory), file read/write, and command execution. Notable gaps include remote file deletion and remote directory listing, which agents might need but can work around.
Maintenance
Related MCP Connectors
SSH client, server management and one remote MCP URL for your machines, with human approvals.
Termalin's hosted MCP server. Claude, ChatGPT or any MCP client runs commands, moves files over SFTP, queries databases and reads server metrics and monitoring alerts on your servers, keylessly through Termalin Connectors: no SSH key is handed over and no inbound port is opened. Per-host command policy and an audit log. Needs a termal.in Pro or Team account (new accounts start with a 14-day Pro trial).
Secure and manage MCP servers through the Speakeasy AI Control Plane from your agent.
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables remote SSH command execution and bidirectional file transfers through a standardized interface. It allows AI assistants to securely manage remote servers while keeping credentials isolated and applying command-level security controls.ISC
- AlicenseNot gradedqualityCmaintenanceAn MCP server that gives AI assistants full SSH/SFTP remote operations — session management, command execution, interactive shells, file transfers, port forwarding, and system diagnostics.2MIT
- AlicenseAqualityCmaintenanceMCP server for managing multiple SSH servers via AI assistants, offering tools for remote command execution, file operations, and system monitoring.1128 PyPI2MIT
- AlicenseNot gradedqualityCmaintenanceMCP server enabling AI assistants to securely operate remote servers via persistent SSH sessions, with tools for command execution, file transfer, directory listing, and system monitoring.4MIT