Realssh MCP logo

Realssh MCP

Runs remote SSH commands through the host system's ssh binary, with connectivity checks and configurable timeouts.

Install Realssh MCP

Run the project’s own setup commands, in order.

Setup steps from the project

realssh-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install -g @danielecr/realssh-mcp
    
  2. 2. Install
    git clone https://github.com/danielecr/realssh-mcp.git
    
  3. 3. Install
    cd realssh-mcp
    
  4. 4. Install
    npm install
    
  5. 5. Run
    npm run build
    

Overview

realssh-mcp MCP server exposes remote command execution and SSH connectivity checks through MCP. It launches the operating system's `ssh` binary, so existing agents, SSH config files, identity files, proxy settings, and jump hosts remain available. Use it when an MCP client needs to inspect or administer hosts reachable through the local SSH setup. Commands return standard output, standard error, and the process exit code, with a configurable execution timeout.

Use cases

  • Run diagnostic commands on remote hosts
  • Check SSH reachability before executing work
  • Use SSH aliases and jump hosts from local configuration
  • Inspect command output and exit status through MCP

Key features

  • Remote command execution over the system ssh binary
  • SSH connectivity testing
  • Support for ssh-agent and ~/.ssh/config
  • ProxyCommand and jump-host support
  • Configurable command timeouts
  • stdout, stderr, and exit-code results

Tools2

What Realssh MCP lets your agent do. Expand a tool for its parameters.

Self-reported~36 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 68d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit7mo agoMost recent push to the default branch.
Tools exposed2Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Realssh MCP works

What realssh-mcp MCP server does

The realssh-mcp MCP server gives an MCP client two SSH-based tools. ssh_execute runs a supplied command on a remote host, while ssh_test checks whether an SSH connection works by executing a simple echo ok command and validating the response.

The server is intended for environments where SSH access is already configured on the machine running the MCP process. It does not maintain a separate host database or implement SSH cryptography in Node.js. Instead, it delegates connection handling to the operating system's ssh executable.

How it works

Each request starts the local ssh process and sends its results back through MCP. Authentication, key selection, aliases, proxy routing, and jump-host behavior therefore come from the local SSH installation and configuration. The standard ~/.ssh/config file can define host aliases, users, identity files, and ProxyJump relationships.

The process uses batch mode by default, which prevents an unattended MCP request from waiting indefinitely for an interactive password or confirmation prompt. Host and username values are checked before being passed to SSH to reduce the risk of interpreting them as SSH options. The command itself runs remotely with the permissions of the selected SSH account.

Setup and configuration

Install the published package globally with npm install -g @danielecr/realssh-mcp, or clone the repository, install dependencies, and build it with npm. The ssh executable must be installed and discoverable through PATH; the README identifies macOS and Linux as systems where it is normally available.

Register the server as a stdio MCP process. A VS Code configuration uses the realssh-mcp command as its server command. Before using the tools, place host aliases, key paths, users, and proxy or jump-host rules in ~/.ssh/config. These settings belong to the OS SSH configuration rather than to MCP server parameters.

Tools and capabilities

ssh_execute accepts a required host and command. Optional fields select the SSH username, TCP port, timeout in milliseconds, agent forwarding, and additional SSH arguments. The default port is 22, the default timeout is 30 seconds, and the username defaults to the current operating-system user. Additional arguments can pass SSH options supported by the local client.

ssh_test accepts a host and optional username, port, and extra SSH arguments. It performs a basic reachability and response check without requiring a separate command from the caller.

Execution results include stdout, stderr, and the exit code. A timeout terminates the command and reports an error rather than allowing it to continue without a limit.

Limitations and notes

The realssh-mcp MCP server requires a functioning local SSH binary and access to the relevant SSH configuration, keys, or agent. Because batch mode is enabled, workflows that depend on interactive authentication or confirmation may fail unless they are configured for non-interactive use.

Remote commands run with the privileges of the SSH user, so server-side permissions determine what an invocation can do. Command output can include confidential information and should be handled accordingly. The extraArgs field can alter SSH behavior, so callers should restrict its use where MCP requests are not fully trusted.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Realssh MCP

realssh-mcp is an MCP server that connects MCP clients to remote hosts through the operating system's SSH binary. Its main tools are `ssh_execute`, which runs commands remotely, and `ssh_test`, which checks connectivity with `echo ok`. It uses local SSH agents, keys, configuration files, aliases, and jump-host settings.

Install it globally with `npm install -g @danielecr/realssh-mcp`, or build it from the cloned source with `npm install` and `npm run build`. The system `ssh` executable must also be installed and available in `PATH`.

Configure hosts in `~/.ssh/config`, including aliases, usernames, identity files, and jump hosts. The server delegates to the local SSH binary, so these settings are read by SSH rather than stored in the MCP configuration.

Yes. Configure it as a stdio MCP server in VS Code with `realssh-mcp` as the command, then use the MCP server list to verify activation. The README specifically documents VS Code and Copilot configuration.

Call the `ssh_test` tool with the target host and, if needed, a username, port, or extra SSH arguments. It runs `echo ok` remotely and checks the response before you use `ssh_execute`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewRealssh MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/realssh-mcp?style=directory)](https://allmcps.com/mcp/realssh-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/realssh-mcp"><img src="https://allmcps.com/api/badge/realssh-mcp?style=directory" alt="Realssh MCP on AllMCPs" /></a>