Basic information
About mcp server for unix pty control
The native MCP server for Unix PTY control gives AI models authentic, low-latency terminal access by spawning true pseudo-terminals—not brittle AppleScript hacks—so you can open persistent Bash, Python, or SSH sessions, run commands like “ssh prod.server,” and stream only fresh o
mcp server for unix pty control is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by ianks. Supported transport: stdio. Runtime: Rust. The repository has 12 GitHub stars. Source code is hosted on github.com. Related topics: bash, mcp, mcp-client, rust, shell.
Setup
{
"mcpServers": {
"terminal-mcp": {
"type": "stdio",
"command": "terminal-mcp"
}
}
}
{
"mcpServers": {
"terminal-mcp": {
"type": "stdio",
"command": "terminal-mcp"
}
}
}
{
"servers": {
"terminal-mcp": {
"type": "stdio",
"command": "terminal-mcp"
}
}
}
mcp server for unix pty control config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"terminal-mcp": {
"type": "stdio",
"command": "terminal-mcp"
}
}
}
mcp server for unix pty control tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is mcp server for unix pty control?
It is an MCP server that gives AI models real terminal access by spawning Unix pseudo-terminal sessions, running commands, and reading output. It is designed for developers who need native, low-latency shell interaction for AI agents.
How to use mcp server for unix pty control?
Install with cargo install --git https://github.com/ianks/terminal-mcp, then add to Claude Code using claude mcp add --scope user terminal-mcp. AI models can then call tools like create_session, execute_command, and list_sessions via JSON-RPC.
Key features of mcp server for unix pty control
- True Unix ptys, not AppleScript or workarounds
- Async I/O powered by Tokio
- Smart buffering that only returns new output
- Session persistence across tool calls
- Multi-session support to run several terminals at once
Use cases of mcp server for unix pty control
- AI-assisted remote server debugging via SSH
- Running long-lived shell commands with async output polling
- Automating multi-step development workflows (build, test, deploy)
- Interactive REPL sessions (Python, bash) controlled by an agent
- Switching between multiple terminal contexts in a single conversation
Frequently asked questions
1 What tools does the server expose?
It provides create_session, execute_command, execute_command_async, read_streaming_output, list_sessions, destroy_session, and send_control_character.
2 How does it differ from script-based terminal access?
It uses real pseudo-terminals (ptys) rather than simulated or hacked I/O, giving proper shell interaction with features like ctrl-c, process groups, and terminal signaling.
3 Can I run multiple terminals at the same time?
Yes. The server supports multi-session management, allowing you to spawn several named sessions (e.g., bash, ssh, python) and switch between them.
4 How do I run a long-running command without blocking?
Use the execute_command_async tool to start the command, then poll progress with read_streaming_output until completion. Sessions stay alive between calls.
5 What runtime dependencies does it require?
A Unix-like system with Rust installed (to compile via Cargo) and support for Unix ptys. The server is compiled as a native binary and communicates over MCP (stdio transport by default).
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In