mcp-tmux
A comprehensive, universal MCP server for driving tmux — sessions, windows, panes, sending keystrokes, and reading pane output — on the local machine or on remote hosts over SSH.
Source: https://github.com/laszlopere/mcp-tmux
Shared, visible sessions — pair with the AI
This is the whole point, not a caveat: the agent drives real tmux sessions, not a private sandbox. When you attach to a session the agent is using, you see its keystrokes and command output live, and you can type into the very same pane. Nothing the agent does is hidden from an attached human — by design.
That makes tmux a natural medium for pair programming with the AI: open a shared session, watch it work, take the keyboard when you want to step in, and hand it back. The agent and you cooperate in one place instead of the agent operating out of sight. (Because writes into an attached session are visible and real, be deliberate with destructive commands — you're both driving the same terminal.)
Design goals
- Comprehensive. Curated tools cover the common operations ergonomically,
and a raw
tmux_commandpassthrough runs any tmux subcommand — so whatever your tmux supports, this server supports. - Universal. Works against tmux 1.8+ (≈2013 — covers virtually every live distro). The server detects the target's tmux version and only uses flags/format variables that version understands.
- Local + remote. Any tool can run against the local tmux or a remote host
over SSH (ad-hoc
user@hostor a named profile from the config file). Old or minimal boxes only needtmux+ssh; the server itself runs on a modern host with Python 3.10+.






