PTY MCP Server
MCP server providing PTY (pseudo-terminal) execution capabilities to AI agents. Enables agents to run interactive terminal commands via PTY — supporting programs that require a TTY, handling interactive prompts, and managing long-running terminal sessions. Written in Haskell.
Score Breakdown
⚙ Agent Friendliness
🔒 Security
Full shell/PTY access — high privilege. Restrict to trusted contexts. Can run any command.
⚡ Reliability
Best When
A developer needs AI agents to run interactive CLI programs that require a PTY — tools that prompt for input, use terminal control codes, or require a real TTY environment to function.
Avoid When
Your commands don't need interactive TTY. Using PTY for simple commands adds complexity. Also: PTY access is powerful — restrict to trusted contexts.
Use Cases
- • Running interactive terminal applications that require PTY from AI agents
- • Executing commands that prompt for interactive input in automated workflows
- • Managing long-running shell sessions with proper terminal handling via AI agents
- • Debugging and testing CLI tools that require real TTY environments
Not For
- • Simple non-interactive command execution (use standard bash/shell MCP instead)
- • Security-sensitive environments where shell access should be restricted
- • Teams unfamiliar with PTY/TTY concepts and their security implications
Interface
Authentication
No authentication — local shell execution via PTY. Access controlled by OS user permissions.
Pricing
Free open source. Requires Haskell/GHC for compilation.
Agent Metadata
Known Gotchas
- ⚠ PTY gives full shell access — only use in trusted, controlled environments
- ⚠ Interactive programs may wait for input indefinitely — implement timeouts for agent use
- ⚠ Requires Haskell toolchain for compilation — adds complexity to setup
- ⚠ Terminal escape codes in output can confuse agents reading raw PTY output
Alternatives
Full Evaluation Report
Detailed scoring breakdown, competitive positioning, security analysis, and improvement recommendations for PTY MCP Server.
Scores are editorial opinions as of 2026-03-06.