# Tmux MCP Server

> Let AI assistants view and control tmux sessions.

- **URL**: https://followmcp.com/en/servers/tmux-mcp
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 306
- **FMRS Score**: 42/100 (Grade D)
- **Source**: https://github.com/nickgnd/tmux-mcp

- **Runtimes**: Node.js
- **Auth**: No credential needed

## 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.

## 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
- 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.

## Client config (JSON)
```json
{"mcpServers":{"tmux":{"command":"npx","args":["-y","tmux-mcp"]}}}
```

## Tools (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 specified tmux pane.
- `create-session`: Create a new tmux session.
- `create-window`: Create a new window in a tmux session.
- `split-pane`: Split a pane horizontally or vertically, optionally specifying its 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.
- `get-command-result`: Get the result of an executed command.
