← Back to directory
T

Terminal MCP

Community
Let AI see and interact with your terminal.
Category
Dev Tools #573 of 751
Stars
★ 149 Very popular
Transport
stdio (local process)
Runtime
Node.js 22.12.0+
Credentials
No credential needed
License
MIT
Last commit
Tools
9
44FMRS · D

According to the supplied README, Terminal MCP lets AI assistants observe and operate terminal sessions through MCP. The README documents nine tools, an stdio MCP configuration example, cross-platform PTY support, session recording, multi-session operation, and an optional sandbox. No server manifest was provided; the listed client support comes from the README.

Strongest · Documentation 13/20 Weakest · Security and permissions 5/20

Reliability
7/20
Security and permissions
5/20
Maintenance
7/20
Documentation
13/20
Setup experience
12/20
Why each score
Reliability 7/20
The README describes stdio MCP, dual-process and headless modes, and lists nine tools with parameters, making the main flow plausible. However, no manifest, source, CI, or test evidence is provided, so initialization, tool behavior, dependencies, and error handling cannot be verified; the score is conservative.
Security and permissions 5/20
The README offers an optional sandbox with filesystem access levels and says network access can be restricted. However, the default terminal lets AI enter commands and drive a shell, while dangerous-action confirmation, default permission boundaries, and data-flow controls are not described; the sandbox implementation cannot be checked from the supplied material. No evidence triggers a stated red line; permission risks and missing evidence warrant a low score.
Maintenance 7/20
The repository is reported as unarchived, has MIT license information, and documents an npm upgrade path and update notifications. There is no evidence of release history, recent commits, maintainer response, dependency updates, or a security reporting channel; stars do not affect this score.
Documentation 13/20
The README gives substantial examples and guidance for installation, configuration, operating modes, tool parameters, recording, multiple sessions, and sandboxing. Deductions reflect limited troubleshooting detail, missing authentication and data-flow explanations, undisclosed capability limits, and the inability to verify documentation against implementation.
Setup experience 12/20
The README provides a global npm installation, an install script, configuration examples for several mainstream clients, and runtime and platform requirements. Deductions reflect runtime and platform preparation, and the lack of CI or test evidence to establish that installation and connection steps are reproducible.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesRuns commands or codeUses the network

Best for

  • Developers who want an AI assistant to observe and operate terminal sessions.
  • Workflows that need multiple isolated PTY sessions in one process.
  • Automation that needs an MCP server without an interactive TTY.

Not for

  • Users who need only file browsing or database access and do not need terminal control.
  • Environments where an AI assistant must not send shell input or read terminal output.
  • Running untrusted commands safely without configuring appropriate restrictions.

Required permissions

  • A terminal session starts a shell subprocess and uses the system permissions available to that shell.
  • Filesystem and network access depend on the shell, runtime environment, and whether sandbox mode is enabled.
  • The sandbox can configure filesystem read-write, read-only, and blocked paths, as well as network mode; Linux sandboxing requires bwrap and socat.

Risks and side effects

  • The AI can drive the shell through `type` and `sendKey`, potentially running commands with side effects.
  • Terminal output may contain sensitive data; session recordings save output to asciicast files.
  • The documented example sandbox configuration permits all network access; restrictions depend on configuration and platform support.
  • PNG screenshot output requires `@resvg/resvg-js`.

Setup

Before you start

Runtime:Node.js 22.12.0+

Other optional settings (1)
NO_UPDATE_NOTIFIER optional Set to `1` to disable update notifications; no credential is needed.

Install Node.js 22.12.0 or later, then install with npm install -g @ellery/terminal-mcp. Add the example terminal entry to your MCP client configuration, or use terminal-mcp setup to configure detected clients. Add --headless for a self-contained process without a TTY, or pass options such as terminal dimensions and shell path.

.mcp.json
{"mcpServers":{"terminal":{"command":"terminal-mcp"}}}

Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "terminal": {
      "command": "terminal-mcp"
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.terminal]
command = "terminal-mcp"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add terminal -- terminal-mcp

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm that tools such as `type` and `getContent` appear in your client's MCP tool list. Ask the assistant to type `echo hello` and read the terminal content to verify the connection and interaction.

Troubleshooting

  1. Confirm Node.js 22.12.0 or later is installed and `terminal-mcp` is available in the client environment.
  2. Check the MCP client's command and arguments; use `--headless` for a single-process mode without a TTY.
  3. Interactive and client modes require an interactive instance to be running; check terminal and Unix socket availability.
  4. For Linux sandbox mode, confirm bwrap and socat are installed; Windows requires the one-time sandbox-runtime setup.
  5. If PNG screenshots are unavailable, check whether `@resvg/resvg-js` is installed.

Things to try

Once connected, you can ask your AI assistant things like:

  • Type `echo hello` in the terminal and tell me what it prints.
  • Press Enter, then read the terminal buffer.
  • Capture a text screenshot of the current terminal state.
  • Create a new terminal session and list the active sessions.

Tools 9

type writes
Send text input to the terminal.
sendKey writes
Send a special key or key combination.
getContent read-only
Get the terminal buffer as plain text.
takeScreenshot read-only
Capture terminal state as plain text, ANSI-colored text, or PNG.
startRecording writes
Start recording terminal output to an asciicast v2 file.
stopRecording writes
Stop a recording and finalize the asciicast file.
createSession writes
Create a terminal session and return its metadata.
listSessions read-only
List active sessions and configured limits.
Show 1 more tools
destroySession destructive
Destroy a session by ID; the default session cannot be destroyed.

Use cases

Debug CLI and TUI applications while viewing their output in real time.
Let an AI assistant operate terminal-based tools and inspect results.
Run in headless mode in CI, containers, or cloud automation environments.
Separate build and diagnostic work across terminal sessions.
Record terminal sessions for playback and debugging.

Supported clients

OpenAI Codex CLI
GitHub Copilot CLI
Gemini CLI
OpenCode
Claude Code
Claude Desktop

Listed from the project's documentation, not tested by this site.

Overview

Terminal MCP exposes a terminal session to AI assistants through MCP. It supports sending input, reading the buffer, capturing terminal state, recording sessions, and managing multiple isolated sessions. It offers interactive, client, and headless modes, with an optional sandbox for filesystem and network restrictions.

Similar servers

Source revision 008701ba7040 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/terminal-mcp.svg)](https://followmcp.com/en/servers/terminal-mcp)