info
Returns identity and build information for this server (name, version, build commit, runtime, capability counts)
無需輸入參數。

io.github.jordanburke由 GitHub 帳號 jordanburke 發布v0.2.1更新於 Nov 6, 2026
MCP server that manages a fleet of SSH hosts via pooled connections.
本機 MCP 伺服器,以連線池管理多台 SSH 主機,讓助理在遠端執行 shell 指令並操作 tmux 工作階段。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
參照 儲存庫 中的啟動說明。
SSH Client MCP Server is a local Model Context Protocol (MCP) server that lets LLMs and other MCP clients execute shell commands on remote hosts over SSH. It runs from Linux, macOS, or Windows and targets any reachable SSH server (Linux, macOS, Windows with OpenSSH, etc.).
Built on somamcp — a functional MCP framework on the MCP TypeScript SDK 2.x, with telemetry and introspection.
This repository is a pnpm monorepo with three packages:
For the fleet server, start with its README: first run, fleet_setup, audit log, policy, CA mode, and running on several machines (where to register it, installing on a hub, per-hub keys versus CA mode, macOS hosts).
Run the full validation suite across all packages:
npx — see Client Setup.No global install required — npx fetches and runs the latest published version.
exec tool — runs a shell command on the remote host. A non-zero exit is the failure; a command that exits 0 succeeds even if it wrote to stderr, and its stderr follows stdout under a [stderr] marker. A failure reads exit <code>: then stderr, then stdout under [stdout]; a command a signal ended reads exit 137 (signal KILL).SSH_AUTH_SOCK (system ssh-agent, 1Password, Bitwarden Desktop, KeePassXC).--key supports ~, $VAR, ${VAR}, and relative paths via functype-os. Unresolved variables fail fast with a typed error.--user defaults to the current OS username when omitted.exec call.info tool, auto-registered by somamcp, reports the server's name, version, runtime, and tool counts.For driving long-running interactive processes (e.g. a remote coding agent) across calls, the server exposes tmux-backed tools. tmux must be installed on the remote host.
tmux_list — list live tmux sessions.tmux_send({ session?, input, submit? }) — type input into session (created if absent); presses Enter unless submit: false.tmux_read({ session?, lines? }) — return the recent pane transcript (lines default 200, max 2000).tmux_keys({ session?, keys }) — send control/special keys, e.g. { keys: ["C-c"] }.session defaults to --tmux-session (default agent). Tip: run agents in a line-oriented mode (not a full-screen TUI) so tmux_read returns a clean transcript.
npx (recommended)No install step — your MCP client launches it on demand. See Client Setup.
The server reads SSH connection info from CLI flags:
*Auth precedence is --password → --key → --key-env → --agent. If none are set the server starts but ssh2 will fail to authenticate on first exec.
Each of these can expose your SSH keys via SSH_AUTH_SOCK. Unlock the vault, confirm the agent is enabled, then run with --agent=true — the server never sees the private key.
For Bitwarden Desktop ≥ 2024.12: enable Settings → SSH agent, then on macOS confirm launchctl getenv SSH_AUTH_SOCK points at Bitwarden's socket.
Store the PEM as a sealed value in envpkt.toml, then launch via envpkt exec:
Same pattern works for HashiCorp Vault, Doppler, Infisical, AWS Secrets Manager, or any wrapper that lands the key in process.env.
claude_desktop_config.json)Replace the --key arg with --password=hunter2. Avoid checking this into version control.
Omit --user entirely — the server defaults to your local username.
Any client that speaks the stdio MCP transport works. Same command / args shape.
pnpm build)This builds and launches the MCP Inspector pointed at dist/index.js.
All tooling is delegated to ts-builds:
Pure helpers (parseArgv, validateConfig, resolveAuth, effectiveUser) live in src/config.ts and are covered by test/config.spec.ts (18 cases, including tempfile-backed key reads and env-var expansion).
Provided under the MIT License. Use at your own risk. Not affiliated with or endorsed by any SSH vendor or MCP provider. Be careful granting LLMs shell access — audit commands, restrict target-account privileges, and consider a jump box.
Issues and PRs welcome at jordanburke/ssh-client-mcp-server. Please run pnpm validate before submitting.
來源:README.md,提交 934c335
Returns identity and build information for this server (name, version, build commit, runtime, capability counts)
無需輸入參數。
List configured fleet hosts and their live connection status. If a host you expect is missing, call fleet_setup: the config may have changed since the server started.
無需輸入參數。
Show setup state: config path, each host's connection state and last error, each CA's public key and the line to add on hosts, and what to do next. Read-only.
無需輸入參數。
Run a one-shot shell command on a fleet host over SSH.
host必填command必填timeout_msList tmux sessions on a fleet host. Returns a JSON array of session names.
host必填Type text into a persistent tmux session on a fleet host (creates it if absent).
host必填input必填submitsessionCapture the recent pane transcript of a tmux session on a fleet host.
host必填linessessionSend control/special keys (e.g. C-c) to a tmux session on a fleet host.
host必填keys必填session已滿足適用檢查項的 90%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
pnpm -r validatenpm install -g ssh-client-mcp-server# then:ssh-client-mcp-server --host=1.2.3.4 --user=root --password=passgit clone https://github.com/jordanburke/ssh-client-mcp-server.gitcd ssh-client-mcp-serverpnpm installpnpm build# verify the agent is reachablessh-add -l
# launch the MCP server through itssh-client-mcp-server --host=1.2.3.4 --user=root --agent=trueenvpkt exec -- ssh-client-mcp-server --host=1.2.3.4 --user=root --key-env=MY_SSH_KEY{ "mcpServers": { "ssh-client-mcp-server": { "command": "npx", "args": ["-y", "ssh-client-mcp-server", "--host=1.2.3.4", "--user=root", "--key=~/.ssh/id_ed25519"] } }}npx @modelcontextprotocol/inspector npx ssh-client-mcp-server --host=1.2.3.4 --user=root --key=~/.ssh/id_ed25519pnpm inspectpnpm validate # format → lint → typecheck → test → buildpnpm test # vitest runpnpm test:watch # vitest watch modepnpm build # production build to dist/pnpm dev # tsdown watch mode to lib/pnpm inspect # build + launch MCP Inspector