libtmux-mcp server
officialtmux MCP server powered by libtmux
libtmux-mcp¶
Terminal control for AI agents, built on libtmux and FastMCP.
This server maps tmux’s object hierarchy — sessions, windows, panes — into MCP tools. Some tools read state. Some mutate it. Some destroy. The distinction is explicit and enforced.
Warning
Pre-alpha. APIs may change. Feedback welcome.
Claude Code Claude Desktop Codex CLI Gemini CLI Cursor
uvx pipx pip install
Configure cooldowns ?
Local User Project
User Project
User Project
Project Global
With uvx installed:
$ claude mcp add tmux -- uvx libtmux-mcp
Back
Dependency cooldowns
Use the Configure cooldowns checkbox above to enable or disable. These settings choose how cooldown behaves once enabled.
What are cooldowns?
Cooldowns delay picking up newly uploaded packages so the community has time to spot supply-chain attacks before you install. Most package managers don't apply one by default — you opt in via a global setting in your tool's config.
Learn more at cooldowns.dev · Datadog Security Labs writeup.
Quickstart
Install, connect, get a first result. Under 2 minutes.
Quickstart
Tools
Every tool, grouped by intent and safety tier.
Tools
Prompts
Four workflow recipes the client renders for the model.
Prompts
Resources
Snapshot views of the tmux hierarchy via tmux:// URIs.
Resources
Safety tiers
Readonly, mutating, destructive. Know what changes state.
Safety tiers
Client setup
Config blocks for Claude Desktop, Claude Code, Cursor, and others.
MCP Clients
What you can do¶
Inspect readonly¶
Read tmux state without changing anything.
list_sessions · capture_pane · capture_since · snapshot_pane · get_pane_info · find_pane_by_position · search_panes · wait_for_text · wait_for_content_change · display_message
Act mutating¶
Create or modify tmux objects.
create_session · send_keys · paste_text · create_window · split_window · select_pane · select_window · move_window · resize_pane · pipe_pane · set_option
Destroy destructive¶
Tear down tmux objects. Not reversible.
kill_session · kill_window · kill_pane · kill_server
Browse all tools →
Mental model¶
- Object hierarchy — sessions contain windows, windows contain panes (Concepts)
- Read vs. mutate — some tools observe, some act, some destroy (Safety tiers)
- tmux is the source of truth — the server reads from it and writes to it, never caches or abstracts
Related Servers
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Pica MCP Server
An MCP server for Pica that enables seamless interaction with various third-party services through a standardized interface.
zod-contract-mock-forge-mcp
Generates deterministic mocks and boundary violations from Zod schemas
release-readiness-triage-mcp
Aggregates CI failures and outputs GO/NO_GO release verdicts
imgx-mcp
AI image generation and editing MCP server. Text-to-image, text-based editing with iterative refinement. Multi-provider (Gemini + OpenAI).
Elementor WordPress MCP Server
An MCP server for WordPress and Elementor, enabling AI assistants to manage content and build pages.
Symbolic Algebra MCP Server
Perform symbolic mathematics and computer algebra using the SymPy library.
MCP Diagnostics Extension
A VS Code extension that provides real-time diagnostic problems like errors and warnings via the Model Context Protocol.
SourceSync.ai
An MCP server for the SourceSync.ai API to manage and synchronize source code context.
TTS MCP
Text-to-Speech protocol server that synthesizes text from LLMs and plays audio natively through the host system's desk speakers.
Ollama
Integrates with Ollama to run local large language models. Requires a running Ollama instance.