← Back to directory
T

Tmux MCP Server

Community
Let AI assistants view and control tmux sessions.
Category
Dev Tools #608 of 751
Stars
★ 306 Popular
Runtime
Node.js
Credentials
No credential needed
License
MIT
Last commit
⚠
Tools
13
42FMRS · D

The README documents tools for viewing and managing sessions, windows, and panes, as well as executing commands in panes. Command execution and killing objects can affect active terminal work, so verify the target before use.

Strongest · Setup experience 12/20 Weakest · Maintenance 6/20

Reliability
8/20
Security and permissions
7/20
Maintenance
6/20
Documentation
9/20
Setup experience
12/20
Why each score
Reliability 8/20
The README lists resources and tools and notes that command execution requires a shell setting, making the basic interaction path plausible. There is no manifest, test, or CI evidence to verify the initialization handshake, tool parameters, error handling, or actual behavior, so points are deducted.
Security and permissions 7/20
The server can read terminal content, execute commands in panes, and terminate sessions, windows, and panes; the README also warns users to execute commands at their own risk. There is no evidence of permission scoping, confirmation for dangerous actions, or data-flow disclosure, so points are deducted. The supplied material does not show a red-line violation.
Maintenance 6/20
The repository is not archived and has an MIT license; it also has 306 stars and 19 open issues. There is no evidence about releases, commit activity, issue responses, dependency updates, a security response channel, or maintainer information, so the score is limited.
Documentation 9/20
The README provides a feature list, prerequisites, a Claude Desktop configuration example, resource and tool names, and the purpose of the shell option. It lacks tool parameter details, limitations, troubleshooting, and security-boundary documentation, and there is no manifest for cross-checking, so points are deducted.
Setup experience 12/20
The README states the Node.js and running tmux prerequisites and gives a Claude Desktop configuration using npx, plus an optional shell argument. The steps are concise, but platform compatibility, version requirements, and evidence of a successful connection are absent, limiting the score.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessRuns commands or code

Best for

  • People who use tmux and want an AI assistant to read or manage its sessions.
  • People who need to run commands in tmux panes and view their results.

Not for

  • People without tmux installed and running.
  • People who do not want an AI assistant to access or control terminal sessions.

Required permissions

  • Needs access to running tmux sessions to list, view, and manage sessions, windows, and panes.
  • The command execution feature runs commands in tmux panes; the README does not describe more granular permission controls.

Risks and side effects

  • Command execution may have unintended effects; the README explicitly advises caution with this feature.
  • Killing a session, window, or pane affects the corresponding tmux workspace.

Setup

Before you start

Runtime:Node.js

Install Node.js and ensure tmux is installed and running. Add the supplied configuration to Claude Desktop's configuration. Commands use bash by default; if you use fish, add --shell-type=fish to the arguments.

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

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "tmux": {
      "command": "npx",
      "args": [
        "-y",
        "tmux-mcp"
      ]
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.tmux]
command = "npx"
args = ["-y", "tmux-mcp"]

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add tmux -- npx -y tmux-mcp

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

After configuring the tmux MCP server in your client, confirm that `list-sessions` and `capture-pane` appear in its tool list. Ask the assistant to list active tmux sessions to verify the connection.

Troubleshooting

  1. Check that Node.js is installed.
  2. Check that tmux is installed and running and that the target session exists.
  3. If command exit status is read incorrectly, check that the configured shell type matches your shell; the default is bash.

Things to try

Once connected, you can ask your AI assistant things like:

  • List all active tmux sessions.
  • Show the windows and panes in a tmux session.
  • Capture the terminal content of a tmux pane.
  • Run `pwd` in a tmux pane and show me the result.

Tools 13

list-sessions read-only
List all active tmux sessions.
find-session read-only
Find a tmux session by name.
list-windows read-only
List windows in a tmux session.
list-panes read-only
List panes in a tmux window.
capture-pane read-only
Capture content from a specified tmux pane.
create-session writes
Create a new tmux session.
create-window writes
Create a new window in a tmux session.
split-pane writes
Split a pane horizontally or vertically, optionally specifying its size.
Show 5 more tools
kill-session destructive
Kill a tmux session by ID.
kill-window destructive
Kill a tmux window by ID.
kill-pane destructive
Kill a tmux pane by ID.
execute-command writes
Execute a command in a tmux pane.
get-command-result read-only
Get the result of an executed command.

Use cases

View and search tmux sessions and their windows and panes.
Read pane content, execute commands in a tmux pane, and retrieve results.
Create sessions, windows, and splits, or kill sessions, windows, and panes.

Supported clients

Claude Desktop

Listed from the project's documentation, not tested by this site.

Overview

Tmux MCP Server connects AI assistants to tmux. It can read and observe terminal session content, create and manage sessions, windows, and panes, and execute commands in panes.

Similar servers

Source revision ec68b1061cf3 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/tmux-mcp.svg)](https://followmcp.com/en/servers/tmux-mcp)