Prototyp · Vorschau: alle Server aus der offiziellen Registry, alle 30 Minuten synchronisiert. Bewertungen und Benutzerkonten folgen in einem späteren Schritt.
PopNx MCPMCP-Server für alle, die KI nutzen · in einfachen Worten erklärt

Remote Ssh MCP

von the-nine-nationVersion 0.2.0i★ –iLäuft auf deinem Computer
Name in der Registryio.github.the-nine-nation/remote-ssh-mcp

Installieren

Überblick

Beschreibung vom Entwickler (englisches Original)

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

Die drei Säulen von PopNx MCP

Diese drei werden nie zu einer Punktzahl zusammengefasst: Meinungen, Messungen und Beliebtheit sind verschiedene Dinge.

Was du damit machen kannst

Für diesen Server haben wir noch keine Zusammenfassung in einfacher Sprache geschrieben. Unten stehen die Fakten, die wir aus der Registry gelesen haben.

  • Verbindung: Läuft auf deinem Computer
  • Transport: stdio
  • Kategorie: Entwicklertools

Installation

Wähle die KI-App, die du nutzt, und kopiere die Einstellungen.

Bevor du installierst

  • Basischecks: 1 von 1 bestanden
  • Läuft auf deinem Computer mit den Rechten deines Benutzerkontos (Dateien, Netzwerk, Apps).
  • Das trägst du selbst ein: SSH_MCP_ALLOWED_HOSTS, SSH_MCP_CONFIG

Du brauchst

  • npmNode.js installiert (für den Befehl npx)

Welche App nutzt du?

Wähle oben deine App. Wir merken sie uns, damit der Button beim nächsten Mal „In … installieren“ anzeigt.

Öffne Claude Desktop → Settings → Developer → Edit Config und füge dies in claude_desktop_config.json ein

{
  "mcpServers": {
    "remote-ssh": {
      "command": "npx",
      "args": [
        "-y",
        "@zyluo/remote-ssh-mcp"
      ],
      "env": {
        "SSH_MCP_ALLOWED_HOSTS": "your-value",
        "SSH_MCP_CONFIG": "your-value"
      }
    }
  }
}

Führe das in deinem Terminal aus

claude mcp add remote-ssh --env SSH_MCP_ALLOWED_HOSTS=your-value --env SSH_MCP_CONFIG=your-value -- npx -y @zyluo/remote-ssh-mcp

Trag die leeren Werte ein, bevor du ihn startest.

In Cursor öffnen

Oder kopier die Einstellungen selbst

In .cursor/mcp.json in deinem Projekt oder in ~/.cursor/mcp.json einfügen

{
  "mcpServers": {
    "remote-ssh": {
      "command": "npx",
      "args": [
        "-y",
        "@zyluo/remote-ssh-mcp"
      ],
      "env": {
        "SSH_MCP_ALLOWED_HOSTS": "your-value",
        "SSH_MCP_CONFIG": "your-value"
      }
    }
  }
}

Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.

In VS Code öffnen

Oder kopier die Einstellungen selbst

In .vscode/mcp.json in deinem Projekt einfügen

{
  "servers": {
    "remote-ssh": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@zyluo/remote-ssh-mcp"
      ],
      "env": {
        "SSH_MCP_ALLOWED_HOSTS": "your-value",
        "SSH_MCP_CONFIG": "your-value"
      }
    }
  }
}

Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.

Dieser Server läuft auf deinem Computer, und ChatGPT kann sich nur mit Servern im Internet verbinden. Wähle eine andere App.

Deine Auswahl bleibt in einem Cookie auf diesem Gerät; kein Konto nötig.

Werte, die du selbst einträgst

  • SSH_MCP_ALLOWED_HOSTS env
    Comma-separated additional SSH Host aliases to allow
  • SSH_MCP_CONFIG env
    Path to remote-ssh-mcp config.json

Diese Einstellungen werden aus dem Registry-Eintrag des Entwicklers erzeugt. Wenn in der README etwas anderes steht, folge der README.

Was er kann

Läuft auf deinem Computer; die Tool-Liste erscheint nach der Installation in deiner KI-App.

Basischecksi

