# Ssh Client MCP Server

> Ssh Client MCP Server is an open-source MCP server for developer tools. Run shell commands on a remote host over SSH, with tmux sessions for long-running work. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS, Windows
- **Repository:** https://github.com/jordanburke/ssh-client-mcp-server
- **MCP Registry name:** io.github.jordanburke/ssh-client-mcp-server
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-11-23

## About

This local server turns an assistant into an SSH client. A single `exec` tool runs a command on the remote machine, where a non-zero exit is a failure and a command that exits 0 succeeds even if it wrote to stderr, which follows stdout under a marker. It runs from Linux, macOS or Windows against any reachable SSH server, on Node 22 or newer.

Four authentication modes are supported: password, key file, key from an environment variable such as one injected by a secrets manager, and an SSH agent socket including 1Password or KeePassXC. A set of tmux tools lists sessions, types input, reads the pane transcript and sends control keys, which suits driving a long-running remote coding agent. They need tmux on the host and a POSIX login shell.

The repository is a monorepo that also contains an orchestrator, ssh-fleet-mcp-server, for multiple hosts with a TOML fleet config, audit log and policy settings. A disclaimer section warns about the risk of remote command execution.

## Features

- **Remote exec:** Runs a shell command on the SSH host.
- **Four auth modes:** Password, key file, env key or ssh-agent.
- **tmux sessions:** Persistent sessions for long-running processes.
- **Pane reading:** Reads recent transcript lines from a session.
- **Key sending:** Sends control keys such as Ctrl-C.
- **Fleet option:** A separate orchestrator handles many hosts.

## Good for

- Run diagnostics on a remote server
- Drive a remote coding agent in tmux
- Deploy by running commands over SSH
- Check logs on a build machine

## 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): Executes a shell command on the remote SSH server
- `info`: Server name, version, runtime and tool counts
- `tmux_list` (name suggests: reads): Lists live tmux sessions
- `tmux_send` (name suggests: changes): Types input into a tmux session
- `tmux_read` (name suggests: reads): Returns recent pane transcript
- `tmux_keys`: Sends control or special keys

## FAQ

### Which auth methods work?

Password, key file, key from an environment variable, or an ssh-agent socket.

### What does tmux need?

tmux on the host and a POSIX login shell for the SSH account.

### What Node.js version is needed?

Node 22 or newer.

### Is there a multi-host option?

Yes, ssh-fleet-mcp-server in the same repository.

### 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 REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

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

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

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