Skip to content
VS Code

remote ssh mcp for VS Code

io.github.the-nine-nation/remote-ssh-mcp

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

client:VS Code transport:stdio runtime:npm

Install remote ssh mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "ssh-mcp-allowed-hosts",
      "description": "SSH_MCP_ALLOWED_HOSTS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ssh-mcp-config",
      "description": "SSH_MCP_CONFIG",
      "password": true
    }
  ],
  "servers": {
    "remote-ssh-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@zyluo/remote-ssh-mcp"
      ],
      "env": {
        "SSH_MCP_ALLOWED_HOSTS": "${input:ssh-mcp-allowed-hosts}",
        "SSH_MCP_CONFIG": "${input:ssh-mcp-config}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

remote ssh mcp in other clients