# Hyprland Computer Use

> Hyprland Computer Use is an open-source MCP server for developer tools. Let an AI client see and drive a Hyprland desktop on Wayland. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** Linux, CLI, Self-hosted
- **Repository:** https://github.com/smirnov-labs/hypr-computer-use-mcp
- **MCP Registry name:** com.smirnovlabs/hypr-cua-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-11-23

## About

Generic Linux computer-use servers hand the model one huge multi-monitor screenshot and leave it to guess pixels. This server instead crops to a single output or window with grim, downscales to the vision budget, and exposes Hyprland's window tree so the model can target windows by address. Every screenshot returns a frame_id, and pointer tools translate coordinates from that image back to global layout pixels, rejecting stale or unknown frames.

Input goes through a self-owned uinput device, so it needs read-write access to /dev/uinput but no root and no ydotoold. Window-control tools such as focus, launch and workspace moves require a Hyprland 0.55+ Lua config; screenshots, input, clipboard, tmux, task and browser tools work without it. Optional channels run terminals in detached tmux sessions on an isolated socket and drive Chrome tabs over the DevTools protocol without touching your main profile.

It runs locally over stdio inside your Hyprland session, needs Python 3.11+ and uv, and is a Wayland successor to the same author's i3 (X11) server.

## Features

- **Per-output screenshots:** Captures one monitor or window with grim and downscales it to the vision API budget.
- **Frame-mapped clicks:** Translates screenshot coordinates to global pixels and rejects stale frame IDs.
- **Window targeting:** Lists windows with address, class, title, workspace and geometry from hyprctl.
- **Off-screen channels:** Runs tmux terminals, background tasks and Chrome DevTools tabs without stealing focus.
- **Clipboard access:** Reads and writes exact clipboard text, and write returns only a length.
- **Hyprland control:** Focuses windows, launches apps and moves workspaces through dispatchers.

## Good for

- Let Claude Code operate GUI apps on a Hyprland desktop
- Run terminal commands in isolated tmux sessions from an AI client
- Automate Chrome tabs through DevTools without using your main profile
- Read small on-screen text through full-resolution window crops

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add hypr-cua-mcp -- uvx hypr-cua-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "hypr-cua-mcp": {
      "command": "uvx",
      "args": [
        "hypr-cua-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "hypr-cua-mcp": {
      "command": "uvx",
      "args": [
        "hypr-cua-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "hypr-cua-mcp": {
      "command": "uvx",
      "args": [
        "hypr-cua-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "hypr-cua-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "hypr-cua-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add hypr-cua-mcp -- uvx hypr-cua-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.hypr-cua-mcp]
command = "uvx"
args = ["hypr-cua-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "hypr-cua-mcp": {
      "command": "uvx",
      "args": [
        "hypr-cua-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user hypr-cua-mcp uvx -- hypr-cua-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "hypr-cua-mcp": {
      "command": "uvx",
      "args": [
        "hypr-cua-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "hypr-cua-mcp": {
      "command": "uvx",
      "args": [
        "hypr-cua-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "hypr-cua-mcp": {
      "command": "uvx",
      "args": [
        "hypr-cua-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "hypr-cua-mcp": {
      "command": "uvx",
      "args": [
        "hypr-cua-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "hypr-cua-mcp": {
      "command": "uvx",
      "args": [
        "hypr-cua-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "hypr-cua-mcp": {
      "command": "uvx",
      "args": [
        "hypr-cua-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "hypr-cua-mcp": {
      "command": "uvx",
      "args": [
        "hypr-cua-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "hypr-cua-mcp": {
      "command": "uvx",
      "args": [
        "hypr-cua-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 6 of 20 tools change data; 10 names don't say. From the server's own tool labels and tool names; not verified by us.

- `list_windows` (name suggests: reads): Lists every Hyprland window with address, class, title, workspace, output and geometry.
- `get_outputs` (name suggests: reads): Lists active monitors with geometry, scale and workspace.
- `screenshot`: Screenshots one output, downscaled to the API budget.
- `screenshot_window`: Full-resolution crop of a single window.
- `get_mouse` (name suggests: reads): Returns the current global pointer location.
- `click`: Clicks at coordinates in a screenshot's pixel space.
- `type_text`: Types text, optionally focusing a window first.
- `key`: Sends key presses, optionally focusing a window first.
- `read_clipboard` (name suggests: reads): Reads the clipboard or primary selection as exact text.
- `write_clipboard` (name suggests: changes): Writes text to the clipboard or primary selection.
- `focus_window`: Focuses a window by address.
- `launch`: Launches an app via Hyprland's exec dispatcher.
- `goto_workspace`: Switches to a workspace.
- `move_window_to_workspace` (name suggests: changes): Moves a window to a workspace.
- `set_floating` (name suggests: changes): Toggles a window's floating state.
- `layout_message`: Sends a message to the active layout engine.
- `run_dispatch` (name suggests: changes): Raw Hyprland dispatcher escape hatch with exit blocked.
- `tmux_run` (name suggests: changes): Runs a command in a detached tmux session.
- `task_start` (name suggests: changes): Starts a command as a background task.
- `cdp_navigate`: Navigates a Chrome tab over the DevTools protocol.

## FAQ

### What do I need to run Hyprland Computer Use?

Hyprland on Wayland, Python 3.11+, uv, grim, wl-clipboard and read-write access to /dev/uinput. tmux and Chromium are optional.

### Does Hyprland Computer Use need root?

No. Input uses a self-owned uinput device, with no root and no ydotoold, provided your user has uinput access.

### Which tools need a Lua config?

The window-control tools such as focus_window, launch, goto_workspace and run_dispatch need a hyprland.lua config on Hyprland 0.55+.

### How do I add Hyprland Computer Use to Claude Code?

Run claude mcp add hypr-cua -- uvx hypr-cua-mcp.

### Is Hyprland Computer Use free?

Yes. Hyprland Computer Use is open source, so you can use and self-host it for free.

### What are the best alternatives to Hyprland Computer Use?

The closest alternatives to Hyprland Computer Use are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/hyprland-computer-use
