tty-mcp-server
Verified Safeby ljchg12-hue
Overview
An MCP server that enables secure execution of TTY/PTY commands and interactive shell sessions for AI assistants or other clients.
Installation
node /path/to/tty-mcp-server/build/index_minimal.jsEnvironment Variables
- HOME
Security Notes
The server implements strong security measures, including a command whitelist, explicit blocking of dangerous shell metacharacters and command substitution patterns in both commands and arguments, and validation of the working directory to prevent path traversal. It uses `node-pty` to spawn commands directly, bypassing shell interpretation, which is a critical defense against injection. PTY sessions include timeouts and proper cleanup. The extensive whitelist of commands could slightly increase the attack surface if any whitelisted command has an unknown vulnerability, but overall, the approach is robust.
Similar Servers
wcgw
Empowering chat applications to code, build, and run on your local machine by providing tightly integrated shell and code editing tools.
ssh-mcp-server
Bridging AI assistants to remote SSH server operations for command execution, file transfer, and server status retrieval via the Model Context Protocol (MCP).
ssh-mcp-server
Provides secure remote server management capabilities, including SSH connection, command execution, and SFTP file transfers, via the MCP protocol for integration with AI agents.
mcp-server-win-cli
MCP server for secure command-line interactions on Windows systems, enabling controlled access to PowerShell, CMD, Git Bash shells, and remote systems via SSH. It allows MCP clients (like Claude Desktop) to perform operations on your system.