Open-source project
AmrDab/clawdcursor avatar
AmrDab/clawdcursor

clawdcursor: a local MCP server that compiles the screen into a UI map

clawdcursor compiles whatever's on screen into one UI map — accessibility tree and OCR fused into stable, addressable elements, with a screenshot only when needed — then drives apps through reusable scripts, verifying every action and routing it through a single safety gate.

409 stars59 forksTypeScriptMIT

At a glance

What is it?
clawdcursor fuses the accessibility tree and OCR into one addressable element map and drives desktop apps by stable id, falling back to screenshots only when nothing else works. The design is sound for legacy GUIs and canvas apps, but the README leaves the safety gate's policy file and the rollback story undocumented.
Who is it for?
Adopt clawdcursor when the target is a native app, a browser surface or a canvas with no API, and when the agent must run against a local model with no pixels leaving the machine. Do not adopt it if your workflow already has a CLI or HTTP API, since the README itself calls the project a last-mile fallback.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • AmrDab/clawdcursor409 ★ · +6
Star history
Repository2026-09-152026-11-25
AmrDab/clawdcursor403409

6 Stars in the last 71 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The gap clawdcursor targets: GUIs with no API surface

Most automation advice ends with a shrug when the target is a legacy Windows client, a vendor tool with no public interface, or a canvas that renders its own widgets. There is no endpoint to call and no DOM to query. The README frames clawdcursor as the fallback execution layer for exactly that situation: "If a human can do it on a screen, your agent can too." The stated rule is to use a native API when one exists, a CLI when one exists, and reach for clawdcursor only for the click, the legacy app, or the GUI with no public surface.

That positioning matters because it sets the adoption bar. This is not a general automation framework that competes with scripting an API. It is a tool for the residue, and the audience is narrow on purpose: teams running tool-calling agents that already work well against APIs and now need to reach one desktop application that has none. The project is a local MCP server, so the host is whatever MCP client the team already uses (the README names Claude Code, Cursor, Windsurf, OpenClaw and the Claude Agent SDK), and the model can be any tool-calling model, including a local one.

How the UI map is built: accessibility tree, OCR, then pixels

The mechanism is a three-tier perception ladder. The accessibility tree is the free tier and the preferred one. OCR is the cheap tier, used to recover text the accessibility layer did not expose. A screenshot is the expensive tier, and the README is explicit that screenshot and vision are the same step, because it is the only tier that puts pixels into the model's context. The three tiers are fused into a confidence-scored set of elements, each carrying a stable `el_NN` id, and the agent acts on ids rather than pixel coordinates.

Two consequences follow. First, token cost tracks task difficulty: a form full of labelled controls never needs a screenshot, while a canvas-only app pays for vision on every observation. Second, actions are addressable and therefore reproducible, which is what makes the reusable-script idea coherent. The README notes that coordinates appear only in the last-resort tier, taken live from the current frame, for canvas-only apps or tasks that genuinely need spatial reasoning. The comparison table in the README contrasts this with vision-centric approaches such as OmniParser and UI-TARS, which it describes as parsing approaches you build an agent around rather than products you install, and which need a screenshot in the model for every observation. That is the honest core of the pitch: cheaper perception, not better perception.

The safety gate and the verification step

Every call routes through a single `safety.evaluate()` chokepoint that returns allow, confirm or block before anything touches the desktop. The README states that this holds whether the call arrives from an editor over stdio, from an external agent over HTTP, or from the built-in loop, and that the agent cannot bypass it. A single chokepoint is a real architectural choice: it means the policy has one implementation to audit instead of one per transport.

The second mechanism is verification. Pass an `expect` on a consequential action and clawdcursor re-checks the live screen, with a short settle window for asynchronous interfaces, and reports a DEVIATION rather than a success. The README's framing is worth quoting because it names the failure it prevents: a completed task cannot be marked done on evidence that was already true before it acted. That is the difference between an agent that reports what it did and one that reports what changed. It is also the part of the design that most competing tools in the README's own comparison table do not claim.

The gap is that the README documents the chokepoint and the three verdicts, but not the file or format where the allow/confirm/block policy lives. If you need to know which actions a given deployment will auto-approve, that is the first thing to establish from the repository rather than from the README.

Installing clawdcursor and running a first task

The package is published on npm as `clawdcursor` and requires Node 20 or above. The repository's `package.json` declares the binary at `dist/surface/cli.js`, and the install hooks run `scripts/verify-install.js` and `scripts/postinstall-native.js`, both of which are written to exit successfully even if they fail, so a broken native step will not abort the install. Install it globally so the `clawdcursor` command is on your path:

bash
npm install -g clawdcursor

Configuration is environment-based. Copy `.env.example` to `.env` and set a provider key. The example file lists `AI_API_KEY` plus the provider-specific alternatives `ANTHROPIC_API_KEY` and `OPENAI_API_KEY`, and names `anthropic`, `openai`, `ollama` and `kimi` as the accepted values for `AI_PROVIDER`. If `AI_PROVIDER` is unset, the example file says the provider is auto-detected from the API key format:

bash
cp .env.example .env
# then set AI_API_KEY, or ANTHROPIC_API_KEY / OPENAI_API_KEY

The example file points at the diagnostic command as the intended first step: "Run `clawdcursor doctor` to auto-detect and configure everything." Run that before anything else, because it is the project's own way of telling you whether the native pieces and the provider are wired correctly. After that, register the server with your MCP host; the README describes clawdcursor as MCP-native, meaning one configuration entry per host rather than a per-tool integration.

