zellij
A comprehensive Model Context Protocol (MCP) server for managing Zellij terminal workspace sessions with 60+ tools across session management, pane operations, plugin integration, and LLM completion detection.
claude mcp add --transport stdio gitjuhb-zellij-mcp-server node /path/to/zellij-mcp-server/dist/index.js \ --env NODE_ENV="production" \ --env ZELLIJ_MCP_LOG_LEVEL="info"
How to use
This MCP server provides a comprehensive integration layer for managing Zellij terminal workspace sessions. It exposes a rich set of tools for sessions, panes, tabs, plugins, and layouts, along with inter-plugin communication and specialized LLM completion detection helpers. You can interact with these capabilities through your MCP client (e.g., Claude Desktop or direct CLI usage) by invoking the predefined tools such as zellij_list_sessions, zellij_new_session, zellij_attach_session, zellij_new_pane, zellij_resize_pane, zellij_launch_plugin, zellij_dump_layout, zellij_pipe, zellij_watch_pipe, and many more. The server orchestrates Zellij sessions and exposes a consistent API surface to create, modify, query, and arrange sessions, tabs, panes, and plugins, with optional layout saving/loading and inter-plugin piping.
To use it, configure your MCP client to point at the Node.js server script (dist/index.js) and start the server as shown in the installation guide. You can then call tools by name, passing the required parameters and receiving structured results that reflect current Zellij state, including session health, layout content, and plugin statuses.
How to install
Prerequisites:
- Node.js 18 or higher
- Zellij installed and available in PATH
- An active terminal environment
Setup steps:
-
Clone the repository git clone https://github.com/yourusername/zellij-mcp-server.git cd zellij-mcp-server
-
Install dependencies npm install
-
Build the project npm run build
-
Make the server executable (if needed) chmod +x dist/index.js
-
Run the server (example) npm start
-
Optional: configure environment variables for production tuning
- Create a .env file or export variables prior to startup export NODE_ENV=production export ZELLIJ_MCP_LOG_LEVEL=info
Additional notes
Notes and tips:
- The server requires Zellij to be installed and accessible in your environment PATH.
- Configure the mcp_server in your client with the appropriate command and path to dist/index.js (as shown in the Claude Desktop example).
- You can adjust logging and behavior via environment variables (e.g., ZELLIJ_MCP_LOG_LEVEL).
- If you encounter permission issues starting the script, ensure the dist/index.js file is executable and that you have the necessary filesystem permissions.
- For production deployments, consider running the server under a process manager (e.g., pm2) and ensuring proper health checks and restart policies.
Related MCP Servers
iterm
A Model Context Protocol server that executes commands in the current iTerm session - useful for REPL and CLI assistance
mcp
Octopus Deploy Official MCP Server
furi
CLI & API for MCP management
editor
MCP Server for Phaser Editor
DoorDash
MCP server from JordanDalton/DoorDash-MCP-Server
mcp
MCP сервер для автоматического создания и развертывания приложений в Timeweb Cloud