# Hyprland Computer Use

Lets coding agents drive a Wayland desktop on Hyprland using grim screenshots, hyprctl window inspection, and uinput actions.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: Smirnov-Labs
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Smirnov-Labs/hypr-computer-use-mcp
- Updated: 2026-10-17
- HTML: https://affpapa.org/en/nevibecode/mcp/hyprland-computer-use

## What it does

Desktop automation often treats Linux displays as an unstructured canvas, struggling across multi-monitor setups. This server reads the compositor layout directly via `hyprctl` and uses `grim` to capture either an output or an individual window. Each screenshot produces an image downscaled for the model along with a frame identifier, letting pointer tools translate screenshot coordinates back to absolute layout pixels.

Keyboard strokes and pointer movements pass through a virtual device in `/dev/uinput`. Window management tools such as workspace switching require Hyprland 0.55 or newer configured with Lua. For work that should not disturb the user pointer, the server provides separate `tmux` terminal sessions and a Chrome DevTools protocol bridge.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add hypr-cua-mcp -- uvx hypr-cua-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from hypr-cua-mcp <command>

### Codex

**Platform CLI**
```bash
codex mcp add hyprland-computer-use -- uvx hypr-cua-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from hypr-cua-mcp <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "hyprland-computer-use": {
            "command": "uvx",
            "args": [
                "hypr-cua-mcp"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from hypr-cua-mcp <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "hyprland-computer-use": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "hypr-cua-mcp"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from hypr-cua-mcp <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add hyprland-computer-use uvx hypr-cua-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from hypr-cua-mcp <command>

## When to use it
- inspect and focus windows on Hyprland using compositor addresses
- capture downscaled screenshots of single outputs or windows via grim
- simulate keyboard and mouse events using a native uinput device
- run terminal tasks in detached tmux sessions without stealing focus

## Example prompts
- Take a screenshot of the active window and click the submit button
- List all open windows on Hyprland and move the editor to workspace 2
- Read the current Wayland clipboard selection and print its contents

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 392262
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33989
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81163
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119231
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47577
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43902

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
