Skip to main content
Glama
Keylessboi

hyprland-mcp

by Keylessboi

hyprland-mcp

MCP server for Hyprland desktop control. Agents get eyes and hands on your Wayland desktop. Test apps running in the background without taking over your screen.

What it does

The server gives AI agents these tools:

  • See the desktop — list every window, including windows on other workspaces. Capture screenshots of any window, even occluded or on invisible workspaces. Zero perturbation of the app under test.

  • Type and click — send text, key chords, mouse clicks, and clipboard paste. The non-interrupting path uses sendshortcut and grim -T so the agent works on its own workspace without stealing your screen.

  • Launch and control — start apps, move them to a dedicated agent workspace, focus, close.

Related MCP server: kwin-mcp

The agent workspace

The agent runs on its own workspace. You work on yours. The agent reads windows, takes screenshots, and sends input to its workspace without switching your view.

Launch an app into the agent workspace. Move it there silently:

launch { command: "foot", args: ["--title", "agent-shell"], wait_for_window: true }
workspace { id: -42, window: "foot" }

The agent sees the window wherever it is. No focus change. No workspace switch.

Requirements

  • Hyprland 0.41+

  • Node 20+

  • grim, ydotool (ydotoold), wtype, wl-clipboard

Install

git clone https://github.com/Keylessboi/hyprland-mcp.git
cd hyprland-mcp
npm install

Wire into opencode

Add to ~/.config/opencode/opencode.jsonc:

"mcp": {
  "hyprland": {
    "type": "local",
    "command": ["node", "--import", "./node_modules/tsx/dist/loader.mjs", "src/index.ts"],
    "workdir": "/home/travis/Projects/hyprland-mcp",
    "timeout": 10000
  }
}

Or start manually:

cd hyprland-mcp && node --import ./node_modules/tsx/dist/loader.mjs src/index.ts

Run tests

npm install
npx vitest run          # 33 deterministic tests
npx tsc --noEmit        # typecheck

VM testing

A KVM VM is provisioned for live smoke tests. The VM runs Hyprland 0.56.2 headless with a virtio GPU. The full VM setup guide is in docs/test-vm.md.

License

MIT

F
license - not found
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    B
    maintenance
    Enables AI assistants to automate Wayland desktop environments through screenshot analysis, mouse control, and keyboard input simulation. It supports visual context via VLM providers like Gemini and OpenRouter to perform complex, multi-step desktop actions.
    6
    GPL 3.0
  • A
    license
    -
    quality
    C
    maintenance
    Enables AI agents to automate Linux desktop GUI by launching and interacting with Wayland applications in isolated virtual KWin sessions, or connecting to live desktops for collaborative automation.
    39
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    Enables AI agents to control Linux/X11 desktops by providing tools for taking screenshots, clicking, typing, and managing windows via AT-SPI and xdotool.
    3
    MIT

View all related MCP servers

Related MCP Connectors

  • Build, validate, and deploy multi-agent AI solutions from any AI environment.

  • Turns any agent into a full agentic application — branded, interactive screens generated at runtime.

  • Human-as-a-Service for AI agents. Delegate tasks that need a real human, get results via API.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Keylessboi/hyprland-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server