SSH Fleet logo

SSH Fleet

Runs curated SSH diagnostics across an allowlisted fleet and executes one command on a specified inventory host.

Install SSH Fleet

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

Setup steps from the project

SSH Fleet 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. Start the server
    docker run -i --rm \
      -v /path/to/inventory.yaml:/etc/ssh-fleet/inventory.yaml:ro \
      -v /path/to/id_ed25519:/etc/ssh-fleet/id_ed25519:ro \
      -e SSH_FLEET_TRANSPORT=stdio \
      ghcr.io/inhuman/mcp-ssh-fleet:latest
    

Overview

SSH Fleet MCP server gives agents two SSH tools for hosts outside Kubernetes: curated diagnostics across tagged hosts and arbitrary non-interactive commands on one allowlisted host. It supports Streamable HTTP, SSE, and stdio transports, with inventory and private-key paths supplied through configuration. Reach for it when an agent needs controlled operational checks or host-level command execution without exposing the SSH key to model context.

Use cases

  • Run tagged uptime and resource checks across SSH hosts
  • Inspect failed services or logs on selected fleet members
  • Execute one approved command on an allowlisted host
  • Connect an MCP client to an external host fleet over stdio or HTTP

Key features

  • Curated read-only SSH diagnostics
  • Tag-based multi-host probing with AND semantics
  • Single-host arbitrary command execution
  • Fail-closed inventory allowlist
  • Output caps and per-host timeouts
  • Stdio, SSE, and Streamable HTTP transports

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.

11/11 checks healthy over the last 41d

Adoption & maintenance

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

Last commit4mo agoMost recent push to the default branch.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How SSH Fleet works

What SSH Fleet MCP server does

SSH Fleet MCP server connects an MCP client to an allowlisted inventory of SSH hosts outside Kubernetes. It exposes two operations: ssh_probe for predefined read-only checks across matching hosts, and ssh_exec for one arbitrary non-interactive command on one inventory host.

The inventory acts as a fail-closed boundary. A host must be present in the configured inventory before either operation can use it. The private SSH key is read from a mounted file, so the key is not passed into the model context.

How it works

ssh_probe accepts tags and a check name. Tags use AND semantics, so a host must carry every requested tag to be selected. Supported checks are uptime, disk, mem, failed, and logs; arbitrary commands are not accepted by this tool. Results are returned with one section per host.

ssh_exec accepts a host name or address and a command. It runs the command on exactly one inventory host. The server performs the execution, but it does not provide approval or role-based access control. The MCP client is responsible for gating this write-external capability.

Both tools apply an output-size limit and a per-host timeout. SSH host keys use a trust-on-first-use check, with the observed fingerprint recorded in logs. Probes can run in parallel, subject to the configured concurrency and maximum-host limits.

Setup and configuration

The container quickstart mounts an inventory file at /etc/ssh-fleet/inventory.yaml and a private key at /etc/ssh-fleet/id_ed25519. Set SSH_FLEET_TRANSPORT=stdio for a standard containerized stdio connection. The inventory structure is documented by the repository's deploy/inventory.example.yaml file.

For networked deployments, the default transport is Streamable HTTP. Configure the MCP client with the server URL ending in /mcp, such as http://host:8080/mcp. SSE is also available. SSH_FLEET_ADDR controls the listening address for HTTP and SSE, while SSH_FLEET_AUTH_TOKEN can enable an X-MCP-AUTH token.

Tools and capabilities

  • Run uptime, disk, memory, failed-unit, or log diagnostics with ssh_probe.
  • Select probe targets by one or more inventory tags.
  • Execute a non-interactive command on one allowlisted host with ssh_exec.
  • Limit command duration, output size, probe parallelism, and hosts per probe through environment settings.
  • Use stdio, SSE, or Streamable HTTP transport modes.

Limitations and notes

SSH Fleet MCP server does not accept arbitrary commands through ssh_probe; use ssh_exec when command execution is required. ssh_exec is not restricted to read-only actions, so client-side approval, RBAC, or a user allowlist should protect it. Hosts outside the inventory are refused, and probes are capped at 50 hosts by default. The server is designed for non-interactive commands and applies the configured output and timeout limits.

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 SSH Fleet

SSH Fleet is an MCP server that connects AI agents to an allowlisted fleet of SSH hosts outside Kubernetes. Its main tools are ssh_probe for curated read-only checks across tagged hosts and ssh_exec for one non-interactive command on a specified inventory host, with mounted SSH keys kept outside model context.

Run the published container with the inventory and private key mounted as read-only files, then select the stdio transport. The documented image is ghcr.io/inhuman/mcp-ssh-fleet:latest, and the default file locations are /etc/ssh-fleet/inventory.yaml and /etc/ssh-fleet/id_ed25519.

Connect the MCP client to the Streamable HTTP endpoint ending in /mcp. HTTP is the default transport, the default listen address is :8080, and SSE is also supported through the configured server address.

Yes, ssh_exec runs one arbitrary non-interactive command on one host that exists in the inventory. ssh_probe does not accept arbitrary commands and only supports its built-in uptime, disk, memory, failed, and logs checks.

The MCP client must control access to ssh_exec using approval, RBAC, or a user allowlist. The server verifies that the target is in its inventory and executes the command, but it does not implement the client-side access policy.

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