Verified

Tmux MCP Server

Terminal session management for Claude Desktop enabling control of panes and windows.

Data last scanned 2 days ago · Reviewed 2 months ago

94 dangerous tools13 tools301JavaScriptMIT

Overview

This MCP server provides a bridge between Claude Desktop and your tmux environment. It allows AI models to list, navigate, and interact with active sessions, windows, and panes directly from the terminal.

Our verdict

This server carries a high-risk score of 34/100, primarily due to lack of an editorial review, unspecified authentication methods, and unreviewed read-only mode support. Users should exercise caution because the 'execute-command' tool allows the AI to run arbitrary commands within your tmux sessions. It is recommended for advanced users who understand these security implications and are comfortable managing their own risks in a terminal environment.

  • Supports active management of tmux sessions, windows, and panes
  • Small footprint with only three direct dependencies
  • Provides real documentation within the repository
  • High security risk due to lack of audit and external reviews
  • Last commit occurred over five months ago
  • No official vendor maintenance or established security oversight

Setup

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

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), then restart Claude Desktop. Some servers require API keys or tokens as environment variables — check the project's README and add an "env" object if needed.

  • No read-only mode — running this grants full read/write access.
  • No built-in authentication — anyone with access to this config can invoke every tool it exposes.

Tools

ToolDescriptionRisk
list-sessionsList all active tmux sessionslow
find-sessionFind a tmux session by namelow
list-windowsList windows in a tmux sessionlow
list-panesList panes in a tmux windowlow
capture-paneCapture content from a tmux panelow
create-sessionCreate a new tmux sessionmedium
create-windowCreate a new window in a tmux sessionmedium
split-paneSplit a tmux pane horizontally or vertically with optional sizemedium
kill-sessionKill a tmux session by IDhigh
kill-windowKill a tmux window by IDhigh

Compatibility

ClientLocalDockerRemoteRead-only
Claude Desktop
Cursor
VS Code
Windsurf
ChatGPT

Frequently asked questions

What software prerequisites are required to use this server?

You must have Node.js installed and a tmux session running on your machine.

Can I specify a shell other than bash?

Yes, you can configure a custom shell by adding the --shell-type flag to your Claude Desktop configuration arguments.

Why does the server need to know my shell type?

The server requires this information to correctly read the exit status of commands executed within tmux panes.

Does the server allow me to interact with existing terminal sessions?

Yes, you can use the available tools to list sessions, view pane content, and execute commands within existing tmux sessions.

Alternatives

Badge

Tmux MCP Server security score, rated on RepoAI

Maintain this server? Add the live badge to your README.