Skip to content
Agentmart
Submit a tool

Remote SSH MCP

Persistent stateful remote SSH sessions for AI agents via MCP + OpenSSH.

Connector by the-nine-nation · GitHub account verified by the MCP Registry

IndexedMITLocal (stdio)★ 1
Write a review

Install

Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.

npx agentmarket install connector/the-nine-nation-remote-ssh-mcp

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Persistent stateful remote SSH sessions for AI agents via MCP + OpenSSH.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this server can do and what it asks for, from its tool list, install config and code. Checked Oct 26, 2026.

Tools
3 read · 1 write · 3 delete
Secrets
None asked for
Install scripts
None found
Runs as
Node.js package

Tools by what they do 7

Read from the source code; the running server may list different tools.

Read 3 · Look things up without changing anything.

  • ssh_hosts
  • ssh_list
  • ssh_peek

Write 1 · Create, change, send or run things.

  • ssh_open

Delete 3 · Delete, drop, revoke or wipe things.

  • ssh_close
  • ssh_interrupt
  • ssh_run

Secrets and settings it asks for

Other settings (environment variables or headers).

  • SSH_MCP_ALLOWED_HOSTS
  • SSH_MCP_CONFIG

Network hosts it talks to 1

  • github.com · found in code

Files it touches

  • Your home directory (~)

Tools (7)

Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].

  • ssh_closeClose persistent SSH sessioncan change or delete data

    Close the remote shell and SSH connection, clean its private temporary directory, and invalidate the id. Close a dirty session and call ssh_open for a clean environment.

  • ssh_hostsList allowed SSH Host aliasesread-only

    List allowed OpenSSH Host aliases discovered from the local ssh_config (and explicit allowlist). Returns only safe connection metadata: alias, hostname, user, port, proxy_jump. Never returns private keys, IdentityFile paths, agent sockets, or ProxyCommand. Pass reload=true after editing ~/.ssh/config to re-parse without restarting the MCP server. Use an alias from this list with ssh_open.

  • ssh_interruptInterrupt SSH foreground commandcan change or delete data

    Send Ctrl-C to the current foreground process group and wait for the shell protocol to recover. The session is kept only when recovery is confirmed. Returns nothing_to_interrupt when idle.

  • ssh_listList persistent SSH sessionsread-only

    List all live sessions with host, cwd, state, last exit code, idle time, idle-reap countdown, and connection capacity. Use this to recover valid ids; never invent one.

  • ssh_openOpen persistent SSH session

    Open a new persistent remote bash shell for an allowed ssh_config Host alias from ssh_hosts. Each call creates a clean session with a new id. Credentials come only from local OpenSSH configuration/agent; passwords and private keys are never accepted as arguments and must not be read from disk by the model.

  • ssh_peekPeek at SSH command outputread-only

    Observe the current foreground command and its latest output without starting another command. When status=running, optional wait_sec (default 0) long-polls this MCP call until the command finishes or the wait expires—prefer a positive wait_sec over busy-looping. wait_sec never stops the remote command. Returns the newest lines in chronological order, limited independently for stdout and stderr; lines defaults to 50 and is capped to protect model context. Use after ssh_run returns status=running. When idle, returns immediately with cwd, last_exit, command_status, duration_ms, and the latest li…

  • ssh_runRun command in persistent SSH sessioncan change or delete data

    Start a non-interactive command in the same persistent shell identified by id. cwd and environment changes persist. The call waits at most wait_sec (default 10 seconds); if the command is still active it returns status=running without stopping it. Commands have no automatic execution timeout by default. Only an explicitly provided timeout_sec sends Ctrl-C at that deadline. Never retry a running command: poll with ssh_peek(wait_sec=...) so the MCP call blocks until idle or the wait expires; do not spam peeks with wait_sec=0. Call ssh_interrupt to stop it, or open another session for concurrent …

Signals

Stars
1
Forks
0
Open issues
0
Last commit
Oct 24, 2026 (5 days ago)
Last release
Aug 6, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Registry name
io.github.the-nine-nation/remote-ssh-mcp
Version
0.2.0
Auth
No auth
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026
Cite this page

Remote SSH MCP. Agent Mart. https://agentmart.dev/connectors/the-nine-nation-remote-ssh-mcp (last updated 2026-10-24)