# libtmux_mcp.tools.server_tools.get_server_info

- **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#L181
- **Page:** https://libtmux.org/en/py/latest/mcp/reference/libtmux_mcp-tools-server_tools-get_server_info/

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

Get information about the tmux server.

Use to verify the tmux server is running before other operations.
For session-level details, use list_sessions instead.

## Parameters

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

## Returns

ServerInfo
    Server information.
