# SSH Fleet [Health: Active]

**Category:** 🖥️ Command Line  
**Repository:** https://github.com/inhuman/mcp-ssh-fleet  
**GitHub Stars:** 0  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ssh-fleet

## Description
Curated ssh_probe diagnostics and single-host ssh_exec over an allowlisted SSH fleet.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/inhuman/mcp-ssh-fleet), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Start the server:

```sh
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
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/ssh-fleet/readme_

