# ssh-tmux MCP server

> Manages persistent SSH sessions via tmux to allow AI agents to interact with remote terminals through visual snapshots.

- Repository: https://github.com/devnullvoid/mcp-ssh-tmux
- Page: https://hostedmcp.org/servers/devnullvoid/mcp-ssh-tmux
- Transport: —
- Stars: 7
- License: MIT

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `FASTMCP_TRANSPORT` | no | no |  |

## Tools (9)

- `open_session`
- `send_command`
- `send_keys`
- `get_snapshot`
- `read_remote_file`
- `write_remote_file`
- `list_sessions`
- `cleanup_dead_sessions`
- `close_session`

## FAQ

### How can I see what the agent is doing in real-time?

You can manually run a tmux command to attach to the dedicated socket and view the active sessions.

### Do SSH connections stay active if the server restarts?

Yes, the connections are persistent because they are managed within a tmux instance.
