# libtmux_mcp.tools.server_tools.kill_server

- **Module:** libtmux_mcp.tools.server_tools
- **Package:** libtmux-mcp
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux-mcp/blob/4daddc0dfca96c43bf521d818bf91564e1434760/src/libtmux_mcp/tools/server_tools.py#L148
- **Page:** https://libtmux.org/en/py/latest/mcp/reference/libtmux_mcp-tools-server_tools-kill_server/

```
libtmux_mcp.tools.server_tools.kill_server(socket_name: str | None = None) -> str
```

Kill the tmux server and all its sessions.

Destroys ALL sessions, windows, and panes on this server. Use kill_session
to remove a single session instead. Self-kill protection prevents killing
the server running this MCP process.

## Parameters

- `socket_name` (str | None): tmux socket name. Defaults to LIBTMUX_SOCKET env var.

## Returns

str
    Confirmation message.
