Tmux MCP Server
# @audibleblink/tmux-mcp-server
An MCP (Model Context Protocol) server for managing local tmux sessions. Enables AI assistants to interact with tmux for terminal multiplexing, session management, and command execution.
## Installation
```bash
npm install -g @audibleblink/tmux-mcp-server
```
Or run directly with npx:
```bash
npx @audibleblink/tmux-mcp-server
```
## Requirements
- Node.js >= 18
- tmux installed and available in PATH
## Usage
### With Claude Desktop
Add to your Claude Desktop config (`~/.config/claude/claude_desktop_config.json`):
```json
{
"mcpServers": {
"tmux": {
"command": "npx",
"args": ["-y", "@audibleblink/tmux-mcp-server"]
}
}
}
```
### With OpenCode
Add to your OpenCode config (`~/.config/opencode/config.json`):
```json
{
"mcp": {
"servers": {
"tmux": {
"type": "local",
"command": ["npx", "-y", "@audibleblink/tmux-mcp-server"]
}
}
}
}
```
### Standalone
```bash
tmux-mcp-server
```
## Available Tools
### Session Management
- `tmux_list_sessions` - List all active tmux sessions
- `tmux_create_session` - Create a new tmux session
- `tmux_kill_session` - Kill a tmux session
- `tmux_rename_session` - Rename an existing session
### Window Management
- `tmux_list_windows` - List windows in a session
- `tmux_create_window` - Create a new window
- `tmux_kill_window` - Kill a window
- `tmux_select_window` - Switch to a window
- `tmux_rename_window` - Rename a window
### Pane Management
- `tmux_list_panes` - List panes in a window
- `tmux_split_window` - Split window into panes
- `tmux_kill_pane` - Kill a pane
- `tmux_select_pane` - Switch to a pane
- `tmux_resize_pane` - Resize a pane
### Interaction
- `tmux_send_keys` - Send keys/commands to a pane
- `tmux_capture_pane` - Capture pane content/output
## License
WTFPL
TDQS
Scored across 16 tools
Each tool has a clearly distinct purpose targeting specific tmux operations with no overlap. For example, tmux_capture_pane reads content, tmux_send_keys inputs commands, and tmux_kill_pane/ tmux_kill_window/ tmux_kill_session handle different termination scopes, making misselection unlikely.
All tools follow a consistent tmux_verb_noun pattern with snake_case throughout. The naming is predictable and readable, such as tmux_list_sessions, tmux_create_window, and tmux_rename_session, without any deviations in style.
With 16 tools, the count is slightly high but reasonable for comprehensive tmux management, covering sessions, windows, panes, and interactions. It's well-scoped for the domain, though it borders on the heavier side without being excessive.
The tool set provides complete CRUD/lifecycle coverage for tmux operations, including creation, listing, modification, interaction, and termination of sessions, windows, and panes. No obvious gaps exist, enabling agents to perform full workflows without dead ends.