Wir prüfen Informationen, die jeder sehen kann; den Code haben wir nicht gelesen. Checks, die nicht zutreffen, werden nicht mitgezählt. · Geprüft am 7. Nov. 2026

  • ✓ Bestanden

    Entwickler passt zum Repo

    Der Registry-Name wurde mit dem GitHub-Konto the-nine-nation bestätigt, dem das Repo gehört

  • … Noch nicht geprüft

    Wird noch gepflegt

    Dieses Repo haben wir noch nicht von GitHub gelesen

  • … Noch nicht geprüft

    Hat eine Lizenz

    Dieses Repo haben wir noch nicht von GitHub gelesen

  • – Nicht zutreffend

    Endpunkt antwortet

    Dieser Server läuft auf deinem Computer; es gibt keinen Endpunkt im Internet

  • – Nicht zutreffend

    Anmeldung mit OAuth

    Läuft auf deinem Computer und nutzt stattdessen lokale Einstellungen

  • … Noch nicht geprüft

    Keine versteckten Anweisungen in Tool-Beschreibungen

    Läuft auf deinem Computer; Tool-Listen können wir nur von Endpunkten im Internet lesen

Im Vergleich mit anderen in Entwicklertoolsi

  • Mehr Sterne als 0 % der anderen 4904 Server in dieser Kategorie
  • Neuer in der Registry veröffentlicht als 31 % der anderen 4904 Server in dieser Kategorie
  • Basischecks gleich gut wie oder besser als bei 100 % der anderen 4904 Server in dieser Kategorie

Verglichen mit allen aktiven Servern dieser Kategorie in der Registry. Sterne zählen nur, wenn dem Herausgeber das Repo gehört.

Häufige Fragen

Ist Remote Ssh MCP sicher?

Er hat 1 von 1 zutreffenden Basischecks bestanden. Den Code haben wir nicht gelesen. Bevor du einen Schlüssel oder Token hinzufügst, sieh nach, welche Zugriffe der Server verlangt, und nutze einen Schlüssel, der nur die Berechtigungen hat, die du brauchst.

Welche Schlüssel oder Codes braucht er?

Die Registry nennt keinen erforderlichen Schlüssel, manche Server bitten dich aber bei der ersten Nutzung, dich anzumelden.

Läuft er auf meinem Computer oder in der Cloud?

Er läuft auf deinem Computer. Deine KI-App startet ihn bei Bedarf, und die Daten laufen nicht über die Server des Entwicklers (außer der Server ruft selbst einen Onlinedienst auf).

Wird er noch gepflegt?

Das GitHub-Repo wurde zuletzt – geändert, und die neueste Version (0.2.0) kam vor 3 Monaten in die Registry.

Welche Apps können ihn nutzen?

Apps, die MCP unterstützen, etwa Claude Desktop, Claude Code, Cursor und VS Code. Außerdem brauchst du Node.js auf deinem Computer.

Was kann ich stattdessen nutzen?

In derselben Kategorie: GitHub, Desktop Commander, Cloudflare MCP

Alternativen

Server derselben Kategorie von anderen Entwicklern, sortiert nach Sternen.

So liest du eine Karte:★ GitHub-SterneiDrei Säulen: Bewertungen · Checks · NutzungiAktualisiert = neueste Version in der Registry veröffentlichti

GitHub

von github

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

Computer oder Cloud★ 34.245MITAktualisiert vor 4 Tagen
Installieren

Desktop Commander

von wonderwhy-er

MCP server for terminal commands, file operations, and process management

Läuft auf deinem Computer★ 10.225MITAktualisiert vor 16 Tagen
Installieren

Cloudflare MCP

von cloudflare

Cloudflare MCP servers

Läuft in der Cloud★ 4.446Apache-2.0Aktualisiert vor 14 Monaten
Installieren

README vom Entwickler

README öffnen

Unverändert aus dem Repo des Entwicklers übernommen. PopNx MCP hat den Inhalt weder geprüft noch empfiehlt es ihn. HTML, Bilder und Skripte wurden entfernt. Links führen von dieser Website weg.

Remote SSH MCP

Persistent, stateful remote Bash sessions for AI agents

via the Model Context Protocol

Why · Features · How it works · Tools · Quick start · Config · Security · 简体中文


Why Remote SSH MCP?

Most agents reach remote machines like this:

bash → ssh host "cmd" → disconnect → repeat

Every call pays the same tax:

