tmux-mcp server
io.github.fr1sk/tmux-mcp·v0.3.3·1 starsMCP server for tmux — browse sessions, capture output, send commands.
1 stars
Reviews
Write oneNobody has reviewed tmux-mcp yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
tmux-mcp tools (14, 6 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
capture_paneCapture current output of a tmux pane. Target format: 'session:window.pane' (e.g. 'work:0.0'). Use list_sessions → list_windows → list_panes to build the target. WARNING: pane output may contain environment variables, API keys, tokens, and credentials — do not call if the pane may contain sensitive data unless the user has confirmed it is safe. AFTER displaying the output, always ask the user what
get_configReturns the current tmux-mcp configuration: whether tmux is installed, the default session name, and whether the agent is configured to always route shell commands through tmux. Call this at the start of any task to check how the agent should behave. If alwaysUseTmux is true, route all shell commands through send_keys in the configured session instead of direct Bash for the remainder of the task.
kill_panewrite actionKill a tmux pane and terminate its running process. ALWAYS confirm with the user before calling — this is destructive and cannot be undone. Target format: 'session:window.pane'.
kill_sessionwrite actionKill a tmux session and all its windows and panes. ALWAYS confirm with the user before calling — this is destructive and cannot be undone.
kill_windowwrite actionKill a tmux window and all its panes. ALWAYS confirm with the user before calling — this is destructive and cannot be undone. Target format: 'session:window'.
list_panesList panes in a tmux target. Pass a session name ('work') or session:window ('work:0'). When only a session name is passed, lists all panes across all windows in that session. Returns pane index, size, active status, and running command. If there is only one pane, auto-select it without asking. If multiple, present them as choices and ask the user which pane to use.
list_sessionsList all active tmux sessions. Returns session name, window count, creation time, and attached status. WHEN TO CALL: Call this immediately whenever the user mentions tmux, asks to attach a session, wants to see terminal output, check logs, run a command in a pane, or interact with any running process. Do not answer from memory — always call this tool first to get live state. WORKFLOW: After gettin
list_windowsList all windows in a tmux session. Returns window index, name, pane count, and active status. If there is only one window, auto-select it without asking. If multiple, ask the user which window to use.
new_sessionwrite actionCreate a new detached tmux session. Before calling, use list_sessions to check whether a session with the requested name already exists.
new_windowwrite actionCreate a new window in an existing tmux session.
rename_sessionRename an existing tmux session.
rename_windowRename a window in a tmux session. Target format: 'session:window'.
send_keyswrite actionSend keys or a command to a tmux pane, then capture its output. Target format: 'session:window.pane'. Use enter=false for raw tmux key sequences like 'C-c', 'Escape', or arrow keys — these are not shell commands and must not have Enter appended. Use enter=true (default) for shell commands. Set wait_ms higher for long-running commands; 0 captures immediately before output appears. WARNING: this exe
split_paneSplit a tmux pane horizontally or vertically. 'horizontal' = left/right panes side by side. 'vertical' = top/bottom panes stacked. Target format: 'session:window.pane' or 'session:window'.
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan3 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 145 days ago8/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How tmux-mcp compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 82/100
- higher than 63% of 48,255 servers
- Tools
- 14
- the typical server has 7
- Tools that change things
- 43%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 1
- more than 65% of 28,688 servers
What its tools let an agent do: 6 read · 2 create · 2 change · 1 send or post · 3 run or deploy
Install tmux-mcp in Claude Code, Cursor or VS Code
Runs npx -y @fr1sk/tmux-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add tmux-mcp -- npx -y @fr1sk/tmux-mcp
What the publisher says
From the tmux-mcp repository's README, as published. We do not edit it. Read it on GitHub
tmux-mcp
MCP server that gives AI assistants full visibility into your tmux sessions — browse sessions, windows, and panes, read terminal output, and send commands.
Watch your AI agent work in real-time. Enable TMUXMCPALWAYS_USE to force every shell command through a named tmux session instead of direct Bash — every command your AI runs appears live in your terminal, fully auditable.
Works with Claude Code, OpenCode, Cursor, Windsurf, and any MCP-compatible host.
What it can do
Read your terminal state
- List every active tmux session with window count, creation time, and attached status
- List windows inside a session — index, name, pane count, which one is active
- List panes inside a window — size, running command, which one is active
See what's on screen
- Capture the visible output of any pane — up to 5 000 lines of scrollback
- Read logs, compiler errors, server output, test runs — anything in your terminal
Create and organise
- Create sessions, windows, and panes with a working directory and an initial command
- Split panes horizontally or vertically
- Rename sessions and windows for reliable targeting
Clean up
- Kill sessions, windows, or individual panes
Control panes
- Send shell commands to any pane and immediately read the output
- Send raw key sequences: C-c to interrupt, Escape to exit, arrow keys, etc.
- Configurable wait time before capturing so long-running commands have time to finish
Error-safe
- Bad target? No tmux server? Returns a readable error message instead of crashing
Tools
list_sessions
Lists all active tmux sessions. No parameters.
Returns: session name, number of windows, creation time, attached/detached status.
list_windows
Lists windows inside a session.
Returns: window index, name, pane count, whether it's the active window.
list_panes
Lists panes inside a session or window.
Returns: pane index, title, dimensions (e.g. 220x50), whether it's active, running command.
capture_pane
Captures the current terminal output of a pane.
Returns: raw terminal text as it appears on screen.
Security note: pane output can contain environment variables, API keys, tokens, and credentials if they were printed to the terminal. Only use this server in trusted local environments.
send_keys
Sends a command or key sequence to a pane and captures the result.
Returns: confirmation + pane output after the command ran.
new_session
Creates a new detached tmux session.
new_window
Creates a new window inside an existing session.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
tmux-mcp: common questions
- Is tmux-mcp server safe?
- Mostly: it is graded B (82/100). Read the tmux-mcp safety report
- How do I install tmux-mcp?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does tmux-mcp need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is tmux-mcp maintained?
- The last commit was 182 days ago (2026-05-05). The latest release is v0.3.3.
- What can I use instead of tmux-mcp?
- Servers from other publishers that do the same job: Ouroboros MCP server.
- How does tmux-mcp compare with other MCP servers?
- safety score 82/100 (higher than 63% of 48,255 servers); tools 14 (the typical server has 7); tools that change things 43% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to tmux-mcp
Same job from other publishers: the closest match first, then the best rated.
- OuroborosPins an acceptance spec; the verify command and expected output never enter the success contract.not reviewedWidely usedC