MCP Directory

Tmux MCP Server

Let AI assistants read, control, and observe your tmux terminal sessions, windows, and panes.

Unverified
stdio (local)
No auth
JavaScript

Add to your client

Copy the config for your MCP client and paste it into its config file.

Install / run
npx -y tmux-mcp

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json

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

Step-by-step guides: Add to Claude Desktop · Add to Cursor · Add to Windsurf

Before you start

  • Node.js
  • tmux installed and running

About Tmux MCP Server

A Model Context Protocol server that bridges Claude Desktop and tmux, allowing AI assistants to view and control terminal sessions, windows, and panes — capturing content, executing commands, and managing the tmux layout.

Tools & capabilities (13)

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.

create-session

Create a new tmux session.

create-window

Create a new window in a tmux session.

split-pane

Split a tmux pane horizontally or vertically with optional size.

kill-session

Kill a tmux session by ID.

kill-window

Kill a tmux window by ID.

kill-pane

Kill a tmux pane by ID.

execute-command

Execute a command in a tmux pane (runs arbitrary commands — use at your own risk).

get-command-result

Get the result of an executed command.

When to use it

  • Let an AI assistant observe long-running terminal output across tmux panes.
  • Have Claude run commands in a tmux session and read back the results.
  • Programmatically create, split, and arrange tmux windows and panes during a coding session.
  • Inspect and search existing tmux sessions to surface relevant terminal context to the model.

Security notes

The execute-command tool runs arbitrary shell commands in your tmux panes on your local machine. The README explicitly warns to use it at your own risk. Only enable this server in trusted environments.

Tmux MCP Server FAQ

How do I install it?

Add the server to your Claude Desktop config with command "npx" and args ["-y", "tmux-mcp"]. No separate install step is required beyond having Node.js and tmux.

Can I use a shell other than bash?

Yes. Pass --shell-type to the server (e.g. "--shell-type=fish"). It defaults to bash. The shell is only needed so the server can correctly read a command's exit status when executing commands.

Is it safe to let the model execute commands?

The execute-command tool runs arbitrary commands in your tmux panes, so it can affect your machine. The README explicitly says to use it at your own risk. Only use it in environments you trust.

What resources does it expose?

tmux://sessions (all sessions), tmux://pane/{paneId} (a pane's content), and tmux://command/{commandId}/result (results from executed commands).

Alternatives to Tmux MCP Server

Compare all alternatives →

Microsoft's official browser-automation MCP using Playwright's accessibility tree (no vision model).

Featured
Verified
stdio (local)
No auth
TypeScript
12 tools
Updated 21 days agoRepo

Up-to-date, version-specific library documentation injected into your coding agent.

Verified
stdio (local)
API key
TypeScript
2 tools
Updated 25 days agoRepo

Code intelligence engine that indexes repos into a persistent knowledge graph for AI coding agents.

Unverified
stdio (local)
No auth
C
14 tools
Updated 11 hours agoRepo