# mcp-tmux

> mcp-tmux is an open-source MCP server for developer tools. MCP server that lets AI agents drive tmux sessions locally or over SSH, visibly. It is available on CLI, Linux, macOS and Self-hosted.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS, Self-hosted
- **Repository:** https://github.com/laszlopere/mcp-tmux
- **GitHub stars:** 6
- **License:** MIT
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## Features

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

## Tools

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_keys` (name 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_run` (name suggests: changes): Runs a command in a tmux pane as part of the automation toolset.

## 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.

## Alternatives

- [tmux-mcp](https://ai-powered.com/mcp/tmux-mcp): tmux-mcp is an open-source MCP server for developer tools.
- [tmux](https://ai-powered.com/mcp/tmux): tmux is an open-source MCP server for developer tools.
- [tui-mcp](https://ai-powered.com/mcp/tui-mcp): tui-mcp is an open-source MCP server for developer tools.
- [pty-mcp](https://ai-powered.com/mcp/pty-mcp): pty-mcp is an open-source MCP server for developer tools.
- [Terminal MCP](https://ai-powered.com/mcp/terminal-mcp): Terminal MCP is an open-source MCP server for developer tools.
- [Ssh Client MCP Server](https://ai-powered.com/mcp/ssh-client-mcp-server-2): Ssh Client MCP Server is an open-source MCP server for developer tools.
- [MCP Console Automation](https://ai-powered.com/mcp/mcp-console-automation): MCP Console Automation is an open-source MCP server for browser automation.
- [mcp-remote-ssh](https://ai-powered.com/mcp/mcp-remote-ssh): mcp-remote-ssh is an open-source MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/mcp-tmux-2
