Labsco
MCP SERVER

Read what a tmux pane is showing right now, run a command in it, and reshape the session — without touching the long-running process you already have going.

Editors, Terminals & Local Dev EnvironmentVerified
Summary
The build you started an hour ago gets read, not restarted.

capture-pane returns what a pane is displaying right now, which makes an already-running process — a watch, a dev server, a half-finished REPL session — something a model can inspect without owning it. The default execution mode wraps commands, and the vendor's own note marks its edge: heredocs and other multi-line constructs conflict with the wrapping, so interactive work belongs in rawMode. Kill tools reach every level, so it is worth being deliberate about which session id ends up in a prompt.

What it is

A control surface for tmux on the same machine: sessions, windows and panes are listable, readable and killable, and commands can be run inside a chosen pane with their results collected afterwards.

What you get
  • The live layout — active sessions, a session found by name, the windows in a session and the panes in a window
  • The contents of a pane as it stands, with the number of lines you want and colour preserved if you ask for it
  • Command execution inside a specific pane, with the result fetched afterwards by command id
  • A raw mode for interactive programs — REPLs and editors — alongside the default wrapped mode
  • Session and window creation, and panes split horizontally or vertically at a size you choose
  • Teardown at any level: kill a pane, a window or a whole session by id
Requirements

Tmux running on the same machine as the server, with the sessions you want to reach already in it. No credentials. MIT licensed.

Setup effort

One command — npx -y tmux-mcp