JackMiao999/MCP-TMUX
If you are the rightful owner of MCP-TMUX and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server designed for managing TMUX terminal multiplexer and facilitating communication between AI Agents.
MCP TMUX Server
A Model Context Protocol (MCP) server for operating TMUX terminal multiplexer and supporting communication between AI Agents.
Installation
Install using Claude Command Line Tool (Recommended)
claude mcp add tmux npx mcp-tmux-server@latest
Manual Installation
npm install -g mcp-tmux-server
Core Features
✨ TMUX Operations - Complete tmux session, window, and pane management
🤝 Inter-Agent Communication - Multiple Claude CLI AI Agents can send messages and commands to each other
📁 File System Message Queue - Reliable file system-based message delivery mechanism
🔄 Real-time Status Sync - Agent online status and heartbeat detection
📜 Message History - Complete communication logs and command execution history
Function List
TMUX Management Tools
list_sessions- List all tmux sessionscreate_session- Create a new tmux sessionkill_session- Terminate a specified tmux sessionget_session_info- Get detailed session informationlist_windows- List windows in a sessioncreate_window- Create a new window in a sessionkill_window- Close a specified windowlist_panes- List panes in a windowsplit_window- Split window to create new panecapture_pane- Capture pane contentsend_keys- Send keystrokes to a pane
Inter-Agent Communication Tools
register_agent- Register current Agent to communication networkunregister_agent- Unregister current Agent from communication networklist_agents- List all online Agentssend_message- Send text message to other Agentssend_command- Send executable command to other Agent's terminalget_messages- Retrieve received messagesprocess_commands- Process and execute received commandsget_message_history- View communication history with specific Agentclear_old_messages- Clean up expired messages
Development
Clone and Build
git clone <repository-url>
cd MCP-TMUX
npm install
npm run build
Development Mode
npm run watch # Watch for file changes
npm run dev # Run TypeScript directly
Requirements
- Node.js 18+
- TMUX installed and available in system PATH
License
MIT