What is SSH MCP Server?
SSH MCP Server is a local Model Context Protocol (MCP) server that exposes SSH control for Linux and Windows systems, enabling LLMs and other MCP clients to execute shell commands securely via SSH. It provides tools for managing SSH connections and running commands, with support for password and key-based authentication.
How to use SSH MCP Server?
Clone the repository, create a machines.json file specifying remote machines with SSH credentials (password or key path), then configure your MCP client (e.g., Claude Desktop) to launch the server with the MACHINES_PATH environment variable pointing to that config file.
Key features of SSH MCP Server
- Execute shell commands on remote Linux and Windows systems via SSH
- Secure authentication with password or SSH key
- Read-only mode via
secure_execute_command with built-in security checks
- Manage multiple concurrent SSH sessions tracked by
connection_id
- MCP‑compliant, built with TypeScript and the official MCP SDK
Use cases of SSH MCP Server
- Have an LLM run system diagnostics (e.g.,
uptime, df -h) on remote servers
- Automate deployment or maintenance tasks by securely executing commands
- Provide an AI assistant with controlled shell access for troubleshooting
- Integrate remote command execution into MCP‑compatible applications like Claude Desktop
Comments