tmux-mcp
Allows agents to interact with live tmux sessions, windows, and panes by sending text or keypresses to any pane, reading pane contents, listing all sessions/windows/panes, creating new sessions/windows/panes with chosen names, and killing panes opened by the agent.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tmux-mcpopen a pane named build, run npm test, then show me the output"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
tmux-mcp
A small MCP server that lets an your agent run commands interactively, not in one-shot mode, in a live tmux pane that you can watch and type in too.
It is not limited to one session: the agent can list every tmux session, window and pane on the machine, create sessions with any name, and send keys to or read from any pane, including your own.
Tools
tmux_send: type or paste text and keys into any panetmux_read: read what's on any panetmux_list_panes: list all sessions, windows and panestmux_new: open a session, window or pane with a name you choosetmux_kill: close one that the agent opened
Related MCP server: mcp-tmux
Setup
Needs uv and tmux.
git clone https://github.com/vn-lazyming/tmux-mcp
cd tmux-mcp && uv sync
claude mcp add tmux -- uv run --directory "$PWD" server.pyWatch what the agent does:
tmux attach -t agentThe session name defaults to agent. Change it with the TMUX_MCP_SESSION env var.
Develop
make dev # install dev tools
make lint # ruff format --check, ruff check, ty
make test # self-check on a private tmux serverLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for agentverse documentation, generated by doc2mcp.
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Secure and manage MCP servers through the Speakeasy AI Control Plane from your agent.
1242The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives AI assistants the ability to create, manage, and control terminal sessions through a safe, isolated tmux environment.1ISC
- AlicenseBqualityAmaintenanceA comprehensive MCP server for driving tmux sessions, windows, panes, sending keystrokes, and reading pane output locally or over SSH, enabling real-time collaborative pairing with AI.7142 PyPI6MIT
- AlicenseAqualityCmaintenanceMCP server that gives AI agents real interactive terminal sessions for running REPLs, SSH, database clients, and any interactive CLI with clean text output and smart completion detection.746 npm19MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that enables AI agents to run fully interactive SSH sessions (via tmux) and execute commands like a human operator, with persistent sessions and multiple concurrent connections.6MIT