Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

Terminal MCP

by mkpvishnuversion 0.3.1i★ –iRuns on your computer
Registry nameio.github.mkpvishnu/terminal-mcp

Install

Overview

Description from the maker (original English)

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

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Developer tools

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • You fill in yourself: TERMINAL_MCP_MAX_SESSIONS, TERMINAL_MCP_IDLE_TIMEOUT

You need

  • PyPIPython’s uv installed (for the uvx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json

{
  "mcpServers": {
    "terminal": {
      "command": "uvx",
      "args": [
        "terminal-mcp"
      ],
      "env": {
        "TERMINAL_MCP_MAX_SESSIONS": "your-value",
        "TERMINAL_MCP_IDLE_TIMEOUT": "your-value"
      }
    }
  }
}

Run this in your terminal

claude mcp add terminal --env TERMINAL_MCP_MAX_SESSIONS=your-value --env TERMINAL_MCP_IDLE_TIMEOUT=your-value -- uvx terminal-mcp

Fill in the empty values before running it.

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "terminal": {
      "command": "uvx",
      "args": [
        "terminal-mcp"
      ],
      "env": {
        "TERMINAL_MCP_MAX_SESSIONS": "your-value",
        "TERMINAL_MCP_IDLE_TIMEOUT": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "terminal": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "terminal-mcp"
      ],
      "env": {
        "TERMINAL_MCP_MAX_SESSIONS": "your-value",
        "TERMINAL_MCP_IDLE_TIMEOUT": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

Values you fill in

  • TERMINAL_MCP_MAX_SESSIONS env
    Maximum concurrent sessions
  • TERMINAL_MCP_IDLE_TIMEOUT env
    Seconds before auto-close (default 1800)

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 8, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account mkpvishnu, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Developer toolsi

  • More stars than 0% of the other 5547 servers in this category
  • Published to the registry more recently than 5% of the other 5547 servers in this category
  • Basic checks equal to or better than 100% of the other 5547 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Terminal MCP safe?

It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed –, and the latest version (0.3.1) reached the registry 8 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: GitHub, Desktop Commander, Cloudflare MCP

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

GitHub

GitHub’s official server lets AI read and manage code, issues and pull requests in your account. Use GitHub’s hosted version or run it locally with Docker.

by githubWidely used★ 34.2KUpdated 5 days ago

Computer or cloud

Desktop Commander

MCP server for terminal commands, file operations, and process management

by wonderwhy-erWidely used↓ 709.6K/wk★ 10.2KUpdated 17 days ago

Runs on your computer

Cloudflare MCP

Cloudflare MCP servers

by cloudflareWidely used★ 4.4KUpdated 14 months ago

Runs in the cloud✓ mcp.cloudflare.com

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

Give your AI a real terminal. Persistent sessions. Interactive programs. Zero limitations.


The Problem

Every AI coding tool hits the same wall: no real terminal access.

Claude Code's Bash tool, GitHub Copilot, and Codex all run commands in isolated subprocesses. Each command starts fresh. No state carries over. That means:

  • No SSH sessions - Can't connect to a remote server and run multiple commands
  • No REPLs - Can't use Python, Node, or Ruby interpreters interactively
  • No database CLIs - Can't maintain a psql, mysql, or redis-cli connection
  • No TUI apps - Can't navigate htop, vim, or fzf with arrow keys
  • No long-running processes - Can't monitor builds, watch logs, or run dev servers

The Solution

terminal-mcp gives AI agents a real terminal. Persistent PTY sessions that survive across tool calls. Send commands, read output, press keys, navigate TUIs - exactly like a human at a terminal.

uvx terminal-mcp

One command. Works with Claude Code, Claude Desktop, VS Code, Cursor, and Windsurf.


Quick Start

1. Install (30 seconds)
# No install needed - run directly

uvx terminal-mcp

Or install globally

pip install terminal-mcp

2. Connect to Your AI Client

Claude Code

Add to ~/.claude.json or project .mcp.json:

{

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

Claude Desktop

Add to claude_desktop_config.json:

{

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

VS Code / Cursor

Click the one-click install badge above, or add to .vscode/mcp.json:

{

"servers": { "terminal-mcp": { "command": "uvx", "args": ["terminal-mcp"] } } }

Windsurf

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

{

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

3. Verify
session_exec  exec="echo hello from terminal-mcp"

What Can You Do With It?

SSH Into Remote Servers
session_create   command="ssh user@prod-server.com"   label="prod"

session_interact session_id="a1b2c3d4" input="df -h" wait_for="\$" session_interact session_id="a1b2c3d4" input="docker ps" wait_for="\$" session_close session_id="a1b2c3d4"

Run Interactive REPLs
session_create   command="python3"  label="python"

session_interact session_id="e5f6g7h8" input="import pandas as pd" wait_for=">>>" session_interact session_id="e5f6g7h8" input="df = pd.read_csv('data.csv')" wait_for=">>>" session_interact session_id="e5f6g7h8" input="df.describe()" wait_for=">>>" session_close session_id="e5f6g7h8"

Query Databases
session_create   command="psql -U admin mydb"  label="db"

session_interact session_id="x1y2z3w4" input="SELECT count(*) FROM users;" wait_for="row" session_interact session_id="x1y2z3w4" input="\dt" wait_for="#" session_close session_id="x1y2z3w4"

Navigate TUI Apps
session_create   command="htop"  label="monitor"

session_read session_id="a1b2c3d4"

Auto-detects TUI, returns screen snapshot

session_send session_id="a1b2c3d4" key="F6" session_read session_id="a1b2c3d4" mode="diff"

Returns only changed lines - saves tokens

session_send session_id="a1b2c3d4" key="F10" session_close session_id="a1b2c3d4"

Monitor Long-Running Builds
session_create   command="bash"  label="build"

session_send session_id="a1b2c3d4" input="npm run build" session_wait_for session_id="a1b2c3d4" pattern="Build complete|ERROR" timeout=120

Run One-Off Commands
session_exec  exec="git log --oneline -10"

session_exec exec="docker compose ps" timeout=10


Features at a Glance

FeatureWhat It Does
Persistent SessionsReal PTY sessions that survive across tool calls
Send + Read in One Callsession_interact halves LLM round trips
Pattern-Based Readswait_for blocks until regex matches - no guessing timeouts
Auto TUI DetectionDetects htop, vim, etc. and auto-switches to screen snapshot mode
Output Diff ModeReturns only changed screen lines - minimizes tokens
Special KeysArrow keys, Tab, F1-F12, Home/End, Page Up/Down
Control CharactersCtrl-C, Ctrl-D, Ctrl-Z, Ctrl-L, telnet escape
Dangerous Command GateBlocks rm -rf, DROP TABLE, `curl\sh` - requires confirmation
OSC 133 Shell IntegrationAuto-detects command boundaries and exit codes
Smart TruncationFour strategies to prevent context overflow
Secret InputSend passwords without logging
Dynamic ResizeResize terminal on the fly with SIGWINCH
Idle CleanupAuto-closes idle sessions
Cross-PlatformLinux, macOS, and Windows support

Tools Reference

terminal-mcp exposes 9 MCP tools. Full details in docs/tools.md.

ToolPurpose
session_createSpawn a persistent terminal session
session_sendSend text, keys, or control characters
session_readRead output (stream, snapshot, auto, diff modes)
session_interactSend + read in one call
session_wait_forWait for regex pattern in output
session_execOne-shot command execution
session_closeClose a session gracefully
session_resizeResize terminal dimensions
session_listList active sessions

Architecture

flowchart LR

Client[AI Client] -->|MCP JSON-RPC| Server[terminal-mcp] Server --> SM[Session Manager] SM --> S1[PTY 1: bash] SM --> S2[PTY 2: python3] SM --> S3[PTY 3: ssh user@host] S1 & S2 & S3 -.->|PTY output| Reader[Reader Thread] Reader -.->|buffer| Server

Each session is backed by a real PTY via pexpect.spawn (or PopenSpawn on Windows). For full architecture details, see docs/architecture.md.


Configuration

All settings configurable via TERMINAL_MCP_* environment variables. Full reference in docs/configuration.md.

SettingEnv VarDefault
Max sessionsTERMINAL_MCP_MAX_SESSIONS10
Idle timeoutTERMINAL_MCP_IDLE_TIMEOUT1800 (30 min)
Safety gateTERMINAL_MCP_SAFETY_GATEon
Buffer capTERMINAL_MCP_MAX_BUFFER_BYTES1000000 (1MB)
TruncationTERMINAL_MCP_TRUNCATION_MODEtail

Example with custom settings:

{

"mcpServers": { "terminal": { "command": "uvx", "args": ["terminal-mcp"], "env": { "TERMINAL_MCP_MAX_SESSIONS": "20", "TERMINAL_MCP_IDLE_TIMEOUT": "3600", "TERMINAL_MCP_TRUNCATION_MODE": "head_tail" } } } }


Documentation

DocumentDescription
Tools ReferenceComplete API for all 9 MCP tools
ArchitectureHow terminal-mcp works under the hood
ConfigurationAll settings and environment variables
Safety & SecurityDangerous command detection and safety gate
Use Cases & ExamplesReal-world recipes and patterns
ChangelogVersion history and release notes
ContributingHow to contribute

Supported Clients

ClientStatusInstall
Claude Code (CLI)Supported~/.claude.json or .mcp.json
Claude DesktopSupportedOne-click install
VS Code (Copilot Chat)SupportedOne-click install or .vscode/mcp.json
CursorSupportedOne-click install or Settings
WindsurfSupported~/.codeium/windsurf/mcp_config.json

Running Tests

pip install -e ".[dev]"

pytest tests/ -v

Contributing

Contributions welcome! See docs/contributing.md for guidelines.

License

MIT

Ask PopNx