Hypruse MCP Server

Computer use for Hyprland: semantic desktop state over IPC, plus vision and native input

Local serverstdioPython

What is the Hypruse MCP server?

Connect Hypruse to Claude, Cursor or any other MCP client and it stops being a tab you switch to. Computer use for Hyprland: semantic desktop state over IPC, plus vision and native input. The hypruse mcp server is what makes that connection.

What the server does

Computer use exists on macOS and Windows. On Linux there is effectively nothing: the Claude Desktop Linux beta explicitly ships without screen control, Anthropic's reference implementation is an X11 container, and the existing Wayland attempts lean on setuid uinput hacks or GNOME-only portals.

  • Semantic first. — desktop returns the real window/workspace tree (addresses, classes, titles, geometry) in one call. The agent switches workspaces and focuses windows the way you do (instantly, over IPC), not by squinting at pixels
  • Vision when it matters. — Screenshots of a monitor, an exact window crop, or a zoomed region, with the geometry/scale metadata to map any pixel back to a clickable coordinate: a coarse-to-fine loop grounded in the GUI-agents research
  • Native input. — Clicks and scrolls are spoken directly over the Wayland wire (zwlr_virtual_pointer_v1); typing goes through wtype's virtual keyboard with a proper XKB keymap, unicode-safe on any layout

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • desktop — One-call semantic snapshot: monitors, workspaces, windows (address/class/title/geometry), active window, cursor, and layer surfaces (launchers, bars
  • screenshot — Focused monitor, exact window crop by address, or x,y,WxH region; returns image + coordinate-mapping metadata; fast JPEG by default (lossless=true
  • zoom — Native-resolution re-capture around an estimated point (optionally clamped to a window): the precision step before clicking small controls, same
  • marks — Set-of-Marks capture: the window screenshot with every accessible control drawn as a numbered mark, plus a JSON legend (role, name, current value
  • click_ui — Click a control by accessible NAME or by a marks number in one call: the coordinate comes from the tree, the click goes through the real pointer
  • pointer — move / click / drag / scroll (discrete wheel notches) in global coordinates
  • keyboard — Type literal text (unicode-safe) or press app-level combos (ctrl+shift+t, esc, F5); optional window address focuses the target first so keystrokes
  • hypr — Switch workspace, focus/move/close windows, fullscreen, floating (pure IPC, milliseconds; close_window also waits up to 1s for the destroy event, so
  • launch — Start an app (optionally silent on another workspace), block on its actual openwindow event, return its address; detects single-instance apps
  • binds — The user's own keybinds, decoded (SUPER+Q, action, description); the agent runs one with use_bind
  • use_bind — Execute a keybind by combo (SUPER+F), running its bound action, so the agent drives the owner's own launchers and shortcuts
  • sequence — Run an ordered list of actions (pointer/keyboard/click_ui/hypr/wait_for) in one call; stops the moment the desktop changes in a way the current step

Installation

Installation goes through your MCP client rather than a global install: point it at hypruse on PyPI and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Credentials and setup notes

Configuration is passed through the environment: HYPRUSE_SCREENSHOT_MODE. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Where it fits

This sits in the browser automation group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Hypruse's toolset — desktop, screenshot, zoom and 11 more — is a fair guide to whether it matches your workflow. It is maintained by IlyasKhallouki; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Hypruse's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Hypruse.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
desktopOne-call semantic snapshot: monitors, workspaces, windows (address/class/title/geometry), active window, cursor, and layer surfaces (launchers, bars, notification popups) with a best-effort kind and geometry
screenshotFocused monitor, exact window crop by address, or x,y,WxH region; returns image + coordinate-mapping metadata; fast JPEG by default (lossless=true for PNG); stable=true waits for the frame to settle
zoomNative-resolution re-capture around an estimated point (optionally clamped to a window): the precision step before clicking small controls, same metadata contract
marksSet-of-Marks capture: the window screenshot with every accessible control drawn as a numbered mark, plus a JSON legend (role, name, current value, exact click point per number); needs ImageMagick for the drawing, degrade
click_uiClick a control by accessible NAME or by a marks number in one call: the coordinate comes from the tree, the click goes through the real pointer (visible, same safety guarantees); an ambiguous name returns the candidates
pointermove / click / drag / scroll (discrete wheel notches) in global coordinates
keyboardType literal text (unicode-safe) or press app-level combos (ctrl+shift+t, esc, F5); optional window address focuses the target first so keystrokes land in the right app. Compositor binds (super+...) go through use_bind,
hyprSwitch workspace, focus/move/close windows, fullscreen, floating (pure IPC, milliseconds; close_window also waits up to 1s for the destroy event, so its result and then= observation reflect the close instead of racing it
launchStart an app (optionally silent on another workspace), block on its actual openwindow event, return its address; detects single-instance apps (browsers) whose window ignores exec rules and moves it to the requested works
bindsThe user's own keybinds, decoded (SUPER+Q, action, description); the agent runs one with use_bind
use_bindExecute a keybind by combo (SUPER+F), running its bound action, so the agent drives the owner's own launchers and shortcuts
sequenceRun an ordered list of actions (pointer/keyboard/click_ui/hypr/wait_for) in one call; stops the moment the desktop changes in a way the current step did not expect, so a click/type/enter micro-sequence costs one round-tr
wait_forBlock on real compositor events (window open/close, workspace change, title change, layer surfaces appearing/closing, urgency, screen sharing on/off) with a match filter and timeout; a filtered wait whose condition alrea
clipboardRead or write the text clipboard via wl-clipboard; opt-in, exists only with HYPRUSE_CLIPBOARD=1 in the server env

How to install the Hypruse MCP server

{
  "mcpServers": {
    "hypruse": {
      "command": "uvx",
      "args": ["hypruse"],
      "env": {
        "HYPRUSE_SCREENSHOT_MODE": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
HYPRUSE_SCREENSHOT_MODEConfiguration value read at startup.Optional

Example prompts to try

  • Use Hypruse to desktop.
  • Use Hypruse to screenshot.
  • Use Hypruse to zoom.

Frequently asked questions

It connects Hypruse to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (desktop, screenshot, zoom, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Hypruse directly.