# Ssh Fleet MCP Server

> Ssh Fleet MCP Server is an open-source MCP server for developer tools. MCP server that runs commands and tmux sessions across a fleet of SSH hosts through pooled. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, Linux, macOS
- **Repository:** https://github.com/sapientsai/mcp-servers/tree/HEAD/servers/ssh-fleet
- **MCP Registry name:** io.github.sapientsai/ssh-fleet-mcp-server
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-29

## About

Connect an MCP client to many machines at once through one server process instead of running a separate server per host. Each configured host is addressed by a logical name, and the exec and tmux tools route calls to it over pooled SSH connections that open on first use and close when idle.

Access is governed per host. A policy can set a host to read-only with an allowlist of command patterns, require approval for risky commands, or deny everything. Every call is written to a JSON audit log with its decision and result size, and authentication can use key files, environment-supplied keys, an SSH agent, passwords read from environment variables, or short-lived certificates from a certificate authority.

It suits operators and developers who want an AI assistant to inspect or maintain several servers while keeping credentials out of the config file and keeping a record of what ran.

## Features

- **Pooled multi-host routing:** Route exec and tmux calls to any configured host by name through a shared per-host connection pool.
- **Per-host access policy:** Set hosts to read-only with command allowlists, approval-gated commands, or full denial.
- **Persistent tmux sessions:** Start long-running jobs in tmux on a host so they survive dropped SSH connections, then read their output.
- **Audit logging:** Records a decision line and a result line for each call, storing byte counts rather than output by default.
- **Flexible authentication:** Supports key files, keys from environment variables, ssh-agent, password environment variables and CA-signed certificates.
- **Fail-safe startup:** Refuses to start on invalid config or an unwritable audit log, and a misconfigured host fails only its own calls.

## Good for

- Check disk, service or log status across several servers from an AI assistant
- Run package upgrades or backups in tmux sessions on remote hosts and monitor progress
- Give an assistant read-only command access to production machines using an allowlist
- Keep an auditable record of which commands an AI agent ran on which hosts

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add ssh-fleet-mcp-server -- npx -y ssh-fleet-mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "ssh-fleet-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-fleet-mcp-server"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "ssh-fleet-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-fleet-mcp-server"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "ssh-fleet-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-fleet-mcp-server"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "ssh-fleet-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ssh-fleet-mcp-server"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add ssh-fleet-mcp-server -- npx -y ssh-fleet-mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.ssh-fleet-mcp-server]
command = "npx"
args = ["-y", "ssh-fleet-mcp-server"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "ssh-fleet-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-fleet-mcp-server"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user ssh-fleet-mcp-server npx -- -y ssh-fleet-mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "ssh-fleet-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-fleet-mcp-server"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "ssh-fleet-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-fleet-mcp-server"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "ssh-fleet-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-fleet-mcp-server"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "ssh-fleet-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-fleet-mcp-server"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "ssh-fleet-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-fleet-mcp-server"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "ssh-fleet-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-fleet-mcp-server"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "ssh-fleet-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-fleet-mcp-server"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "ssh-fleet-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-fleet-mcp-server"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 7 tools change data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `hosts_list` (name suggests: reads): List configured fleet hosts and their live connection-pool status.
- `fleet_setup`: Show setup state and next steps for the fleet configuration.
- `exec` (name suggests: changes): Run a one-shot shell command on a fleet host over SSH.
- `tmux_list` (name suggests: reads): List tmux sessions on a fleet host.
- `tmux_send` (name suggests: changes): Type text into a persistent tmux session on a fleet host.
- `tmux_read` (name suggests: reads): Capture the recent pane transcript of a tmux session on a fleet host.
- `tmux_keys`: Send control or special keys to a tmux session on a fleet host.

## FAQ

### Do I need a separate MCP server process for each host?

No. A single server routes calls to any host listed in the fleet config by its name.

### Where are secrets stored?

The config references environment variables, key files, ssh-agent or a CA rather than holding inline passwords or private keys, which are rejected at parse time.

### Does the server connect to every host at startup?

No. Hosts connect on their first tool call and close after an idle timeout.

### Does Ssh Fleet MCP Server enforce limits when run over stdio?

Over stdio the server runs as the agent's own user, so policy can be bypassed with that user's own shell. Governance requires running the hub as a separate user that alone holds the credentials.

### Is Ssh Fleet MCP Server free?

Yes. Ssh Fleet MCP Server is open source, so you can use and self-host it for free.

### How do I add Ssh Fleet MCP Server to Claude Code?

Run this command in your terminal: claude mcp add ssh-fleet-mcp-server -- npx -y ssh-fleet-mcp-server

### What are the best alternatives to Ssh Fleet MCP Server?

The closest alternatives to Ssh Fleet MCP Server are Ssh Client MCP Server, Ssh Client MCP Server, SSH LICCO MCP Server, Fast MCP Ssh and SSH MCP Server.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Ssh Client MCP Server](https://ai-powered.com/mcp/ssh-client-mcp-server): Ssh Client MCP Server is an open-source MCP server for developer tools.
- [Ssh Client MCP Server](https://ai-powered.com/mcp/ssh-client-mcp-server-2): Ssh Client MCP Server is an open-source MCP server for developer tools.
- [SSH LICCO MCP Server](https://ai-powered.com/mcp/ssh-licco-mcp-server): SSH LICCO MCP Server is an open-source MCP server for developer tools.
- [Fast MCP Ssh](https://ai-powered.com/mcp/fast-mcp-ssh): Fast MCP Ssh is an open-source MCP server for developer tools.
- [SSH MCP Server](https://ai-powered.com/mcp/ssh-mcp-server): SSH MCP Server is an open-source MCP server for developer tools.
- [Remote Ssh MCP](https://ai-powered.com/mcp/remote-ssh-mcp): Remote Ssh MCP is an open-source MCP server for developer tools.
- [Ftp Ssh MCP](https://ai-powered.com/mcp/ftp-ssh-mcp): Ftp Ssh MCP is an open-source MCP server for developer tools.
- [Cygnus Ssh MCP](https://ai-powered.com/mcp/cygnus-ssh-mcp): Cygnus Ssh MCP is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/ssh-fleet-mcp-server-2
