Tmux MCP Server

MCP Server for interfacing with tmux sessions

Local serverstdio

What is the Tmux MCP Server?

MCP Server for interfacing with tmux sessions.

What Tmux MCP does

Model Context Protocol server that enables Claude Desktop to interact with and view tmux session content. This integration allows AI assistants to read from, control, and observe your terminal sessions.

Key capabilities

  • 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 it at your own risk ⚠️)
  • Create new tmux sessions and windows
  • Split panes horizontally or vertically with customizable sizes
  • Kill tmux sessions, windows, and panes

Requirements

  • Node.js - tmux installed and running

Practical notes

  • Maintained by nickgnd.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
list-sessionsList all active tmux sessions
find-sessionFind a tmux session by name
list-windowsList windows in a tmux session
list-panesList panes in a tmux window
capture-paneCapture content from a tmux pane
create-sessionCreate a new tmux session
create-windowCreate a new window in a tmux session
split-paneSplit a tmux pane horizontally or vertically with optional size
kill-sessionKill a tmux session by ID
kill-windowKill a tmux window by ID
kill-paneKill a tmux pane by ID
execute-commandExecute a command in a tmux pane
get-command-resultGet the result of an executed command

How to install the Tmux MCP Server

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

Maintainer configuration example. Replace example paths and credential placeholders before connecting.

Configuration

  • Node.js - tmux installed and running

Example prompts to try

  • “Use Tmux MCP to list-sessions.”
  • “Use Tmux MCP to find-session.”
  • “Use Tmux MCP to list-windows.”

Frequently asked questions

MCP Server for interfacing with tmux sessions Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.