tmux-mcp-tools
Provides tools for creating tmux panes, capturing pane contents, sending raw keystrokes or commands with auto-Enter and optional wait patterns, and writing files via heredoc, enabling control of tmux sessions and long-running interactive tasks.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tmux-mcp-tools start a dev server in a new pane and show me its output"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
tmux-mcp-tools
Retired
This project was retired on 2026-10-02 and is no longer maintained. Use tmux directly through your agent's shell tool. The source is retained for reference, and automated PyPI publishing has been removed.
For long-running or interactive work, create a dedicated tmux window, keep its
pane ID, and use send-keys and capture-pane to interact with it:
tmux new-window -d -n agent-task -P -F '#{pane_id}'
# Replace %12 with the pane ID returned above.
tmux send-keys -t %12 -l 'python -m http.server 8000'
tmux send-keys -t %12 Enter
tmux capture-pane -p -t %12 -S -100
tmux send-keys -t %12 C-cThe documentation below describes the historical MCP interface.
MCP server providing tools for interacting with tmux sessions.
Related MCP server: Tmux MCP Server
Tools
tmux_create_pane: Must create a dedicated pane before running background servers, REPLs, remote shells, or other long-running tasks
tmux_capture_pane: Read pane contents with optional delay and scroll-back
tmux_send_keys: Send raw keystrokes (no auto-Enter) for interactive programs
tmux_send_command: Execute commands with auto-Enter, optional wait pattern
tmux_write_file: Write files via heredoc (for remote/SSH environments)
Configuration
{
"mcpServers": {
"tmux-mcp-tools": {
"command": "uvx",
"args": ["tmux-mcp-tools"]
}
}
}Options
--transport:stdio(default) orhttp--host: HTTP host (default: 127.0.0.1)--port: HTTP port (default: 8080)--enter-delay: Delay before sending Enter in seconds (default: 0.4)
Available Tools
5 toolstmux_capture_paneTmux Capture PaneB
Read pane contents.
For checking output from already-running processes.
Inputs: target_pane (required), delay, scroll_back_screens. Returns: result
tmux_create_paneTmux Create PaneA
Always spin up a dedicated tmux pane before running background, interactive, or remote tasks so servers, REPLs, SSH sessions, and other long commands keep running between tool calls.
Returns the tmux pane_id (e.g., "%12").
Inputs: name. Returns: result
tmux_send_commandTmux Send CommandA
Execute commands with automatic Enter.
CRITICAL: Use wait_for_pattern or analyze the last line of output:
Shell prompt (pattern like r'user@host.*$') → command completed, safe to proceed
Program prompt ((gdb) >>> mysql>) → interactive mode, send input as needed
No prompt / progress indicators → still executing, wait or check with tmux_capture_pane
Inputs: commands (required), target_pane (required), delay, wait_for_pattern. Returns: result
tmux_send_keysTmux Send KeysA
Send raw keystrokes without automatic Enter.
For:
Interactive program control (debuggers, REPLs, TUIs)
Control sequences (C-c, navigation)
Typing without executing
Inputs: keys (required), target_pane (required). Returns: result
tmux_write_fileTmux Write FileB
Write file using heredoc.
Mainly for remote environments (SSH, containers) without direct filesystem access.
Inputs: content (required), file_path (required), target_pane (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a distinct role, and the send_keys vs. send_command pair is explicitly differentiated (raw keystrokes without Enter vs. execution with automatic Enter). There is still some residual overlap since both inject input into a pane, but the descriptions resolve it well.
All tools use the tmux_ prefix with a consistent snake_case verb_noun structure: create_pane, capture_pane, send_keys, send_command, write_file. The pattern is predictable and readable throughout.
Five tools is a tight, well-scoped surface for driving tmux: create, read, and three flavors of input. Nothing feels redundant or padded.
Core interaction is covered, but lifecycle gaps are notable: there is no way to list existing panes/sessions, kill or clean up panes, or create a session/window. Agents can create panes but cannot enumerate or dispose of them, which limits recovery and cleanup workflows.
Maintenance
Related MCP Connectors
Develop, manage, and debug Railway projects, services, and deployments from within agents.
Docs for agent-manager, the terminal UI that runs AI coding agents as live tmux sessions.
Securely control computers you explicitly pair through files, terminals, processes, screenshots, desktop UI/input, clipboard, browser automation, diagnostics, and document tools.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Related MCP Servers
- AlicenseAqualityNot gradedmaintenanceEnables programmatic control over tmux terminal sessions for SSH access, command execution, and terminal automation. Supports creating sessions, sending commands, capturing output, and managing multiple panes for interactive debugging and monitoring.8MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to manage local tmux sessions, including creating and controlling sessions, windows, and panes, sending commands, and capturing terminal output.1610 npmDo What The F*ck You Want To Public
- AlicenseAqualityDmaintenanceAllows AI assistants to create, manage, and interact with tmux sessions, windows, and panes programmatically.19MIT
- AlicenseAqualityDmaintenanceEnables AI agents to spawn, interact with, and orchestrate multiple concurrent terminal sessions via tmux.9MIT