Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SSH MCP Servercheck the disk space on my-server"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SSH MCP Server
A Model Context Protocol (MCP) server for executing commands and managing files on remote servers via SSH.
Optionally auto-discovers BinaryLane VPS servers so they're available immediately.
Features
Execute shell commands on remote servers
Read files and list directories remotely
Upload and download files via SFTP
Persistent connections saved to config file across restarts
BinaryLane auto-discovery of active servers
Per-connection SSH key configuration
Multiple connection sources with clear priority
Installation
Configuration
Claude Desktop / Claude Code
Add to your Claude configuration:
The BINARYLANE_API_TOKEN is optional — only needed for auto-discovery of BinaryLane servers.
Config File
On first run, a config file is created at ~/.config/ssh-mcp/connections.json:
The BinaryLane API token can be set here or as an environment variable.
Environment Variable (Legacy)
Still supported for backward compatibility:
Connection Options
Option | Required | Default | Description |
| Yes | - | Unique identifier for the connection |
| Yes | - | Server hostname or IP address |
| No | 22 | SSH port |
| Yes | - | SSH username |
| No | - | Path to SSH private key (supports |
| No | - | SSH password (if not using key auth) |
If neither privateKeyPath nor password is provided, the server will try default SSH key locations (~/.ssh/id_ed25519, ~/.ssh/id_rsa).
Connection Priority
When multiple sources define the same connection name:
Config file (highest) — manual connections from
~/.config/ssh-mcp/connections.jsonEnvironment variable —
SSH_CONNECTIONSBinaryLane auto-discovery (lowest) — active servers from the API
Available Tools
Connection Management
list_connections— List all available SSH connections with source infotest_connection— Test connectivity with latency reportingadd_connection— Add a connection (persisted to config file)remove_connection— Remove a manual connection from configrefresh_connections— Re-discover BinaryLane servers and reload all connectionsget_config— Show current configuration (tokens redacted)
Command Execution
run_command— Execute a shell command with configurable timeout
File Operations
read_remote_file— Read file contents via SFTPlist_remote_directory— List directory contents with metadataupload_file— Upload a local file to remote serverdownload_file— Download a remote file to local machine
Example Usage
Security Notes
SSH keys are read from your local filesystem and never transmitted or stored by the MCP
Passwords in config are only held in memory during operation
The config file should be protected with appropriate filesystem permissions
Commands are executed with the privileges of the SSH user
Consider using dedicated SSH keys with limited permissions for automation
Development
Project Structure
License
MIT