# RAT MCP server

> Provides persistent, asynchronous shell access for AI agents using tmux and mutual TLS to manage remote terminals and files.

- Repository: https://github.com/hekmon/rat
- Page: https://hostedmcp.org/servers/hekmon/rat
- Transport: —
- Stars: 2
- License: MIT

## Tools (9)

- `list_windows`
- `create_window`
- `close_window`
- `send_text`
- `send_keys`
- `read_window`
- `wait_window`
- `write_file`
- `read_file`

## FAQ

### How does RAT handle long-running commands?

RAT is asynchronous by design; agents can start long-running builds or tests in parallel windows and check back later to see the exit status.

### Is RAT a tmux MCP server?

No, RAT uses tmux as a terminal emulator to render what programs display, but agents interact with a simplified keyboard and screen interface without needing to know tmux syntax.

### How secure is the connection to the RAT service?

The service is reached over HTTPS using mutual TLS only, requiring a key for access similar to SSH, which prevents unauthorized requests from even reaching the service.

### Can agents use full-screen programs like vim?

Yes, because tmux renders what programs draw, agents can drive editors, monitors, and interactive menus using keys like Escape and arrow keys.
