1. Conduid
  2. Developer Tools
  3. aybelatchane/mcp-server-terminal
MCP server · Developer Tools

aybelatchane/mcp-server-terminal

Terminal MCP Server - Model Context Protocol server for TUI/CLI automation with structured Terminal State Tree (TST)

Unclaimed MIT last commit 9 months ago devtools
58Fair

Scored 7 days ago · breakdown

About aybelatchane/mcp-server-terminal

aybelatchane/mcp-server-terminal is an MCP server published by aybelatchane in the Developer Tools category: terminal MCP Server - Model Context Protocol server for TUI/CLI automation with structured Terminal State Tree (TST).

The repository has 21 stars and 6 forks, with the last commit 9 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

Claude Code
claude mcp add terminal -- npx -y mcp-terminal
npx
npx -y mcp-terminal

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (10)

terminal_clickClick on detected UI element

Parameters not published.

terminal_press_keyPress keys (arrows, F-keys, Ctrl+X)

Parameters not published.

terminal_read_outputRead raw terminal output

Parameters not published.

terminal_session_closeClose a session

Parameters not published.

terminal_session_createStart a terminal session

Parameters not published.

terminal_session_listList active sessions

Parameters not published.

terminal_session_resizeResize terminal dimensions

Parameters not published.

terminal_snapshotCapture terminal state with UI elements

Parameters not published.

terminal_typeType text into terminal

Parameters not published.

terminal_wait_forWait for text, element, or idle state

Parameters not published.

Ask AI

✦

Ask AI about aybelatchane/mcp-server-terminal

Powered by Claude · Grounded in docs

I know everything about aybelatchane/mcp-server-terminal. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 2 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • !No dynamic code executionSource scan found eval or shell execution. Review how tool inputs reach it before granting credentials.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v1.0.5Terminal MCP v1.0.5 · 30 Dec 2025Full Changelog**: https://github.com/aybelatchane/mcp-server-terminal/compare/v1.0.4...v1.0.5
v1.0.2Terminal MCP v1.0.2 · 8 Dec 2025🐛 Bug Fixes Critical Fixes Working directory support (#138)** - Sessions can now be created with a specific `cwd` parameter TUI menu rendering (#140)** - Fixed menu detection by properly joining wrapped lines Detector false positives…
v1.0.1Terminal MCP v1.0.1 · 6 Dec 2025Full Changelog**: https://github.com/aybelatchane/mcp-server-terminal/compare/v1.0.0...v1.0.1
v1.0.0Initial Release v1.0.0 · 5 Dec 2025Terminal MCP Server v1.0.0 Playwright for Terminals** - Enable AI agents to interact with terminal applications through structured Terminal State Tree representation. Installation Via npm (Recommended) npx mcp-server-terminal Add to Claude…

README

Terminal MCP Server

npm version npm downloads

MCP server enabling AI agents to interact with terminal applications through structured Terminal State Tree representation. Works with any AI assistant that supports the Model Context Protocol.

Installation

Via npm (Recommended)

npx mcp-server-terminal

Via GitHub Releases

Download pre-built binaries from Releases.

Build from Source

git clone https://github.com/aybelatchane/mcp-server-terminal.git
cd mcp-server-terminal
cargo build --release
# Binary: ./target/release/terminal-mcp

Configuration

Claude

Claude Code (CLI)

claude mcp add terminal -- npx mcp-server-terminal

Claude Desktop

Add to ~/.claude.json (macOS/Linux) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "terminal": {
      "command": "npx",
      "args": ["mcp-server-terminal"]
    }
  }
}

OpenAI Codex

Codex CLI

codex mcp add terminal -- npx mcp-server-terminal

Codex Configuration File

Add to ~/.codex/config.toml:

[mcp_servers.terminal]
command = "npx"
args = ["mcp-server-terminal"]

Google Gemini

Gemini CLI

gemini mcp add terminal npx mcp-server-terminal

VS Code / GitHub Copilot

