An MCP server that lets AI agents interact with terminal sessions through tmux
{
"mcpServers": {
"tmux-mcp-server": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
An MCP server that lets AI agents interact with terminal sessions through tmux.
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
License not specified.
Is it maintained?
Last commit 296 days ago. 6 stars.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
Dynamic problem-solving through sequential thought chains
A Model Context Protocol server for searching and analyzing arXiv papers
An open-source AI agent that brings the power of Gemini directly into your terminal.
MCP Security Weekly
Get CVE alerts and security updates for Tmux Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
# Tmux MCP Server
An MCP server that lets AI agents interact with terminal sessions through tmux.
## Running the Server
```bash
go run ./cmd/tmux-mcp-server
```
The server communicates via stdio and provides tools for managing tmux sessions.
## Usage
The server provides these tools:
- `start_session` - Create a new tmux session
- `send_commands` - Send commands and keystrokes to a session
- `view_session` - Capture the current screen content
- `list_sessions` - Show all active sessions
- `join_session` - Join an existing session
- `close_session` - End a session
### Example: Editing a file with vim
```json
{
"name": "start_session",
"arguments": {
"session_name": "edit_work",
"command": "vim README.md"
}
}
```
```json
{
"name": "send_commands",
"arguments": {
"session_name": "edit_work",
"commands": [
"i",
"Hello world!",
"<ESC>",
":wq",
"<ENTER>"
]
}
}
```
The `send_commands` tool takes an array where plain strings are typed literally and `<COMMAND>` format handles special keys like `<ENTER>`, `<ESC>`, `<TAB>`, etc.
## Development
This project uses [Hermit](https://cashapp.github.io/hermit/) for managing development dependencies. Hermit ensures consistent development environments across different machines.
```
. bin/activate-hermit
```
## Requirements
- Go 1.24.2+
- tmux