Remote Terminal MCP

v1.3.3
io.github.TiM00R/remote-terminal Checked 1 day ago Published 6 months ago

Complete SSH terminal for Linux with AI/user control and dual-stream visibility

Starts only with mcp<2 (written for an older SDK); the install commands pin it.

Values you need

VariableWhat it is
REMOTE_TERMINAL_ROOTrequired Root directory for config files and database

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add remote-terminal -e 'REMOTE_TERMINAL_ROOT=<REMOTE_TERMINAL_ROOT>' -- uvx --with 'mcp<2' remote-terminal-mcp==1.3.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "remote-terminal": {
      "args": [
        "--with",
        "mcp<2",
        "remote-terminal-mcp==1.3.3"
      ],
      "command": "uvx",
      "env": {
        "REMOTE_TERMINAL_ROOT": "<REMOTE_TERMINAL_ROOT>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "remote-terminal": {
      "args": [
        "--with",
        "mcp<2",
        "remote-terminal-mcp==1.3.3"
      ],
      "command": "uvx",
      "env": {
        "REMOTE_TERMINAL_ROOT": "<REMOTE_TERMINAL_ROOT>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "REMOTE_TERMINAL_ROOT",
      "id": "remote-terminal-root",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "remote-terminal": {
      "args": [
        "--with",
        "mcp<2",
        "remote-terminal-mcp==1.3.3"
      ],
      "command": "uvx",
      "env": {
        "REMOTE_TERMINAL_ROOT": "${input:remote-terminal-root}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.remote-terminal]
command = "uvx"
args = ["--with", "mcp<2", "remote-terminal-mcp==1.3.3"]
env = { "REMOTE_TERMINAL_ROOT" = "<REMOTE_TERMINAL_ROOT>" }

For AI agents

  1. Ask the user for: REMOTE_TERMINAL_ROOT. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: open_terminal, list_servers, select_server, get_current_server, set_default_server, execute_command, check_command_status, get_command_output, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json