Flash computer use
Provides native desktop control on Linux X11, including physical mouse pointer movement, clipboard integration, and accessibility tree queries via AT-SPI for targeting UI elements.
Provides native desktop control on macOS, including AXUIElement accessibility tree queries, Retina multi-monitor scaling, and physical mouse pointer movement.
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., "@Flash computer use Open Chrome, search for 'MCP servers', and click the first GitHub result"
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.
⚡ Flash computer use — Ultra-Fast Hybrid Browser & Desktop MCP Server
Flash computer use is a high-speed, precision-engineered Model Context Protocol (MCP) server in Python for controlling both web browsers (Playwright) and the physical OS desktop (Linux X11, Windows, macOS).
Unlike traditional screenshot-only computer-use agents that take 20–50 seconds per action and generate hallucinated [x, y] coordinates, Flash computer use combines instant deterministic DOM & native OS accessibility targeting (2–7 ms) with calibrated Set-of-Mark / hierarchical grid visual decision fallback (LiquidAI D1)—while always moving the real physical OS mouse pointer along a smooth, human-like minimum-jerk trajectory.
✨ Key Highlights
🚀 Up to 200× Faster Hybrid Execution & Deep DOM ↔ D1 Synergy (
hybridmode):Context & Spatial DOM Disambiguation: Instantly resolves unique accessible labels, child SVG/image icon labels,
<select>dropdown options, and even duplicate buttons across product cards or page zones (e.g."Select Plan for Enterprise Suite"or"Sign in button in the header") in 2–7 ms (0VLM calls), verifying unoccluded click coordinates via 9-pointelementFromPointhit-testing.Smart Candidate Pre-Filtering & Cropping for D1: When visual disambiguation is needed on dense pages (60+ elements),
select_d1_candidatesnarrows the Set-of-Mark annotation to only the relevant candidate subset, crops tightly around them, places non-occluding exterior badges, and enriches each option with[role | zone | card context].Hybrid Offscreen Scrolling (
scroll_until_visible): Detects offscreen DOM targets below the fold and scrolls directly until they enter the viewport without wasting intermediate VLM calls.Desktop Native Accessibility: Queries native OS accessibility trees (Linux AT-SPI, Windows UI Automation, macOS AXUIElement) with automatic cache invalidation.
🖱️ Human-Like Physical OS Mouse Movement (Web + Desktop):
Always moves the real physical OS cursor along a minimum-jerk trajectory ($10t^3 - 15t^4 + 6t^5$) with a subtle natural wrist arc and exact pixel landing.
In visible browser mode, automatically maps Playwright viewport coordinates to global screen coordinates before every click, typing action, scroll, drag, or popup action.
🎨 Paint &
<canvas>Drawing + Dragging:Automatically detects the largest white/light drawing sheet (
canvas_bounds) in desktop paint apps (MS Paint, KolourPaint, Pinta, etc.) or HTML5<canvas>elements in the browser.Supports smooth direct dragging (
mouse_drag), continuous freehand & multi-stroke paths with anti-gap interpolation (draw_path), and 12 ready-to-use geometric shapes (draw_shape).
🛡️ Zero Coordinate Hallucination:
Uses LiquidAI D1 via native
/v1/systemonedecision probabilities (noul,choice,scorewith zero generated tokens) over Set-of-Mark badges and coarse-to-fine grids (Ollama, local Hugging Face Transformers, or Cloud API).
💻 Cross-Platform Precision:
Built-in Windows Per-Monitor DPI Awareness, macOS Retina multi-monitor scaling, and Linux X11 native clipboard & pointer integration.
Related MCP server: nexusos-semantic
📖 Table of Contents
1. Speed & Accuracy Benchmarks
Measured on a dense synthetic e-commerce page (50+ interactive elements) using LiquidAI D1 3B (Q8_0) on Ollama 0.40.4 (NVIDIA GTX 1050 4 GB VRAM). Full details and raw JSON outputs are in benchmarks/REPORT.md.
Benchmark Step | Baseline (Unoptimized Vision) | Optimized Vision ( | Hybrid Mode ( |
Readiness Check ( |
|
|
|
Search Fill + Verify + Submit ( |
|
|
|
Total End-to-End Tool Execution |
|
|
|
VLM Inference Calls | 2 | 2 | 0 |
Exact Input Value & Submit Verified | No ( | Yes ( | Yes ( |
Why It Is So Fast
Deterministic DOM & Native Accessibility First (
hybrid): Unique accessible labels and roles bypass VLM calls entirely (2–7 ms).Candidate Region Cropping & Downscaling (
vision): When D1 vision fallback is triggered, images are proportionally downscaled (D1_IMAGE_MAX_SIDE=768) and input candidates are tightly cropped (646×115), cutting GPU latency by 10× (26.8 s → 2.55 s) and increasing model confidence from0.40to0.91.Zero-Lag OS Pointer: Removes PyAutoGUI's default
100 msper-step sleep, executing smooth minimum-jerk human curves in ~40 ms.
Reproduce the benchmarks locally:
# Hybrid mode benchmark (3 runs)
D1_BENCH_RUNS=3 .venv/bin/python benchmarks/browser_speed.py benchmarks/after.json
# Forced D1 Vision fallback benchmark
D1_BROWSER_STRATEGY=vision D1_BENCH_RUNS=1 .venv/bin/python benchmarks/browser_speed.py benchmarks/after-vision.json
# Desktop hierarchical grid precision benchmark
.venv/bin/python benchmarks/desktop_precision.py2. System Requirements
Python:
>= 3.11Package Manager:
uv(recommended) orpipDecision Engine Provider (choose one):
Ollama (recommended, local): version supporting
/v1/systemone(e.g.>= 0.40) withd1:3bLocal Transformers: CUDA / Apple MPS / CPU with
LiquidAI/d1-3BCloud API: any endpoint implementing
/v1/systemone
OS Desktop Prerequisites:
Linux: active X11 session (
DISPLAY) andxcliporxselfor fast Unicode clipboard pasting.Windows: interactive desktop session (Per-Monitor DPI Awareness is enabled automatically).
macOS: grant Accessibility and Screen Recording permissions to your terminal / MCP client.
3. Quick Start & Installation
Option A: Zero-Clone Install via npx (Recommended)
You can run or register Flash computer use directly from GitHub using npx—it automatically bootstraps an isolated Python virtual environment (~/.cache/flash-computer-use/venv or %LOCALAPPDATA%\flash-computer-use\venv) and installs Playwright Chromium on first launch:
# Run environment diagnostics via npx
npx -y github:shortsspectrumai-del/flash-computer-use doctor
# Generate portable MCP JSON config via npx
npx -y github:shortsspectrumai-del/flash-computer-use config --npx
# Start the stdio MCP server directly via npx
npx -y github:shortsspectrumai-del/flash-computer-useOption B: Manual Clone & Local Virtual Environment
Linux / macOS
git clone https://github.com/shortsspectrumai-del/flash-computer-use.git
cd flash-computer-use
# 1. Create virtual environment and install dependencies
uv venv
uv pip install -e '.[dev]'
# 2. Install Playwright Chromium
PLAYWRIGHT_BROWSERS_PATH=.runtime/playwright .venv/bin/python -m playwright install chromiumWindows (PowerShell)
git clone https://github.com/shortsspectrumai-del/flash-computer-use.git
cd flash-computer-use
uv venv
uv pip install -e ".[dev,accessibility]"
$env:PLAYWRIGHT_BROWSERS_PATH=".runtime\playwright"
.\.venv\Scripts\python.exe -m playwright install chromium4. Ollama & D1 Model Setup
Pull the d1:3b decision model and verify your environment:
# Pull LiquidAI D1 3B model
ollama pull d1:3b
# Check OS desktop capabilities, accessibility backend, and Python dependencies
npx -y github:shortsspectrumai-del/flash-computer-use doctor
# Verify D1 decision inference (binary noul, choice, score) on a synthetic image
D1_PROVIDER=ollama D1_MODEL_NAME=d1:3b npx -y github:shortsspectrumai-del/flash-computer-use check --inference5. MCP Client Configuration (Cursor, Claude, Codex, Antigravity, Pi)
A. Cursor / Claude Desktop / Google Antigravity (mcp.json / claude_desktop_config.json)
Using npx (Works on Linux, macOS, and Windows without manual cloning)
Add the following block to your client's MCP configuration file (see examples/mcp.ollama.json):
{
"mcpServers": {
"Flash computer use": {
"command": "npx",
"args": [
"-y",
"github:shortsspectrumai-del/flash-computer-use"
],
"env": {
"D1_PROVIDER": "ollama",
"D1_MODEL_NAME": "d1:3b",
"D1_OLLAMA_BASE_URL": "http://localhost:11434",
"D1_TIMEOUT_SECONDS": "120",
"D1_BROWSER_STRATEGY": "hybrid",
"D1_DESKTOP_STRATEGY": "hybrid",
"D1_IMAGE_MAX_SIDE": "768",
"D1_REAL_MOUSE": "true",
"D1_MOUSE_DURATION": "0.04"
}
}
}
}(Or if using a local clone, set "command": "/absolute/path/to/flash-computer-use/run-mcp.sh" on Linux/macOS or "C:\\absolute\\path\\to\\flash-computer-use\\run-mcp.cmd" on Windows).
B. OpenAI Codex CLI (~/.codex/config.toml)
Register via npx with a single command:
codex mcp add "Flash computer use" \
--env D1_PROVIDER=ollama \
--env D1_MODEL_NAME=d1:3b \
--env D1_OLLAMA_BASE_URL=http://localhost:11434 \
--env D1_TIMEOUT_SECONDS=120 \
--env D1_BROWSER_STRATEGY=hybrid \
--env D1_DESKTOP_STRATEGY=hybrid \
-- npx -y github:shortsspectrumai-del/flash-computer-useOr copy examples/codex.ollama.toml into ~/.codex/config.toml:
[mcp_servers."Flash computer use"]
command = "npx"
args = ["-y", "github:shortsspectrumai-del/flash-computer-use"]
startup_timeout_sec = 60
tool_timeout_sec = 120
[mcp_servers."Flash computer use".env]
D1_PROVIDER = "ollama"
D1_MODEL_NAME = "d1:3b"
D1_OLLAMA_BASE_URL = "http://localhost:11434"
D1_TIMEOUT_SECONDS = "120"
D1_BROWSER_STRATEGY = "hybrid"
D1_DESKTOP_STRATEGY = "hybrid"
D1_IMAGE_MAX_SIDE = "768"
D1_REAL_MOUSE = "true"
D1_MOUSE_DURATION = "0.04"C. Claude Code CLI
claude mcp add --transport stdio \
--env D1_PROVIDER=ollama \
--env D1_MODEL_NAME=d1:3b \
--env D1_OLLAMA_BASE_URL=http://localhost:11434 \
"Flash computer use" -- npx -y github:shortsspectrumai-del/flash-computer-useD. Pi Coding Agent (~/.pi/agent/mcp.json)
pi mcp add flash-computer-use \
--exposure direct \
--env D1_PROVIDER=ollama \
--env D1_MODEL_NAME=d1:3b \
--env D1_OLLAMA_BASE_URL=http://localhost:11434 \
--env D1_TIMEOUT_SECONDS=120 \
--env D1_BROWSER_STRATEGY=hybrid \
--env D1_DESKTOP_STRATEGY=hybrid \
-- npx -y github:shortsspectrumai-del/flash-computer-use6. Environment Variables Reference
See .env.example for a complete template.
Variable | Default | Description |
|
| Decision provider: |
|
| Model identifier for Ollama ( |
|
| Ollama server base URL |
|
| Keeps the model warm in memory between tool calls |
| — | Base URL for |
| — | Bearer API key when |
|
| Provider HTTP timeout in seconds |
|
|
|
|
|
|
|
| Max image dimension sent to D1 ( |
|
| Minimum confidence required to authorize a click |
|
|
|
| — | Optional CDP endpoint (e.g. |
| — | Exact tab URL to select when CDP exposes multiple tabs |
|
| MSS monitor index for desktop screen capture |
|
| Always move the real physical OS mouse cursor during visible browser actions ( |
|
| Default duration (in seconds) of the human-like minimum-jerk pointer trajectory |
7. Complete Reference of All 15 MCP Tools
Every tool call is serialized via an async lock and returns compact structured JSON including execution time (elapsed_ms).
Browser & Popup Navigation
browser_open(url): Opens a URL and returns page title,readystatus, accessible input field labels, short text preview, and any detected popup/cookie banner details.handle_popup(action="inspect" | "reject" | "accept" | "dismiss", max_scrolls=8): Inspects or resolves cookie banners, modal dialogs, and Google/YouTube consent pages (automatically scrolling terms if the action button is disabled until the bottom).browser_scroll(direction="down" | "up", pixels=600, container="auto" | "popup" | "page"): Scrolls the active popup container or the main page.
Smart Hybrid Actions (mode="browser" or mode="desktop")
smart_click(target_description, mode="browser", double_click=False): Locates the target via DOM/accessibility or Set-of-Mark / hierarchical D1 grid, moves the real physical pointer along a human curve, and clicks an unoccluded point.smart_move(target_description, mode="desktop"): Locates the target and moves the mouse pointer onto it without clicking (hover).smart_type(target_description, text_to_type, press_enter=True, mode="browser"): Filters editable fields, replaces existing text, verifies the exact typed value (typed_verified=true), and optionally presses Enter.scroll_until_visible(target_description, direction="down", max_scrolls=8, mode="browser"): Scrolls step-by-step until $P(\text{visible}) \ge 0.80$.visual_assert(questions, mode="browser"): Evaluates 1–64 binary visual questions in a single D1 call. Probabilities between0.20and0.80returnanswer=null, certain=false.wait_until_ready(timeout_seconds=10, mode="browser"): Fast DOM readiness check inhybridmode or visual polling $P(\text{ready}) \ge 0.80$ invision/desktopmode.desktop_inspect(): Returns OS portability status, visible native accessibility elements, and auto-detected drawing sheet bounds (canvas_bounds).
Direct Mouse Control & Paint / Canvas Drawing
mouse_move(x, y, duration=0.04, mode="desktop"): Moves the pointer to(x, y)along a minimum-jerk human curve without clicking.mouse_click(x=None, y=None, button="left", double_click=False, mode="desktop"): Clicks (left,right,middle) at the current cursor position or after moving to(x, y).mouse_drag(start_x, start_y, end_x, end_y, button="left", duration=0.12, mode="desktop"): Moves to(start_x, start_y), presses the mouse button, drags smoothly along an interpolated path to(end_x, end_y), and safely releases.draw_path(points, canvas_bounds=None, duration=0.4, mode="desktop"): Draws by dragging the mouse across the canvas sheet. Supports both a single polyline[[x, y], ...]and multi-stroke drawings[[[x, y], ...], ...](lifting the mouse button between strokes). Whencanvas_boundsis omitted, automatically detects the active Paint sheet or<canvas>.draw_shape(shape, x=None, y=None, width=None, height=None, canvas_bounds=None, duration=0.4, mode="desktop"): Draws a geometric shape (line,rectangle,ellipse,circle,triangle,diamond,star,arrow,heart,house,spiral,wave). Automatically detects the canvas and centers the shape when bounds or coordinates are omitted.
8. Drawing in Paint, KolourPaint & Web Canvas
Flash computer use can control raster and vector drawing applications just like a human user:
Automatic Drawing Sheet Detection (
canvas_bounds): You do not need to manually measure the canvas coordinates. The server inspects accessibility roles (canvas,drawing area) and falls back to a fast largest-rectangle histogram detector (detect_canvas_from_image) that locates the white/light drawing sheet inside Paint, KolourPaint, Pinta, or browser<canvas>apps.Anti-Gap Stroke Interpolation: Fast mouse drags in Paint often leave dotted gaps if points are far apart.
interpolate_strokesubdivides long segments into dense ~6–8 pxsteps while preserving exact sharp corners.12 Built-In Shapes (
draw_shape):line,rectangle,ellipse,circle,triangle,diamond,star,arrow,heart,house,spiral,wave.Guaranteed
mouseUpSafety: Every drag and drawing operation wraps pointer state in atry ... finallyblock so the mouse button is never left held down on error.
9. Cross-Platform Support (Linux, Windows, macOS)
Operating System | Native Accessibility Backend | Coordinate & DPI Scaling | Unicode Text Input |
Linux (X11) | AT-SPI ( | Direct X11 screen coordinates |
|
Windows | UI Automation ( | Automatic Per-Monitor DPI Awareness ( |
|
macOS | Accessibility API ( | Automatic Retina physical-to-logical scaling ( |
|
🧪 Running the Test Suite
Run all 68 automated unit and integration tests (covering MCP stdio protocol, D1 HTTP contract, DOM & accessibility targeting, popup handling, human mouse trajectories, and real HTML5 <canvas> drawing):
.venv/bin/python -m pytest -q📄 License
Released under the MIT License.
Available Tools
15 toolsbrowser_openA
Open a URL; returns title, readiness, input labels and a short page preview. Returns popup details when one is present: inspect/resolve it with handle_popup using the user's requested choice. If ready is true, skip wait_until_ready. Use the returned field label in smart_type; a preview may reveal an interstitial instead of the requested page.
Inputs: url (required). Returns: object
browser_scrollB
Scroll without visual inference. auto scrolls an active popup or its terms panel; otherwise the page. Returns moved and at_end. Use container=popup to prevent scrolling the underlying page.
Inputs: pixels, container, direction. Returns: object
desktop_inspectA
Read-only platform requirements, accessible controls, and detected drawing canvas of the foreground app. Use exact labels in smart_click/type for the fast path; unavailable accessibility falls back to D1 vision.
Inputs: no named parameters. Returns: object
draw_pathA
Draw on a canvas by dragging the left mouse button. Accepts a single polyline [[x,y],...] or multiple strokes [[[x,y],...],...] (lifts the brush between strokes). Auto-detects the Paint/browser canvas sheet if canvas_bounds is omitted.
Inputs: points (required), mode, duration, canvas_bounds. Returns: object
draw_shapeB
Draw a shape (line, rectangle, ellipse, circle, triangle, diamond, star, arrow, heart, house, spiral, wave) by dragging the mouse on the sheet. Auto-detects canvas_bounds and centers the shape on the canvas if coordinates are omitted.
Inputs: shape (required), x, y, mode, +4 more. Returns: object
handle_popupA
Inspect a popup or explicitly accept/reject/dismiss it. Never assumes consent. Handles consent iframes and scrolls terms to unlock disabled buttons. Use the user's requested choice; reject never falls back to accept. popup_closed confirms closure; action_sent means do not repeat blindly.
Inputs: action, max_scrolls. Returns: object
mouse_clickA
Click the real desktop pointer, optionally moving to global screen coordinates first. Browser mode requires x/y in the controlled tab viewport and moves the real OS pointer first. Use smart_click for semantic targets and handle_popup for an explicit consent choice.
Inputs: x, y, mode, button, +1 more. Returns: object
mouse_dragB
Move the pointer to (start_x, start_y), hold the mouse button, drag smoothly to (end_x, end_y), and release. Ideal for Paint tools, sliders, selections, and drag-and-drop.
Inputs: end_x (required), end_y (required), start_x (required), start_y (required), +3 more. Returns: object
mouse_moveA
Move without clicking. desktop moves the real OS pointer using global screen pixels; browser moves the tab's mouse using viewport pixels and syncs the real OS pointer on visible browsers. Prefer smart_move when only a target description is known.
Inputs: x (required), y (required), mode, duration. Returns: object
scroll_until_visibleA
Scroll in steps until visual P(visible) reaches 0.80. Browser scroll is scoped to an active popup if present; prefer browser_scroll for deterministic scrolling without inference.
Inputs: target_description (required), mode, direction, max_scrolls. Returns: object
smart_clickB
Click a uniquely named visible DOM target immediately; otherwise use D1 vision. Duplicate names are ambiguous. Reports method and UI change.
Inputs: target_description (required), mode, double_click. Returns: object
smart_moveA
Locate a described target and move/hover without clicking. Desktop mode uses a unique accessible control or D1 vision and the real OS pointer; browser mode uses DOM or D1 and moves both the tab mouse and the real OS pointer. Low confidence or a stale target prevents movement.
Inputs: target_description (required), mode. Returns: object
smart_typeA
Fill a visible editable input, replacing old text; verify its exact value before optional Enter. Quote its accessible label from browser_open for a fast precise match. Check status and typed_verified before claiming success.
Inputs: text_to_type (required), target_description (required), mode, press_enter. Returns: object
visual_assertB
Evaluate up to 64 visual questions in one model call. answer=null means uncertain, not confirmation. Prefer DOM field labels and typed_verified for typing; avoid repeated visual assertions for an already verified action.
Inputs: questions (required), mode. Returns: object
wait_until_readyA
Wait for DOM readiness in hybrid mode, or visually in vision mode. Skip this call when browser_open returned ready=true. Readiness does not confirm task success or rule out a captcha.
Inputs: mode, timeout_seconds. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Several tool families intentionally overlap: smart_click vs mouse_click, smart_move vs mouse_move, browser_scroll vs scroll_until_visible, and mouse_drag vs draw_path vs draw_shape. The descriptions do provide explicit tie-breakers (semantic target vs raw coordinates, deterministic vs visual inference), but the agent must reason about more than one or two confusable pairs before choosing.
All names are snake_case and mostly verb_noun or prefix_noun (browser_open, mouse_drag, handle_popup, draw_shape). Minor deviation is the 'smart_' adjective prefix family (smart_click/smart_type/smart_move) and the outlier scroll_until_visible, but the pattern remains readable and predictable.
15 tools is within a healthy range for a browser+desktop automation agent, and each tool maps to a real primitive (open, click, type, scroll, wait, popup, draw). A few could be consolidated (dual smart_/mouse_ pointer pairs, three drag/draw tools), making it slightly heavy but not bloated.
Core browse-and-manipulate loop is covered, but notable gaps exist: no general key-press/shortcut tool, no back/forward/tab navigation, no page text/content extraction beyond a short preview, and no desktop-app typing (smart_type is scoped to visible editable browser inputs). These omissions will force agents into workarounds on non-trivial tasks.
Maintenance
Related MCP Connectors
Remote desktop MCP: let AI see, click, type and run terminal commands on your own Windows or Mac.
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
Let AI see and use your own Windows PC with your permission: screen, apps, mouse and keyboard.
1Stealth web browser for agents: search, fetch, click, download and type in persistent MCP sessions.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to capture multi-monitor screenshots with coordinate grids and perform mouse, keyboard, scrolling, dragging, and window-management actions on Windows via MCP tools or CLI. It provides pixel-accurate desktop automation for computer-use agents.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to access and act on web, desktop, and mobile interfaces via semantic accessibility trees, using MCP tools for querying, navigating, and executing deterministic UI actions without relying on screenshots or pixel coordinates.Apache 2.0
- AlicenseAqualityCmaintenanceEnables MCP-speaking AI agents to operate a desktop and browser through structured UI inspection, mouse/keyboard gestures, tab-scoped browsing, and approved local screen recording with editing.31MIT

Auten MCP serverofficial
AlicenseAqualityBmaintenanceEnables MCP clients such as Claude Code, Codex, Cursor and Gemini CLI to control a Mac, Windows or Linux desktop by clicking, typing and reading real applications that have no API, using the accessibility tree rather than pixel guessing. It also lets agents replay saved tasks as skills without spending tokens and can type stored passwords into fields without exposing their values.1166 npmMIT