Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Claude Tmux

FreeNot checked

MCP server for orchestrating multiple Claude Code instances via tmux, enabling spawning, reading, sending, listing, and killing sessions.

GitHubEmbed

About

MCP server for orchestrating multiple Claude Code instances via tmux, enabling spawning, reading, sending, listing, and killing sessions.

README

npm version

MCP server for orchestrating multiple Claude Code instances via tmux.

Installation

Add to your Claude Code MCP settings:

{
  "mcpServers": {
    "claude-tmux": {
      "command": "npx",
      "args": ["-y", "claude-tmux"]
    }
  }
}

Requirements

Tools

spawn

Launch a new Claude Code instance in a tmux session.

spawn(name, prompt, workdir)
  • name: Unique session name (e.g., 'refactor-auth', 'debug-api')
  • prompt: Initial prompt to send to Claude
  • workdir: Working directory for Claude to operate in

read

Wait for Claude sessions to finish working and return terminal output.

read(name: "task-name")           // single session
read(names: ["a", "b", "c"])      // parallel wait on multiple sessions

For multiple sessions, use names to wait in parallel - returns all outputs when all complete.

send

Send a follow-up message to a running Claude session.

send("task-name", "do something else")

list

List all active Claude tmux sessions.

list()

kill

Terminate a Claude tmux session and clean up resources.

kill("task-name")

Usage Pattern

spawn(name, prompt, workdir)  → start session
read(name)                    → wait for completion, get output
send(name, text)              → steer with follow-up
read(name)                    → wait again
kill(name)                    → cleanup

For parallel tasks:

spawn("task-a", ...)
spawn("task-b", ...)
spawn("task-c", ...)
read(names: ["task-a", "task-b", "task-c"])  → wait for all

Idle Detection

read detects completion via:

  1. Done indicator - Claude's status line showing ✻ model for Xm
  2. Stability - Output unchanged for 10 seconds (handles sub-minute tasks that don't show the indicator)

Timeout is 15 minutes.

Tips

  • Verify output shows task completion before killing. Idle agents are fine to leave running.
  • Attach manually: tmux attach -t claude-<name>

from github.com/Ilm-Alan/claude-tmux

Install Claude Tmux in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install claude-tmux

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add claude-tmux -- npx -y claude-tmux

FAQ

Is Claude Tmux MCP free?

Yes, Claude Tmux MCP is free — one-click install via Unyly at no cost.

Does Claude Tmux need an API key?

No, Claude Tmux runs without API keys or environment variables.

Is Claude Tmux hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Claude Tmux in Claude Desktop, Claude Code or Cursor?

Open Claude Tmux on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Claude Tmux with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs