eyes-mcp
Click on "Deploy 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., "@eyes-mcp Capture the active window and look at it to verify the UI change."
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.
eyes-mcp
Temporary visual eyes for agents on Hyprland/Wayland. Lets Claude (or any MCP client) capture monitors, windows, or arbitrary regions and see the result as a PNG — closing the QA loop without relying on Playwright or screen-share heuristics.
Captures live in a per-process tempdir (/tmp/eyes-mcp-{pid}/) and self-destruct after a TTL (default 60s). Each capture tool returns metadata with a path; read that file to view the image. Capturing and looking are separate steps on purpose — you can take several captures and only spend tokens on the ones worth inspecting — but the TTL is running, so read what you need promptly.
Why
Agents writing UI fixes, desktop scripts, theming tweaks, notebook plots, or anything that produces a visual artifact normally have no way to verify the result. They commit blind, declare success, and the human catches the regression. eyes-mcp gives them a quick, scoped peek so they can self-correct before claiming "done".
Related MCP server: hyprland-mcp-server
Requirements
Hyprland (Wayland) — uses
hyprctlfor window/monitor enumerationgrim— Wayland screenshot backendPython 3.11+
Pillow (image resize)
uv— required by the plugin install path (see below)
# Arch
sudo pacman -S grim hyprlandInstall
cd ~/Projects/mcp/eyes-mcp
pip install -e .Install as plugin
claude plugin install eyes --marketplace Rixmerz/claude-pluginsPulls the whole repo via source: github, launches the server with uv run --project ${CLAUDE_PLUGIN_ROOT} eyes-mcp — resolves deps from
pyproject.toml on first run, no pip install -e . needed.
First-launch timeout risk: on a cold uv cache, resolving and installing
all deps (fastmcp, pillow, pydantic, transitively ~70 packages) has measured
up to ~90s before the server reports ready. Claude Code's default MCP startup
timeout is 30s, so the very first launch after claude plugin install eyes
can time out. Work around it by warming the cache once before registering the
plugin:
uv sync --project ~/.claude/plugins/cache/rixmerz/eyes/0.1.1The cache path uses the plugin name (eyes), not the repo name — adjust
the version to match what you installed. Or run uv sync --project <path>
against a manual checkout. Subsequent launches use the warmed uv cache and
start well under the timeout.
Register with Claude Code
claude mcp add eyes -- python -m eyes_mcpOr in ~/.config/claude/mcp.json (or equivalent):
{
"mcpServers": {
"eyes": {
"command": "python",
"args": ["-m", "eyes_mcp"],
"env": {
"EYES_TTL_SECONDS": "60",
"EYES_MAX_SIDE_PX": "1920"
}
}
}
}Tools
Tool | Purpose |
| Full monitor screenshot. Defaults to focused monitor. |
| Currently focused window. |
| Window matching class/title substring (largest match wins). |
| Arbitrary rectangle in global compositor coords. |
| Enumerate monitors (name, geometry, focused). |
| Enumerate open windows (class, title, geometry). |
| Captures still alive in current session. |
| Wipe all session captures now. |
Each capture tool returns a JSON metadata blob (id, path, dims, bytes, ttl). Read the file at path to view the PNG.
capture_window fails rather than guessing when the target window is on a workspace that is not currently displayed: grim reads the composited output, so capturing a hidden window would silently return the visible workspace's pixels under the requested window's name. It also cannot see through an occluding window stacked on top of the target — what you get is what is on screen.
Config
Env var | Default | Meaning |
|
| Seconds before a capture is swept from disk. |
|
| Longest side after downscale (token-cost guard). |
Lifecycle
Tempdir created on startup:
/tmp/eyes-mcp-{pid}/Background sweeper deletes expired files every
TTL/4secondsatexitwipes the whole tempdir on clean shutdownAll captures are PNG; downscaled in-place via Pillow LANCZOS
Limitations
Wayland-only (relies on
grim+hyprctl). No X11, macOS, Windows.No webcam capture in v1 (intentional scope cut).
Region selection is non-interactive — agents can't drive
slurp. Usecapture_windowor pass coords directly.Multi-monitor coords are global (Hyprland's compositor space).
License
MIT
Available Tools
8 toolscapture_active_windowA
Screenshot the currently focused window (uses hyprctl activewindow geometry).
Inputs: no named parameters. Returns: object
capture_monitorA
Screenshot a full monitor. If name omitted, captures the focused monitor. Returns metadata with path — read that file to view the PNG.
Inputs: name. Returns: object
capture_regionC
Screenshot an arbitrary rectangle in global compositor coords.
Inputs: h (required), w (required), x (required), y (required). Returns: object
capture_windowA
Screenshot a window matching a class or title substring (case-insensitive). Picks the largest match if multiple.
Inputs: query (required). Returns: object
cleanup_capturesA
Immediately delete all session captures (does not stop the TTL sweeper).
Inputs: no named parameters. Returns: object
list_capturesA
List captures still alive in the current session (within TTL).
Inputs: no named parameters. Returns: object
list_monitorsA
List available monitors (name, position, size, focused flag).
Inputs: no named parameters. Returns: object
list_windowsA
List open windows with class, title, and geometry.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
The four capture tools target distinct scopes (monitor, active window, matched window, arbitrary region), and the list tools cover distinct resources (windows, monitors, captures). capture_active_window vs capture_window could be briefly confused since both capture a window, but descriptions clarify the difference (focused vs class/title match).
All names follow a clean verb_noun snake_case pattern: capture_* for screenshots, list_* for enumeration, cleanup_* for deletion. The convention is applied uniformly with no deviations.
Eight tools is well-scoped for a screen-capture utility, with each tool earning its place across capture targets, discovery, and session cleanup. No redundant or filler tools.
The surface covers capture across monitor/window/region plus discovery (list_windows, list_monitors) and lifecycle management (list_captures, cleanup_captures), which is strong. Minor gaps like delayed/timed capture or annotation are absent but not essential to the core workflow.
Maintenance
Related MCP Connectors
Let your AI agent see any public web page: one screenshot tool, returns the page as an image.
Give your agent eyes: screenshots of any web page it can see, pages as markdown, and PDFs.
Generate images, GIFs, videos, and PDFs from HTML, URLs, or templates — from your AI agent.
Screenshot, PDF and Open Graph image API for AI agents: capture pages, render PDFs, make OG images.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables screenshot capture and visual analysis using cloud or local vision models, with tools to describe screens, list windows, and analyze images.13MIT
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to capture screenshots, inspect windows, and interact with the Hyprland desktop environment through mouse clicks and keyboard input.1-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to capture screen regions by defining a visual overlay or arbitrary coordinates, returning base64 PNG images.MIT
- AlicenseAqualityDmaintenanceGives AI agents eyes on Hyprland Wayland desktops by capturing screenshots via grim and offering optional image analysis with Gemini API.6MIT