Tmux

v0.2.2Developer Toolsstable

Enables comprehensive tmux session management through MCP, allowing users to list sessions, send commands, set up automated messaging timers, and control tmux processes directly from Claude Desktop. Provides both real-time session monitoring and auto

mcpmcp-servertmuxclaude
Share:
279
Stars
0
Downloads
0
Weekly
0/5

What is Tmux?

Tmux is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables comprehensive tmux session management through mcp, allowing users to list sessions, send commands, set up automated messaging timers, and control tmux processes directly from claude desktop. p...

Enables comprehensive tmux session management through MCP, allowing users to list sessions, send commands, set up automated messaging timers, and control tmux processes directly from Claude Desktop. Provides both real-time session monitoring and auto

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Enables comprehensive tmux session management through MCP, a

Use Cases

Manage tmux sessions and send commands from Claude Desktop.
Monitor sessions in real-time and automate timers.
Control terminal multiplexing programmatically.
nickgnd

Maintainer

LicenseMIT License
Languagejavascript
Versionv0.2.2
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y tmux-mcp

Manual Installation

npx -y tmux-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Tmux

The Tmux MCP Server gives AI assistants direct control over tmux — the terminal multiplexer — through a standardised set of session, window, and pane management tools. Using it, Claude Desktop can list and create sessions, capture pane output in real time, split panes, send commands to running processes, and retrieve execution results. This makes it straightforward to build AI-driven terminal workflows: running build pipelines, monitoring long-running processes, or orchestrating multi-pane development environments entirely through natural language.

Prerequisites

  • tmux installed and available on PATH (version 2.6+ recommended)
  • Node.js 18+ for running the server via npx
  • An active tmux server (at least one session running or startable)
  • Claude Desktop or another MCP-compatible client
1

Ensure tmux is installed

The MCP server requires tmux to be present on your system. Install it with your package manager if it is not already available.

# macOS
brew install tmux

# Ubuntu/Debian
sudo apt install tmux
2

Add the server to Claude Desktop configuration

Open your Claude Desktop config file and add the tmux-mcp server entry. The server is run via npx so no global installation is required.

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

Optional: specify a preferred shell

By default the server uses bash for command execution. Pass --shell-type to use a different shell such as fish or zsh.

{
  "mcpServers": {
    "tmux": {
      "command": "npx",
      "args": ["-y", "tmux-mcp", "--shell-type=fish"]
    }
  }
}
4

Restart Claude Desktop

Quit and reopen Claude Desktop so it discovers the new MCP server. You should see tmux tools available when you start a new conversation.

5

Start a tmux session and experiment

Either create a session through Claude or start one manually first. Ask Claude to list your sessions, capture pane output, or run a command inside a specific pane.

tmux new-session -d -s main

Tmux Examples

Client configuration

Claude Desktop configuration for the tmux MCP server with default bash shell.

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

Prompts to try

Example prompts to use once the tmux MCP server is connected.

- "List all my active tmux sessions"
- "Create a new tmux session called 'dev' and open three panes: editor, tests, and server"
- "Capture the current output of the pane running my test suite"
- "Send the command 'npm run build' to the pane in the main session"
- "Kill the session named 'old-project'"
- "Split the current pane horizontally and run 'tail -f app.log' in the new pane"

Troubleshooting Tmux

Error: tmux not found or command not available

Install tmux with your system package manager (`brew install tmux` on macOS or `sudo apt install tmux` on Linux). Confirm it is on PATH by running `which tmux` in a terminal.

execute-command runs but get-command-result returns empty output

Some commands produce no stdout or write to stderr instead. Use `capture-pane` on the target pane immediately after execution to see the raw terminal buffer, which includes both stdout and stderr.

Claude Desktop cannot connect to the tmux MCP server

Verify that npx can resolve the tmux-mcp package by running `npx -y tmux-mcp --help` in a terminal. If that works, restart Claude Desktop and check the MCP server logs under Settings → Developer.

Frequently Asked Questions about Tmux

What is Tmux?

Tmux is a Model Context Protocol (MCP) server that enables comprehensive tmux session management through mcp, allowing users to list sessions, send commands, set up automated messaging timers, and control tmux processes directly from claude desktop. provides both real-time session monitoring and auto It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Tmux?

Install via npm with the command: npx -y tmux-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Tmux?

Tmux works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Tmux free to use?

Yes, Tmux is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

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

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Tmux?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides