Fast MCP Ssh logo

Fast MCP Ssh

SSH, SFTP, persistent PTY shells, remote screenshots, host forwarding, and guarded operations in one Rust MCP binary.

Install Fast MCP Ssh

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

Setup steps from the project

fast-mcp-ssh 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
    cargo install fast-mcp-ssh
    
  2. 2. Install
    cargo install --path .        # build and install from a clone
    

Overview

The fast-mcp-ssh MCP server gives AI agents SSH, SFTP, persistent PTY shell, remote screenshot, system inspection, service, and TCP forwarding tools. It keeps one SSH connection per configured host, preserves shell state such as working directories and environment variables, and communicates with MCP clients over stdio. Reach for it when an agent needs controlled access to remote hosts, file transfer, host-to-host copying, or long-lived shell sessions. Regex guards, path checks, host-key controls, and an append-only audit log provide operational safeguards.

Use cases

  • Run commands across configured SSH hosts
  • Transfer files with SFTP
  • Maintain stateful remote shell sessions
  • Copy files directly between remote hosts
  • Inspect services and capture remote desktop screenshots

Key features

  • Persistent SSH connections per host
  • SFTP file management and host-to-host copying
  • Persistent PTY shells with interrupt support
  • Remote desktop screenshots
  • Regex, path, and read-only safeguards
  • NDJSON audit logging

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.

13/13 checks healthy over the last 72d

Adoption & maintenance

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

GitHub stars5Stargazers on the source repository.
Last commit7d agoMost recent push to the default branch.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Fast MCP Ssh works

What fast-mcp-ssh MCP server does

The fast-mcp-ssh MCP server exposes remote administration functions to MCP-compatible AI clients through a single Rust executable. It connects to hosts over SSH and provides command execution, SFTP file operations, persistent PTY shells, remote desktop screenshots, host inspection, systemd service queries, and local TCP forwarding.

Commands can run once, in batches, or inside a named PTY session. PTYs retain state between calls, including changes made with cd and export. File operations include listing, metadata inspection, upload, download, copy, writing, directory creation, removal, and bounded or following tails. The cp operation can transfer files between two configured hosts without placing the content on the local disk or sending it to the model.

How it works

The server maintains one SSH connection per host and opens channels for individual calls. A default host can be configured, making the host argument optional for tools.

Remote screenshots use an available utility such as grim, gnome-screenshot, spectacle, ImageMagick import, or scrot. The image is downscaled locally before being returned to the model. Host profiles, parsed process, disk, memory, and network information, and systemd unit data are available through the operations tools.

MCP protocol revisions from 2024-11-05 through 2026-07-28 are supported and selected per peer. Long-running calls can return task handles for polling when the client supports the relevant extension. Tool metadata includes read-only, destructive, idempotent, and open-world annotations.

Setup and configuration

Install the fast-mcp-ssh MCP server with Cargo or use a release binary. The documented platforms are Linux, macOS, and Windows; release binaries include Linux and macOS x86_64 and aarch64 builds, plus Windows x86_64.

Copy hosts.example.toml to ~/.fast-mcp-ssh/hosts.toml and define the hosts. Keys are stored under ~/.fast-mcp-ssh/keys/<name>. Authentication can use a key, an SSH agent, or a password. Add the executable as an MCP stdio server in .mcp.json or an equivalent client configuration:

config.json
{
  "mcpServers": {
    "ssh": {
      "type": "stdio",
      "command": "fast-mcp-ssh"
    }
  }
}

Tools and capabilities

  • Run commands with exec, parallel work with exec_batch, persistent shells with sh, and interruption with interrupt.
  • Manage remote files with SFTP-backed tools such as ls, stat, up, dn, wr, mkdir, rm, and tail.
  • Inspect hosts with facts, parsed system data with sys, and systemd units with svc.
  • Manage configured hosts and sessions with hosts, ping, disconnect, disconnect_all, reload, and shells.
  • Create, inspect, and remove local TCP forwards over an existing SSH connection using forward, forwards, and unforward.
  • Capture a remote desktop with shot.

Limitations and notes

The fast-mcp-ssh MCP server applies deny patterns, confirmation patterns, and optional read-only mode before sending SSH traffic. Path checks cover sensitive remote reads and local writes, run for path-taking tools, and are repeated after path resolution. Host keys use TOFU by default, with strict checking and per-host fingerprints available. Calls are recorded as credential-scrubbed NDJSON in ~/.fast-mcp-ssh/audit.log.

These controls are intended to prevent accidents rather than protect against a model that is actively controlled by an attacker. The README recommends limiting the remote account accordingly. Clients that cannot answer a confirmation request are denied the operation. The server must keep stdout reserved for MCP transport; diagnostic tracing should go to stderr.

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 Fast MCP Ssh

fast-mcp-ssh is an MCP server that connects AI agents to configured SSH hosts and exposes command execution, SFTP file operations, persistent PTY shells, screenshots, host inspection, service queries, and TCP forwarding. It runs as one Rust binary, keeps connections open per host, and supports MCP clients over stdio.

Install it with `cargo install fast-mcp-ssh`, or download a prebuilt release binary. Then copy `hosts.example.toml` to `~/.fast-mcp-ssh/hosts.toml`, configure hosts and authentication, and add `fast-mcp-ssh` as a stdio server in your MCP client.

Configure them in `~/.fast-mcp-ssh/hosts.toml` and place named keys in `~/.fast-mcp-ssh/keys/<name>`. The supported authentication modes are key, agent, and password. You can also set a default host so tools do not need a host argument.

Yes, fast-mcp-ssh works with Cursor through MCP over stdio. Add the same server definition used in `.mcp.json`, with `type` set to `stdio` and `command` set to `fast-mcp-ssh`.

It checks deny and confirmation patterns, supports read-only mode, validates paths on both sides, pins or verifies host keys, and records calls in an audit log.

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 PreviewFast MCP Ssh AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/fast-mcp-ssh?style=directory)](https://allmcps.com/mcp/fast-mcp-ssh)
HTML Embed
<a href="https://allmcps.com/mcp/fast-mcp-ssh"><img src="https://allmcps.com/api/badge/fast-mcp-ssh?style=directory" alt="Fast MCP Ssh on AllMCPs" /></a>