Where clawdcursor is the wrong tool

The README answers this itself, and the answer is unusually direct: native API exists, use it; CLI exists, use it. Desktop control through a UI map is slower and more fragile than a function call, and no amount of confidence scoring changes that. If your target has an HTTP API, an SDK or a scriptable CLI, clawdcursor adds a perception layer you do not need.

The second limitation is perceptual rather than architectural. The accessibility tree is the free tier, and it is only as complete as the application exposes it. Apps that draw their own widgets, or that run under toolkits with poor accessibility support, push the agent down to OCR and then to screenshots, which is precisely the cost profile clawdcursor exists to avoid. The README acknowledges this by reserving the screenshot tier for canvas-only apps, but it does not quantify how often that happens in practice, and there is no published accuracy figure for the OCR tier in the documentation available.

The third is the settle window. Verification against a live screen needs the interface to have stopped changing. For an app with long asynchronous loads, the re-check can read a state that is still in motion, and the README does not document how the window is configured or what happens when it is too short.

clawdcursor compared with browser-only and vision-centric approaches

The README's own table splits the field three ways. Browser-only tools such as browser-use and Playwright MCP operate on the web and nothing else, and Playwright MCP is described as a test framework rather than an agent, which is a fair distinction: it drives a browser, it does not decide what to do. Vision-centric projects such as OmniParser and UI-TARS cover any desktop app but require a screenshot in the model for every observation, so cost scales with observation count rather than task difficulty. Clawd Cursor's bet is that most desktop interfaces expose enough structure through accessibility and OCR that vision can be the exception.

That bet has a clear failure mode and a clear payoff. Where the interface is well-labelled, clawdcursor should be materially cheaper per step than a vision-first agent, and it can run against a local model with nothing leaving the machine. Where the interface is a canvas or an accessibility-hostile toolkit, clawdcursor degrades toward the same screenshot-per-observation cost as the vision-centric tools, minus their dedicated parsing models. The README positions the closest install-and-go peers as Windows-MCP and Terminator, both desktop MCP servers, which suggests the practical choice is between MCP servers first and perception strategies second.

Maintenance, licence and upgrade cost

The repository is not archived and the last push was on 2026-09-14, so the project is current. The release history is dense and recent: v1.5.9 on 2026-07-03, labelled "batch confirm-tier hardening (security)", v1.5.8 the same day, labelled "the agent path clicks straight", and v1.5.7 on 2026-06-26, labelled "accuracy + repo polish". A security-hardening release in the confirm tier tells you the safety gate is still being tightened, which is the right place for churn but also means the confirm behaviour is worth re-reading at each upgrade.

The licence is MIT, which permits commercial and closed-source use with the usual requirement to retain the copyright notice and permission text. That is a permissive baseline; it says nothing about the licence terms of the models you point it at, and running a local model through Ollama is a separate arrangement from running a hosted one.

The upgrade cost sits mostly in the native layer. The published package includes `native/build.sh`, `native/Package.swift`, `native/Sources/` and `native/entitlements.plist`, and the postinstall script is written to tolerate failure. On macOS, entitlements and accessibility permissions are the kind of thing that breaks quietly on a version bump, so pin a version in CI and re-run `clawdcursor doctor` after each upgrade rather than tracking the latest tag.

Editorial conclusion

Adopt clawdcursor when the target is a native app, a browser surface or a canvas with no API, and when the agent must run against a local model with no pixels leaving the machine. Do not adopt it if your workflow already has a CLI or HTTP API, since the README itself calls the project a last-mile fallback. Before wiring it into anything consequential, verify which actions land in the confirm tier and where that policy is stored, because the README documents the allow/confirm/block chokepoint but not the file that defines it.

Frequently asked questions

What is clawdcursor and who is it for?

It is a local MCP server that gives any tool-calling agent safe control of the real desktop, on Windows, macOS and Linux. The README positions it as a last-mile fallback for native apps, legacy clients and GUIs with no public API, not as a replacement for an API or CLI.

Does clawdcursor need a vision model to see the screen?

No. It fuses the accessibility tree and OCR into one confidence-scored UI map and acts on elements by stable `el_NN` id. A screenshot is the last-resort tier and the only one that puts pixels into the model's context.

Which models and MCP hosts work with clawdcursor?

The README says it works with any tool-calling model, naming Claude, GPT, Gemini and Llama, and with hosts including Claude Code, Cursor, Windsurf, OpenClaw and the Claude Agent SDK. The `.env.example` file lists anthropic, openai, ollama and kimi as provider values.

How do I install clawdcursor?

Install it from npm as the `clawdcursor` package, which requires Node 20 or above, then copy `.env.example` to `.env` and set a provider key. The example file recommends running `clawdcursor doctor` to auto-detect and configure the provider.

How does clawdcursor verify that an action worked?

Passing an `expect` on an action makes clawdcursor re-check the live screen with a short settle window and report a DEVIATION instead of a success. This prevents a task being marked done on evidence that was already true before the action ran.

Is clawdcursor free to use in a commercial product?

It is released under the MIT licence, which permits commercial and closed-source use provided the copyright notice and permission text are retained. That covers the project's own code, not the terms of whichever model provider you configure.

Official sources

  1. AmrDab/clawdcursor on GitHub
  2. License: MIT
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/amrdab-clawdcursor.svg)](https://hysenlabs.com/projects/amrdab-clawdcursor)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/amrdab-clawdcursor.svg)](https://hysenlabs.com/projects/amrdab-clawdcursor)

Was this useful?