Basic information

Runtime
JavaScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
nickgnd
Submitted by
Community
Quality
50
Stars
294

About Tmux MCP Server

Interact with and view tmux session content easily. Use Tmux MCP for tmux commands like tmux list sessions and more.

Tmux MCP is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by nickgnd. It exposes 13 tools, including list-sessions, find-session, list-windows, list-panes and more. Supported transport: stdio. Runtime: JavaScript. License: MIT. The repository has 294 GitHub stars. Source code is hosted on github.com. Related topics: community, developer-tools, mcp, mcp-server, tmux.

Setup

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

Tmux MCP config

Add this server to your MCP-compatible client using the configuration below.

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

Tmux MCP tools

  • list-sessions — List all active tmux sessions
  • find-session — Find a tmux session by name
  • list-windows — List windows in a tmux session
  • list-panes — List panes in a tmux window
  • capture-pane — Capture content from a tmux pane with configurable lines count and optional color preservation
  • create-session — Create a new tmux session
  • create-window — Create a new window in a tmux session
  • kill-session — Kill a tmux session by ID
  • kill-window — Kill a tmux window by ID
  • kill-pane — Kill a tmux pane by ID
  • split-pane — Split a tmux pane horizontally or vertically
  • execute-command — Execute a command in a tmux pane and get results. For interactive applications (REPLs, editors), use `rawMode=true`. IMPORTANT: When `rawMode=false` (default), avoid heredoc syntax (cat << EOF) and other multi-line constructs as they conflict with command wrapping. For file writing, prefer: printf 'content\n' > file, echo statements, or write to temp files instead
  • get-command-result — Get the result of an executed command

Overview

What is Tmux MCP?

Tmux MCP Server enables Claude Desktop to interact with and view tmux session content, allowing AI assistants to read from, control, and observe terminal sessions.

How to use Tmux MCP?

Add this MCP server to your Claude Desktop configuration by specifying the command and arguments. Optionally set the shell type with --shell-type (defaults to bash). The server provides resources (tmux://...) and tools to list, capture, create, and kill tmux sessions, windows, and panes.

Key features of Tmux MCP

  • List and search tmux sessions
  • View and navigate tmux windows and panes
  • Capture and expose terminal content from any pane
  • Execute commands in tmux panes and retrieve results (use at own risk)
  • Create new tmux sessions, windows, and split panes
  • Kill tmux sessions, windows, and panes

Use cases of Tmux MCP

  • Let an AI assistant read the output of a running terminal process
  • Execute commands in a specific pane and inspect their results
  • Create new tmux windows or split panes during a session

Frequently asked questions

1 What prerequisites does Tmux MCP Server require?

Node.js and a running tmux installation are required.

2 How do I configure the shell type for command execution?

Use the --shell-type flag when starting the server, e.g., --shell-type=fish. Defaults to bash.

3 What resources and tools does Tmux MCP Server provide?

It provides resources like tmux://sessions and tmux://pane/{paneId}, and tools such as list-sessions, capture-pane, execute-command, create-session, split-pane, and more.

4 Is there any risk when using Tmux MCP Server?

Executing commands in tmux panes is done at your own risk, as indicated by the warning in the README.

5 Does Tmux MCP Server support authentication or transports?

The README does not mention any authentication or additional transport options beyond standard MCP.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