PainWhat happens
🔁 Token wasteBanners, MOTD, login noise, and pwd / whoami probes flood the context
🧊 Lost statecwd, export, venv activation, and shell side effects vanish
🔌 UnstableFresh connects hit timeouts, host-key prompts, ProxyJump, and auth jitter
🌀 Error spiralThe model compensates with longer probe commands → more tokens

Remote SSH MCP turns a long-lived remote Bash into first-class MCP tools. One session ID keeps working directory, environment variables, and shell side effects. Open a new session when you need a clean environment.

Why pick this over one-shot ssh in bash?

Concrete gains for agent workflows (multi-step remote work: deploy, debug, build, inspect logs):

DimensionOne-shot ssh host "…"Remote SSH MCP
💰 TokensEach step re-pays connect noise + state probes; models often re-cd / re-pwdPay once on ssh_open; later ssh_run returns mostly command output. Structured tools + head/tail caps cut tool-result bloat. In multi-step sessions this commonly cuts remote-tool context by ~50–80% vs reconnect-every-time (exact savings depend on MOTD size and how chatty the model is).
✅ Success rate*N* steps ≈ *N* handshakes → *N* chances to fail (timeout, jump, agent, host key)One handshake per session; subsequent commands ride a live shell. Long jobs use running + ssh_peek instead of killing the tool call and restarting. Fewer reconnects → far fewer false “SSH failed” loops mid-task.
🧳 PortabilityRemote needs nothing extra — but every agent machine reimplements the same brittle ssh … patternsInstall once on the machine that runs Claude / Cursor / Grok / etc. Remote hosts install nothing (no Node, no MCP daemon, no agent). Only a normal shell account + tools already required for SSH (bash, base64, stty, …). Keys and jump hosts stay in local ~/.ssh/config.
🧠 Model ergonomicsModel invents ssh strings, escapes, and recoveryStable tools: open → run → peek → close. Session id is the only handle.
🔐 Trust boundaryEasy to over-expose keys or prompt for passwords in-bandOpenSSH client only; tools never accept passwords or private-key material

Portability in one line: put the MCP on your dev box / AI host; every server already in your SSH config is reachable — zero package install on the remote fleet.

┌─────────────────────────┐         SSH (OpenSSH)         ┌──────────────────┐

│ Your laptop / CI agent │ ───────────────────────────► │ prod / staging │ │ Claude · Cursor · Grok │ ~/.ssh/config · agent │ no MCP install │ │ + remote-ssh-mcp │ │ plain Bash OK │ └─────────────────────────┘ └──────────────────┘

Token sketch (illustrative multi-step remote debug):

One-shot path (per step × 8):

ssh wrapper + banner/MOTD + pwd/whoami + re-cd + command output → noise dominates; context fills with reconnect junk

Session path: ssh_open → once (handshake + READY) ssh_run × 8 → mostly the real stdout/stderr (truncated head+tail) → context stays on the work product, not the transport

It does not reimplement SSH. Your system OpenSSH client stays in charge — so ~/.ssh/config, known hosts, the SSH agent, ProxyJump routes, and hardware keys keep working exactly as they already do.

ssh_hosts()              → discover allowed Host aliases

ssh_open(host) → session id ssh_run(id, command) → same cwd + env as last time ssh_peek / ssh_interrupt → observe or recover long / stuck work ssh_close(id) → release the shell and connection


Features

🧠 Persistent remote sessions
  • One stable session ID maps to one long-lived remote Bash
  • `cwd` and environment survive across ssh_run calls
  • Open a fresh session whenever you need a clean slate
  • Multiple sessions can target the same or different hosts (up to maxSessions)
🔧 Native OpenSSH integration
  • Spawns the real `ssh` binary — no custom crypto stack
  • Honors `~/.ssh/config`, Include, agent sockets, and ProxyJump
  • Forces `BatchMode=yes` and `StrictHostKeyChecking=yes`
  • Never accepts passwords, private-key text, or arbitrary SSH option args from the model
📡 Long-running command friendly
  • ssh_run waits up to wait_sec (default 10s), then returns status: "running" while the remote command continues
  • Poll with `ssh_peek(wait_sec=...)` long-poll instead of busy-looping
  • Optional hard `timeout_sec` sends Ctrl-C; no automatic kill by default
  • Ideal for docker pull, builds, downloads, and deploys that must not block the tool call forever
