terminal-mcp

v0.3.1
io.github.mkpvishnu/terminal-mcp Checked 17 hours ago Published 9 months ago

MCP server for interactive terminal sessions — SSH, REPLs, database CLIs, TUI apps

Values you need

VariableWhat it is
TERMINAL_MCP_MAX_SESSIONSoptional Maximum concurrent sessions
TERMINAL_MCP_IDLE_TIMEOUToptional Seconds before auto-close (default 1800)

PyPI (uvx) discovery passed

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

Run in a terminal
claude mcp add terminal-mcp -- uvx terminal-mcp==0.3.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "terminal-mcp": {
      "args": [
        "terminal-mcp==0.3.1"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "terminal-mcp": {
      "args": [
        "terminal-mcp==0.3.1"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "terminal-mcp": {
      "args": [
        "terminal-mcp==0.3.1"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.terminal-mcp]
command = "uvx"
args = ["terminal-mcp==0.3.1"]

For AI agents

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: session_create, session_send, session_resize, session_read, session_close, session_list, session_exec.
  4. 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