tmux-mcp is an MCP (Model Context Protocol) server whose goal is to expose the capabilities of the tmux terminal multiplexer to AI assistants, enabling clients such as Claude Desktop to interact with tmux sessions and view their contents. According to the project description, this integration allows AI assistants to read, control, and observe terminal sessions.
In terms of purpose, it targets scenarios that require establishing a connection between an AI assistant and terminal sessions: users can use the AI assistant to view sessions, windows, and panes running in tmux, capture terminal output, and execute commands in a pane and retrieve the results.
Main capabilities include: listing and searching tmux sessions; viewing and navigating tmux windows and panes; capturing and exposing the terminal content of any pane; executing commands in a tmux pane and retrieving the results (the project explicitly warns that this is at your own risk); creating new tmux sessions and windows; splitting panes horizontally or vertically with optional sizes; and closing tmux sessions, windows, and panes.
Resource interfaces include: tmux://sessions for listing all tmux sessions; tmux://pane/{paneId} for viewing the content of a specified pane; tmux://command/{commandId}/result for retrieving the result of an executed command. Tool interfaces include: list-sessions, find-session, list-windows, list-panes, capture-pane, create-session, create-window, split-pane, kill-session, kill-window, kill-pane, execute-command, get-command-result.
For usage, tmux must first be installed and running, and then the MCP server must be added to the Claude Desktop configuration. The server can optionally specify the command-line shell to use; if not specified, bash is used by default. The project description states that the server only needs to know the shell when executing commands, so that it can correctly read the command's exit status.
Applicable scenarios include: letting an AI assistant observe terminal session status, read pane output, create or split workspaces in tmux, and execute commands within a pane and retrieve the results. Limitations and cautions: the command execution feature is marked as "use it at your own risk", meaning there is risk and it should be used with caution; the project does not provide more detailed installation commands, configuration examples, pricing information, or platform support scope, and these contents are not currently provided.