fast-gui
Provides an optional OpenAI-compatible external model planner that returns a single schema-validated browser action proposal; it is disabled by default and cannot execute proposals or bypass browser policy.
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., "@fast-gui Open https://example.com, wait, and extract any tables on the page."
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.
Fast GUI
Fast GUI is a local STDIO MCP server and Codex plugin for low-latency, structured browser control. It uses Playwright against a dedicated Microsoft Edge profile by default and intentionally exposes no arbitrary JavaScript, shell, cookie, tunneling, or remote browser-control tools.
Current MVP
capabilities,list_targets,close_target,price_radar,external_model_plan,open_url,open_click_verify,extract_tables,observe,act,batch,wait_for,verify, andcapture.Official PriceAI public snapshot lookup with a validated persistent cache; no PriceAI HTML crawl or internal API dependency.
One-round-trip allowlisted GET navigation, local wait, optional compact table extraction, and optional structured observation.
Known-URL calls can auto-select a sole page or create an isolated
new_target, avoiding an initial target-list round trip while preserving existing pages.One-call exact interaction path that can select/create a target, navigate, wait, match one main-document button/link/tab uniquely, click, and prove a required postcondition without returning a full page observation.
DOM-backed element references bound to a target epoch and scope revision.
Local condition waits and short deterministic batches.
State caching and added/removed/updated diffs.
Domain allowlist, sensitive-field redaction, high-risk action blocking, serialized browser action dispatch, and in-memory screenshot handles with TTL.
Cache-preserving CDP document guards for owned pages; the broader Playwright route exists only during the exact-click safety window.
Fast reconciliation: a stable net page change with a wrong postcondition returns bounded, redacted evidence instead of waiting the full deadline. Possible writes stay locked until an explicit observation or fresh navigation.
Explicit owned-target cleanup through
close_target; unresolved targets require an intentional discard flag and CDP-attached user pages are never closed.Dedicated Edge profile or an explicitly configured CDP endpoint.
Lazy Playwright loading, single-flight browser initialization, fail-fast profile ownership, and STDIO EOF cleanup for lower cold-start and fewer stranded browser processes.
Capacity-resilient direct orchestration: the current task calls one fused local tool instead of creating a second model task for clicks.
Selective supporting delegation: larger requests may use Luna-style read-only evidence and Terra-style independent review agents while the current task remains the single default browser owner.
Optional request/dispatch timestamps on fused tools produce one
timelinefrom request start through MCP and browser completion.Cooperative profile handoff: a contender waits briefly, and the current task releases an empty dedicated browser after an idle grace period.
Adaptive routing keeps an already-bound signed-in session or one hot native click on the native Browser surface.
Optional OpenAI-compatible external model planner. It is disabled by default, returns one schema-validated proposal, and cannot execute the proposal or bypass browser policy.
Windows UIA, trusted approval UI, Lark API writes, OCR, and vision providers are deliberately not claimed by this browser MVP.
Related MCP server: agent-browser-mcp
Build and test
npm ci
npm test
npm run benchmark
npm run benchmark:e2eThe integration tests and benchmark use a local synthetic page and headless Edge. They do not reuse personal browser data or move the physical mouse.
See BENCHMARK.md for the measured local baseline and its limits.
Fast paths
Model lane: the visible task calls the known Fast GUI MCP method directly for one fused action. It does not create a Luna/Sol worker solely for a click, so a second model queue cannot add latency or return a capacity error.
Supporting agents: when a larger request has at least two independent bounded workstreams, Codex may proactively delegate read-only evidence or independent review. Supporting agents do not call Fast GUI; one selected agent owns the entire browser action sequence.
Browser fallback: if Fast GUI's dedicated browser definitely fails before any click dispatch, the current task may make one exact attempt through the available Browser skill.
PROFILE_IN_USE, unknown outcomes, or any possible dispatch never switch adapters.External planner:
external_model_planis an opt-in compatibility interface, not part of the normal direct path. It returns a proposal only; Codex must apply the same authorization and Fast GUI success gates before any separate browser call.Accuracy gate: a read needs
ok:truewith no material ambiguity/truncation/warning. An exact click needsverified:true,certainty:"definite_success", andmatched_count:1. Any anomaly leaves the fast lane for Sol analysis;OUTCOME_UNKNOWNpermits observation/reconciliation, never a repeated possible write.Handoff: include the goal, last structured result, target/revisions, reconciliation state, and whether dispatch occurred. Stop with that evidence instead of starting another model task merely to click.
PriceAI: call
price_radarwith an exact slug, thenopen_urldirectly to the chosen offer and verify the merchant page. The public snapshot is normally refreshed about every five minutes and must not be treated as final checkout truth.Known URL reads: call
open_urlwithwait,extract_tables, and/orobservein one request. Usenew_target: trueto preserve existing pages; otherwise omittingtarget_idis allowed only with one open Fast GUI page.Large comparison pages: use
open_url.extract_tablesorextract_tableswith a narrow query. This returns matching rows and links without serializing the full page.Known one-click tasks: use
open_click_verifyonly when the user has authorized the exact role/name and a postcondition that is initially false is known. It replaces the usuallist_targets+open_url+observe+act(wait)model round trips, scans the main document for duplicates, and sharestimeout_msacross queueing and browser phases. It also acceptsnew_target: true. Cold browser startup and blocked-navigation recovery can add wall time.Target cleanup: call
close_targetfor plugin-owned pages that are no longer needed. Observe anOUTCOME_UNKNOWNtarget first, or explicitly usediscard_reconciliationwhen closing is itself the intended reconciliation.Visual preview: leave the headed browser on the requested page. Call
captureonly for an explicit screenshot request, canvas content, ambiguous structure, or material visual verification.
Best-fit scenarios
PriceAI Top 5 lookup and final merchant-page verification.
Large comparison tables where only a few rows or links are relevant.
Repeated deterministic DOM work with exact accessible names.
A known one-click flow that must prove a newly satisfied URL or text condition.
Read/act/verify flows where one fused call removes at least two model/tool boundaries.
Prefer native Browser for an already-connected authenticated session or one exact action that fits one hot native call. Prefer native Lark skills for Feishu whiteboards. Fast GUI deliberately stops on vague/duplicate controls, forms and payments, visual-only canvas state, risky writes, popups, downloads, unsupported iframes, and unknown outcomes.
Configuration
All configuration is via environment variables. Important defaults:
Variable | Default | Meaning |
|
| Playwright browser channel. |
|
| Use a visible dedicated browser for normal plugin use. |
|
| Background-load Playwright to reduce the first browser action; disabling it saves idle memory. |
|
| Briefly wait for another task to release the dedicated profile before returning |
|
| Release an empty owned browser/profile after this grace period; |
| Local app-data Fast GUI profile | Dedicated persistent browser profile. |
| empty | Connect to an explicitly enabled CDP endpoint instead of launching a profile. |
|
| Exact hosts or suffixes allowed for browser observation and action. |
|
| Maximum interactive nodes returned by one observation. |
|
| In-memory screenshot lifetime. |
| Local app-data Fast GUI cache | Validated cache of the public PriceAI snapshot. |
|
| Set to |
| empty | API base ending before |
| empty | Provider model identifier. |
| empty | Bearer key; required for non-loopback endpoints and never returned by tools. |
|
| External planning timeout, clamped to 1–60 seconds. |
|
| Explicit opt-in before a caller may send a bounded page summary. |
price_radar, open_url, and open_click_verify accept an optional trace object for explicit latency tests. Supply a trace_id plus any known request, parent-dispatch, and worker-receipt Unix epoch milliseconds. The structured result returns a timeline; ordinary calls should omit it.
Domain suffix matching is boundary-aware: allowing feishu.cn permits www.feishu.cn, not evilfeishu.cn.
Safety boundary
High-risk actions are returned as
CONFIRMATION_REQUIREDand are not executed because the MVP has no trusted human approval channel yet.Recognizable form submitters, activation keys on risky controls, Enter-key submission, downloads, declared non-self window targets, unsafe navigation, and sensitive controls are blocked pending trusted confirmation. In the dedicated profile, Service Workers are disabled and
open_click_verifyaborts non-GET/HEAD HTTP requests during preflight and the immediate click-verification window. It is disabled for CDP attach. The tool is intentionally non-read-only and non-idempotent because WebSocket traffic, delayed scripts, local state, and GET endpoints cannot be proven side-effect-free from DOM labels alone.Compact error samples are deduplicated and capped at eight entries with total/truncation metadata; popup counts remain explicit.
If a dispatched action cannot be proved, the result is
OUTCOME_UNKNOWNwith bounded redacted evidence; the original page and any popup stay write-locked until reconciled. Never repeat the whole flow automatically.Dedicated pages continuously enforce the document allowlist through CDP Fetch without disabling HTTP cache. A short context route protects every non-navigation action window and a popup's initial request. Existing pages are isolated rather than closed; CDP-attached pages are never closed. Outside tool actions, a newly created popup's first request cannot be claimed protected until Playwright exposes that page.
One process owns the dedicated persistent profile at a time through an OS-backed local IPC lease. Competing tasks receive the short
PROFILE_IN_USEerror instead of repeated raw browser-launch logs; Windows releases the lease automatically when its owner exits.Host-level delegation never creates multiple profile owners. Supporting agents remain read-only, and ownership cannot switch after a possible dispatch,
OUTCOME_UNKNOWN, orPROFILE_IN_USE.A timeout after a possible write is reported as
OUTCOME_UNKNOWN; callers must observe and reconcile instead of retrying through another adapter.Screenshot bytes remain in memory and are not written to disk.
External model planning is disabled by default. When enabled, only the caller-supplied task and an explicitly opted-in bounded page summary leave the machine. The returned proposal is schema-validated and never executed by
external_model_plan.The one-attempt Browser fallback remains subject to the Browser skill's browser-selection and interaction rules. It is allowed only after Fast GUI proves that no click was dispatched.
Only PriceAI's public, non-authenticated snapshot data is persisted in the dedicated local cache; credentials, cookies, page HTML, and screenshots are not cached there.
The server writes protocol messages only to stdout; diagnostic logs go to stderr and never include action values or page content.
See SECURITY.md for the threat model and reporting guidance.
Available Tools
14 toolsactPerform one structured browser actionCDestructive
Perform one bounded compare-and-act browser action; risky or sensitive actions are blocked.
Inputs: spec (required), target_id (required), target_epoch (required), scope_revision (required), +1 more.
batchPerform a deterministic browser batchCDestructive
Execute 1-20 actions under one write lease; stop on failure and never retry a possible write.
Inputs: actions (required), target_id (required), target_epoch (required), scope_revision (required).
capabilitiesFast GUI capabilitiesCRead-onlyIdempotent
Return adapters, policy, limits, and browser mode.
Inputs: trace.
captureCapture an in-memory browser imageCRead-only
Capture the viewport or one element to a short-lived in-memory image handle.
Inputs: target_id (required), target_epoch (required), scope_revision (required), ref, +1 more.
close_targetClose an owned browser targetADestructive
Close an owned page. Unresolved targets require discard_reconciliation=true; CDP pages are preserved.
Inputs: target_id (required), timeout_ms, discard_reconciliation.
external_model_planRequest an external model proposalARead-only
Ask an explicitly configured OpenAI-compatible model for one schema-validated Fast GUI proposal. Never executes it.
Inputs: task (required), page_summary, allowed_tools.
extract_tablesExtract compact table rowsCRead-onlyIdempotent
Return bounded matching table rows and safe HTTP(S) links without a full snapshot.
Inputs: target_id (required), query, max_rows, max_tables, +1 more.
list_targetsList browser targetsBRead-onlyIdempotent
List controlled browser pages and reconciliation state.
Inputs: no named parameters.
observeObserve structured browser stateBRead-onlyIdempotent
Return visible DOM-backed controls with strict refs, or a compact revision diff.
Inputs: target_id (required), max_depth, max_nodes, since_revision.
open_click_verifyOpen, click, and verify an allowed pageADestructive
GET-open, exactly click one visible button/link/tab, and prove a new URL/text condition. Blocks risky, sensitive, form, popup, and immediate write-network actions; disabled for CDP.
Inputs: url (required), click (required), expect (required), ready, +4 more.
open_urlOpen and inspect an allowed URLBRead-onlyIdempotent
GET-open an allowlisted URL, wait locally, and optionally return tables and refs in one call.
Inputs: url (required), wait, trace, observe, +4 more.
price_radarQuery the PriceAI public snapshotARead-onlyIdempotent
Return cached Top 5 offers from PriceAI's read-only public snapshot feed.
Inputs: product (required), trace, preset, max_offers.
verifyVerify browser stateCRead-onlyIdempotent
Verify a URL, text, or element assertion.
Inputs: assertion (required), target_id (required).
wait_forWait locally for browser stateCRead-onlyIdempotent
Wait locally for a URL, text, or element condition.
Inputs: condition (required), target_id (required), timeout_ms, observe_after.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
The toolset mostly maps each tool to a distinct capability: navigation, observation, action, verification, capture, and page lifecycle are separated. However, `open_click_verify` and `act` can both be used for clicking, and `open_url`'s optional table/ref returns overlap with `extract_tables`, creating two possible mis-selection points despite helpful descriptions.
Most tools follow an imperative verb + object snake_case pattern (`list_targets`, `close_target`, `open_url`, `extract_tables`, `wait_for`, `verify`). The pattern is weakened by noun-style names (`capabilities`, `price_radar`, `external_model_plan`) and the compound multi-verb `open_click_verify`, so consistency is only moderate.
14 tools is a reasonable scope for a browser/GUI automation server and stays within the comfortable range. The count would be ideal if not for a couple of peripheral tools (`price_radar`, `external_model_plan`) that sit outside the core automation loop.
The core GUI automation lifecycle is well covered: open, observe, act (single and batch), wait/verify, capture, close, list targets, and safety introspection are all present. Minor gaps include the lack of a standalone input/typing tool and no explicit target reconciliation action, but agents can work around these.
Related MCP Connectors
Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceMCP server for local browser control via Chrome/Edge extension, enabling agents to open isolated tabs, observe pages, take screenshots, and interact with accessible controls using an existing browser profile. It is agent-agnostic, local-only, and supports safe session scoping with origin grants and sensitive-data blocking.MIT
- AlicenseAqualityAmaintenanceMCP server that drives your real Chrome/Edge/Opera browser through a Chrome extension and DevTools Protocol, preserving logins and session state, and can also perform OS-level mouse and keyboard input behind approval.5177 PyPI2MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for managing and controlling multiple isolated Chrome/Edge browser instances, exposing tools for navigation, screenshots, clicking, form filling, and JavaScript execution to AI clients.27 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to control local Chrome/Edge browser profiles through MCP, including tab groups, bounded DOM actions, observations, and optional encrypted credential use.MIT