Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
DEPRECATED — succeeded by SSH-Connect (Rust rewrite): https://github.com/mixelpixx/SSH-Connect
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Fetched from the repository for this visit.
A Model Context Protocol (MCP) server that provides comprehensive SSH and serial console access to remote servers and network devices. Enables AI tools like Claude Desktop to securely manage Linux servers, network switches, and infrastructure devices through both network SSH connections and direct USB-to-Serial console access.
This tool has been extensively tested in production network environments:
The tool has proven itself reliable enough for production network management tasks without requiring a separate lab environment for testing.
Clone the repository:
git clone https://github.com/yourusername/mcp-ssh-server.git
cd mcp-ssh-server
Install dependencies:
npm install
Build the project:
npm run build
Install globally (optional):
npm install -g .
{
"mcpServers": {
"ssh-server": {
"command": "node",
"args": ["/path/to/mcp-ssh-server/build/index.js"],
"env": {
"NODE_NO_WARNINGS": "1"
}
}
}
}
Important: Replace /path/to/mcp-ssh-server/build/index.js with the absolute path to your built index.js file.
Create or edit .vscode/mcp.json in your workspace:
{
"mcpServers": {
"ssh-server": {
"command": "node",
"args": ["/path/to/mcp-ssh-server/build/index.js"]
}
}
}
Establish an SSH connection to a remote server.
Parameters:
host (required) - Hostname or IP addressusername (required) - SSH usernamepassword (optional) - SSH passwordprivateKeyPath (optional) - Path to private key filepassphrase (optional) - Passphrase for private keyport (optional) - SSH port (default: 22)connectionId (optional) - Unique identifier for this connectionReturns:
success - Boolean indicating successconnectionId - ID to use for subsequent commandsmessage - Connection status messageExample:
Connect to my server at example.com using username 'admin' and password authentication
Execute a command on the remote server.
Parameters:
connectionId (required) - ID from ssh_connectcommand (required) - Command to executecwd (optional) - Working directorytimeout (optional) - Command timeout in milliseconds (default: 60000)Returns:
code - Exit codesignal - Signal that terminated the process (if any)stdout - Standard outputstderr - Standard errorExample:
Run "ls -la /var/www/html" on the server
Upload a file to the remote server.
Parameters:
connectionId (required) - ID from ssh_connectlocalPath (required) - Local file pathremotePath (required) - Remote destination pathReturns:
success - Boolean indicating successmessage - Upload status messageDownload a file from the remote server.
Parameters:
connectionId (required) - ID from ssh_connectremotePath (required) - Remote file pathlocalPath (required) - Local destination pathReturns:
success - Boolean indicating successmessage - Download status messageList files in a directory on the remote server.
Parameters:
connectionId (required) - ID from ssh_connectremotePath (required) - Directory path to listReturns:
files - Array of file objects with properties:
filename - File nameisDirectory - Boolean indicating if it's a directorysize - File sizelastModified - Last modification timeClose an SSH connection.
Parameters:
connectionId (required) - ID from ssh_connectReturns:
success - Boolean indicating successmessage - Disconnection status messageConnect to your server:
Please connect to my VPS at example.com using username 'admin' and my SSH key at ~/.ssh/id_rsa
Check server status:
Run the command "systemctl status nginx" to check web server status
Upload a website file:
Upload my local file ~/websites/index.html to /var/www/html/index.html on the server
List website files:
Show me all files in the /var/www/html directory
Download a backup:
Download the file /var/backups/website-backup.tar.gz to my local Downloads folder
Disconnect when done:
Please disconnect from the SSH session
Discover and identify network switch device type and capabilities.
Parameters:
connectionId (required) - ID of an active SSH connectionenablePassword (optional) - Enable password for privileged modeShow interface status and configuration on network switch.
Parameters:
connectionId (required) - ID of an active SSH connectioninterfaceType (optional) - Type of interfaces to showenablePassword (optional) - Enable password for privileged modeShow VLAN configuration and status on network switch.
Parameters:
connectionId (required) - ID of an active SSH connectionenablePassword (optional) - Enable password for privileged modeBackup switch configuration (running or startup config).
Parameters:
connectionId (required) - ID of an active SSH connectionconfigType (optional) - Type of configuration to backupenablePassword (optional) - Enable password for privileged modeRun network diagnostics from switch (ping, traceroute).
Parameters:
connectionId (required) - ID of an active SSH connectiontarget (required) - Target IP address or hostnamediagnosticType (optional) - Type of diagnostic to runenablePassword (optional) - Enable password for privileged modeShow MAC address table on network switch.
Parameters:
connectionId (required) - ID of an active SSH connectionvlan (optional) - Specific VLAN to show MAC addresses forenablePassword (optional) - Enable password for privileged modeThese tools enable direct console access to network devices using USB-to-Serial adapters. This is essential for initial device setup, emergency access when network connectivity is lost, or when SSH has not yet been configured.
Supported USB-to-Serial Adapters:
All adapters work with standard Cisco/Aruba console cables (RJ45 to DB9 or direct USB).
List available USB-to-Serial ports on the system. Automatically detects FTDI, Prolific, Silicon Labs, and CH340 adapters.
Example:
Show me all available serial ports
Connect to a network device via USB-to-Serial console port.
Parameters:
port (required) - Serial port name (e.g., COM3 on Windows, /dev/ttyUSB0 on Linux)baudRate (optional) - Baud rate (default: 9600 for most switches)connectionId (optional) - Unique identifier for connectiondeviceType (optional) - Device type for optimal settings (cisco, aruba, generic)Example:
Connect to my Cisco switch console on COM3
Send a command to network device via serial connection.
Parameters:
connectionId (required) - ID of an active serial connectioncommand (required) - Command to send to devicewaitForResponse (optional) - Wait for device responsetimeout (optional) - Response timeout in millisecondsExample:
Send "show version" command to the console connection
Discover device type and capabilities via serial connection. Automatically identifies Cisco IOS, Cisco IOS-XE, Aruba, and generic devices.
Parameters:
connectionId (required) - ID of an active serial connectionExample:
Discover what type of device is connected
List all active serial connections.
Disconnect from a serial port.
Parameters:
connectionId (required) - ID of an active serial connectionThe following Ubuntu server management tools are available:
These tools automate the process of configuring SSH access on network switches via console connection, enabling a smooth transition from console-only to SSH-based management.
Generate SSH configuration template for a network switch based on device type and security level.
Parameters:
deviceType (optional) - Device type: cisco, aruba (auto-detected if not specified)securityLevel (optional) - Security level: basic, secure (default: basic)hostname (required) - Switch hostnameip_address (required) - Management IP addresssubnet_mask (optional) - Subnet mask (default: 255.255.255.0)gateway (required) - Default gatewayusername (required) - SSH usernamepassword (required) - SSH passwordApply SSH configuration to a switch via an active serial console connection.
Parameters:
serialConnectionId (required) - ID of an active serial connectiondeviceType (optional) - Device type: cisco, arubahostname (required) - Switch hostnameip_address (required) - Management IP addressgateway (required) - Default gatewayusername (required) - SSH usernamepassword (required) - SSH passwordconfirmApply (required) - Must be true to proceedCheck the current SSH configuration status on a switch via serial connection.
Parameters:
serialConnectionId (required) - ID of an active serial connectionTest SSH connectivity to a newly configured switch.
Parameters:
ip_address (required) - Switch IP addressusername (required) - SSH usernamepassword (required) - SSH passwordport (optional) - SSH port (default: 22)Complete end-to-end SSH setup workflow via console connection. This automates the entire process of configuring SSH on a switch.
Parameters:
serialConnectionId (required) - ID of an active serial connectionhostname (required) - Switch hostnameip_address (required) - Management IP addressgateway (required) - Default gatewayusername (required) - SSH usernamepassword (required) - SSH passwordconfirmSetup (required) - Must be true to proceedComplete automated workflow to transition a network switch from console-only access to SSH management. This is the recommended tool for initial switch setup.
Parameters:
port (required) - Serial port (e.g., COM3, /dev/ttyUSB0)hostname (required) - Switch hostnameip_address (required) - Management IP addressgateway (required) - Default gatewayusername (required) - SSH usernamepassword (required) - SSH passworddeviceType (optional) - Device type: cisco, aruba (auto-detected if not specified)confirmTransition (required) - Must be true to proceedExample:
Set up SSH on my Cisco switch connected to COM3 with hostname "switch-core-01", IP 192.168.1.10, gateway 192.168.1.1, username "admin"
Quick check of SSH status on a switch via serial connection without making any changes.
Parameters:
port (required) - Serial portbaudRate (optional) - Baud rate (default: 9600)enablePassword (optional) - Enable password if requiredThese tools provide comprehensive firmware management capabilities for network switches, including version checking, firmware upload, verification, installation, and rollback preparation.
Check the current firmware version and system information on a network switch.
Parameters:
connectionId (required) - ID of an active SSH connectionenablePassword (optional) - Enable password for privileged modeReturns:
Verify available storage space on the switch before firmware upload.
Parameters:
connectionId (required) - ID of an active SSH connectionenablePassword (optional) - Enable password for privileged modeReturns:
Upload a firmware file to the network switch via SFTP. Supports large firmware files with 30-minute timeout.
Parameters:
connectionId (required) - ID of an active SSH connectionlocalFirmwarePath (required) - Local path to firmware fileremotePath (optional) - Remote path on switch (default: flash:/filename)enablePassword (optional) - Enable password for privileged modeExample:
Upload firmware file ~/downloads/c2960-lanbasek9-mz.150-2.SE11.bin to the switch
Verify the integrity of an uploaded firmware file on the switch using MD5 checksums.
Parameters:
connectionId (required) - ID of an active SSH connectionfirmwarePath (required) - Path to firmware file on switchenablePassword (optional) - Enable password for privileged modeReturns:
Install firmware on the switch and optionally reboot to apply the update.
Parameters:
connectionId (required) - ID of an active SSH connectionfirmwarePath (required) - Path to firmware file on switchenablePassword (optional) - Enable password for privileged modeautoReboot (optional) - Automatically reboot after installation (default: false)Important: This modifies the boot configuration. Test in a lab environment first!
Example:
Install firmware flash:/c2960-lanbasek9-mz.150-2.SE11.bin and reboot the switch
Prepare information needed for firmware rollback in case of issues with new firmware.
Parameters:
connectionId (required) - ID of an active SSH connectionenablePassword (optional) - Enable password for privileged modeReturns:
USB-to-Serial Adapters:
Console Cables:
Windows:
macOS:
Linux:
dmesg after plugging in adapter to verify detection.env file for sensitive informationnode --versionnpm installnpm run buildTo modify or extend the server:
src/npm run buildFor quick testing during development:
npm run dev
Contributions for additional tools and features are welcome. Please feel free to submit pull requests or open issues for enhancements and bug fixes.
MIT License
Loading reviews...
GitHub checked 111h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.