Skip to content
MCP server

Ssh Client MCP Server

Run shell commands on a remote host over SSH, with tmux sessions for long-running work

Runs locally

Ssh Client MCP Server is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Linux, macOS
Runs
Locally
What it can do
Can change data (2 tools)
Version
1.6.2
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.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.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add ssh-client-mcp-server -- npx -y ssh-client-mcp-server

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "ssh-client-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ssh-client-mcp-server"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Ssh Client MCP Server

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.

Tools this server provides (6)

Taken from the project documentation; the running server may differ.

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.

execName suggests: changes
Executes a shell command on the remote SSH server
info
Server name, version, runtime and tool counts
tmux_listName suggests: reads
Lists live tmux sessions
tmux_sendName suggests: changes
Types input into a tmux session
tmux_readName suggests: reads
Returns recent pane transcript
tmux_keys
Sends control or special keys

What it does

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

Pricing

Open source

Free and open source

Ssh Client MCP Server 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.

How AIPoweredBot checks servers