
Interactive Terminal
io.github.amol21pPublished by GitHub account amol21pv1.0.7Updated Oct 27, 2026
MCP server for real interactive terminal sessions — REPLs, SSH, databases, Docker
The publisher's own server: Terminal Tax
Overview
Local MCP server that gives an assistant real interactive terminal sessions — REPLs, SSH, database clients, Docker shells — with clean text output.
- What you can do
- Create, list and close interactive terminal sessions running any command such as bash, python3, psql, ssh or docker exec
- Send input to a session and get back the output, with automatic detection of when the command has finished
- Read the current terminal screen without sending anything
- Send control keys such as ctrl+c, ctrl+d, tab, escape and arrow keys
- Confirm and run commands flagged as dangerous after supplying a justification
- When to use it
- Useful when an assistant needs to drive programs that expect a live terminal: REPLs, database clients, SSH sessions, container shells or long-running CLIs that a plain one-shot command tool cannot handle. It is a local developer tool, so it suits coding agents on a developer machine rather than remote or shared deployments.
- Requirements
- Runs locally over stdio, typically started with npx, so Node.js 18 or newer is required. Full terminal emulation needs the native node-pty module and build tools; without them the server falls back to a simpler pipe mode. Optional environment variables configure session limits, command allow/block lists, allowed paths, secret redaction, idle timeout, audit logging and sandboxing.
Installation
In SourceWeft
- Open Interactive Terminal in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
mcp-interactive-terminal
[npm version] [License: MIT] [Node.js >= 18]
MCP server that gives AI agents (Claude Code, Cursor, Windsurf, etc.) real interactive terminal sessions. Run REPLs, SSH, database clients, and any interactive CLI — with clean text output, smart completion detection, and 7-layer security.
Why This Exists
AI coding agents can't handle interactive commands. There's no PTY, no stdin streaming. You can't run rails console, python, psql, ssh, or any REPL through them. This MCP server fixes that.
Install
Claude Code
That's it. The server is now available. Ask Claude to "open a python REPL and calculate 2**100".
Cursor
Go to Settings > MCP Servers, click Add Server, and enter:
Windsurf
Add to your MCP configuration:
VS Code (GitHub Copilot)
Add to your .vscode/mcp.json:
Any MCP Client
The server communicates over stdio using the Model Context Protocol. Any MCP-compatible client can use it with the same npx -y mcp-interactive-terminal command.
Real-World Examples
Rails Console
Python REPL
Database Client
SSH
Docker
Node.js REPL
Tools
The server exposes 7 MCP tools:
create_session — Spawn an interactive process
send_command — Send input and get output
Dangerous commands (rm -rf, DROP TABLE, curl|bash, etc.) are blocked — the agent must use confirm_dangerous_command first.
read_output — Read terminal screen (read-only)
Safe to auto-approve — this only reads, never sends input.
list_sessions — List active sessions (read-only)
Safe to auto-approve.
close_session — Kill a session
send_control — Send control characters
Supported: ctrl+c, ctrl+d, ctrl+z, ctrl+l, ctrl+r, tab, escape, up, down, left, right, enter, backspace, delete, home, end, and more.
confirm_dangerous_command — Two-step safety confirmation
Required when send_command detects a dangerous pattern. The agent must explain why the command is necessary. This is a separate tool — even if send_command is auto-approved, this requires its own permission.
How It Works
Two Terminal Modes
PTY mode (default) — uses node-pty + @xterm/headless (the same terminal emulator as VS Code):
- Clean output — the AI sees exactly what a human would see on screen
- Cursor positioning, progress bars,
\roverwrites all render correctly - Full keyboard: arrow keys, tab completion, ctrl+c/d/z, home/end
- Terminal resize, TUI apps (vim, htop, top), 256-color, 1000-line scrollback
Pipe mode (automatic fallback) — activates when node-pty can't load (e.g., in sandboxed environments):
- Interactive sessions still work via
child_process.spawnwith auto-injected flags (python -u -i,bash -i, etc.) - ANSI codes stripped, control keys still work
- No terminal emulation, but covers the basics
The mode is selected automatically — PTY is tried first, pipe mode kicks in if it fails.
What the AI sees: PTY vs Pipe
Smart "Command Done" Detection
Instead of blindly waiting a fixed time, the server uses a layered strategy:
- Process exit — if the process died, command is done
- Prompt detection — auto-detects the session's prompt at startup (bash
$, python>>>, psql#, etc.), watches for it to reappear - Output settling — no new output for 300ms = probably done
- Timeout — always returns after
timeout_mswithis_complete: false
Security
Seven-layer defense-in-depth:
Recommended Permissions
Only auto-approve the read-only tools:
This way send_command, create_session, and especially confirm_dangerous_command always require human approval.
Configuration
All settings via environment variables. Pass them in your MCP config:
Troubleshooting
"Tools not showing up" / Server fails silently
MCP servers that fail to start often show no error in the client. Check:
Node.js version too old
The server requires Node.js >= 18. If you see errors about unsupported syntax or missing APIs:
For nvm/volta/fnm users: npx may use a different Node version than your shell. Use an absolute path:
Find your path with: which npx
node-pty compilation errors
node-pty is a native module that requires build tools. If it fails to compile, the server automatically falls back to pipe mode — interactive sessions still work, just without terminal emulation.
If you want full PTY support:
Session dies immediately
Some commands need to be run inside a shell rather than directly:
This is because create_session runs the command directly (like exec), not through a shell. Spawning bash first gives you a full shell environment.
Output looks garbled
If output contains escape codes or looks wrong, you're likely in pipe mode (node-pty failed to load). Check the server logs for "falling back to pipe mode". Install build tools (see above) to enable PTY mode.
Timeout too short for long-running commands
Increase the timeout per-command:
Or globally via environment variable:
Comparison with Alternatives
Development
Test with MCP Inspector:
License
MIT
Source: README.md at commit 6f2e6aa
Tools
0Version history
1- v1.0.7LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Terminal integrations

Terminal Tax
tax.terminalOfficial publisher
Hosted tax-filing server that lets an assistant send a US federal 2025 individual return's facts, get it computed and checked, and hand back a private signing…
Terminal
mn.dtaOfficial publisher
A remote MCP server for Mongolia's signed macro and market data archive, letting an assistant search series, pull panels and verify signed observations.
SCRIPTMASTERLABS — Quant Terminal
com.scriptmasterlabs
Remote MCP endpoint offering real-data ticker levels and a "squeeze-mirror" projection for quantitative trading analysis.

Terminal 7
Published by GitHub account LinkMarine777
Remote MCP server giving assistants read-only signals, scores, launch radar and market mood for stonkfun coins on Solana.
terminal-use
Published by GitHub account computer-agent-labs
Lets an AI assistant drive real terminal sessions on your machine: type, press keys, click, read the screen and take screenshots, including full-screen TUIs.