MCP Hub
Back to servers

wezterm-mcp

Enables programmatic control of the WezTerm terminal emulator through the Model Context Protocol. It allows users to manage panes, tabs, and windows while reading terminal content or sending commands directly to the terminal environment.

glama
Updated
Mar 14, 2026

mcp-server-wezterm

MCP server that exposes WezTerm terminal control via the Model Context Protocol.

Usage

Claude Desktop / Claude Code

With uvx (recommended):

{
  "mcpServers": {
    "wezterm": {
      "command": "uvx",
      "args": ["mcp-server-wezterm-rs"]
    }
  }
}
claude mcp add wezterm -- uvx mcp-server-wezterm

With rvx:

{
  "mcpServers": {
    "wezterm": {
      "command": "rvx",
      "args": ["mcp-server-wezterm"]
    }
  }
}
Other installation methods

With Nix:

nix run github:vaporif/mcp-server-wezterm

With cargo:

cargo install mcp-server-wezterm

Tools

Pane Management

ToolDescription
list_panesList all windows, tabs and panes
get_textRead terminal screen/scrollback content
get_pane_directionGet adjacent pane ID in a direction
split_paneSplit a pane (left/right/top/bottom)
activate_paneFocus a pane by ID
activate_pane_directionFocus adjacent pane by direction
kill_paneKill a pane
adjust_pane_sizeResize a pane directionally
zoom_paneZoom/unzoom/toggle a pane
move_pane_to_new_tabMove a pane into a new tab

Tab & Window

ToolDescription
activate_tabActivate a tab by ID, index, or relative offset
set_tab_titleChange tab title
set_window_titleChange window title

Other

ToolDescription
list_clientsList connected clients
spawnSpawn a command in a new window or tab
send_textSend text to a pane (bracketed paste)
rename_workspaceRename a workspace

Development

Requires just, taplo, and typos.

just check    # clippy + test + fmt + taplo + typos
just build    # cargo build
just test     # cargo test
just fmt      # format code and TOML
just lint     # cargo clippy
just deny     # cargo deny check

License

MIT

Reviews

No reviews yet

Sign in to write a review