Shared SSH PTY runtime for MCP clients with viewer, input lock, async tracking, and policy rules.
SSH Session MCP MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. Shared SSH PTY runtime for MCP clients with viewer, input lock, async tracking, and policy rules.
Persistent shared-terminal runtime for MCP clients over SSH.
Once SSH Session MCP is connected, these are the calls the assistant has available:
ssh-quick-connect — Connect or reuse the default target and optionally open the viewerssh-run — Execute a command with completion detection and exit-code capturessh-status — Inspect sessions, viewer state, and operation modessh-command-status — Poll async command progressssh-retry — Retry flaky commands with backoffssh-session-policy-list — Inspect inherited defaults and current session custom policy rulesssh-session-policy-upsert — Add or update a session-level custom policy rulessh-session-policy-remove — Remove a session-level custom policy rulessh-session-policy-reset — Reset session custom rules back to inherited defaultsCodex — The Codex tool exposed by this serverOpenCode — OpenCode's opencode mcp add flow is interactive. Choose a local MCP server and use this command:You will need 7 environment variables: YOUR_DEVICE_HOST, DEVICE_A_ID, DEVICE_A_HOST, VIEWER_HOST, SSH_MCP_REDIS_URL, SSH_MCP_NODE_ID, SSH_MCP_PUBLIC_BASE_URL. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Installation goes through your MCP client rather than a global install: point it at ssh-session-mcp on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. SSH Session MCP's toolset — ssh-quick-connect, ssh-run, ssh-status and 8 more — is a fair guide to whether it matches your workflow. It is maintained by Zw-awa; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against SSH Session MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| ssh-quick-connect | Connect or reuse the default target and optionally open the viewer |
| ssh-run | Execute a command with completion detection and exit-code capture |
| ssh-status | Inspect sessions, viewer state, and operation mode |
| ssh-command-status | Poll async command progress |
| ssh-retry | Retry flaky commands with backoff |
| ssh-session-policy-list | Inspect inherited defaults and current session custom policy rules |
| ssh-session-policy-upsert | Add or update a session-level custom policy rule |
| ssh-session-policy-remove | Remove a session-level custom policy rule |
| ssh-session-policy-reset | Reset session custom rules back to inherited defaults |
| Codex | The Codex tool exposed by this server. |
| OpenCode | OpenCode's opencode mcp add flow is interactive. Choose a local MCP server and use this command: |
{
"mcpServers": {
"ssh-session": {
"command": "npx",
"args": ["-y", "ssh-session-mcp"],
"env": {
"YOUR_DEVICE_HOST": "your-value",
"DEVICE_A_ID": "your-value",
"DEVICE_A_HOST": "your-value",
"VIEWER_HOST": "your-value",
"SSH_MCP_REDIS_URL": "your-value",
"SSH_MCP_NODE_ID": "your-value",
"SSH_MCP_PUBLIC_BASE_URL": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| YOUR_DEVICE_HOST | Endpoint or connection string the server talks to. | Optional |
| DEVICE_A_ID | Configuration value read at startup. | Optional |
| DEVICE_A_HOST | Endpoint or connection string the server talks to. | Optional |
| VIEWER_HOST | Endpoint or connection string the server talks to. | Optional |
| SSH_MCP_REDIS_URL | Endpoint or connection string the server talks to. | Yes |
| SSH_MCP_NODE_ID | Configuration value read at startup. | Optional |
| SSH_MCP_PUBLIC_BASE_URL | Endpoint or connection string the server talks to. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.