Skip to content
MCP server

mcp-tmux

MCP server that lets AI agents drive tmux sessions locally or over SSH, visibly

Actively maintained

The repository was last updated 52 days ago and is published under MIT.

mcp-tmux is an open-source MCP server for developer tools. It is available on CLI, Linux, macOS and Self-hosted.

Pricing
Open source
Platforms
CLI, Linux, macOS
What it can do
Can change data (2 tools)
GitHub stars
6
Last commit
Language
Python

Similar MCP servers

About mcp-tmux

Gives an AI assistant full control of tmux: creating sessions and windows, sending keystrokes, reading pane output, and running commands on the local machine or on remote hosts reached over SSH. Because the agent works in real tmux sessions rather than a hidden sandbox, anyone attached to a session can watch its commands and output live and type into the same pane.

The server exposes a large tool surface grouped into opt-in toolsets, so a session only loads the schema it needs. A raw tmux command passthrough covers any subcommand not given a dedicated tool. It detects the target's tmux version and only uses flags that version supports, and it can optionally keep a persistent control-mode connection for faster commands and event-driven waiting.

It suits developers who want to pair with an AI on a shared terminal, or who need an agent to run and monitor long jobs, builds or logs on servers they already reach through tmux.

Tools this server provides (5)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 2 of 5 tools change data; 3 names don't say.

From the server's own tool labels and tool names; not verified by us.

tmux_command
Runs any tmux subcommand with the given arguments.
tmux_send_keysName suggests: changes
Types text into a tmux pane, optionally pressing Enter.
tmux_capture_pane
Reads the current output of a tmux pane.
tmux_new_session
Creates a new tmux session, optionally detached.
tmux_runName suggests: changes
Runs a command in a tmux pane as part of the automation toolset.

What it does

Shared live sessions
Attached humans see the agent's keystrokes and output in real time and can type into the same pane.
Local and remote targets
Any tool can run against the local tmux server or a named profile or user@host over SSH.
Toolset selection
Tools are grouped into opt-in toolsets so sessions load only the schema they need.
Raw command passthrough
A tmux_command tool runs any tmux subcommand not covered by a dedicated tool.
Live output streaming
Optional control-mode streams let clients long-poll pane output instead of repeatedly capturing it.
SSH connection multiplexing
Remote calls reuse SSH connections so only the first call to a host pays the handshake cost.

Good for

  • Pair programming with an AI in a shared terminal session
  • Letting an agent run and monitor long builds or log tails on a server
  • Driving tmux sessions on remote hosts reached over SSH
  • Automating interactive shell workflows that need persistent panes

Pricing

Open source

Free and open source under the MIT license.

mcp-tmux FAQ

How do I register the server with Claude Code?

Run mcp-tmux register, which adds it at user scope by default so it is visible from every directory. Restart any running client session afterwards.

What does the server need on the host?

Python 3.10 or newer on the machine running the server, plus the tmux binary, and ssh for remote targets.

Which tmux versions are supported?

The server works with tmux 1.8 and later, detecting the target version and only using compatible flags. The optional control-mode transport requires tmux 3.2 or later.

Can a human see what the agent is doing?

Yes. Because the agent drives real tmux sessions, anyone attached to the session sees its keystrokes and output live.

Is mcp-tmux free?

Yes. mcp-tmux is open source, so you can use and self-host it for free.

What are the best alternatives to mcp-tmux?

The closest alternatives to mcp-tmux are tmux-mcp, tmux, tui-mcp, pty-mcp and Terminal MCP.

Where this comes from

  • Description: written from the project's README.

How AIPoweredBot checks servers