Skip to main content
Glama
Flowa Browser MCP

Flowa Browser MCP

Official
by flowa-labs
README.md
<p align="center"><img src="assets/icon.png" width="96" alt="Flowa Browser MCP icon"></p>

<h1 align="center">Flowa Browser MCP: token-efficient browser control for AI agents</h1>

<p align="center">An MCP server and CLI that reads web pages as a numbered accessibility tree and acts by item number.<br>No screenshots. Heuristic safety checks on by default; they are not a security boundary.</p>

<p align="center">
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue" alt="Apache-2.0"></a>
  <a href="https://github.com/flowa-labs/flowa-browser-mcp/actions/workflows/ci.yml"><img src="https://github.com/flowa-labs/flowa-browser-mcp/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
  <img src="https://img.shields.io/badge/python-3.12%2B-blue" alt="Python 3.12+">
</p>

<p align="center"><a href="README.pt-BR.md">Português</a></p>

If you are comparing browser tools for agents (Playwright MCP, Chrome DevTools MCP, agent-browser, Obscura), see the [measured comparison](#benchmarks) below.

## How it works

```mermaid
flowchart LR
    A[AI agent<br>MCP client or shell] -->|open / read / act| B[Flowa Browser]
    B -->|page as numbered text| A
    B --> C{Safety checks}
    C -->|item changed or covered| X[Refuse and explain]
    C -->|pay, delete, send| Y[Ask the owner first]
    C -->|ok| D[browser-harness<br>Chrome DevTools Protocol]
    D --> E[Google Chrome<br>dedicated profile or your own]
    E -->|only what changed| B
```

A page reads like this (output is currently in Portuguese):

```text
[1] campo "Nome"
[2] campo "E-mail"
[3] lista "Estado"
[4] caixa "Aceito os termos"
[5] botão "Salvar"
```

## Quick start

Requirements: **macOS** (the only tested system), **Google Chrome**, **Python 3.12+**.

```bash
uv tool install git+https://github.com/flowa-labs/flowa-browser-mcp
claude mcp add --scope user flowa-browser -- flowa-browser-mcp
```

Any MCP client that runs a stdio server can use it:

```json
{ "mcpServers": { "flowa-browser": { "command": "flowa-browser-mcp" } } }
```

Or from the shell:

```bash
flowa-browser abrir https://example.com     # open and read
flowa-browser agir 3 clicar                 # act on item 3
flowa-browser ler --busca "price"           # read again, filtered
flowa-browser --help
```

## Tools

Tool names and messages are in Portuguese in this version.

| Tool | What it does |
|---|---|
| `abrir` | open a URL and return the page as text |
| `ler` | read the page (search, modes, pagination, only changes) |
| `agir` | act on item N: click, fill, choose, check, upload |
| `lote` | several actions in one call (a whole form) |
| `tecla` | press a key |
| `clicar_texto` | click a visible element by its exact text |
| `marcar_opcao` | answer a radio or checkbox that is not in the reading |
| `arrastar` | drag item to item |
| `dialogo` | answer alert, confirm or prompt |
| `abas`, `usar_aba`, `fechar_aba`, `voltar`, `recarregar`, `soltar` | tabs and history |
| `rede`, `console` | network calls and console errors |
| `emular`, `desempenho`, `estilos` | device and network emulation, load metrics, CSS |
| `auditar` | Lighthouse audit (needs Node.js) |

## Safety

- **Changed or covered items are refused** instead of clicked blindly. Items inside iframes are not covered-checked, and a malicious page can defeat this check.
- **Sensitive actions** (pay, buy, delete, send, publish, transfer) are recognised by a word list on clicks, checkboxes, Enter and Space, drag, text clicks and choices. They are refused unless the call carries `confirmado=true`. That flag is set by the agent: the tool cannot verify that you approved, so configure your MCP client to ask before such calls.
- **Passwords:** the agent cannot type into password fields. The `senha` action fills values from `~/.config/flowa-browser-mcp/senhas.json` only on the listed origin of the frame that holds the field. Listed values are masked in readings, network and console output. Keep that file and the `.env` at `chmod 600`.
- **File uploads** need confirmation and only accept files inside `~/.config/flowa-browser-mcp/uploads`.
- **Page text is data, not instructions:** readings, action reports, tabs, network and console output are wrapped in markers with a random code.
- The engine's telemetry, update checks and cloud features are disabled.
- Running your own Python script through the command (`flowa-browser <<'PY'`) bypasses every check.

These checks reduce risk; they are not a sandbox. See [SECURITY.md](SECURITY.md).

## Two browsers

| | Dedicated browser (default) | `--real` |
|---|---|---|
| What | separate window and profile | your everyday Chrome |
| Logins | saved in that profile | the ones you already have |
| Permission | none; the debugging port on 127.0.0.1 is reachable by any local process | Chrome asks to allow remote debugging |

For the MCP server, set `FLOWA_BROWSER_REAL=1` to use your everyday browser.

## Benchmarks

Five scripted tasks (full form, button behind a banner, item at the end of a 400-row list, field inside a cross-origin iframe, dialog followed by a page change) on local test pages. Tokens are estimated as characters / 3.5.

| Tool (run of 2026-11-26) | Tasks passed | Calls | Text returned (tokens) |
|---|---|---|---|
| **Flowa Browser** | 5 / 5 | **22** | **6,637** |
| agent-browser 0.45.0 | 5 / 5 | 27 | 8,758 |
| Chrome DevTools MCP 1.14.0 | 5 / 5 | 28 | 15,739 |
| Playwright MCP | 5 / 5 | 38 | 21,702 |

| Tool (run of 2026-11-29, 7 rounds) | Tasks passed | Calls per round | Text per round (tokens) |
|---|---|---|---|
| **Flowa Browser** | **35 / 35** | **22** | **7,465** |
| Obscura 0.2.7 | 28 / 35 | 25 | 12,957 |

### Forms: fewest calls

| Full form task (2026-11-26) | Calls | Text returned (tokens) |
|---|---|---|
| **Flowa Browser** | **2** | **261** |
| agent-browser 0.45.0 | 8 | 332 |
| Chrome DevTools MCP 1.14.0 | 8 | 1,456 |
| Playwright MCP | 11 | 1,623 |

All four completed the form. `lote` fills it and submits in a single action call.

### Why it is slower

**Where it loses:** agent-browser and Obscura are clearly faster, and Obscura uses far less memory.

- **It checks before and after acting:** waits for the item to stop moving, checks that nothing covers it, waits for the page to settle and reports what changed. The raw browser calls for one action took about 9 ms in our measurement; the checked action took about 95 ms in the best case.
- **It drives a full browser:** that costs memory, and it is also why cross-origin iframes and your logged-in sessions work.
- **Part of the gap is our implementation** (Python plus a background process), which can still be improved. Full numbers, method and limits: [docs/benchmarks.md](docs/benchmarks.md).

## Comparisons published by others

Measured by the authors of each project. **We did not run them, and Flowa Browser is not part of any of them.** Versions and dates are theirs.

| Source | What they compared | What they report |
|---|---|---|
| [browser-harness](https://github.com/browser-use/browser-harness#compared-with-other-browser-tools) (2026-10-14) | its CLI, Playwright MCP, Chrome DevTools MCP, agent-browser on 100 tasks, one run each | no tool wins on score (56.3 to 61.0, confidence intervals overlap); the harness used the fewest input tokens |
| [charlotte](https://github.com/TickTockBent/charlotte#benchmarks) (2026-08-08) | charlotte and Playwright MCP, characters returned on real sites | 1.1x to 139x smaller on arrival at a page |
| [caveman-browse](https://github.com/JuliusBrussee/caveman-browse) (2026-08-14) | tool definitions of caveman-browse, Playwright MCP, Chrome DevTools MCP | 297, 3,422 and 4,507 tokens; its own task pilot shows a case it loses |
| [Obscura](https://github.com/h4ckf0r0day/obscura#benchmarks) | page load, Obscura and Chrome | 51 to 84 ms against about 500 to 800 ms |

Flowa Browser runs on the browser-harness engine, but the evaluation above measured the harness's own interface, not this one.

## Tests

57 end-to-end tests against an isolated headless browser: reading, actions, iframes, dialogs, network, console, emulation, tabs, safety locks and password handling.

```bash
uv venv && uv pip install -e ".[dev]" && .venv/bin/python -m pytest
```

## Limitations

- Only macOS is tested. Linux and Windows are not.
- Tool names, messages and page markers are in Portuguese.
- Pages drawn on canvas have no accessibility tree to read.

## Contributing and license

Issues and pull requests are welcome; see [CONTRIBUTING.md](CONTRIBUTING.md). Changes are merged only after maintainer review.

Licensed under [Apache-2.0](LICENSE). Built on [browser-harness](https://github.com/browser-use/browser-harness) (MIT).

Not affiliated with or endorsed by Google, Microsoft, Vercel, Anthropic or the authors of the compared tools. Product names belong to their owners.