H

Hypruse

by IlyasKhallouki · io.github.IlyasKhallouki/hypruse

An MCP server for Hyprland that enables AI agents to control workspaces, windows, mouse, keyboard, and take screenshots on a Wayland desktop.

pypi Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-ilyaskhallouki-hypruse": {
      "command": "uvx",
      "args": [
        "hypruse"
      ],
      "env": {
        "HYPRUSE_SCREENSHOT_MODE": "path",
        "HYPRUSE_READONLY": "0",
        "HYPRUSE_CONFINE": "launched",
        "HYPRUSE_AUTH_GUARD": "1",
        "HYPRUSE_STRICT": "0",
        "HYPRUSE_MARK": "0",
        "HYPRUSE_CLIPBOARD": "0",
        "HYPRUSE_JOURNAL": "0",
        "HYPRUSE_JOURNAL_MAX_BYTES": "8388608",
        "HYPRUSE_JOURNAL_TEXT": "0",
        "HYPRUSE_DRYRUN": "0",
        "HYPRUSE_MAX_IMAGE_BYTES": "1048576"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-ilyaskhallouki-hypruse": {
      "command": "uvx",
      "args": [
        "hypruse"
      ],
      "env": {
        "HYPRUSE_SCREENSHOT_MODE": "path",
        "HYPRUSE_READONLY": "0",
        "HYPRUSE_CONFINE": "launched",
        "HYPRUSE_AUTH_GUARD": "1",
        "HYPRUSE_STRICT": "0",
        "HYPRUSE_MARK": "0",
        "HYPRUSE_CLIPBOARD": "0",
        "HYPRUSE_JOURNAL": "0",
        "HYPRUSE_JOURNAL_MAX_BYTES": "8388608",
        "HYPRUSE_JOURNAL_TEXT": "0",
        "HYPRUSE_DRYRUN": "0",
        "HYPRUSE_MAX_IMAGE_BYTES": "1048576"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-ilyaskhallouki-hypruse": {
      "command": "uvx",
      "args": [
        "hypruse"
      ],
      "env": {
        "HYPRUSE_SCREENSHOT_MODE": "path",
        "HYPRUSE_READONLY": "0",
        "HYPRUSE_CONFINE": "launched",
        "HYPRUSE_AUTH_GUARD": "1",
        "HYPRUSE_STRICT": "0",
        "HYPRUSE_MARK": "0",
        "HYPRUSE_CLIPBOARD": "0",
        "HYPRUSE_JOURNAL": "0",
        "HYPRUSE_JOURNAL_MAX_BYTES": "8388608",
        "HYPRUSE_JOURNAL_TEXT": "0",
        "HYPRUSE_DRYRUN": "0",
        "HYPRUSE_MAX_IMAGE_BYTES": "1048576"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-ilyaskhallouki-hypruse": {
      "command": "uvx",
      "args": [
        "hypruse"
      ],
      "env": {
        "HYPRUSE_SCREENSHOT_MODE": "path",
        "HYPRUSE_READONLY": "0",
        "HYPRUSE_CONFINE": "launched",
        "HYPRUSE_AUTH_GUARD": "1",
        "HYPRUSE_STRICT": "0",
        "HYPRUSE_MARK": "0",
        "HYPRUSE_CLIPBOARD": "0",
        "HYPRUSE_JOURNAL": "0",
        "HYPRUSE_JOURNAL_MAX_BYTES": "8388608",
        "HYPRUSE_JOURNAL_TEXT": "0",
        "HYPRUSE_DRYRUN": "0",
        "HYPRUSE_MAX_IMAGE_BYTES": "1048576"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-ilyaskhallouki-hypruse": {
      "command": "uvx",
      "args": [
        "hypruse"
      ],
      "env": {
        "HYPRUSE_SCREENSHOT_MODE": "path",
        "HYPRUSE_READONLY": "0",
        "HYPRUSE_CONFINE": "launched",
        "HYPRUSE_AUTH_GUARD": "1",
        "HYPRUSE_STRICT": "0",
        "HYPRUSE_MARK": "0",
        "HYPRUSE_CLIPBOARD": "0",
        "HYPRUSE_JOURNAL": "0",
        "HYPRUSE_JOURNAL_MAX_BYTES": "8388608",
        "HYPRUSE_JOURNAL_TEXT": "0",
        "HYPRUSE_DRYRUN": "0",
        "HYPRUSE_MAX_IMAGE_BYTES": "1048576"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-ilyaskhallouki-hypruse": {
      "command": "uvx",
      "args": [
        "hypruse"
      ],
      "env": {
        "HYPRUSE_SCREENSHOT_MODE": "path",
        "HYPRUSE_READONLY": "0",
        "HYPRUSE_CONFINE": "launched",
        "HYPRUSE_AUTH_GUARD": "1",
        "HYPRUSE_STRICT": "0",
        "HYPRUSE_MARK": "0",
        "HYPRUSE_CLIPBOARD": "0",
        "HYPRUSE_JOURNAL": "0",
        "HYPRUSE_JOURNAL_MAX_BYTES": "8388608",
        "HYPRUSE_JOURNAL_TEXT": "0",
        "HYPRUSE_DRYRUN": "0",
        "HYPRUSE_MAX_IMAGE_BYTES": "1048576"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
HYPRUSE_SCREENSHOT_MODE No Screenshot output mode: 'path' (default) writes PNG file and returns path, 'image' returns inline image data. Default: path
HYPRUSE_READONLY No Set to 1 to expose only the observation tools (desktop, screenshot, zoom, ui, marks, binds, wait_for). The agent can see and narrate but cannot click, type, or launch. Default: 0
HYPRUSE_CONFINE No Restrict input to a scope of windows and refuse everything outside it: 'launched' (only windows hypruse opened this session), 'class:firefox,kitty', or 'workspace:3,special:notes'. Unset means no confinement.
HYPRUSE_AUTH_GUARD No Refuse to click or type into system authentication dialogs (polkit, keyring prompts). On by default; 'strict' also refuses password fields in ordinary windows; 0 disables it. Default: 1
HYPRUSE_STRICT No Set to 1 to refuse to act when the cursor or focused window moved since hypruse's last action, so the agent must re-read the desktop before retrying. Default: 0
HYPRUSE_MARK No Set to 1 to make the agent's presence legible: tag every window it opens 'hypruse-owned' and flash an on-screen notice when it opens a window or captures the screen. Default: 0
HYPRUSE_CLIPBOARD No Set to 1 to register the opt-in clipboard tool (never in read-only mode). Off by default because clipboards hold passwords. Default: 0
HYPRUSE_JOURNAL No Record every tool call, refusals included, as one NDJSON line: 1 writes to XDG_STATE_HOME/hypruse/journal.ndjson, or give a path. Read it back with 'hypruse journal'. Off by default. Default: 0
HYPRUSE_JOURNAL_MAX_BYTES No Rotate the journal once it reaches this size, keeping one previous generation alongside it. Set 0 to never rotate. Default: 8388608
HYPRUSE_JOURNAL_TEXT No Set to 1 to record typed and copied text in the journal verbatim instead of as a length plus digest. Off by default because keystrokes are passwords; needed only to replay typing. Default: 0
HYPRUSE_DRYRUN No Set to 1 for a rehearsal: every acting tool validates its arguments and runs every trust guard, then reports what it would have done and delivers no input. Default: 0
HYPRUSE_MAX_IMAGE_BYTES No Maximum image size in bytes (e.g., 1048576 for 1 MB). Screenshots will degrade resolution to fit. Default: 1048576

Similar servers