VS Code 1.101+ supports MCP. Add to your VS Code settings (settings.json):

{
  "mcp.servers": {
    "terminal": {
      "command": "npx",
      "args": ["mcp-server-terminal"]
    }
  }
}

Cursor

Add to ~/.cursor/mcp.json or .cursor/mcp.json in your project:

{
  "mcpServers": {
    "terminal": {
      "command": "npx",
      "args": ["mcp-server-terminal"]
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "terminal": {
      "command": "npx",
      "args": ["mcp-server-terminal"]
    }
  }
}

Zed

Add to your Zed settings (Preferences → Settings):

{
  "context_servers": {
    "terminal": {
      "command": {
        "path": "npx",
        "args": ["mcp-server-terminal"]
      }
    }
  }
}

Cline (VS Code Extension)

Click MCP Servers icon → Configure → Advanced MCP Settings, then add:

{
  "mcpServers": {
    "terminal": {
      "command": "npx",
      "args": ["mcp-server-terminal"]
    }
  }
}

AWS Bedrock

Add to your Bedrock agent MCP configuration:

{
  "mcpServers": {
    "terminal": {
      "command": "npx",
      "args": ["mcp-server-terminal"]
    }
  }
}

Other MCP Clients

For any MCP-compatible client, configure the server with:

  • Command: npx
  • Args: ["mcp-server-terminal"]

Or if using the binary directly:

  • Command: terminal-mcp

Usage

Ask your AI agent:

  • "Create a terminal session running htop"
  • "Take a snapshot of the terminal"
  • "Press the down arrow key"
  • "Type 'ls -la' and press Enter"

MCP Tools

Tool Description
terminal_session_create Start a terminal session
terminal_session_list List active sessions
terminal_session_close Close a session
terminal_session_resize Resize terminal dimensions
terminal_snapshot Capture terminal state with UI elements
terminal_type Type text into terminal
terminal_press_key Press keys (arrows, F-keys, Ctrl+X)
terminal_click Click on detected UI element
terminal_wait_for Wait for text, element, or idle state
terminal_read_output Read raw terminal output

Visual Mode

By default, sessions spawn a visible terminal window (xterm). For headless operation:

npx mcp-server-terminal --headless

Or in your MCP config:

{
  "mcpServers": {
    "terminal": {
      "command": "npx",
      "args": ["mcp-server-terminal", "--headless"]
    }
  }
}

X11 Setup (Linux/WSL)

Visual mode requires X11. Add the DISPLAY environment variable to your MCP config:

{
  "mcpServers": {
    "terminal": {
      "command": "npx",
      "args": ["mcp-server-terminal"],
      "env": {
        "DISPLAY": ":0"
      }
    }
  }
}

Logging

Set the RUST_LOG environment variable:

{
  "mcpServers": {
    "terminal": {
      "command": "npx",
      "args": ["mcp-server-terminal"],
      "env": {
        "RUST_LOG": "info"
      }
    }
  }
}

Log levels: error, warn, info, debug, trace

Logs go to stderr (stdout is reserved for MCP protocol).

Platform Support

Platform Architecture Status Visual Mode
Linux x64, arm64 ✅ Full support xterm + tmux
macOS x64, arm64 ✅ Full support Terminal.app / iTerm2
Windows (WSL) x64, arm64 ✅ Full support xterm + tmux (via X11)
Windows (native) x64 ⚠️ Headless only Not supported

Windows users: Use WSL for full functionality including visual mode.

License

MIT

README fetched from the repository 2 hours ago. The original is authoritative.

Questions

About aybelatchane/mcp-server-terminal

How do I install aybelatchane/mcp-server-terminal?

Run claude mcp add terminal -- npx -y mcp-terminal, then add the server to your MCP client's configuration.

Is aybelatchane/mcp-server-terminal safe to use with an AI agent?

Its trust score is 58 out of 100 (fair). It passes 4 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is aybelatchane/mcp-server-terminal still maintained?

The last commit was 9 months ago and 3 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.