Skip to main content

No project description provided

Project description

Interminal

Lightweight MCP server that gives AI assistants terminal access — SSH and local shells — with support for interactive and long-running commands.

Installation

# Run directly, no install needed (recommended)
uvx mcp-interminal

# Or install permanently
pip install mcp-interminal

Requires Python ≥ 3.11.

MCP Client Configuration

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "interminal": {
      "command": "uvx",
      "args": ["mcp-interminal"]
    }
  }
}

Cursor / other clients: same command + args format above.

Tools

Tool Description
connect_ssh Connect to an SSH server; returns session_id and welcome banner
execute Run a command locally (no session needed) or over SSH; returns output or status=partial + command_id
read_output Poll a running command for new output without sending input
respond Send text input to a command waiting at a prompt
send_control Send control keys: ctrl+c, ctrl+z, arrow keys, F-keys, etc.
disconnect Close an SSH session and release all resources

Recommended: Install Zellij

Each execute call runs in an isolated channel — there is no persistent shell between calls. For simple tasks, chaining with && works. For multi-step workflows (project development, debugging, deployment), a terminal multiplexer provides persistent state that survives across calls.

Zellij is strongly recommended on the host machine (local or remote):

# Linux / macOS / WSL
cargo install zellij    # or: brew install zellij

# Check if installed
zellij --version

With Zellij installed, the AI agent will automatically create a persistent session where cd, environment variables, virtual environments, and long-running processes carry over naturally. As a bonus, you can run zellij attach <session-name> to watch the AI's terminal work in real-time.

Key Behaviors

  • Stateless execute — each call is an isolated channel; cd /foo does not persist. Simple tasks: chain with &&. Multi-step workflows: the AI will use a Zellij session for persistent state
  • Long-running commands return status="partial" with a command_id; poll with read_output or send input with respond
  • TUI apps (zellij, vim, htop) must be started in the foreground — never background with &; after the server daemonizes, the partial channel can be abandoned
  • SSH PTY is 500×200 xterm-256color so multiplexer sessions render at your actual terminal size

Optional Dependencies

pip install "mcp-interminal[pty]"       # Windows PTY support (pywinpty)
pip install "mcp-interminal[ansi]"      # ANSI escape rendering (pyte)
pip install "mcp-interminal[pty,ansi]"  # both

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_interminal-1.0.18.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_interminal-1.0.18-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file mcp_interminal-1.0.18.tar.gz.

File metadata

  • Download URL: mcp_interminal-1.0.18.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for mcp_interminal-1.0.18.tar.gz
Algorithm Hash digest
SHA256 fad2d3b2c7663e7eb68c4348d2276ad0b60ef8f5889965b02bb9c373819f5e69
MD5 c8d6791599029a928cc93830e7430d84
BLAKE2b-256 0e59d57d7846183ba0822cd77498b0f82c773d8d56b0f4a578bab09cec041c9d

See more details on using hashes here.

File details

Details for the file mcp_interminal-1.0.18-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_interminal-1.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 c2d94c889a7fb296abdb52b0416080d2f12ea760cdb218615959e51280cc45b2
MD5 e882adf440d10c14aea9f47a5cd48878
BLAKE2b-256 7243e889d34f24b88d2803eddc9594b79bed74f665de1a80b7a7e79d25599661

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page