OculOS — MCP server for Claude Code and Cursor
A Rust MCP server and REST API that lets an agent see and operate buttons and fields of desktop apps via the accessibility tree.
Install in Claude Code, Cursor and Claude Desktop
Manual install
git clone https://github.com/huseyinstif/oculos.git
cd oculos
cargo build --releaseThe first README option: build from source. The binary appears at `target/release/oculos`.
Access and checks
How we reviewBroad access. The tool can change data, run commands or handle secrets.
- The agent gets control of any open app: clicks, typed text, closed windows.
- Banking, mail and passwords may be on screen, and a wrong click cannot be undone.
This is third-party code. Review the repository files before installing.
What it does
OculOS, a Rust daemon, reads the operating system accessibility tree and turns every button, field and menu item into a JSON element with a stable ID. The agent finds an element by label, clicks it, types text, toggles checkboxes and waits for windows to appear or disappear. No screenshots or pixel coordinates are needed. The same binary runs in `--mcp` mode for agents or starts an HTTP API with a web dashboard on `127.0.0.1:7878`. The dashboard shows the element tree and records actions as Python, JavaScript or curl scripts.
Who it is for. Developers and testers who drive programs without an API from Claude Code, Cursor or their own scripts.
Good fit when
- An agent has to run a chain of clicks in a desktop program that has no API of its own.
- A UI autotest on Windows, Linux or macOS reads the element tree instead of screenshots.
- Actions recorded in the dashboard need to be saved as a Python or curl script.
- An agent without MCP gets HTTP access and `AGENTS.md` is pasted into its system prompt.
Not a fit when
- Banking, mail or a password manager are open on the machine and supervision of the agent is weak.
- The program has a proper API or CLI that is more reliable than clicks.
- You need Wayland-native apps, where `send-keys` and window focus reach only XWayland apps.
Example request
Open Calculator, find the 5 and multiply buttons, compute 5 times 5 and read the result from the window.MCP
- Transport
- stdio
- Authentication
- not required
Keys and settings
OCULOS_TOKENsecret- Token for the HTTP API and dashboard; without it the server listens only on `127.0.0.1`.
Limitations
It builds from source with `git clone` and `cargo build --release`; the README lists no prebuilt packages. On macOS the terminal or binary needs the Accessibility permission, and on Linux `at-spi2-core` and `xdotool` must be installed. Window and element screenshots work only on Windows. By default the server listens on `127.0.0.1` without a token. Bound to another address without a token, it generates a random one and prints it to the log, and traffic is plain HTTP.
How to disable. Remove the `oculos` entry from the agent MCP configuration and stop the process. Revoke the Accessibility permission in macOS settings if you granted it.
FAQ
How do I connect OculOS to Claude Code?
Add an `oculos` server to the MCP configuration with the path to the built binary and the `--mcp` argument. The author tested it with Claude Code, Claude Desktop, Cursor and Windsurf.
Does it work without screenshots?
Yes. The agent reads the element tree as JSON and addresses elements by ID. Window screenshots exist but only on Windows.
Who can reach the API?
By default only processes on the same machine: the server listens on `127.0.0.1` and checks the `Host` and `Origin` headers. For network access set `--token` or `OCULOS_TOKEN`.
Which platforms are supported?
Windows through UI Automation, Linux through AT-SPI2 and macOS through the Accessibility API. Coverage is best for Win32, WPF, WinForms and Electron apps.
How do I give OculOS to an agent without MCP?
Run the binary without flags and give the agent HTTP access to `127.0.0.1:7878`. Paste the `AGENTS.md` file from the repository into the system prompt.
Is OculOS safe to install?
Broad access. The tool can change data, run commands or handle secrets.
Discussion
No questions or reviews yet.
Comparison with similar tools
Cards that share the main search query, and how they differ.
| Tool | Official | Authentication | Repository stars | Main difference |
|---|---|---|---|---|
| OculOS (this card) | no | not required | 135 | |
| computer-use-mcp | no | not required | 411 | drives the desktop through screenshots and coordinates; OculOS reads the accessibility tree and addresses elements by ID |
| Windows-MCP | no | not required | 12,259 | targets Windows only; OculOS runs on Windows, Linux and macOS |
README in short
OculOS exposes the interface of any app as an API: window list, element tree, search, waiting, actions and batch runs of up to a hundred steps. Python and TypeScript client SDKs, an OpenAPI spec and examples are included.