Optima AI Browser
You can use Optima as an MCP-controlled browser for AI assistants to browse and interact with web pages, with human hand-off and safety controls.
Open URLs and get clean text with numbered interactive elements.
Re-read pages, scroll, navigate back/forward/reload, and take screenshots.
Click elements and type/select into fields by element ID.
Submit forms, with confirmation required for purchases, sending/posting, and deletions.
Automatically decline cookie banners and detect human checks.
Hand control to the user for logins, passwords, payments, CAPTCHAs, or other human-only actions, then resume after Done.
Wait for slow pages and review today's local audit log.
Refuse password/payment fields and keep sensitive actions user-controlled.
Optional phone push notifications via an ntfy topic, used to alert the user on their phone when a page needs a human (CAPTCHA, login, confirmation) so they can take over and let the agent continue.
Why Optima?
Ordinary browsers are made for human eyes. When an AI assistant drives one, it wastes time and tokens on ads, pop-ups and cookie walls, loses its logins, and stalls without saying anything the moment a site asks for a human.
Optima fixes the agent side of browsing, and keeps a person in the loop for the parts that need one:
Ordinary browser + AI | Optima | |
What the agent sees | Raw HTML or screenshots | Clean text with numbered elements: |
Cookie banners | The agent clicks around them | Declined automatically ("reject" / "only necessary") |
Logins | Lost between sessions | Persistent profile: log in once |
CAPTCHA / "checking your browser" | Agent gets stuck | Detected → you get a notification → you solve it → the agent continues |
Passwords & cards | Risky | Always typed by you; the agent is refused these fields |
Buying, posting, deleting | Happens silently | Agent must ask you in chat first |
What happened? | Unknown | Daily audit log |
Optima does not solve or bypass CAPTCHAs or bot protection, by design. Those checks are how sites decide who gets in. Optima makes the hand-off to you take seconds instead.
Related MCP server: Navigator MCP
How it works
AI assistant ──MCP──▶ Optima server (Python) ──▶ engine ──▶ the web
(Claude…) reading, rules, macOS: native app on system WebKit
hand-off, log Windows/Linux: Edge/Chrome via Playwright
│
└──▶ you: notification + "Your turn" banner + Done buttonmacOS: a tiny native app (Swift + the WebKit that ships with macOS) that you compile on your own Mac during install. Nothing is downloaded, which helps on managed Macs where installing third-party apps is restricted.
Windows: uses Microsoft Edge (already on every Windows PC) or Chrome through Playwright.
Linux: uses Google Chrome if installed, otherwise downloads Playwright's Chromium once.
Install
You need Python 3.9+. On macOS you also need the Swift compiler (Xcode or the Command Line
Tools: xcode-select --install).
With pip (all systems)
Optima is on PyPI and in the official MCP registry as io.github.ascaniolocorotondo/optima-ai-browser.
pip install optima-ai-browser
optima setupoptima setup opens the first-run window (on macOS it compiles the native engine the first time).
On Windows and Linux, if Playwright has no browser yet: python -m playwright install chromium.
Or run the MCP server without installing anything permanently: uvx optima-ai-browser mcp.
From source: macOS
git clone https://github.com/ascaniolocorotondo/optima-ai-browser.git
cd optima-ai-browser
sh install.shOn macOS the installer also adds Optima AI Browser to ~/Applications. Double-click it to
browse yourself, for example to log in to your sites: your assistant shares the same logins.
From source: Linux
git clone https://github.com/ascaniolocorotondo/optima-ai-browser.git
cd optima-ai-browser
sh install.shIf Chromium complains about missing libraries: sudo ~/.optima/venv/bin/python -m playwright install-deps chromium.
From source: Windows (PowerShell)
git clone https://github.com/ascaniolocorotondo/optima-ai-browser.git
cd optima-ai-browser
powershell -ExecutionPolicy Bypass -File install.ps1The installer copies Optima into
~/.optima, so you can move or delete the cloned folder. To update,git pulland run the installer again.
First run
The installer opens the Optima window:
Choose your language. English, Italiano, Español, Français, Deutsch or Português. Banners and notifications use it; the agent always gets English.
Connect your assistants. Optima detects Claude Code, the Claude Desktop app and Google Antigravity, installs its skill and registers its MCP server in each one you pick.
Log in to your favourite sites in that same window, so your assistant finds you signed in.
Prefer the terminal? sh install.sh --cli (or install.ps1 --cli).
Then restart your assistant and try: "Use Optima to find the opening hours of the nearest library."
Where Optima connects
Assistant | Skill | MCP server |
Claude Code |
| user scope ( |
Claude Desktop | upload |
|
Google Antigravity |
|
|
Connecting other MCP clients
Any MCP client can use Optima. If you installed it with pip:
{ "command": "optima", "args": ["mcp"] }From source, use the launcher (no environment variables needed):
{
"command": "/path/to/python",
"args": ["~/.optima/app/src/optima_launcher.py", "mcp"]
}On macOS /path/to/python is your python3; on Windows and Linux it is the one in
~/.optima/venv. Copy src/optima/skill/ into your assistant's skills folder if it supports
Agent Skills.
Tools for the agent
Tool | What it does |
| Open a page, return it as clean text |
| Read the current page again |
| Click an element by its number |
| Type into a field (never passwords or cards) |
| Pick an option in a drop-down |
|
|
|
|
| PNG of the page, when visuals matter |
| Hand control to you and wait for Done |
| Wait for slow pages |
| Today's audit log |
The bundled skill (src/optima/skill/SKILL.md) only applies where Optima is turned on: if the
browser_* tools are not available in a chat (for example you disabled the optima MCP server
there), the assistant ignores the skill and uses its usual browser without mentioning Optima.
Where Optima is on, it teaches the assistant when to use Optima (APIs and
connectors first), how to act by element id, when to call you, and to always confirm purchases,
messages and deletions with you.
Configuration
~/.optima/config.json (created on first run):
Key | Default | Meaning |
| chosen on first run |
|
|
|
|
|
|
|
|
| Hide the window (Playwright only; hand-offs need a window) |
|
| Adds |
|
| Always the privacy-preserving choice |
|
| Call you automatically when a human check appears |
|
| How long to wait for you |
|
| Gentle pace between actions |
|
| System notification on hand-off |
|
| Optional phone push via ntfy: set a private topic name and subscribe to it in the ntfy app |
|
| Actions the agent must confirm with you |
|
| Actions never allowed (same categories, plus |
|
| Password and payment fields are yours only |
Data lives in ~/.optima/: config.json, logs/ (one JSON-lines file per day) and, for
Playwright, profile/. The macOS engine keeps cookies in the system WebKit store for the app.
Commands
python3 -m optima setup # first-run window again (add --cli for terminal)
python3 -m optima open example.com # open Optima yourself, e.g. to log in
python3 -m optima doctor # check the installation
python3 -m optima mcp # the MCP server (started by assistants)Run them with PYTHONPATH=~/.optima/app/src (or from the repo's src folder).
Principles
Humans decide. CAPTCHAs, logins, passwords, payments and one-time codes are always done by you.
Honest. Optima identifies itself as an AI agent and paces its requests.
Private. No telemetry. Cookie banners get "reject". Nothing leaves your machine except the pages you visit and, if you set one, your ntfy notification.
Accountable. Every action is logged locally.
Roadmap
Web Bot Auth signed requests, so sites that welcome verified agents can let Optima in without a check
Multiple tabs and downloads
Per-site rules (e.g. read-only on banking sites)
Packaged releases
Contributing
Issues and pull requests are welcome. Keep the principles above: features that help an agent evade CAPTCHAs, fingerprinting or bot detection won't be merged.
How it was made
Optima is made by Ascanio (@ascaniolocorotondo) with the help of Claude, Anthropic's AI assistant. It is tested on macOS, Windows and Linux in CI.
License
Available Tools
11 toolsbrowser_ask_humanA
Hand control to the user: brings the window forward, shows a banner with your reason and sends a notification, then waits until they press Done. Use it for logins, passwords, payments, CAPTCHAs, or anything only a person should do. Never try to solve a CAPTCHA yourself.
Inputs: reason (required).
browser_clickA
Click an element by id and return the updated page. Purchases, sending/posting and deleting are refused until the user confirms in chat; then retry with confirmed=true.
Inputs: id (required), confirmed.
browser_openA
Open a URL in Optima and return the page as clean text. Interactive elements appear as [id kind] label, e.g. [12 button] Sign in. Cookie banners are declined automatically and, if a human check appears, the user is asked to complete it before this returns.
Inputs: url (required).
browser_readA
Read the current page again (after scrolling, or to get fresh element ids).
Inputs: max_chars.
browser_recent_actionsB
List the browser actions taken today (the audit log), newest last.
Inputs: limit.
browser_screenshotA
Take a screenshot of the page. Use only when layout or images matter; browser_read is cheaper.
Inputs: no named parameters.
browser_scrollC
Scroll the page and return what is now visible.
Inputs: direction.
browser_selectB
Choose an option in a by its visible text or value.
Inputs: id (required), value (required).
browser_typeA
Type text into a field by id. submit=true presses Enter / submits the form. Password and payment fields are refused: use browser_ask_human for those.
Inputs: id (required), text (required), submit, confirmed.
browser_waitB
Wait up to 30 seconds (for slow pages), then return the page.
Inputs: seconds (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool maps to a clearly distinct browser action: open, read, click, type, select, scroll, navigate, screenshot, handoff, wait, and audit log. The only mild adjacency is browser_open vs browser_navigate, but their descriptions make the boundary clear (new URL vs back/forward/reload).
All tools use a consistent browser_ prefix with snake_case verb/noun form. The pattern is predictable throughout, including the slightly longer browser_recent_actions.
Eleven tools is a well-scoped set for browser automation, covering page interaction, navigation, human handoff, and auditing without obvious filler. Each tool has a clear operational role.
The surface covers the core browser lifecycle: open/read/navigate, interact via click/type/select/scroll, screenshot, wait, human handoff, and audit history. Minor gaps remain around hover, tab/window management, and explicit close/quit operations, but agents can often work around these.
Maintenance
Related MCP Connectors
Cloud browsers for AI agents: saved logins, residential IPs, live human takeover, 57 browser tools.
Cloud browsers for AI agents: get past bot detection, sign in with MFA, run web tasks at scale.
Cloud browser, web extraction, screenshots, and remote CDP tools for AI agents.
Browser agents and stealth cloud browsers for AI: run web tasks, fill forms, extract data.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceA semantic browser runtime for AI agents that replaces raw HTML with structured data and dynamic, page-specific tools. It features built-in site memory and automated bot detection bypass to enable efficient, self-healing web automation.1-
- AlicenseBqualityCmaintenanceEnables LLM agents to automate web browsers with token-efficient perception, stealth anti-detection, captcha solving, network interception, and isolated persistent sessions.51MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to control a real, authenticated Chrome browser through native tools for navigation, DOM interaction, form filling, scraping, screenshots, and human-in-the-loop checkpoints while minimizing tokens and latency.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to browse and interact with web pages through structured, token-efficient representations instead of full accessibility-tree dumps, returning compact page orientations, targeted element queries, and detail on demand. Agents can navigate, click, type, fill forms, manage tabs and sessions, and inspect console or network activity at a fraction of the usual context cost.4 npmMIT