1. Conduid
  2. Developer Tools
  3. Tmux MCP
MCP server · Developer Tools

Tmux MCP

a TMUX MCP server

Unclaimed last commit a year ago devtools
41Fair

Scored 4 months ago · breakdown

About Tmux MCP

Tmux MCP is an MCP server published by napisani in the Developer Tools category: a TMUX MCP server. It has been installed 0 times through Conduid.

Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx tmux-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Tmux MCP

Powered by Claude · Grounded in docs

I know everything about Tmux MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

README

tmux-mcp

tmux-mcp is an MCP (Model Context Protocol) server that exposes rich, structured context from your running tmux server so agents and tools can reason about what’s happening in your terminal.

What it does

Capability Description
List panes/sessions/windows JSON resources describing every pane, window and session across all tmux servers
Capture pane output Tool that returns the last N lines from a specific pane
Tag panes (@mcptag) Adds semantic labels to panes; unique-tag helper ensures only one pane has a given tag
Find pane by tag Fuzzy search tool that returns a single pane when its tag is (uniquely) matched

These resources are available to any MCP-aware LLM agent, enabling workflows like:

  • "Show me logs from the backend pane"
  • "Switch to the pane tagged db and run migrations"
  • Automatically surface failing test output to the assistant when a test pane fails

Quick start

# build binary → bin/tmux-mcp
make build

# run the server (defaults are fine for local use)
./bin/tmux-mcp

The server registers its tools & resources with MCP on start-up; compatible agents will auto-discover them.

Usage examples

Capture pane output

{
  "tool": "get_pane_output",
  "args": {
    "session_name": "mysesh",
    "window_index": 0,
    "pane_id": "%5",
    "lines": 100
  }
}

Tagging sessions for the MCP

In order to tag a pane so that is it is identified by the MCP, you must add a tag to the pane using the @mcptag prefix. This can be done manually in tmux by using the following configuration:

.tmux.conf

# Prefix + T → Tag a pane with a unique identifier
bind-key T command-prompt -p "Unique tag for pane %: " "run 'tmux-mcptag.sh %1 #{pane_id}'"

# Prefix + C-T → clear @mcptag on current pane
bind-key C-T set -p -u @mcptag

tmux-mcptag.sh

#!/usr/bin/env bash

# Script to tag a tmux pane with a unique identifier
TAG="$1"
PANE_ID="$2"

# Clear tag from any pane that has the same tag
tmux list-panes -a -F "#{pane_id} #{@mcptag}" | while read id t; do
	if [ "$t" = "$TAG" ]; then
		tmux set-option -p -u -t "$id" @mcptag
	fi
done

# Set tag on current pane
tmux set-option -p -t "$PANE_ID" @mcptag "$TAG"
tmux display-message "Pane tagged as: $TAG"

Find pane by tag

{
  "tool": "find_pane_by_tag",
  "args": { "tag": "api" }
}

Development

  • Go 1.22+
  • Make targets: make build, make test, make tidy
  • Lint: go vet ./... or golangci-lint run
  • Tests use a temporary tmux server; ensure tmux is installed.
make test   # run all tests

Project layout

cmd/tmux-mcp       – main entry-point
internal/tmuxmcp   – MCP resources & tools
internal/exec      – thin wrapper around gotmux for exec tests
internal/desc      – long-form descriptions bundled with resources

Contributing

PRs & issues welcome! Open an issue to discuss larger ideas first.

License

MIT © 2025 Nick Apisani

README mirrored from the source repository 4 months ago. The original is authoritative.

Questions

About Tmux MCP

How do I install Tmux MCP?

Run npx tmux-mcp, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Tmux MCP safe to use with an AI agent?

Its trust score is 41 out of 100 (fair). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Tmux MCP still maintained?

The last commit was a year ago, with 0 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.