About Tmux MCP
Tmux MCP is an MCP server published by bnomei in the Search category: lets agents create sessions, split panes, run commands, and capture output with TMUX. Conduid read 57 tools from its source: append-buffer, break-pane, capture-pane, create-session, create-window, delete-buffer and 51 more. No package is published for it, so it installs from a source checkout.
The repository has 60 stars and 14 forks, is licensed MIT, and its last commit was on 11 Jul 2026. The latest release is v0.6.0 (11 Jul 2026). It follows v0.5.0 (10 Jun 2026), and the 5 most recent releases go back to v0.2.1 (16 Apr 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include buffer, buffers-explorer, cli, pane, permissions and policy.
Install
git clone https://github.com/bnomei/tmux-mcpTools (57)
append-bufferAppend UTF-8 content to an existing tmux paste buffer.break-paneBreak a pane out into its own window. Use to isolate a noisy pane or to hand off a focused view; returns the new window.capture-paneRead screen content and scrollback from a pane. Returns plain text of pane contents. Use to check state, tail logs, or verify interactive steps; avoid send-keys+send-enter+capture-pane for routine command output; prefer execute-command + get-command-result.create-sessionCreate a new tmux session with the given name. Use to start an isolated workspace for an agent task, then create-window or use the default window.create-windowCreate a new window in a tmux session. Use to separate build/test/log/REPL workspaces; returns the created window with its first pane.delete-bufferDelete a tmux paste buffer by name. Use to clean up sensitive data or reduce clutter after exporting.detach-clientDetach a tmux client by tty. Use to clean up observers or free a session for layout changes; avoid detaching active users unexpectedly.execute-commandRun a shell command in a pane with side-channel exit-code tracking. Returns JSON: {commandId, resourceUri, status, message}. Prefer resources/subscribe on resourceUri then resources/read on notifications/resources/updated; fallback: get-command-result with waitMs. Tracked commands queue per pane. For interactive programs (vim/htop), use send-keys instead.find-sessionFind a tmux session by exact name. Returns JSON: {id, name, attached, windows} or 'Session not found' message. Use when you know a session name and need its ID before targeting windows/panes or renaming.get-command-resultGet status/output of a tracked command by ID (CommandSnapshot JSON). Prefer resources/subscribe + read for async completion; use waitMs to block until terminal or timeout without inventing poll loops. Timeout leaves the command running.get-current-sessionGet the tmux session this server is running in. Use to anchor actions when the agent is attached to a session and you want to avoid targeting the wrong session.join-paneJoin a source pane into the target pane's window. Use to consolidate related work (logs + worker) into one window for easier monitoring.kill-paneClose a tmux pane. Use to stop a pane that is no longer needed or to clean up after finishing a task. Note: if this is the last pane in a window, tmux will close that window too.kill-sessionTerminate a tmux session and all its windows/panes. Use for cleanup in isolated agent sessions; avoid in shared sessions.kill-windowClose a tmux window and all its panes. Use for cleanup after a task window is done; avoid in shared windows.list-buffersList tmux paste buffers. Returns JSON: { buffers: [{name, size, created?}] }. Use before show-buffer/save-buffer/delete-buffer to pick the right buffer and avoid losing data.list-clientsList tmux clients. Returns JSON: { clients: [{tty, name, session_name, pid?, attached}] }. Use to detect observers for handoff, and to avoid detaching active users before disruptive actions.list-panesList panes in a tmux window. Returns JSON: { panes: [{id, window_id, active, title}] }. Use to target the correct pane before execute-command/send-keys/capture-pane, especially in multi-pane workflows.list-sessionsList all tmux sessions with id, name, attached status, and window count. Returns JSON: { sessions: [{id, name, attached, windows}] }. Use at task start to map the workspace and select safe targets before list-windows/kill-session/rename-session.list-windowsList windows in a tmux session. Returns JSON: { windows: [{id, name, active, session_id}] }. Use to plan layouts, select a window, or locate pane IDs before send-keys/capture-pane.load-bufferLoad a tmux paste buffer from a file. Use to import local files into tmux buffers for later search or inspection.move-windowMove a window to another session, optionally at a specific index. Use to reorganize workspaces after tasks complete or to group related windows.paste-textPaste UTF-8 text into a pane via tmux bracketed paste.rename-bufferRename a tmux buffer by copying to a new name and deleting the old buffer.rename-paneSet the title of a tmux pane. Use to label panes for easier identification (log, REPL, server) and faster targeting later.rename-sessionRename a tmux session. Use to keep session names meaningful for handoff and status tracking during long-running tasks.rename-windowRename a tmux window. Use to give windows meaningful names for log/test/build separation and human handoff.resize-paneResize a tmux pane by direction/amount or absolute width/height. Use before capture-pane or interactive work to make logs and prompts readable.save-bufferSave a tmux paste buffer to a file. Use to persist logs or copy-mode selections for audit/review; writes to the filesystem.search-bufferSearch UTF-8 buffers for a query (literal/regex, optional fuzzy) with structured match metadata; offsets are byte-based; use resumeFromOffset when truncatedBuffers is returned; fuzzy matching skips very long lines.select-layoutSelect a window layout (tiled, even-horizontal, main-vertical, etc.). Use to normalize pane geometry for monitoring or broadcasting.select-paneSelect (focus) a tmux pane. Use before send-keys or capture-pane to ensure actions target the intended pane.select-windowSelect (focus) a tmux window. Use before pane actions when window context matters (layout changes, selection, or synchronized panes).send-backspaceSend Backspace key to a pane. Use to correct input while driving prompts or text-based editors.send-cancelSend Ctrl+C to interrupt the current process in a pane. Use to stop a stuck command or to abort a prompt during interactive workflows.send-downSend Down arrow to a pane. Use for shell history navigation or menu movement in interactive programs.send-endSend End key to a pane. Use to jump to end of line or bottom of a view while driving interactive apps.send-enterSend Enter key to a pane. Use to confirm prompts after send-keys in interactive flows; for commands prefer execute-command.send-eofSend Ctrl+D (EOF) to a pane. Use to end input streams or exit a shell when a prompt is waiting for EOF.send-escapeSend Escape key to a pane. Use to exit insert mode, cancel dialogs, or return to normal mode when driving TUIs.send-hexSend raw bytes to a pane as whitespace-separated hex tokens via tmux send-keys -H. Rejects line-editing controls (BS/NAK/ETB/DEL) that can rewrite prior filtered input; use send-backspace for intentional edits.send-homeSend Home key to a pane. Use to jump to start of line or top of a view while driving interactive apps.send-keysSend keystrokes to a pane. Use for interactive programs; prefer execute-command for shell commands.send-leftSend Left arrow to a pane. Use for cursor movement while editing input in shells or TUIs.send-page-downSend Page Down to a pane. Use to scroll through pagers or long outputs during inspection.send-page-upSend Page Up to a pane. Use to scroll in pagers or log views when inspecting earlier output.send-rightSend Right arrow to a pane. Use for cursor movement while editing input in shells or TUIs.send-tabSend Tab key to a pane. Use for shell completion or field navigation when automating prompts or TUIs.send-upSend Up arrow to a pane. Use for shell history recall or menu navigation in interactive programs.set-bufferCreate or replace a tmux paste buffer with UTF-8 content.set-synchronize-panesEnable or disable synchronize-panes for a window. Use to fan out commands to all panes, then disable to avoid accidental broadcasts.show-bufferShow contents of a tmux paste buffer. If name is omitted, shows the most recent buffer. Supports offset/max byte bounds and returns plain text (lossy if needed).socket-for-pathDerive a deterministic tmux socket path for a project directory. Use to pick a per-worktree socket without env vars; returns /tmp/{hash}.sock.split-paneSplit a pane horizontally or vertically, optionally with a size percentage. Use to create parallel views (logs + REPL, editor + tests); returns the new pane.subsearch-bufferAnchor-scoped follow-up search within a UTF-8 buffer (literal/regex, optional fuzzy); offsets are absolute; resumeFromOffset is relative to the anchor window; fuzzy matching skips very long lines.swap-paneSwap two panes. Use to reorder panes within or across windows without closing or recreating them.zoom-paneToggle zoom for a tmux pane. Use to focus on a single pane for reading logs or driving a TUI, then toggle back.Security checks
- ✓README presentThe repository's README runs to about 3.9K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionScanned 10 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
Releases
README
The repository's README runs to about 3.9K words, fetched a month ago. The original in the repository is authoritative.
Read full README