Skip to content
VS Code

SSH MCP Server for VS Code

io.github.hypnosis/ssh-mcp-server

Modern SSH for AI agents — cloud servers to BusyBox routers, with destructive commands blocked.

client:VS Code transport:stdio runtime:npm

Install SSH MCP Server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "ssh-profiles-file",
      "description": "SSH_PROFILES_FILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ssh-mcp-log-level",
      "description": "SSH_MCP_LOG_LEVEL",
      "password": true
    }
  ],
  "servers": {
    "ssh-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@hypnosis/ssh-mcp-server"
      ],
      "env": {
        "SSH_PROFILES_FILE": "${input:ssh-profiles-file}",
        "SSH_MCP_LOG_LEVEL": "${input:ssh-mcp-log-level}"
      }
    }
  }
}

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

SSH MCP Server in other clients