🛡️ Safety & control plane
  • Exact Host-alias allowlist from ssh_config + optional config / env overrides
  • Patterns with *, ?, or ! are ignored
  • Fail-closed interrupt: if shell recovery cannot be confirmed after Ctrl-C, the session is closed
  • Built-in denylist for a few obviously destructive patterns (not a full policy engine)
  • Idle reaping, session caps, and a JSONL audit log (0600) with hashed commands
📦 Clean tool results for models
  • Separate `stdout` / `stderr` streams
  • Head-and-tail byte truncation with valid UTF-8 boundaries
  • ANSI / PTY noise stripped before the model sees output (colors, CSI, bracketed-paste markers, control-only blank lines)
  • Quiet open-frame: TERM=dumb, NO_COLOR, bracketed-paste off — less junk at the source
  • Slim JSON payloads: omit empty stderr, false truncation flags, and request-echo fields so dual content + structuredContent stays cheap
  • ssh_hosts returns only safe metadata: alias, hostname, user, port, proxy_jump
  • Never leaks IdentityFile, certificates, agent sockets, or ProxyCommand
🔌 MCP-native
  • stdio transport for Claude Desktop, Cursor, and other MCP hosts
  • Compatible with both legacy and current MCP handshakes
  • Parent / stdio exit closes every tracked SSH connection

How it works

flowchart LR

A[AI Agent] -->|MCP tools| B[Remote SSH MCP] B -->|spawn| C[OpenSSH client] C -->|SSH + PTY| D[Remote Bash] D --> E[(cwd / env / side effects)]

subgraph Local machine B C F[~/.ssh/config agent / keys] C -.-> F end

subgraph Remote host D E end

Typical agent flow

1. ssh_hosts()                 # pick an alias from the allowlist
  1. ssh_open(host="prod") # get session id "s_…"
  2. ssh_run(id, "cd app && …") # state sticks to this id
  3. ssh_run(id, "npm test") # still in app/, env preserved
  4. ssh_peek(id, wait_sec=20) # long-poll a slow job
  5. ssh_close(id) # clean up when done

MCP tools

ToolWhat it does
🗂️ `ssh_hosts`List allowed Host aliases (safe metadata only). Pass reload=true after editing ~/.ssh/config
🔓 `ssh_open`Open a clean persistent shell for an allowed Host alias → returns session id
▶️ `ssh_run`Run a non-interactive command in an existing session
👀 `ssh_peek`Latest N lines of output + status; optional wait_sec long-polls while running
⛔ `ssh_interrupt`Send Ctrl-C and wait for confirmed shell recovery
📋 `ssh_list`List sessions, cwd, state, idle countdown, and capacity
🔒 `ssh_close`Tear down remote temp state and close the connection
Tool parameters (essentials)
ToolKey params
ssh_openhost (required Host alias), optional name label
ssh_runid, command, optional wait_sec, optional timeout_sec
ssh_peekid, optional lines (default 50, max 1000), optional wait_sec
ssh_interrupt / ssh_closeid
ssh_hostsoptional reload boolean

Quick start

Requirements
RequirementNotes
Node.js20 or newer
OpenSSH clientSystem ssh on PATH (or set sshPath)
Remote hostBash + base64, stty, mkdir, cat, rm
SSH setupHost alias in ~/.ssh/config, host key already trusted

⚠️ First-time host-key confirmation and authentication must be completed in a normal terminal. The MCP server never shows password or trust prompts.

Install
git clone https://github.com/the-nine-nation/remote-ssh-mcp.git

cd remote-ssh-mcp npm install npm run build npm test

Run the server:

node /absolute/path/to/remote-ssh-mcp/dist/index.js

Or install from npm (once published):

npx @zyluo/remote-ssh-mcp

or

npm install -g @zyluo/remote-ssh-mcp remote-ssh-mcp

Or, after a local package install from this repo, use the remote-ssh-mcp executable.

MCP host configuration

Most stdio hosts accept a shape like this (outer key may differ by product):

{

"mcpServers": { "remote-ssh": { "command": "node", "args": [ "/absolute/path/to/remote-ssh-mcp/dist/index.js" ], "env": { "SSH_MCP_ALLOWED_HOSTS": "prod,staging" } } } }

Cursor · Claude Desktop · Claude Code · other MCP-capable hosts: point command / args at the bu

Nur der Anfang wird gezeigt; den Rest findest du im Repo

PopNx fragen