SSH Session MCP Server

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

Local serverstdioTypeScript

What is the SSH Session MCP Server?

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

What you get

Persistent shared-terminal runtime for MCP clients over SSH.

  • One shared PTY for both the human and the AI
  • Browser terminal for live inspection and manual intervention
  • Input lock so the AI does not type over the user
  • Safe/full execution modes for risky commands
  • Configurable default policy rules plus session-level custom rule overrides
  • Async command tracking for long-running remote work

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
ssh-quick-connectConnect or reuse the default target and optionally open the viewer
ssh-runExecute a command with completion detection and exit-code capture
ssh-statusInspect sessions, viewer state, and operation mode
ssh-command-statusPoll async command progress
ssh-retryRetry flaky commands with backoff
ssh-session-policy-listInspect inherited defaults and current session custom policy rules
ssh-session-policy-upsertAdd or update a session-level custom policy rule
ssh-session-policy-removeRemove a session-level custom policy rule
ssh-session-policy-resetReset session custom rules back to inherited defaults

Configuration

VariableDescriptionRequired
DEVICE_A_IDConfiguration value read at startup.Optional
DEVICE_A_HOSTEndpoint or connection string the server talks to.Optional
VIEWER_HOSTEndpoint or connection string the server talks to.Optional
SSH_MCP_REDIS_URLEndpoint or connection string the server talks to.Yes
SSH_MCP_NODE_IDConfiguration value read at startup.Optional
SSH_MCP_PUBLIC_BASE_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • “Use SSH Session MCP to ssh-quick-connect.”
  • “Use SSH Session MCP to ssh-run.”
  • “Use SSH Session MCP to ssh-status.”

Frequently asked questions

Shared SSH PTY runtime for MCP clients with viewer, input lock, async tracking, and policy rules. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.