Skip to main content
Glama
tmux-mcp-tools

tmux-mcp-tools

by PsychArch

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-c

The 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) or http

  • --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 tools
tmux_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

    A3.7/5.0

    Scored across 5 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    Five tools is a tight, well-scoped surface for driving tmux: create, read, and three flavors of input. Nothing feels redundant or padded.

    Completeness3/5

    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

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      Not graded
      maintenance
      Enables 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.
      8
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to manage local tmux sessions, including creating and controlling sessions, windows, and panes, sending commands, and capturing terminal output.
      16
      10 npm
      Do What The F*ck You Want To Public
    • A
      license
      A
      quality
      D
      maintenance
      Allows AI assistants to create, manage, and interact with tmux sessions, windows, and panes programmatically.
      19
      MIT