Browser MCP and chrome-devtools-mcp work; until your agent clicks something with a randomized class name and the whole loop crashes. LumaBrowser is a desktop browser with an MCP server, self-healing selectors, and a local cache of resolved selectors. Connect it to Claude Code, Codex, OpenCode, Cline or JetBrains Air from Settings, or to any other MCP host with one config block.
Builder hub: Agent quickstart · MCP Connector · Docker · Code Mode · Sub-agents · n8n / Zapier / Make · vs Selenium · vs Puppeteer · vs Playwright · API reference · Every runtime knob
Install, one MCP block, one REST call. Everything else on this page is detail.
# 1. Install and launch (Node 18+), or use the native installer from /download
npx lumabrowser start
# 2. MCP: Settings > Editors & agents > Coding agents (Claude Code, Cline, Codex,
# OpenCode, JetBrains Air), or export the MCP config there for any other host (needs Node.js)
# 3. REST: open a page (replies are {success, data, ...}), then click with an LLM fallback
TAB=$(curl -s -X POST localhost:3000/api/browser/tabs -H 'Content-Type: application/json' -d '{"url":"https://news.ycombinator.com"}' | jq -r .data.id)
curl -X POST localhost:3000/api/browser/tabs/$TAB/click -H 'Content-Type: application/json' -d '{"selector":".titleline > a","llmFallback":"Click the first story link"}'
Ports: REST 3000, plus WebDriver 9515 and CDP 9222, which are off by default and turned on in Settings. Without an API key the REST API answers local programs only; a page on another origin, or anything coming through a proxy or tunnel, needs a key from Settings > API & MCP. Headless in Docker: clone the repo and run LUMA_VNC_PASSWORD=change-me docker compose up -d (see Docker). The step-by-step version with config file locations is the agent quickstart.
LumaBrowser ships an MCP server. Under Settings > Editors & agents > Coding agents, one click writes the entry into Claude Code, Cline, Codex, OpenCode or JetBrains Air, and puts their config back when you disconnect. For any other host (Claude Desktop, Cursor, OpenClaw), “Other MCP clients” on the same page exports the block below as luma-mcp-config.json. If you require an API key, the entry also carries "LUMA_API_KEY" in env.
{
"mcpServers": {
"luma-browser": {
"command": "node",
"args": ["<install dir>/resources/app.asar.unpacked/mcp-server.js"],
"env": { "LUMA_API_PORT": "3000" }
}
}
}
Install LumaBrowser. Download from the download page or run npx lumabrowser start.
Connect your host. Use Settings > Editors & agents > Coding agents, or paste the exported block into your host's MCP config. The server runs on Node.js, so Node must be installed, and it starts LumaBrowser if it is not already running. An entry written before you turned on a required API key has no LUMA_API_KEY: reconnect that agent, or add the line by hand.
Restart your MCP host. Your agent now has browser_navigate, browser_observe_page, browser_click, browser_fill_form, browser_get_source, browser_screenshot and the rest of the 28 browser tools, all backed by a real Chromium tab on your machine, plus LumaBrowser's desktop, terminal, Hub, agent and automation tools.
Modern frontends ship CSS-in-JS class names like css-8xk2m9 that change on every build. Most MCP browser tools delegate to Puppeteer or Playwright and crash with element not found. LumaBrowser's selector tools take an optional llmFallback; if the CSS misses, an LLM resolves the description against the live DOM and the call succeeds.
The frontend pushes a new build at 4pm. Class names change. Your agent loop crashes on the first click() and you find out from an alert at 8pm.
click({ selector: ".product-buy-btn" })
→ Error: element not found
Pass an llmFallback alongside your selector. When the CSS misses, an LLM looks at the live DOM, picks the right element by description, and the call returns.
click({
selector: ".product-buy-btn",
llmFallback: "the primary buy button
under the price"
}) → ok
If your agent is reading entire DOM trees to figure out where to click, you're burning tokens on every turn. LumaBrowser tries the cheap paths first: an accessibility match that costs no tokens, then a local cache of selectors the model already resolved. The model is only asked when both miss, and it sees a compact list of up to 80 interactable elements, not the raw HTML.
When the model resolves a description like “the Save button”, LumaBrowser stores the answer locally as a robust selector, keyed by page pattern, action and description. Next time it checks the element is still there (one visible match, same tag, similar text) and replays it with no model call, even if no model is configured. Anything doubtful is a miss and goes back to the model. Entries expire after 30 days.
The browser group alone is 28 browser_* tools. Desktop control (Windows), the terminal (when you switch on “Let AI use the terminal”), the Hub, timed tasks, page monitors, Site APIs, agents and Tool Forge add their own groups, more than a hundred tools in all. Every interaction tool that targets the DOM accepts an llmFallback description.
Open tabs, route them to URLs, wait on a selector or page state, close them when done. The agent gets a real tab list it can reason about, not a single sandboxed page.
See the page as a numbered list of elements, then click, type, pick options, set dates and sliders, scroll, answer dialogs, send keystrokes, or run JS in page context. Selector-based tools fall back to an LLM description if the CSS misses, so a frontend redesign doesn't end the run.
Grab page text or markdown, structured element properties, table rows, repeating items, lists of links, screenshots, console logs and network traffic. Several formats means the agent picks the cheapest one for the job.
There are a lot of ways to give an agent a browser right now. Here's how the local-desktop-app approach compares to the alternatives engineers usually try first.
| Browser MCP / Claude in Chrome | chrome-devtools-mcp | Browserbase | Browserless | LumaBrowser | |
|---|---|---|---|---|---|
| Where it runs | Chrome / Edge extension | Local Chrome via Puppeteer | Vendor cloud only | Vendor cloud or self-host | Local desktop app |
| MCP host support | Claude Desktop / Code only | Any MCP host | Custom SDK + MCP server | HTTP / WS API, MCP via wrappers | Any MCP host |
| Pricing model | Free, gated to Anthropic | Free, OSS | Free 1 hr, then $20+/mo | Free 1k units, then $25+/mo | Free, no caps |
| Self-healing selectors | No | No (raw Puppeteer) | Stagehand AI actions | No | LLM fallback per call |
| Cached selector resolutions | No | No | Stagehand action caching | No | Local resolution cache |
| Local model support | No (Anthropic only) | Bring your own host | Cloud-only | Cloud-only | Built-in local runtimes, LM Studio, OpenAI, Anthropic |
| Where the data lives | Anthropic + your Chrome | Your machine | Their cloud | Their cloud or yours | Your machine |
Pricing as listed by each vendor at time of publication. Cloud headless-browser pricing is metered, Browserbase by browser-hours, Browserless by 30-second “Units”, so cost scales with how often your agent loops. Higher tiers (Browserbase Startup at $99/mo, Browserless Starter at $140/mo annually) raise the included quota and concurrency.
This comparison reflects publicly available pricing and feature information gathered to the best of our knowledge from each vendor's public materials. Vendors update plans frequently and we're a small team; if anything here looks wrong, please email [email protected] with the correction and a source, and we'll update the page.
Bring your own MCP host. Bring your own model.
luma acp (Agent Client Protocol)~/.cursor/mcp.jsonconnectOverCDP. On 127.0.0.1 they need no key; bound to any other address they won't start until you create an API key, and clients then send it (http://luma:<key>@host:9515 for Selenium, a Bearer header or ?token= for CDP)http://localhost:1234/v1; fully local inferenceLumaBrowser is the local desktop browser your agent already wishes you had wired up. Free to download, plugs into your existing MCP host, runs with the model you're already paying for; or no model at all if you want to drive it from a script.