agentic-browser
Summary: A browser-automation server that lets an AI agent control real Chrome through MCP or HTTP using text perception, visible cursor actions, and reusable recipes.
Navigate and manage pages: open URLs, back/forward/reload, list/create/select/close tabs, dismiss popups.
Perceive cheaply: snapshots with element refs/roles/state/coordinates, diffs, text search, pixel-to-element lookup, cursor position.
Interact like a user: click, hover, type, press keys, scroll, drag, select options, upload files; batch several actions.
Read and export: readable page text, structured tables/lists to JSON/CSV, article Markdown, PDF/MHTML, media/video downloads with DRM refusal.
Automate with human oversight: request human help for login/2FA/CAPTCHA, block sensitive typing, wait/watch zero-token page changes, trace/audit actions.
Teach and replay: record a human-performed task as a role/name recipe, list recipes, replay with new parameters.
Observe/debug/record: console/errors, dialogs/downloads/popups, token stats, cursor visibility/privacy mask/HUD, active-tab video recording, last-resort screenshots.
Configure safely: headless/CDP attach, persistent profile, downloads/exports, speed, tool subset, read-only mode, origin allowlist; JS eval and sandbox disabling require explicit opt-in.
Supports using Brave as the Chromium-based browser that the agent controls, enabling the same browser automation capabilities as with Google Chrome.
Provides browser automation tools that control the user's installed Google Chrome, allowing agents to navigate, read pages as compact text, click, type, and interact with web content using pixel coordinates.
Enables the optional chat watcher to monitor Messenger for new messages, read them, and propose or send replies according to a configurable policy.
Enables the optional chat watcher to monitor Telegram Web for new messages, read them, and propose or send replies according to a configurable policy.
Enables the optional chat watcher to monitor WhatsApp Web for new messages, read them, and propose or send replies according to a configurable 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., "@agentic-browser Open Wikipedia, search for Chrome DevTools Protocol, and summarize the first paragraph"
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.
agentic-browser
Give any AI agent a real browser and watch everything it does.
Built and maintained by Davarion.
No API key. No extra bill. agentic-browser is a tool, not a model: it runs on your computer and uses whatever brain your agent already has. That can be your Claude Pro/Max plan in Claude Code, your ChatGPT plan in Codex, Cursor, or a local model. Nothing to sign up for and no per-token charges from us.
Humans browse the web with browsers. Agents usually need APIs. agentic-browser lets any agent use your installed Google Chrome the way a person does. It perceives pages as compact text with pixel coordinates instead of screenshots, and a visible cursor shows every move and click.
Español · Use cases · Chat watcher · Architecture · Security · Disclaimer
Why
Problem with today's browser agents | agentic-browser |
Screenshots cost ~1,000–1,500 tokens per look | Text snapshot: ~15 tokens per element. |
Agents guess coordinates from images | Every element comes with its exact center |
You can't see what the agent is doing | A red cursor travels to each target, ripples on click and labels the action |
Locked into one agent framework | MCP server and a plain HTTP/JSON API: Claude, GPT, Gemini, Hermes, OpenClaw, LangChain, n8n, curl… |
Stripped-down Chromium builds | Your real Chrome: extensions, codecs, PDF, WebGPU, auto-updates |
Yet another API key and bill | None. Works with the subscription your agent already uses; even the optional chat watcher can run on your Claude plan |
Related MCP server: agent-browser-mcp
Quick start
One line (Claude Code):
claude mcp add agentic-browser -- npx -y agentic-browser-mcpAny other MCP client: use "command": "npx", "args": ["-y", "agentic-browser-mcp"]. Requirements: Node ≥ 18 and Chrome (or Edge).
From source
Requirements: Node ≥ 18 and Google Chrome.
git clone https://github.com/davarion-tech/agentic-browser.gitcd agentic-browser && npm installnpm run doctornpm testUse it from an MCP client
Claude Code:
claude mcp add agentic-browser -- node /absolute/path/to/agentic-browser/src/mcp.jsClaude Desktop, Cursor, Codex, Hermes, OpenClaw or any MCP client: see examples/mcp-config.json.
Claude Code slash command (optional): copy skills/agentic-browser into ~/.claude/skills/. Then /agentic-browser <task> always uses this browser instead of any other built-in browser tool.
Then ask your agent something like:
Use only the browser_* tools from agentic-browser. Open es.wikipedia.org, search for "Chrome DevTools Protocol", open the first result and summarize the first paragraph. Don't take screenshots.
Use it from anything else (HTTP)
npm run httpcurl -s -X POST http://127.0.0.1:8787/tools/browser_navigate -d "{\"url\":\"example.com\",\"snapshot\":true}"GET /tools returns the JSON Schema of every tool, ready to pass as function definitions to any LLM API. A dependency-free Python client is in examples/python_client.py.
Optional: chat watcher
Off by default. Installing agentic-browser only lets your agent use the browser when you ask it to. The watcher is a separate process that you turn on.
The watcher keeps the agent's own messaging tabs open (WhatsApp Web, Telegram, Messenger…). Waiting costs zero tokens; when a message arrives, it wakes Claude to read it and propose a reply. A code-enforced policy controls what happens next:
observe: only notifies you.
draft (default): writes the reply but never sends it.
auto: sends, but only to an allowlist. Sensitive keywords, an hourly limit and a domain lock apply in every mode.
npm run setupnpm run watcherIt runs on your Claude subscription (claude setup-token) or an API key. Read docs/WATCHER.md and the Disclaimer first: many platforms forbid unofficial bots.
What the agent sees
# Test bench
url: http://localhost:3000/
viewport 1280x800 scroll=0,0 docH=2090
[3] textbox "Search" ph="type something" @191,124
[4] button "Search" @339,124
[5] select "color" value="Red" opts=[*Red|Green|Blue] @429,124
[6] checkbox "I agree" {checked} @492,124
[10] button "Button in shadow DOM" @652,316
[f1:1] button "Button inside iframe" @214,217New in 1.4: save anything from a page
browser_article: the main content of any page as clean Markdown (title, author, date, headings, lists, tables, links, images), without menus, ads or footers. The cheapest way for your agent to read or summarize an article.filesaves it as.md.browser_pdf: save the page as PDF (A4/Letter/Legal, backgrounds, lazy images loaded first) or MHTML (one file, exact copy). It uses the agent's session, so it works behind logins.browser_media: every image, video, audio file and document on the page (HTML, CSS backgrounds and what the network loaded), downloaded intoimages/,videos/,audio/,docs/with amanifest.json(source URL, alt text, size, hash). Duplicates and tracking pixels are skipped.browser_video: download the page's video, direct files (MP4/WebM) or HLS/DASH streams joined with ffmpeg. It refuses DRM content (Netflix, Disney+, Spotify…). Only for videos you own or have the right to save: YouTube, TikTok, Instagram and others forbid downloading in their terms.
Files go to ~/.agentic-browser/exports (AGENT_EXPORTS); AGENT_MEDIA_MAX_MB (500) caps each file.
New in 1.3
The chat watcher on a demo chat: it drafts a reply for you to send, and hands bank-detail requests and phishing links to you. Full video.
Privacy mask.
browser_cursor_style({ privacy: "whatsapp" })orAGENT_PRIVACY=whatsappblurs contacts, chat headers and profile photos so you can record or share the agent's screen without exposing anyone. Presets:whatsapp,telegram,gmail, or your own CSS selectors. The agent still reads everything.Watch only the chats you choose. In the chat watcher,
contacts: ["Cliente demo"]keeps every other chat out: they never wake the model, and before typing the watcher reads the open chat's title from the page, so the agent can't write anywhere else. Safe on an account that also has personal chats.On-screen notices and a clip per event. The watcher shows a card for each new message, draft ("review it and press Send"), escalation and block (no names while the privacy mask is on), and
record: truesaves each event as its own video.
New in 1.2
Teach it once, replay forever.
browser_teach_startrecords a task while you do it in the agent's Chrome (clicks, text, selects, Enter). It is saved as a recipe of roles and names, not pixels, so it survives layout changes.browser_replayrepeats it with new values ({"search": "October invoices"}) without perceiving every step. Passwords are never recorded: on replay, the person types them.An "Enseñar" (teach) button in the browser. A small tab on the left edge of the agent's Chrome starts a recording without asking the agent. Name the recipe in the banner, press Finish, then tell your agent "repeat ". Disable it with
AGENT_TEACH_BUTTON=0.A clean screen. Chrome's translate bar, search-engine choice, restore-pages bubble and permission prompts are off (permissions are denied). After every navigation, website popups (language, newsletter, cookie banners, "Sign in with Google") are closed with visible clicks on their close or reject button, never accept, subscribe or sign in.
browser_dismissdoes it on demand;AGENT_AUTO_DISMISS=0turns the automatic pass off.Structured data in one call.
browser_extractturns the most relevant table or repeated list (products, search results, contacts) into JSON or CSV rows with title, link, price and image. Merged table headers are resolved. CSV output is safe to open in Excel.Live token counter.
browser_cursor_style({ hud: true })(orAGENT_HUD=1) shows, in the corner of the page, the tokens used against what screenshots would have cost.browser_statsreturns the same numbers. Formula: tokens ≈ characters / 4; one screenshot ≈ width × height / 750 per perception call.
Tools
Tool | Purpose |
| Main perception. Visible elements with ref, role, name, state and center |
| Find elements by text anywhere on the page, including off-screen |
| Pixel → element (role, text, clickable, DOM path), with no image |
| Where the agent's cursor is and what is under it |
| Visible click or hover by |
| Real keyboard input: |
| Mouse wheel; drag and drop |
|
|
| Navigation and tabs |
| Readable text (wrapped as untrusted content); arbitrary JS (only with |
| Table or repeated list → JSON or CSV rows (title, url, price, image…). |
| Reader mode: the page's main content as clean Markdown, to read or summarize cheaply. |
| Save the page as PDF or MHTML, with the agent's session |
| Download every image, video, audio file and document, organized in folders with a |
| Download the page's video: direct files or HLS/DASH via ffmpeg. Refuses DRM. |
| Record a task the person performs once, as a reusable recipe |
| List or show recipes; replay one with new |
| Tokens used this session vs. the screenshot equivalent |
| Close popups covering the page (close or reject only, never accept). Runs automatically after |
| Several actions in one call, in order, stopping at the first error. Saves one agent turn per action |
| Wait for time, text or selector. |
| Hand control to the person watching (login, 2FA, CAPTCHA, a decision) through an on-page banner |
| JS console and errors; dialogs, downloads and new tabs; audit trail of every action |
| Show or hide the cursor, its trail or the live token counter ( |
| Record the active tab as a video, red cursor included, for demo clips without OBS. MP4 (H.264) when |
| Last resort: JPEG of the page or of a single |
Most actions accept snapshot: true and return the new page state in the same response, which saves one agent turn per step.
Reliability features: refs survive re-renders when the element can be uniquely re-identified. Clicks warn when a modal covers the target (occluded). Open shadow DOM and iframes are traversed. New tabs, dialogs and downloads are reported in the action result. Repeating the same call three times triggers a loop warning.
Configuration
Variable | Default | |
|
|
|
| — | Attach to a running Chrome started with |
|
| Persistent agent profile (cookies and logins survive restarts) |
|
| Download folder |
|
|
|
| from | ms per 100 px of cursor travel; |
| window size | With a window, Chrome opens maximized and the page uses the real window size. |
|
|
|
|
|
|
|
|
|
|
|
|
| — | Privacy mask from the start: |
|
| Where taught recipes are saved (JSON) |
|
| Where |
|
| Size limit per downloaded file (media and video) |
|
|
|
| — | Domain allowlist, e.g. |
|
|
|
|
| Audit log of every tool call |
| auto-detected | Path to the browser. Any Chromium browser works: Chrome, Edge (falls back to it automatically), Brave, Chromium |
|
| HTTP port and required Bearer token. Without |
|
|
|
|
|
|
| downloads folder | Folders |
|
| Where |
|
| Path to ffmpeg for MP4 recordings; |
Limits
Canvas, WebGL and maps: the DOM doesn't describe what is drawn inside them. Use
browser_screenshotwith arefto pay only for that area.Closed shadow roots don't expose their children.
Chrome's own UI (address bar, menus, permission prompts) is not part of the DOM. Use
browser_navigate,browser_tabsand the environment variables instead.No CAPTCHA solving and no bot-detection evasion. The agent should call
browser_request_human.Recent Chrome versions block remote debugging on your default personal profile. The agent uses its own profile; log in there once.
Roadmap
Based on the most common complaints about browser agents (stale refs, token bloat, popups, multi-agent conflicts, prompt injection, observability):
Reference chat watcher for agent-owned accounts: wakes on new messages at zero tokens and replies under a code-enforced policy (draft by default, allowlist, sensitive keywords, rate limit, domain lock). See docs/WATCHER.md.
Teach mode and recipe replay, structured extraction, a live token counter, popup dismissal and
browser_batch(1.2).Multi-agent sessions on one profile, with tab ownership and leases.
browser_batch: several actions in one call.Hidden-text detection (instructions hidden with CSS) as a prompt-injection signal.
Session replay: trace plus a GIF/video of the cursor.
Legal
Released under the MIT License. Provided as is, without warranty. You are solely responsible for how you and your agents use this software. That includes compliance with the law and with the terms of service of the sites you automate. Read the full Disclaimer.
Made by Davarion. Not affiliated with Google. "Google Chrome" is a trademark of Google LLC.
Available Tools
35 toolsbrowser_batchA
Varias acciones en UNA llamada (ahorra un turno del agente por acción): [{tool:"browser_click", args:{ref:12}}, {tool:"browser_type", args:{ref:14, text:"hola", submit:true}}]. Se ejecutan en orden y se detiene en el primer error. Úsala cuando ya sabes los pasos siguientes; con snapshot:true devuelve el estado final.
Inputs: actions (required), snapshot.
browser_clickC
Mueve el cursor de forma visible y hace clic real (CDP Input) sobre un ref o x,y.
Inputs: x, y, ref, button, +3 more.
browser_consoleC
Últimos mensajes de consola y errores JS de la pestaña activa.
Inputs: limit.
browser_cursorB
Posición actual del cursor del agente y el elemento bajo él.
Inputs: no named parameters.
browser_cursor_styleB
Muestra/oculta el cursor visual, su estela, el contador de tokens en vivo (hud) o la máscara de privacidad que difumina contactos y números al grabar o compartir pantalla.
Inputs: hud, trail, privacy, visible, +1 more.
browser_dismissA
Cierra popups que tapan la página (idioma, newsletter, cookies, "inicia sesión con Google"), con clics visibles. Solo pulsa botones de cerrar o rechazar, nunca aceptar, suscribirse ni iniciar sesión. Ya se hace solo tras browser_navigate (AGENT_AUTO_DISMISS=0 lo apaga).
Inputs: no named parameters.
browser_dragB
Arrastra de un punto/ref a otro con el botón pulsado (sliders, kanban, mapas).
Inputs: to (required), from (required), snapshot.
browser_element_atB
Visión por píxel SIN imagen: dado (x,y) devuelve qué elemento hay ahí (rol, texto, si es clicable, ruta DOM).
Inputs: x (required), y (required).
browser_evalB
Ejecuta JavaScript en la página y devuelve el resultado (JSON). Desactivada salvo AGENT_ALLOW_EVAL=1.
Inputs: expression (required).
browser_eventsC
Diálogos aceptados, descargas guardadas y popups abiertos desde la última consulta.
Inputs: no named parameters.
browser_extractA
Datos estructurados en UNA llamada: convierte la tabla o la lista repetida más relevante (productos, resultados, contactos) en filas JSON o CSV, con título, enlace, precio e imagen. Limítalo con ref o selector. Con file lo guarda en disco y solo devuelve un resumen.
Inputs: max, ref, file, kind, +2 more.
browser_findB
Busca elementos por texto/etiqueta y devuelve sus refs y coordenadas, incluso fuera del viewport.
Inputs: query (required), max.
browser_historyC
Atrás, adelante o recargar.
Inputs: action (required), snapshot.
browser_moveA
Mueve el cursor visible (hover) a un ref o a x,y. Dispara mouseover/mousemove reales.
Inputs: x, y, ref.
browser_pressB
Pulsa teclas o combinaciones: "Enter", "Escape", "Control+L", "Tab", "ArrowDown"... Varias separadas por espacio.
Inputs: keys (required), snapshot.
browser_readB
Texto legible de la página (o de un selector CSS), para leer artículos/resultados.
Inputs: maxChars, selector.
browser_recipesA
Lista las recetas grabadas o, con name, muestra sus pasos y parámetros.
Inputs: name.
browser_record_startA
Empieza a grabar en vídeo la pestaña activa (con el cursor rojo visible) para clips de demostración. Sigue usando las demás herramientas y termina con browser_record_stop. Las pausas sin cambios conservan su duración real. MP4 (H.264) si hay ffmpeg en el PATH; si no, WebM.
Inputs: fps, demo, file, format, +1 more.
browser_record_stopA
Detiene la grabación de browser_record_start y codifica el vídeo. Devuelve ruta, duración (s), tamaño y formato.
Inputs: no named parameters.
browser_replayA
Repite una receta grabada. Localiza cada elemento por rol y nombre y ejecuta los pasos sin percibir la página: casi no gasta tokens. params cambia los textos escritos, ej. {"buscar": "facturas octubre"}. Los campos secretos (contraseñas) siempre los escribe la persona.
Inputs: name (required), params, snapshot.
browser_request_humanA
Pide ayuda a la persona que mira el navegador (login, 2FA, CAPTCHA, una decisión). Muestra un banner y espera a que pulse "Listo" o "Cancelar". El agente no ve lo que el humano escribe.
Inputs: reason (required), timeout.
browser_screenshotB
ÚLTIMO RECURSO (gasta tokens): imagen JPEG de la página o de un ref, para contenido puramente visual (canvas, gráficos, captchas no).
Inputs: ref, quality, fullPage.
browser_scrollB
Desplaza con la rueda del ratón (dy>0 baja). Con ref, lleva ese elemento al centro.
Inputs: x, y, dx, dy, +2 more.
browser_selectC
Elige opciones en un (por valor o texto visible).
Inputs: ref (required), values (required), snapshot.
browser_snapshotA
PERCEPCIÓN PRINCIPAL (sin captura). Lista compacta de elementos visibles con ref, rol, nombre, estado y centro @x,y en píxeles. ~15 tokens por elemento. Con diff:true devuelve solo lo que cambió desde el snapshot anterior.
Inputs: max, diff, includeText, viewportOnly.
browser_statsC
Tokens que ha devuelto agentic-browser en esta sesión frente a lo que habrían costado las capturas de pantalla (una por cada percepción, ancho×alto/750).
Inputs: reset.
browser_tabsB
Gestiona pestañas: list, new (con url), select (index), close (index).
Inputs: action (required), url, index.
browser_teach_startA
MODO ENSEÑAR. Empieza a grabar una receta: la persona hace la tarea una vez en el Chrome del agente (clics, textos, selecciones, Enter) y pulsa "Terminar" en el banner. Se guarda por rol y nombre de cada elemento, no por píxeles. Las contraseñas nunca se graban. Después llama a browser_teach_stop.
Inputs: name (required), url.
browser_teach_stopA
Termina la grabación de browser_teach_start. Por defecto espera a que la persona pulse "Terminar" (o "Cancelar"). Guarda la receta y devuelve sus pasos y parámetros.
Inputs: wait, timeout.
browser_traceB
Últimas acciones ejecutadas (herramienta, argumentos, duración, URL, resultado) para depurar o auditar.
Inputs: limit.
browser_typeA
Escribe texto con eventos de teclado reales. Si das ref/x,y primero hace clic para enfocar. Nunca escribe en contraseñas, códigos 2FA, tarjetas ni números de cuenta (estado {sensitive}): eso lo hace la persona con browser_request_human.
Inputs: text (required), x, y, ref, +4 more.
browser_uploadB
Adjunta archivos locales a un (o al selector que abre un clic en ese ref). Solo desde las carpetas permitidas (AGENT_UPLOAD_DIRS).
Inputs: ref (required), files (required).
browser_waitC
Espera ms, o hasta que aparezca un texto o selector.
Inputs: ms, text, timeout, selector.
browser_watchA
Espera (sin gastar tokens) hasta que la página cambie: aparece texto nuevo, cambia el título (ej. "(3) WhatsApp") o coincide un patrón. Ideal para vigilar chats, correos o resultados que tardan.
Inputs: text, timeout, selector, titleChange.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 35 tools
The core interaction tools (click, type, press, scroll, drag, select, upload) are cleanly separated, but the perception layer has four overlapping channels: browser_snapshot, browser_read, browser_extract and browser_screenshot all return page content, and browser_find vs browser_element_at vs browser_cursor all locate elements by different means. browser_wait and browser_watch both wait for page changes, and browser_cursor vs browser_cursor_style differ only subtly in name while doing unrelated things.
Every tool carries the same browser_ prefix and uses snake_case throughout, which makes the set highly predictable. The only inconsistency is grammatical: many names are verbs (navigate, click, extract, replay) while others are nouns (snapshot, tabs, events, history, stats, recipes, cursor), though each remains readable and guessable.
35 tools is well past the comfortable range for a single server and the surface sprawls into four sub-domains: core automation, perception, diagnostics (trace, stats, console, events), and a teaching/recording subsystem (teach_start, teach_stop, recipes, replay, record_start, record_stop). Several of these are convenience wrappers or observability extras that could be collapsed (batch, cursor_style, stats, trace) rather than separate tools.
The surface is unusually thorough: navigation, tabs, full input primitives, human handoff, downloads/dialogs, structured extraction, batch execution and a recipe-recording lifecycle are all covered with no obvious dead ends. Remaining gaps are real but niche for the domain: no iframe/frame targeting, no cookie or localStorage management, no viewport/device emulation, and no clipboard read beyond keyboard shortcuts.
Maintenance
Related MCP Connectors
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
A real browser for your agent: screenshots, page checks, Markdown and PDFs.
Let AI agents use your real, signed-in Chrome: tabs, clicks, forms, screenshots and video.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to control the Google Chrome browser through a Node.js WebSocket bridge and a dedicated browser extension. It provides tools for capturing screenshots, executing JavaScript, managing tabs, and extracting page content via the MCP protocol.2-
- AlicenseBqualityDmaintenanceEnables AI agents to directly control your real Chrome browser with full context including login sessions, cookies, and open tabs. It provides tools for page scanning, JavaScript execution, CDP control, screenshots, and physical mouse/keyboard input for authentic browser automation.20243MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control Chrome browser actions like navigation, clicking, form filling, screenshots, and console/network logging via an MCP server and Chrome extension.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to control and interact with a Chrome browser via MCP, providing tools for navigation, screenshots, clicking, form filling, content extraction, and tab management.1-