bad-ass-mcp MCP Server
Desktop GUI automation on macOS, Windows and Linux through accessibility trees, not screenshots.
bad-ass-mcp scores 69 (Good), licensed MIT and written in Python. It installs as a local process. It declares 14 tools. Filed under Browser automation, AI and memory. GitHub shows 8 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
69 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Where the 69 comes from
22 + 20 + 3 + 10 + 4 + 10 = 69. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 3 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "holdmybeer-gg-bad-ass-mcp": { "command": "uvx", "args": [ "bad-ass-mcp" ] } }}
Environment variables
This server does not declare environment variables.
Tools14Tool docs quality grade C
All capabilitiesclick_attoolClick at absolute screen coordinates. Fallback for webview/canvas UI; takes button and clicks
find_elementstoolFind elements by role and/or name
get_treetoolFull accessibility tree for a window as nested JSON
get_valuetoolGet the current value or text of an element
learn_layouttoolResolve semantic names → live handle IDs (one call per session)
list_windowstoolList all visible application windows
run_sequencetoolExecute a list of actions server-side, no per-action round-trips
select_optiontoolSelect an option in a combo box or list (a11y items → SetValue → keystrokes), verified by reading the value back
start_recordingtoolStart recording the screen (or a specific window)
stop_recordingtoolStop recording and export as GIF (short clips) or MP4 (long sessions, no re-encode)
type_texttoolType text into a field (SetValue → EditableText → key injection)
wait_for_elementtoolWait until an element exists and optionally has a given state
About
bad-ass-mcp
Every other tool needs a browser or a vision model. This one reads what the OS already knows.
A cross-platform MCP server for desktop GUI automation, driven by accessibility APIs, not screenshots.
Works with Claude, Codex, Gemini, Ollama, or any OpenAI-compatible client that supports MCP.
Why
Speed:
Most AI desktop automation tools work by taking screenshots and asking a vision model "what do you see?" That's slow, expensive, and fragile.
Every major OS exposes a structured accessibility tree, the same one used by screen readers, that describes every button, text field, combo box, and menu in every running application. bad-ass-mcp speaks that language directly.
- macOS: AXUIElement via PyObjC
- Linux: AT-SPI2 via
gi.repository.Atspi - Windows: UI Automation via
comtypes
Actions fire on control objects directly, so the target window doesn't need focus. The user can keep working while automation runs in the background.
Tools
| Tool | Description |
|---|---|
list_windows | List all visible application windows |
get_tree | Full accessibility tree for a window as nested JSON |
find_elements | Find elements by role and/or name |
click | Click / invoke an element (foreground-independent); button="right", clicks=2; falls back to a real click at the element's center |
click_at | Click at absolute screen coordinates. Fallback for webview/canvas UI; takes button and clicks |
drag | Drag-and-drop with real pointer events, between coordinates or element handles |
type_text | Type text into a field (SetValue → EditableText → key injection) |
select_option | Select an option in a combo box or list (a11y items → SetValue → keystrokes), verified by reading the value back |
get_value | Get the current value or text of an element |
wait_for_window | Wait until a window matching a pattern appears |
wait_for_element | Wait until an element exists and optionally has a given state |
wait_for_text | Wait until an element reads a text, contains it, or matches a regex such as ^Opened; by handle, or re-found each poll by role and name for labels |
screenshot | Capture a PNG (write to output_path or return base64) |
start_recording | Start recording the screen (or a specific window) |
stop_recording | Stop recording and export as GIF (short clips) or MP4 (long sessions, no re-encode) |
learn_layout | Resolve semantic names → live handle IDs (one call per session) |
run_sequence | Execute a list of actions server-side, no per-action round-trips |
The wait_* tools poll without blocking the server: a screenshot made during a long wait is answered while the wait runs, and a wait the client cancels stops and sends nothing back. Claude Code moves any tool call that runs past 120 s to the background, so keep a wait's timeout under that if the result should land in the conversation.
Field notes: when the tree isn't enough
Observed driving large native apps (a game editor, a DAW) on Windows:
- Context menus don't exist in the a11y tree until they're open, and nothing in UIA opens them.
click(handle, button="right")orclick_at(x, y, button="right")does; the menu is then a readable window. - Double-click targets (list rows that open an editor) often expose only a Select action, which highlights the row and stops. Use
clicks=2. - Tab strips can behave the same way: a11y Select highlights the tab without switching the page.
clicknow falls back to a real pointer click when no pattern takes, which switches it. - Stock Win32 combo boxes are unreliable through UIA: the item list only exists while dropped down, and
SetValuecan succeed on one combo and silently no-op on the next one in the same dialog.select_optionends with a keystroke strategy (focus, type the item, Return) and reads the value back, sook: falsemeans it really didn't change. - Custom-drawn panels (owner-drawn frames, canvas views) show up as empty panes. Only the app's native menus and standard file dialogs are readable; everything else is
screenshot+click_at. - Mislabelled controls. Some dialogs attach each label to the neighbouring control (a combo named "Voice Type" is really the one above it, and the real one has no name). When names look off by one, confirm with
get_valueor pick by position inget_treeinstead of by name. - Stock message boxes are fully readable.
wait_for_window("Warning")thenclickon "Yes to all" works as-is. - SetValue skips the app's event handlers. Setting a filter box's text won't re-run the filter; press a key or click elsewhere and back to trigger it.
- Never send bare keys into an editor without a focused dialog. In most DAWs and NLEs, single keys are editor shortcuts and will edit the project.
- Long demos:
stop_recordingto a.mp4path keeps the raw capture (seconds to finish); GIF transcodes and downscales, fine for under a minute.
Webviews: waking lazy accessibility trees
Chromium-based apps (Electron, CEF, and every Chromium browser) have a
full accessibility tree. They just don't build it until an assistive
technology announces itself. Until then the window looks canvas-only:
get_tree returns nothing and screenshot-clicking is the only option.
bad-ass-mcp announces itself. When a window's a11y tree comes back empty and the process looks like a webview, the backend performs the platform's "a screen reader is here" handshake, waits a beat, and re-probes before giving up:
- Linux: sets
org.a11y.Status.ScreenReaderEnabledon the session D-Bus at server start so Chromium/Electron apps launched afterwards enable accessibility from birth. Windows that stay hollow (an application+frame whose phantom child fetches asNone) are detected via the AT-SPI toolkit name and reportedaccessible: false: the app either launched before the flag went up or opts out on its own. Restarting the app with the server running should pick the flag up per Chromium's documented behavior, but note that is not yet verified here: the only Linux app live-tested so far (flatpak Vivaldi) ignores the flag entirely, its own first-run assistive-technology toggle included, and only produces a tree when launched with--force-renderer-accessibility. - macOS: sets
AXManualAccessibilityon the app (Electron's documented switch), falling back toAXEnhancedUserInterface(what VoiceOver sets, watched by plain Chrome/CEF). The attribute set only succeeds on apps that support it, so it's a free no-op elsewhere. - Windows: sets the system
SPI_SETSCREENREADERRUNNINGflag, then queries theChrome_RenderWidgetHostHWNDchild window: Chromium hangs its DOM tree off that renderer child, not the top-level HWND (which only shows empty panes).get_tree/find_elementsare routed through the renderer child automatically.
One wake attempt per process per server run. If list_windows still
reports accessible: false after this, the window is genuinely
canvas-only (custom OpenGL/Vulkan surface, immediate-mode toolkit
without AccessKit). Fall back to screenshot + click_at.
The tradeoff: a woken app spends some memory/CPU maintaining its tree, which is exactly why Chromium lazy-loads it. The wake targets the app you're automating, not the whole desktop (the Linux flag is technically session-global, but only a11y-aware apps respond, and only on demand).
Installation
Requirements: Python 3.11+, ffmpeg + gifsicle for recording (optional)
# macOS
pip install 'bad-ass-mcp[macos]'
# Linux: install system PyGObject + AT-SPI bindings first, then:
pip install bad-ass-mcp
# Windows
pip install 'bad-ass-mcp[windows]'
Linux: PyGObject and AT-SPI are not on PyPI, and the backend shells out to xdotool, xprop, and ImageMagick's import (or KDE's spectacle) for clicks and screenshots. Install them from your distro:
# Debian/Ubuntu
sudo apt install python3-gi gir1.2-atspi-2.0 at-spi2-core xdotool x11-utils imagemagick
# Arch
sudo pacman -S python-gobject at-spi2-core xdotool xorg-xprop imagemagick
# Fedora
sudo dnf install python3-gobject at-spi2-core xdotool xprop ImageMagick
Then make sure AT-SPI is enabled (most desktop environments, GNOME, KDE and XFCE among them, have it on by default):
# Check
gsettings get org.gnome.desktop.interface toolkit-accessibility
# Enable
gsettings set org.gnome.desktop.interface toolkit-accessibility true
If you're using a venv, create it with --system-site-packages so it can see the distro-installed gi:
python -m venv --system-site-packages venv
Windows: Elevated (admin) applications can only be automated from an elevated Python process. No special permissions are needed for normal apps.
Register with Claude Code
claude mcp add bad-ass-mcp --scope user -- bad-ass-mcp
Or manually in ~/.claude.json:
{
"mcpServers": {
"bad-ass-mcp": {
"type": "stdio",
"command": "bad-ass-mcp"
}
}
}
Usage
list the windows on screen
→ [{ "id": "12345", "name": "Firefox", ... }]
find the search box in window 12345 and type "hello"
→ find_elements(window_id="12345", role="entry")
→ type_text(handle_id="...", text="hello")
Electron/CEF apps get their lazy accessibility tree woken automatically (see Webviews above). For apps that still don't expose a clean tree, type_text falls back to platform-native key injection automatically (AT-SPI on Linux, Quartz events on macOS, PostMessage on Windows).
Architecture
bad_ass_mcp/
├── server.py # FastMCP tool definitions
├── types.py # WindowInfo, ElementHandle, ActionResult, StaleHandleError
└── backend/
├── base.py # Abstract DesktopBackend interface
├── linux.py # AT-SPI2 + xdotool
├── macos.py # AXUIElement + Quartz
└── windows.py # UI Automation + ctypes Win32
The abstract backend interface means adding a new platform is just implementing one class. The full contract-test suite runs against every backend via FakeBackend.
Releasing
Tag a version and the release workflow builds the sdist and wheel, publishes them to PyPI via trusted publishing, and attaches them (plus the PyInstaller bundles) to the GitHub release:
git tag v1.4.0 && git push --tags
License
MIT
Frequently asked questions
What is bad-ass-mcp MCP Server?
Desktop GUI automation on macOS, Windows and Linux through accessibility trees, not screenshots.
How do I install bad-ass-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. bad-ass-mcp MCP Server runs locally from the PyPI package bad-ass-mcp with the command uvx bad-ass-mcp.
Is bad-ass-mcp MCP Server free and open source?
Yes. bad-ass-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does bad-ass-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for bad-ass-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does bad-ass-mcp MCP Server provide?
bad-ass-mcp MCP Server provides 14 tools, including click_at, find_elements, get_tree, and get_value. See the full tool list for descriptions and parameters.
How is bad-ass-mcp MCP Server's trust score calculated?
bad-ass-mcp MCP Server scores 69 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.