claude-tmux
Click on "Install 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., "@claude-tmuxspawn session 'task1' in ~/project with prompt 'implement feature'"
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.
claude-tmux
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
tmux must be installed
Claude Code CLI must be installed
Related MCP server: cmuxlayer
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 Claudeworkdir: 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 sessionsFor 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) → cleanupFor parallel tasks:
spawn("task-a", ...)
spawn("task-b", ...)
spawn("task-c", ...)
read(names: ["task-a", "task-b", "task-c"]) → wait for allIdle Detection
read detects completion via:
Done indicator - Claude's status line showing
✻ model for XmStability - 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>
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ilm-Alan/claude-tmux'
If you have feedback or need assistance with the MCP directory API, please join our Discord server