Home / Getting started / Agents
Agent quickstart: MCP, REST, Docker
Three doors into the same browser, plus luma acp for editors that host agents. Pick the one that matches what you are building; each is a copy-paste block and a restart. Ports: REST on 3000, WebDriver on 9515, CDP on 9222, all configurable in Settings. WebDriver and CDP are off until you turn them on there.
0. Install (one minute)
npx lumabrowser startNeeds Node 18+. Downloads the portable build for your OS on first run, caches it under ~/.lumabrowser/, launches it. Prefer a normal install? Native installers. On first launch pick Build agents and automations on the "What do you want to do?" screen: the guided steps let you connect a local model or paste a cloud provider's API key. Pick Chat privately instead if you only want a local model set up for you. Either way the REST API is on as soon as the window opens, answering programs on this computer.
1. MCP: Claude Desktop, Cursor, OpenClaw, anything MCP
The quickest way is Settings > Editors & agents > Coding agents: each supported agent (Claude Code, Cline, Codex, OpenCode and JetBrains Air) has a Connect button that edits its config in place and puts it back when you disconnect. For any other host, Other MCP clients on the same page exports the config as JSON; merge it under mcpServers in your host's config and restart the host (luma docs in a terminal shows the same information). By hand it looks like this:
{
"mcpServers": {
"luma-browser": {
"command": "node",
"args": ["<install dir>/resources/app.asar.unpacked/mcp-server.js"],
"env": { "LUMA_API_PORT": "3000" }
}
}
}
| Host | Config file |
|---|---|
| Claude Desktop, Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Claude Desktop, macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Cursor | Settings, MCP, Add server; same JSON shape |
If you require an API key (Settings > API & MCP), the entry also needs "LUMA_API_KEY": "<your key>" in env. Entries LumaBrowser writes after you turn the key on carry it; reconnect an older one, or add the line by hand.
The server runs on Node.js, so Node must be installed, and it starts LumaBrowser if it is not already running. Your agent now has browser_navigate, browser_click, browser_type, browser_fill_form, browser_observe_page, browser_screenshot, browser_get_source, and the rest, each backed by a real Chromium tab, plus agents, timed tasks, page monitors and any MCP servers you have connected to LumaBrowser. Full list and the element-reference conventions: MCP server reference.
Going the other way, LumaBrowser's chat can also consume third-party MCP servers (stdio, Streamable HTTP, SSE) and re-export their tools. MCP Connector.
2. REST: open a page, click with a fallback, read it
# Open a tab. Replies are {success, data, message, timestamp}; keep the new tab's id.
TAB=$(curl -s -X POST http://localhost:3000/api/browser/tabs \
-H "Content-Type: application/json" \
-d '{"url": "https://news.ycombinator.com"}' | jq -r .data.id)
# Click. If the selector is stale, the LLM resolves the description instead.
curl -X POST http://localhost:3000/api/browser/tabs/$TAB/click \
-H "Content-Type: application/json" \
-d '{"selector": ".titleline > a", "llmFallback": "Click the first story link"}'
# Read the page as clean text
curl "http://localhost:3000/api/browser/tabs/$TAB/source?type=text"
Use the id the create call returns rather than a fixed number, so the script works in its own tab and never in one of yours. Every selector call accepts llmFallback. Forms, waits, scrolling, screenshots, network capture, and webhooks are all under the same base. REST reference.
By default the REST API answers programs on this computer. Without an API key, a web page on another origin (another port on this machine included) and anything coming through a reverse proxy or tunnel is refused. Create a key under Settings > API & MCP before you open it to your network.
Selenium, Playwright, Puppeteer
Turn on the WebDriver and CDP servers in Settings (both are off by default), then your existing scripts attach unchanged: Selenium to the WebDriver server on 9515; Playwright with chromium.connectOverCDP('http://127.0.0.1:9222'); Puppeteer with puppeteer.connect({ browserURL: 'http://127.0.0.1:9222' }). Bound to 127.0.0.1 they need no key. Bound to anything else, such as 0.0.0.0 to reach them from another machine, they will not start until you create an API key, and every client must send it: Selenium as http://luma:<key>@host:9515, CDP clients as an Authorization: Bearer <key> header or ?token=<key> on the URL. Details per driver.
ACP: your LumaBrowser agents inside JetBrains Air or Zed
luma acp speaks the Agent Client Protocol over stdin and stdout, so editors that host ACP agents can run your LumaBrowser agents in their own chat panel. Tool calls show as the editor's own cards with diffs and command output, and tools that change something ask for permission in the editor. The work happens in the running LumaBrowser, started hidden when it is not up. The JetBrains Air entry can be written for you from Settings > Editors & agents.
luma acp # answers as the Code agent
luma acp --agent <name> # answers as one of your named agents
3. Docker: headless, with a web desktop
git clone https://github.com/amurgola/LumaBrowser.git
cd LumaBrowser
LUMA_VNC_PASSWORD=change-me docker compose up -d
No prebuilt image is published; compose builds it from the repo. REST API and MCP proxy on 3000, a noVNC desktop on 6080 so you can watch the agent work. In Docker the API accepts any address and needs no key by default, so do not expose port 3000 to a network you do not trust. Point it at a model on the host with LUMA_LLM_PROVIDER and friends; the Docker guide has the compose file and every variable.
What people build first
- An agent that browses for real from Claude Desktop or Cursor, with the MCP block above. Ten minutes.
- A change monitor that fires a webhook when an element on a page changes. No usage caps.
- An n8n / Zapier / Make step that drives a real browser without per-minute cloud pricing. Recipe.
- Sub-agents with their own tools and knowledge base, orchestrated from one chat. Sub-agents.
- Your own chat tools, built in a sandbox by the assistant and published to itself. Code Mode and Tool Forge.
Also on the same download
A local model for the agent to run on, chosen for your hardware: private chat. Every runtime and placement knob: the advanced page. The full hub for builders: Browser for AI agents.