# get_server_info

Source: https://libtmux.org/en/py/stable/mcp/tools/get_server_info/

> Get information about the tmux server.

tool MCPstable

MCP is in development

Server behavior and tool contracts may change. Tool availability depends on the server configuration.

* **get_server_info**( [socket_name](https://libtmux.org/en/py/stable/mcp/tools/get_server_info/#mcp.tool.get_server_info.input%2Fproperties%2Fsocket_name)?: [string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)") | [null](https://json-schema.org/understanding-json-schema/reference/null "null (JSON Schema)"), )

  tool \[[source](https://github.com/tmux-python/libtmux-mcp/blob/4daddc0dfca96c43bf521d818bf91564e1434760/src/libtmux_mcp/tools/server_tools.py#L382)][¶](https://libtmux.org/en/py/stable/mcp/tools/get_server_info/#mcp.tool.get_server_info)

  Get information about the tmux server.

  Use to verify the tmux server is running before other operations. For session-level details, use [list_sessions](https://libtmux.org/en/py/stable/mcp/tools/list_sessions/) instead.

  * MCP request method

    `tools/call` Send `get_server_info` as the tool name, with the arguments below.

  ## Arguments[#](https://libtmux.org/en/py/stable/mcp/tools/get_server_info/#mcp.tool.get_server_info.parameters)

  * **[`socket_name`](https://libtmux.org/en/py/stable/mcp/tools/get_server_info/#mcp.tool.get_server_info.input%2Fproperties%2Fsocket_name)**? = `null` ([string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)") | [null](https://json-schema.org/understanding-json-schema/reference/null "null (JSON Schema)"))

    tmux socket name. Defaults to LIBTMUX_SOCKET env var.

  No other arguments are accepted.

  ## Result[#](https://libtmux.org/en/py/stable/mcp/tools/get_server_info/#mcp.tool.get_server_info.result)

  Returns [object](https://json-schema.org/understanding-json-schema/reference/object "object (JSON Schema)")

  * **[`is_alive`](https://libtmux.org/en/py/stable/mcp/tools/get_server_info/#mcp.tool.get_server_info.output%2Fproperties%2Fis_alive)** ([boolean](https://json-schema.org/understanding-json-schema/reference/boolean "boolean (JSON Schema)"))

    Whether the server is running

  * **[`session_count`](https://libtmux.org/en/py/stable/mcp/tools/get_server_info/#mcp.tool.get_server_info.output%2Fproperties%2Fsession_count)** ([integer](https://json-schema.org/understanding-json-schema/reference/numeric "numeric (JSON Schema)"))

    Number of sessions

  * **[`socket_name`](https://libtmux.org/en/py/stable/mcp/tools/get_server_info/#mcp.tool.get_server_info.output%2Fproperties%2Fsocket_name)**? = `null` ([string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)") | [null](https://json-schema.org/understanding-json-schema/reference/null "null (JSON Schema)"))

    Socket name

  * **[`socket_path`](https://libtmux.org/en/py/stable/mcp/tools/get_server_info/#mcp.tool.get_server_info.output%2Fproperties%2Fsocket_path)**? = `null` ([string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)") | [null](https://json-schema.org/understanding-json-schema/reference/null "null (JSON Schema)"))

    Socket path

  * **[`version`](https://libtmux.org/en/py/stable/mcp/tools/get_server_info/#mcp.tool.get_server_info.output%2Fproperties%2Fversion)**? = `null` ([string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)") | [null](https://json-schema.org/understanding-json-schema/reference/null "null (JSON Schema)"))

    tmux version

  ## Annotations[#](https://libtmux.org/en/py/stable/mcp/tools/get_server_info/#mcp.tool.get_server_info.annotations)

  * [`destructiveHint`](https://libtmux.org/en/py/stable/mcp/reference/glossary/#destructiveHint)

    `true`

  * [`idempotentHint`](https://libtmux.org/en/py/stable/mcp/reference/glossary/#idempotentHint)

    `false`

  * [`openWorldHint`](https://libtmux.org/en/py/stable/mcp/reference/glossary/#openWorldHint)

    `true`

  * [`readOnlyHint`](https://libtmux.org/en/py/stable/mcp/reference/glossary/#readOnlyHint)

    `false`

  ## Protocol data[#](https://libtmux.org/en/py/stable/mcp/tools/get_server_info/#mcp.tool.get_server_info.schemas)

  Use the complete advertised contract for validation and client integration.

  Input schema

  ```json
  {
    "additionalProperties": false,
    "properties": {
      "socket_name": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "default": null,
        "description": "tmux socket name. Defaults to LIBTMUX_SOCKET env var."
      }
    },
    "type": "object"
  }
  ```

  Output schema

  ```json
  {
    "description": "Serialized tmux server info.",
    "properties": {
      "is_alive": {
        "description": "Whether the server is running",
        "type": "boolean"
      },
      "session_count": {
        "description": "Number of sessions",
        "type": "integer"
      },
      "socket_name": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "default": null,
        "description": "Socket name"
      },
      "socket_path": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "default": null,
        "description": "Socket path"
      },
      "version": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "default": null,
        "description": "tmux version"
      }
    },
    "required": [
      "is_alive",
      "session_count"
    ],
    "type": "object"
  }
  ```
