Tmux MCP Server

by nickgnd
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Provides tools for listing, navigating, and interacting with tmux sessions, windows and panes. Enables capturing terminal content, executing commands in panes, and creating new tmux sessions and windows.

Tmux MCP サーバー

Claude Desktop が tmux セッションのコンテンツにアクセスし、表示できるようにするモデルコンテキストプロトコルサーバー。この統合により、AI アシスタントがターミナルセッションの読み取り、制御、監視を行えるようになります。

特徴

  • tmuxセッションの一覧表示と検索
  • tmux ウィンドウとペインの表示と操作
  • 任意のペインからターミナルのコンテンツをキャプチャして公開します
  • tmux ペインでコマンドを実行し、結果を取得します(自己責任で使用してください⚠️)
  • 新しいtmuxセッションとウィンドウを作成する

この短いビデオを見て、ワクワクしてください!

前提条件

  • Node.js
  • tmuxがインストールされ実行中

使用法

Claudeデスクトップの設定

この MCP サーバーを Claude Desktop 構成に追加します。

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

MCP サーバー オプション

オプションで、使用しているコマンドラインシェルを指定できます。指定しない場合は、デフォルトでbashになります。

"mcpServers": { "tmux": { "command": "npx", "args": ["-y", "tmux-mcp", "--shell-type=fish"] } }

MCP サーバーは、コマンドの実行時にのみシェルを認識して、その終了ステータスを適切に読み取る必要があります。

利用可能なリソース

  • tmux://sessions - すべてのtmuxセッションを一覧表示する
  • tmux://pane/{paneId} - 特定のtmuxペインの内容を表示する
  • tmux://command/{commandId}/result - 実行されたコマンドの結果

利用可能なツール

  • list-sessions - アクティブなtmuxセッションをすべて一覧表示する
  • find-session - 名前でtmuxセッションを検索する
  • list-windows - tmuxセッション内のウィンドウを一覧表示する
  • list-panes - tmux ウィンドウ内のペインを一覧表示する
  • capture-pane - tmux ペインからコンテンツをキャプチャする
  • create-session - 新しいtmuxセッションを作成する
  • create-window - tmuxセッションで新しいウィンドウを作成する
  • execute-command - tmux ペインでコマンドを実行する
  • get-command-result - 実行されたコマンドの結果を取得する
-
security - not tested
A
license - permissive license
-
quality - not tested

Claude Desktop が tmux セッションのコンテンツを操作して表示できるようにし、AI アシスタントがターミナル セッションを読み取り、制御および監視できるようにします。

  1. Features
    1. Prerequisites
      1. Usage
        1. Configure Claude Desktop
        2. MCP server options
      2. Available Resources
        1. Available Tools
          ID: 3o3o9iph0m