hyprland-mcp
Provides tools for controlling the Hyprland desktop environment, including window listing, screenshot capture, input simulation (keyboard, mouse, clipboard), application launching, workspace management, and window focus control.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hyprland-mcplist all windows and their workspaces"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
sendshortcutandgrim -Tso 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 installWire 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.tsRun tests
npm install
npx vitest run # 33 deterministic tests
npx tsc --noEmit # typecheckVM 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
This server cannot be installed
Maintenance
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
- Alicense-qualityBmaintenanceEnables 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.6GPL 3.0
- Alicense-qualityCmaintenanceEnables 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.39MIT
- Alicense-qualityCmaintenanceEnables AI agents to control Linux/X11 desktops by providing tools for taking screenshots, clicking, typing, and managing windows via AT-SPI and xdotool.3MIT
- Flicense-qualityDmaintenanceEnables LLMs to capture screenshots, inspect windows, and interact with the Hyprland desktop environment through mouse clicks and keyboard input.1
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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