Skip to main content

SSH Session MCP

io.github.Zw-awa/ssh-session-mcp

v2.7.1Updated May 15, 2026stdio · npm

Shared SSH PTY runtime for MCP clients with viewer, input lock, async tracking, and policy rules.

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add ssh-session-mcp -- npx -y [email protected]

Configuration

13 settings.

  • SSH_PASSWORD
    Env var· optional· secret
    Optional legacy password-based SSH authentication value.
  • SSH_MCP_CONFIG
    Env var· optional
    Optional explicit path to ssh-session-mcp.config.json when the config is not in the current working directory.
  • SSH_MCP_INSTANCE
    Env var· optional
    Optional runtime instance id used to isolate state across multiple MCP clients or agents.
  • VIEWER_PORT
    Env var· optional
    Viewer HTTP port. Use auto to allocate a free local port, or 0 to disable the browser viewer.
  • VIEWER_HOST
    Env var· optional
    Optional viewer bind host. Defaults to 127.0.0.1 for local-only browser access.
  • AUTO_OPEN_TERMINAL
    Env var· optional
    Set to true or 1 to automatically open the browser terminal when a session is created.
Show 7 more
  • SSH_MCP_MODE
    Env var· optional
    Operation mode. safe blocks risky or unsuitable terminal actions by default, while full allows broader execution.
  • SSH_MCP_LOCAL
    Env var· optional
    Set to true or 1 to run a local shell instead of opening a real SSH connection. Useful for demos and offline testing.
  • SSH_MCP_DEBUG
    Env var· optional
    Set to true or 1 to expose browser-side debug controls intended for demos and local troubleshooting.
  • SSH_HOST
    Env var· optional
    Legacy single-target SSH host when not using ssh-session-mcp.config.json device profiles.
  • SSH_PORT
    Env var· optional
    Legacy single-target SSH port when not using ssh-session-mcp.config.json device profiles.
  • SSH_USER
    Env var· optional
    Legacy single-target SSH username when not using ssh-session-mcp.config.json device profiles.
  • SSH_KEY
    Env var· optional
    Optional path to a local SSH private key file for legacy single-target mode.

Listed in the official MCP Registry since May 15, 2026. Mirrored daily; last checked Nov 26, 2026.