| Crates.io | rmcp-i3 |
| lib.rs | rmcp-i3 |
| version | 0.2.0 |
| created_at | 2026-01-06 15:45:21.22714+00 |
| updated_at | 2026-01-07 17:08:45.865477+00 |
| description | MCP server for i3 window manager control |
| homepage | |
| repository | https://github.com/sqrew/rmcp-i3 |
| max_upload_size | |
| id | 2026115 |
| size | 55,850 |
MCP server for controlling the i3 window manager via IPC.
Built with rmcp (Rust Model Context Protocol).
# From source
git clone https://github.com/sqrew/rmcp-i3
cd rmcp-i3
cargo install --path .
# Or build and run directly
cargo build --release
./target/release/rmcp-i3
Add to your ~/.claude/settings.json:
{
"mcpServers": {
"i3": {
"command": "/path/to/rmcp-i3"
}
}
}
Then Claude can control your i3 setup:
> Switch me to workspace 3
> Focus the Firefox window
> Move this window to workspace "code"
> Show me all my workspaces
The server speaks MCP over stdio. Send JSON-RPC 2.0 messages to interact with it.
Lists all workspaces with: number, name, visible, focused, urgent, output.
Returns the full i3 container tree as JSON. Useful for understanding window layout.
Parameters:
workspace (string) - Workspace to switch to. Can be a number ("1") or name ("web").Parameters:
criteria (string) - i3 criteria to match. Examples:
[class="Firefox"] - Match by window class[title="vim"] - Match by title[instance="spotify"] - Match by instance[class="Alacritty" title="nvim"] - Multiple criteriaParameters:
workspace (string) - Destination workspace for the focused window.Parameters:
command (string) - Application to launch. Examples:
firefox - Open Firefoxkitty - Open a new terminalemacs - Open EmacsCloses the currently focused window. No parameters.
Parameters:
criteria (string) - i3 criteria to match window to kill. Examples:
[class="Firefox"] - Kill Firefox[title="~"] - Kill window with title "~"[class="kitty" title="htop"] - Kill kitty running htopToggles fullscreen mode for the currently focused window. No parameters.
Parameters:
command (string) - Any valid i3 command. Examples:
split h / split v - Split containerlayout tabbed / layout stacking - Change layoutkill - Close focused windowfullscreen toggle - Toggle fullscreenfloating toggle - Toggle floating modeSee the i3 user guide for full command list.
MIT
Built with: