claude-workman
Enables MCP clients to control a Linux/X11 desktop like a human: see the screen, move the mouse, click UI elements via the accessibility tree, type text, and manage windows.
README
claude-workman — computer use for Linux, as an MCP server
claude-workman is an open-source MCP server that gives an AI assistant human-mode control of a Linux desktop — it takes a screenshot, reads the accessibility tree, then moves the mouse, clicks, types, and switches windows. It works with Claude, Claude Code, and any other MCP client.
Named after the Walkman: a small, portable thing that just plays. Point it at a display and it works.
pip install claude-workman
claude mcp add --scope user workman -- python -m workman.server
Why accessibility-tree clicking beats pixel clicking
Most desktop automation guesses at pixel coordinates and breaks the moment a layout shifts, a font renders differently, or a window moves. claude-workman fuses two signals on every turn — a screenshot and the AT-SPI2 accessibility tree — so an action can be addressed semantically:
"click the push button named Continue"
…and land on that button's center, wherever it moved to. This is the same principle behind
macOS AXUIElement-based computer use, ported to Linux via AT-SPI2 (gi.repository.Atspi).
| Approach | Addressing | Survives layout change | Used here |
|---|---|---|---|
| Pixel-only automation (raw xdotool, image matching) | guessed x, y |
❌ brittle | fallback only |
| Accessibility-tree automation | role + name → element | ✅ robust | default |
Tools
| Tool | What it does |
|---|---|
screenshot / screenshot_region |
Capture the display (or a sub-rectangle) as PNG; max_dim downscales for faster round-trips |
accessibility_tree |
Actionable elements as {app, role, name, x, y, w, h} in screen coordinates |
click_element |
Find an element by role + name and click its center — no pixel guessing |
enable_accessibility |
Turn on AT-SPI tree export (and silence the screen reader — see safety) |
list_windows |
Windows with id, name, pid, geometry |
focus_window |
Raise a window by id or name; minimizes the frontmost blocker first |
click / move / drag / scroll |
Pointer actions at pixel coordinates |
type_text / press_key |
Keyboard input — press_key uses xdotool syntax (Return, ctrl+c, super+l, KP_0) |
show_cursor |
Visual click cursor overlay: a ring + click ripple showing exactly where the agent is acting |
Watch what it clicks
show_cursor starts a transparent, click-through overlay that draws a cyan ring at the action
point and an expanding ripple on every click, with a label. It exists for human oversight —
you can watch an agent work and interrupt it, instead of guessing what it just did.
Requirements
Linux with X11, plus:
sudo apt install xdotool ffmpeg gir1.2-atspi-2.0 python3-gi
# at-spi2-core is normally already running on GNOME/KDE
ffmpeg— screen capture (x11grab)xdotool— mouse and keyboard inputpython3-gi+gir1.2-atspi-2.0— the accessibility tree (import isgi.repository.Atspi, notpyatspi)Pillow(optional) — only formax_dimscreenshot downscaling- GTK 3 (optional) — only for the
show_cursoroverlay
Install
pip install claude-workman # from PyPI
# or from source:
git clone https://github.com/AdvisorAGI/claude-workman.git
cd claude-workman && pip install -e .
Usage
Run the stdio MCP server:
python -m workman.server
Register it with an MCP client — for Claude Code:
claude mcp add --scope user workman -- python -m workman.server
Target a specific X display with WORKMAN_DISPLAY (falls back to DISPLAY, then :0):
WORKMAN_DISPLAY=:1 python -m workman.server
The accuracy loop
screenshot— andenable_accessibility+accessibility_treewhen precision matters- Locate — prefer an element by role + name; fall back to pixels
- Act —
click_elementwhen possible, elseclick/type_text/press_key screenshotagain to verify before anything irreversible
Speech hazard (handled)
Exporting the accessibility tree from Chromium and Electron apps requires the desktop
screen-reader flag — and that same flag makes Orca read the screen aloud through
speech-dispatcher → espeak-ng. enable_accessibility therefore stops Orca immediately after
enabling, using an exact process-name match (pkill -x orca, never pkill -f orca, which
self-matches its own shell command and aborts).
GTK applications export their trees with toolkit-accessibility alone, so the web flag is
opt-in.
FAQ
What is claude-workman?
An open-source MCP server that lets an AI assistant control a Linux desktop the way a person does — screenshot, locate, click, type, verify — with accessibility-tree targeting so clicks hit real UI elements instead of guessed coordinates.
How is this different from browser automation?
Browser tools (Playwright, Puppeteer, CDP) drive a web page. claude-workman drives the whole desktop: native apps, terminals, file managers, settings dialogs, and browsers alike.
Does it work with Claude Code?
Yes. Register it with claude mcp add --scope user workman -- python -m workman.server. It
works with any MCP client, not only Claude.
Does it support Wayland or macOS?
Not yet — X11 today. A Wayland backend and a macOS AXUIElement backend are the natural next steps, and contributions are welcome.
Is it safe to let an agent control my desktop?
Treat it like handing over mouse and keyboard. Use show_cursor so you can see every action,
prefer a dedicated display or VM for unattended runs, and keep the verify-by-screenshot step
before anything irreversible.
Why is it called Workman?
After the Walkman — a small portable thing that just plays. Point it at a display and it works.
Does it solve CAPTCHAs?
No. It is a general desktop-control server, not an anti-bot bypass tool.
Contributing
Issues and pull requests are welcome — see CONTRIBUTING.md. Good first areas: a Wayland backend, a macOS AXUIElement backend, richer AT-SPI role coverage, and tests.
License
MIT © 2026 Atmosphere AI — see LICENSE.
<sub>Keywords: MCP server, Model Context Protocol, computer use, desktop automation, Linux automation, X11 automation, AT-SPI2 accessibility, GUI agent, AI agent desktop control, xdotool alternative, screenshot automation, Claude MCP connector, agentic computer use.</sub>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。