Provides a local MCP server to manage tmux sessions, windows, and panes via AI assistants.
Configuration
View docs{
"mcpServers": {
"audibleblink-tmux-mcp-server": {
"command": "tmux-mcp-server",
"args": []
}
}
}You run a local MCP server to let AI assistants interact with your terminal multiplexer, enabling you to manage tmux sessions, windows, and panes programmatically. This server exposes a set of actions you can call to list, create, modify, and control your tmux environment from an automation client.
You can connect to the tmux MCP server from your MCP client using the local stdio endpoint. The server exposes actions for session, window, and pane management, as well as commands to interact with running panes. Typical workflows include listing sessions to find or verify your workspace, creating a new session for a project, splitting windows into panes for parallel tasks, and sending commands to specific panes to automate your workflow.
Operational patterns you’ll use often: - Start a tmux session for a project, then create windows and panes to organize your work. - Rename sessions, windows, or panes to keep your layout clear. - Send commands to a pane to automate builds, tests, or live demonstrations. - Capture or extract pane output for logging or analysis.
# Prerequisites
node --version # Node.js >= 18
tmux --version # tmux installed and in PATH
# Install the MCP server globally
npm install -g @audibleblink/tmux-mcp-server
# Or run directly with npx
npx @audibleblink/tmux-mcp-server
# Standalone usage (standalone executable in PATH after install)
tmux-mcp-serverConfigure clients to discover and connect to the tmux MCP server using the provided examples for Claude Desktop and OpenCode. These snippets show how to register the local server so your AI assistant can reach it without manually wiring endpoints.
{
"mcpServers": {
"tmux": {
"command": "npx",
"args": ["-y", "@audibleblink/tmux-mcp-server"]
}
}
}{
"mcp": {
"servers": {
"tmux": {
"type": "local",
"command": ["npx", "-y", "@audibleblink/tmux-mcp-server"]
}
}
}
}List all active tmux sessions
Create a new tmux session
Kill a tmux session
Rename an existing tmux session
List windows in a session
Create a new window
Kill a window
Switch to a window
Rename a window
List panes in a window
Split window into panes
Kill a pane
Switch to a pane
Resize a pane
Send keys/commands to a pane
Capture pane content/output