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.

Updated
Feb 10, 2026

wezterm-mcp

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

Requirements

  • Node.js v18+
  • WezTerm with wezterm cli available on PATH

Install

npm install
npm run build

Nix

nix build    # build the package
nix run      # run directly

Usage

Add to your MCP client configuration (e.g. Claude Code ~/.claude.json):

{
  "mcpServers": {
    "wezterm": {
      "command": "node",
      "args": ["/path/to/wezterm-mcp/build/index.js"]
    }
  }
}

Tools

ToolDescription
list_panesList all windows, tabs and panes
list_clientsList connected clients
get_textRead terminal screen/scrollback content
get_pane_directionGet adjacent pane ID in a direction
split_paneSplit a pane (left/right/top/bottom)
spawnSpawn a command in a new window or tab
send_textSend text to a pane (bracketed paste)
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
activate_tabActivate a tab by ID, index, or relative offset
set_tab_titleChange tab title
set_window_titleChange window title
rename_workspaceRename a workspace

Development

npm run dev    # Run directly via tsx
npm run build  # Compile to build/
npm start      # Run compiled output
nix develop    # Nix devShell with node + wezterm

License

MIT

Reviews

No reviews yet

Sign in to write a review