# Ssh Client MCP Server

> Ssh Client MCP Server is an open-source MCP server for developer tools. Local MCP server that lets AI clients run shell commands on remote hosts over SSH. It runs locally on your machine and is started by your AI client.

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

## About

Runs as a local stdio process and gives MCP-compatible assistants a way to execute commands on any reachable SSH server, including Linux, macOS and Windows machines with OpenSSH. Connection details such as host, user, port and authentication are supplied as command-line flags when the server starts.

Besides a single exec tool that returns stdout, stderr and exit status, the server offers tmux-backed tools for driving long-running interactive processes across several calls. Authentication can come from a password, a key file, a key injected through an environment variable, or a running ssh-agent, so private keys can stay in a password manager.

It suits developers and operators who want an assistant to inspect or manage a remote machine, with the caveat that granting shell access to an LLM calls for restricted account privileges and command auditing.

## Features

- **Remote command execution:** Runs a shell command on the remote host and returns its output with the exit code and stderr clearly marked.
- **Flexible authentication:** Supports password, key file, key from an environment variable, or the system ssh-agent.
- **Persistent tmux sessions:** Sends input, reads pane transcripts and sends control keys to long-running tmux sessions on the remote host.
- **Startup validation:** Checks configuration and key loading when the server starts, warning on stderr rather than stopping.
- **Path expansion for keys:** Key paths accept tilde, environment variables and relative paths, failing with a typed error when a variable is unset.
- **Built-in info tool:** Reports server name, version, runtime and registered tool counts.

## Good for

- Letting an assistant check logs, disk usage or service status on a remote server
- Running deployment or maintenance commands on a host from an MCP client
- Driving a remote terminal-based coding agent across multiple calls via tmux
- Keeping SSH keys in a password manager while still giving an assistant access to a host

## Install

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

```sh
claude mcp add ssh-client-mcp-server -- npx -y ssh-client-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-client-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-client-mcp-server"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

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

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

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

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

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

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

```json
{
  "mcpServers": {
    "ssh-client-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ssh-client-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-client-mcp-server -- npx -y ssh-client-mcp-server
```

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

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

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

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

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

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

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

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

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

```json
{
  "mcpServers": {
    "ssh-client-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-client-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-client-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-client-mcp-server"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "ssh-client-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-client-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-client-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-client-mcp-server"
      ]
    }
  }
}
```

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

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

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

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

```json
{
  "mcpServers": {
    "ssh-client-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-client-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-client-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-client-mcp-server"
      ]
    }
  }
}
```

## Tools

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

- `exec` (name suggests: changes): Execute a shell command on the remote SSH server and return its output.
- `info`: Server name, version, runtime, and registered tool counts.
- `tmux_list` (name suggests: reads): List live tmux sessions.
- `tmux_send` (name suggests: changes): Type input into a tmux session, pressing Enter unless submit is false.
- `tmux_read` (name suggests: reads): Return the recent pane transcript of a tmux session.
- `tmux_keys`: Send control or special keys to a tmux session.

## FAQ

### Which authentication methods are supported?

Password, a private key file, a private key read from an environment variable, or the system ssh-agent, with precedence in that order.

### Does the remote host need tmux for the exec tool?

No. tmux is only required for the tmux_* tools, and the remote account needs a POSIX login shell for them.

### How is the server installed?

It runs on demand through npx, or can be installed globally from npm with npm install -g ssh-client-mcp-server.

### Is Ssh Client MCP Server free?

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

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

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

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

The closest alternatives to Ssh Client MCP Server are SSH LICCO MCP Server, Remote Ssh MCP, 2native SSH MCP Server, SSH MCP Server and Cygnus Ssh MCP.

## 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 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.
- [Remote Ssh MCP](https://ai-powered.com/mcp/remote-ssh-mcp): Remote Ssh MCP is an open-source MCP server for developer tools.
- [2native SSH MCP Server](https://ai-powered.com/mcp/2native-ssh-mcp-server): 2native SSH MCP Server 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.
- [Cygnus Ssh MCP](https://ai-powered.com/mcp/cygnus-ssh-mcp): Cygnus Ssh MCP is an open-source MCP server for developer tools.
- [MCP Console Automation](https://ai-powered.com/mcp/mcp-console-automation): MCP Console Automation is an open-source MCP server for browser automation.
- [Realssh MCP](https://ai-powered.com/mcp/realssh-mcp): Realssh MCP is an open-source MCP server for developer tools.
- [Terminal MCP](https://ai-powered.com/mcp/terminal-mcp): Terminal MCP is an open-source MCP server for developer tools.

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