MCP server for tmux — browse sessions, capture output, send commands.
MCPpedia last refreshed this data
io.github.fr1sk/tmux-mcp is an MCP server that MCP server for tmux — browse sessions, capture output, send commands. Its tool list has not been published yet over stdio and sse, requires no API key, and scores 78/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"tmux": {
"command": "tmux-mcp"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
MCP server for tmux — browse sessions, capture output, send commands.
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
npx -y '@fr1sk/tmux-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked @fr1sk/tmux-mcp against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in other
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 60-95% fewer tokens, same answers. Library, proxy, MCP server.
SQL for Android APK and DEX files: classes, methods, strings, references and smali.
System 1 decision models (Jev, Laya, Cua-S1) as brain for agents: Browser use, computer use, games and robotics
MCP Security Weekly
Get CVE alerts and security updates for io.github.fr1sk/tmux-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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 TMUX_MCP_ALWAYS_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.
Read your terminal state
See what's on screen
Create and organise
Clean up
Control panes
C-c to interrupt, Escape to exit, arrow keys, etc.Error-safe
list_sessionsLists all active tmux sessions. No parameters.
Returns: session name, number of windows, creation time, attached/detached status.
list_windowsLists windows inside a session.
| Parameter | Type | Description |
|---|---|---|
session | string | Session name (from list_sessions) |
Returns: window index, name, pane count, whether it's the active window.
list_panesLists panes inside a session or window.
| Parameter | Type | Description |
|---|---|---|
target | string | Session name (work) or session:window (work:0) |
Returns: pane index, title, dimensions (e.g. 220x50), whether it's active, running command.
capture_paneCaptures the current terminal output of a pane.
| Parameter | Type | Default | Description |
|---|---|---|---|
target | string | — | Pane target: session:window.pane (e.g. work:0.0) |
lines | number | 150 | Lines of scrollback to include (max 5000) |
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_keysSends a command or key sequence to a pane and captures the result.
| Parameter | Type | Default | Description |
|---|---|---|---|
target | string | — | Pane target: session:window.pane |
keys | string | — | Command or tmux key notation (C-c, Escape, Up, etc.) |
enter | boolean | true | Press Enter after the keys |
capture_lines | number | 50 | Lines to capture after sending |
wait_ms | number | 400 | Milliseconds to wait before capturing |
Returns: confirmation + pane output after the command ran.
new_sessionCreates a new detached tmux session.
| Parameter | Type | Description |
|---|---|---|
name | string | Session name. Omit to let tmux auto-assign one. |
cwd | string | Working directory for the session. |
command | string | Shell command to run immediately in the first window. |
new_windowCreates a new window inside an existing session.
| Parameter | Type | Description |
|---|---|---|
session | string | Session to create the window in. |
name | string | Window name. |
cwd | string | Working directory for the new |