Colibri
<div align="center">
<img src="docs/assets/hero.svg" alt="Colibri MCP — the hummingbird browser for AI agents" width="100%"/>
<h3>🐦 The hummingbird browser for AI agents — tiny, fast, precise.<br/>Same tasks. <b>89× fewer tokens</b> than screenshots, <b>11× fewer</b> than Playwright MCP.</h3>
<p>
<a href="https://github.com/t4zxxx1/colibri-mcp/releases/latest"><img alt="Release" src="https://img.shields.io/github/v/release/t4zxxx1/colibri-mcp?style=for-the-badge&color=22d3ee&labelColor=0d1117"/></a>
<a href="LICENSE"><img alt="MIT" src="https://img.shields.io/badge/license-MIT-a78bfa?style=for-the-badge&labelColor=0d1117"/></a>
<a href="https://modelcontextprotocol.io"><img alt="MCP" src="https://img.shields.io/badge/MCP-stdio-34d399?style=for-the-badge&labelColor=0d1117"/></a>
<img alt="Jev tokens" src="https://img.shields.io/badge/Jev%20tokens-0-f59e0b?style=for-the-badge&labelColor=0d1117"/>
<a href="https://github.com/t4zxxx1/colibri-mcp/stargazers"><img alt="Stars" src="https://img.shields.io/github/stars/t4zxxx1/colibri-mcp?style=for-the-badge&color=f472b6&labelColor=0d1117"/></a>
<a href="https://www.paypal.com/donate/?business=cavacarlo%40hotmail.it¤cy_code=EUR&item_name=Colibri+MCP"><img alt="Buy me a coffee" src="https://img.shields.io/badge/Buy%20me%20a%20coffee-PayPal-FFDD00?style=for-the-badge&logo=paypal&logoColor=black&labelColor=0d1117"/></a>
</p>
<p>
<a href="https://insiders.vscode.dev/redirect/mcp/install?name=colibri&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22github%3At4zxxx1%2Fcolibri-mcp%22%5D%7D"><img alt="Install in VS Code" src="https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white"/></a>
<a href="https://cursor.com/en/install-mcp?name=colibri&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImdpdGh1Yjp0NHp4eHgxL2NvbGlicmktbWNwIl19"><img alt="Install in Cursor" src="https://img.shields.io/badge/Cursor-Install-000000?style=flat-square&logo=cursor&logoColor=white"/></a>
<a href="https://github.com/t4zxxx1/colibri-mcp/releases/latest/download/colibri.mcpb"><img alt="Claude Desktop" src="https://img.shields.io/badge/Claude_Desktop-.mcpb-D97757?style=flat-square&logo=anthropic&logoColor=white"/></a>
<a href="#install-in-one-line"><img alt="Claude Code" src="https://img.shields.io/badge/Claude_Code-1_line-D97757?style=flat-square&logo=anthropic&logoColor=white"/></a>
<a href="#install-in-one-line"><img alt="OpenAI Codex" src="https://img.shields.io/badge/Codex-1_line-412991?style=flat-square"/></a>
<a href="#install-in-one-line"><img alt="Copilot CLI" src="https://img.shields.io/badge/Copilot_CLI-1_line-24292f?style=flat-square&logo=githubcopilot&logoColor=white"/></a>
<a href="#install-in-one-line"><img alt="Gemini CLI" src="https://img.shields.io/badge/Gemini_CLI-1_line-4285F4?style=flat-square&logo=googlegemini&logoColor=white"/></a>
</p>
<b>One line, any agent</b> — no account, no API key, no build:
</div>
```bash
claude mcp add colibri -- npx -y github:t4zxxx1/colibri-mcp # or: codex / copilot mcp add …
```
<div align="center">
**[Why](#why-colibri)** · **[Install](#install-in-one-line)** · **[VS Code](#vs-code--step-by-step)** · **[vs Jev](#better-than-jev--with-real-numbers)** · **[Benchmarks](#benchmarks)** · **[How it works](#how-it-works)** · **[Tools](#tools)** · **[Safety](#safety)** · **[Config](#configuration)** · **[FAQ](#faq)**
**English** · [Italiano](README.it.md)
</div>
---
## Why Colibri
A hummingbird weighs about 3 grams, beats its wings around 50 times a second and hovers with millimetric precision. That is the idea: **the lightest possible browser for an AI agent**, fast and exact.
AI agents browse the web in the most expensive way possible: a **screenshot costs ~1,366 tokens**, an accessibility-tree dump **4,400–7,700 tokens per page**, and every extra tool call makes the model **re-read the whole conversation**.
**Colibri** turns each page into a few hundred tokens of plain rows — fields, values, state, risk flags — runs **many steps in one call**, answers with **only what changed**, and fills forms with a **local Jev-style engine** that needs no API key and costs **zero tokens**.
- ⚡ **27,760 tokens** for a 22-field, two-page application — vs 318,910 with Playwright MCP and 2.48 M with screenshots
- 🧠 **Jev-style typed decisions, locally — and ahead of Jev 1.14 on form filling**:
| | Jev 1.14 (public [System One Bench](https://systemonebench.dev), 2,450 choice questions) | Colibri v0.4 (419 form-matching cases) |
|---|---|---|
| Accuracy | 75.7% | **98.6%** · **87.9%** on a form never seen before |
| Confidence AUROC | 0.81 | **0.95** |
| Latency p50 | 136 ms | **1.7 ms** |
| Cost | $0.028 / 1,000 calls + API key | **$0, no key** |
The two datasets are different, so take this as an order of magnitude: Jev handles any domain, Colibri does one job (data → form field). Method and caveats are in [Better than Jev](#better-than-jev--with-real-numbers).
- 🔌 **One line in any agent**: Claude Code, OpenAI Codex, GitHub Copilot (CLI & VS Code), Gemini CLI, Cursor, Claude Desktop, Windsurf… — [see how](#install-in-one-line)
- 🛡️ **Safe by default**: submit/pay/delete need your OK (`!c`), passwords/cards/OTP are never typed by the AI (`!x`)
- 🏠 **100% local**: your Chrome profile, your logins, nothing goes through third-party servers
<div align="center">
<img src="docs/assets/terminal.svg" alt="browse_task demo: 21 user labels mapped to 21 fields without reading the page" width="100%"/>
</div>
<div align="right"><a href="#top">↑ back to top</a></div>
---
## Install in one line
<div align="center">
<img src="docs/assets/agents.svg" alt="One line, any agent: Claude Code, Codex, Copilot CLI, Gemini CLI, VS Code, Claude Desktop, Cursor, Windsurf" width="100%"/>
</div>
You only need **Node.js ≥ 18** and **Chrome or Edge**. No account, no API key, no build step: `npx` fetches Colibri from GitHub and runs it on your machine.
| Your agent | Install |
|---|---|
| **Claude Code** | `claude mcp add colibri -- npx -y github:t4zxxx1/colibri-mcp` |
| **OpenAI Codex** (CLI + IDE extension) | `codex mcp add colibri -- npx -y github:t4zxxx1/colibri-mcp` |
| **GitHub Copilot CLI** | `copilot mcp add colibri -- npx -y github:t4zxxx1/colibri-mcp` |
| **GitHub Copilot in VS Code** | [**one click**](https://insiders.vscode.dev/redirect/mcp/install?name=colibri&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22github%3At4zxxx1%2Fcolibri-mcp%22%5D%7D) · or `code --add-mcp …` — [all the ways](#vs-code--step-by-step) |
| **Gemini CLI** | `gemini mcp add -s user colibri npx -y github:t4zxxx1/colibri-mcp` |
| **Claude Desktop** | download [**colibri.mcpb**](https://github.com/t4zxxx1/colibri-mcp/releases/latest/download/colibri.mcpb) → double-click |
| **Cursor** | [**one click**](https://cursor.com/en/install-mcp?name=colibri&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImdpdGh1Yjp0NHp4eHgxL2NvbGlicmktbWNwIl19) |
| **Cline** (VS Code) | paste the JSON in *MCP Servers → Configure* — [step by step](#vs-code--step-by-step) |
| **Windsurf · Roo · any other client** | paste the [3-line JSON](#manual-configuration) |
**Then just ask** — *"Open the supplier portal and fill in the application with these details: …"* or *"Use Colibri to read the editions of project PF-2026-115"*. Chrome opens on the first call; you log in once, it remembers.
### VS Code — step by step
Colibri works in VS Code with **GitHub Copilot** (Agent mode) and with **Cline**. They keep separate MCP lists, so set it up for the one you use.
#### GitHub Copilot
Pick **one** of these:
1. **One click** — [**Install in VS Code**](https://insiders.vscode.dev/redirect/mcp/install?name=colibri&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22github%3At4zxxx1%2Fcolibri-mcp%22%5D%7D) → VS Code opens → **Install**.
2. **Terminal** — adds Colibri to your user profile, for every project:
```bash
# macOS / Linux
code --add-mcp '{"name":"colibri","command":"npx","args":["-y","github:t4zxxx1/colibri-mcp"]}'
```
```powershell
# Windows PowerShell
code --add-mcp '{\"name\":\"colibri\",\"command\":\"npx\",\"args\":[\"-y\",\"github:t4zxxx1/colibri-mcp\"]}'
```
```bat
:: Windows cmd
code --add-mcp "{\"name\":\"colibri\",\"command\":\"npx\",\"args\":[\"-y\",\"github:t4zxxx1/colibri-mcp\"]}"
```
Using VS Code Insiders? Replace `code` with `code-insiders`.
3. **Command Palette** — `Ctrl+Shift+P` (`⌘⇧P` on Mac) → **MCP: Add Server** → **Command (stdio)** → paste `npx -y github:t4zxxx1/colibri-mcp` → name it `colibri` → **Global**.
4. **Only for one project** — create `.vscode/mcp.json` in the project folder:
```json
{
"servers": {
"colibri": {
"type": "stdio",
"command": "npx",
"args": ["-y", "github:t4zxxx1/colibri-mcp"]
}
}
}
```
Then open **Copilot Chat**, switch to **Agent** mode, click the 🔧 **tools** icon and make sure **colibri** (8 tools) is ticked. The first time, VS Code asks you to trust the server: say yes.
#### Cline
1. Open the **Cline** panel → click the **MCP Servers** icon → **Installed** tab → **Configure MCP Servers**.
2. `cline_mcp_settings.json` opens: paste this (or add just the `"colibri"` block next to your other servers) and save:
```json
{
"mcpServers": {
"colibri": {
"command": "npx",
"args": ["-y", "github:t4zxxx1/colibri-mcp"]
}
}
}
```
3. Colibri appears in the list with a green dot and its 8 tools. Ask Cline: *"Use Colibri to open example.com"*.
> **Windows:** if VS Code or Cline says `npx` is not found, use `"command": "cmd"` and `"args": ["/c", "npx", "-y", "github:t4zxxx1/colibri-mcp"]`.
### Manual configuration
<details>
<summary><b><code>mcpServers</code> JSON</b> — Cursor, Windsurf, Cline, Roo, Gemini CLI, Claude Desktop…</summary>
`~/.cursor/mcp.json`, `~/.codeium/windsurf/mcp_config.json`, `~/.gemini/settings.json`, `claude_desktop_config.json`…
```json
{
"mcpServers": {
"colibri": {
"command": "npx",
"args": ["-y", "github:t4zxxx1/colibri-mcp"],
"env": { "CB_ALLOWED_DOMAINS": "" }
}
}
}
```
</details>
<details>
<summary><b>OpenAI Codex</b> — <code>~/.codex/config.toml</code></summary>
```toml
[mcp_servers.colibri]
command = "npx"
args = ["-y", "github:t4zxxx1/colibri-mcp"]
```
</details>
<details>
<summary><b>From source</b> — no npx, fastest startup</summary>
```bash
git clone https://github.com/t4zxxx1/colibri-mcp
cd colibri-mcp && npm ci --omit=dev
# then point your client to: node /path/to/colibri-mcp/extension/server/index.js
```
</details>
> **Windows tip:** if your client can't find `npx`, use `"command": "cmd", "args": ["/c", "npx", "-y", "github:t4zxxx1/colibri-mcp"]`.
<div align="right"><a href="#top">↑ back to top</a></div>
---
## Better than Jev — with real numbers
[Jev](https://jevai.net) popularised the **"System One" idea**: answer typed questions with a calibrated confidence and act only above a threshold. It is excellent — and it is a **paid cloud model** with its own tokens and API key.
Colibri ships **the same idea as a local engine** inside the MCP server, specialised for the one decision a browsing agent makes all the time: *which form field does this piece of data go into?* Your existing Claude/Copilot subscription is all you pay.
<div align="center">
<img src="docs/assets/jev-vs-local.svg" alt="Jev 1.14 vs local engine: accuracy, calibration, AUROC, latency, cost" width="100%"/>
</div>
| | Jev 1.14 ([System One Bench](https://systemonebench.dev)) | **Colibri local engine v0.4** |
|---|---|---|
| Choice accuracy | 75.7% | **98.6%** (419 cases) · **87.9%** on the independent Test 5 |
| Calibration error (ECE) | 8.4% (choice) · 6.0% overall | **5.9%** · **4.6%** on Test 5 |
| Confidence AUROC | 0.81 | **0.95** |
| Latency | 136 ms p50 · 175 ms p95 | **1.7 ms p50 · 8.3 ms p95** (≈80× faster) |
| Cost | $0.028 per 1,000 calls + API key | **$0, no key, no network** |
| Wrong autonomous actions | — | **0** (100% precision when it acts alone) |
| Scope | any domain (trained model) | web forms only (heuristics + vocabulary) |
> **Honest note.** The datasets differ: Jev 1.14 was measured on 2,450 general choice questions, the local engine on 419 form-matching cases from test pages written by the author (the independent Test 5 was written *after* the engine changes and measured once). Jev is a generalist; this engine does one job and is tuned for it. Read it as an order of magnitude, not a leaderboard. Full method: [docs/calibrazione.md](docs/calibrazione.md).
<div align="right"><a href="#top">↑ back to top</a></div>
---
## Benchmarks
Same pages, same tasks, eight methods. Every method completed every task. **"Total context"** is the sum of tokens the model re-reads across all turns — what actually drives cost and latency.
<div align="center">
<img src="docs/assets/token-race.svg" alt="Total context tokens for task T1 across eight browser methods" width="100%"/>
</div>
| Task | Screenshots | Playwright MCP | agent-browser MCP | Fast Playwright MCP | **Colibri** |
|---|---|---|---|---|---|
| **T1** 22-field form, 2 pages | 2,480,688 · 154 s | 318,910 · 52 s | 1,373,730 · 108 s | 115,624 · 57 s | **27,760 · 19 s** |
| **T2** list → detail table | 34,630 · 13 s | 73,333 · 15 s | 167,751 · 18 s | 37,480 · 12 s | **20,700 · 10 s** |
| **T3** navigate a heavy home | 23,809 · 10 s | 69,739 · 15 s | 148,169 · 17 s | 36,480 · 12 s | **12,849 · 8 s** |
| Reading one form page | 1,366 (image) | 5,354 | 4,464 | 5,283 | **628** |
| Tool definitions, every turn | — | 4,536 | — | — | **1,799** (code mode: **377**) |
Full tables, assumptions and caveats (the test pages were built alongside this tool, so it plays at home): [docs/benchmark.md](docs/benchmark.md).
<div align="right"><a href="#top">↑ back to top</a></div>
---
## How it works
<div align="center">
<img src="docs/assets/pipeline.svg" alt="Agent → Colibri (rows, engine, safety gate) → Chrome" width="100%"/>
</div>
1. **Page → rows.** A script inside the page keeps only what you can act on: fields, menus, buttons, links, checkboxes — with name, value, state (`req`, `inv`, `off`) and a risk flag. Header, nav and footer are folded; repeated table rows are compressed.
2. **Many steps, one call.** `browse_do` runs up to 40 steps (fill, select, check, click, wait, read) and keeps going across page changes, because targets can be named.
3. **Diff only.** After acting, the model gets verified writes, changed/new elements, form errors and new text (`»Application sent, protocol n. …`) — not the whole page again.
4. **Guided tasks.** With `browse_task` the model doesn't even look at the form: it passes the user's own labels (`"VAT": "01234567890"`, `"start date": "03/11/2026"`) and the local engine decides which field is which, with a calibrated probability. Above the threshold it acts; below, it asks.
### What the model sees
```
http://127.0.0.1:8811/domanda1.html | Nuova domanda - passo 1 di 2
h1: Richiesta di contributo per piano formativo · scroll 0/1747
[fs "Dati dell'azienda"]
e28 text "Ragione sociale" req
e31 sel "Codice ATECO" ="Seleziona" opz:97 req
e33 sel "Provincia" ="Seleziona prima la regione" off req
e34 combo "Comune" req col
[fs "Dichiarazioni"]
e54 chk "Dichiaro di aver letto l'informativa privacy e accetto il t…" [ ] req !c
e56 btn "Salva bozza" !c
e57 btn "Avanti"
[nascosti 73 in hdr,search,nav,ftr: scope:"all" o filter]
```
After 22 steps in **one** call, the entire answer is:
```
ok 22/22
---
16 campi impostati come richiesto · 5 altre variazioni
~ e31 "Codice ATECO" ="62 - Industrie alimentari (62)" req
~ e33 "Provincia" ="Napoli" req
~ e34 "Comune" ="Pozzuoli" req col
```
> Tool descriptions are in terse English for the model; page output keeps the page's language. It works on any site, in any language — keywords for submit, consent, passwords, cards and cookie banners are recognised in English, Italian, French, Spanish, German and Portuguese.
<div align="right"><a href="#top">↑ back to top</a></div>
---
## Tools
| Tool | What it does |
|---|---|
| `browse_open` | Open a URL (auto-starts Chrome), reject non-essential cookies, return the rows. `rows:false` = header and counts only (~150 chars), `filter` = matching rows only. Shows the filter URLs you already used on that site as templates. `search:"..."` uses the site's own search box (and remembers its URL template); 404/400 pages are flagged instead of looking valid. `utm_*`, `gclid`, `gbraid`... are stripped |
| `browse_search` | Web search without Google CAPTCHAs: one row per result `n. title \| url \| snippet`, real links, no ads. DuckDuckGo first, Bing as automatic fallback if a check appears. Runs in a background tab (several in parallel); `site:"idealo.it"` limits to one site |
| `browse_view` | Rows of the current page, with `filter` (alias `match`), `scope:"all"` and paging. `scope:"areas"` gives refs to clickable areas with no label (icons, canvases, "drag here" zones). Generic links repeated in cards ("Read more", "Details") get the card title as context: `@"Card title": e12 link "Read more"` |
| `browse_do` | Up to 40 steps in order; returns only the diff. Waits for the DOM and for requests started by each step to go quiet (no manual `wait` on SPA forms). Optional `script`: an async JS body that runs **locally** after the steps in a `node:vm` sandbox and returns only its result — loops (pagination), `.filter()/.map()`, exact sums: `{"steps":[], "script":"const t = await colibri.tables(); return t.slice(1).filter(r => +r[2] > 1000).length"}`. See [Local script](#local-script-sandbox) |
| `browse_read` | Read without acting: `text` (main content only: no menus, header, footer, cookie banners or stray JavaScript; `selector:"body"` for everything), `table`, `find`, `describe`, `cards` (one row per result card with button refs: `21:39 \| 23:01 \| 2 h 25 \| direct \| € 9,90 \| [e54]`, shared texts in one line; finds results inside components and big portals, adds screen-reader summaries only when they carry hidden times or prices; `links:true` adds each result's clean URL; prices split into `tot` with shipping, `rif` reference price with an implausible-discount warning and `cond:` conditional discounts marked unconfirmed; `sort:"price"`, `filter:"nero -ricondizionato"`, `maxPrice`), `fields` (only the keys you ask: `query:"prezzo, classe energetica, dimensioni"`, warns when another site gives a different value for the same model), `pdf` (text of a downloaded or open PDF, paged). `filter` (alias `match`) on `text`/`table` keeps only matching lines or rows, table header included. Waits for pending requests first: no `wait` needed after a search. With `url` it reads another page in a background tab without leaving the current one (parallel, cached 10 min, `fresh:true` to reload) |
| `browse_task` | Jev-style guided task: params by human labels (same-name fields in different sections are told apart: `"address registered office"` vs `"address shipping"`, also inside Shadow DOM), `answers`, `submit`, `expect`, typed `extract` (text, number, money, date, url, table). Dates split into day / month / year (+ hour / minutes) fields are filled from one value: `"departure": "12/06/2026 10:30"`. A whole search in 1 call: `{url, params:{from, to, date, time}, submit:"Search", read:"cards"}` → ~176 tokens |
| `browse_screenshot` | Small JPEG (~900 tokens) of the window, an element or a region — only when text is not enough |
| `browse_stats` | Tokens used this session vs screenshots |
<div align="right"><a href="#top">↑ back to top</a></div>
---
## Safety
- **`!c` side effects** — submit, confirm, save, delete, pay, accept terms, upload: blocked until the user says OK, then repeated with `"confirm": true`. Buttons that only open a menu (`aria-haspopup` / `aria-expanded`) and quantity steppers ("remove passenger") are not blocked.
- **`!x` secrets** — passwords, card numbers, CVV, OTP, IBAN: the AI can never type them, not even with confirmation. You type them in the window.
- **Guided tasks** act alone only above the confidence threshold; submit never fires with open questions, errors or empty required fields.
- **Allowed domains**, no `file://` / `javascript:`, page text treated as untrusted data (prompt-injection resistant), refs unique per session.
### Local script sandbox
`browse_do.script` and `browse_code` (`CB_CODE_MODE=1`) run the agent's JavaScript in a `node:vm` context **inside a separate worker thread** with a memory cap and a hard timeout (60 s, at most 60 Colibri calls, result capped at ~6,000 tokens with `--- TRUNCATED ---`).
- No `process`, `require`, `import()`, `fetch`, `fs`, `child_process`, timers or host `globalThis`; `eval`/`new Function` are disabled (`codeGeneration: { strings: false, wasm: false }`). The only API is the `colibri` object, built inside the sandbox and talking to the server with plain JSON strings.
- Every `colibri.*` call goes through the same handlers and checks as the tools: `!x` fields stay blocked, `!c` actions stay blocked. A `confirm:true` written **inside** the script is dropped: it only counts when it is on the MCP call itself (`browse_do {..., "confirm": true}` / `browse_code {..., "confirm": true}`), i.e. after the user's OK.
- `node:vm` alone is not a security boundary (Node says so); here it is combined with the worker (killed on timeout) and with no host object reachable from the script.
<div align="right"><a href="#top">↑ back to top</a></div>
---
## Configuration
| Env var | Default | |
|---|---|---|
| `CB_ALLOWED_DOMAINS` | all | comma-separated allow-list |
| `CB_CONFIRM_SENSITIVE` | `true` | keep it on |
| `CB_HEADLESS` | `false` | invisible browser |
| `CB_PROFILE_DIR` | `~/.colibri/profile` | logins and cookies live here |
| `CB_DOWNLOADS_DIR` | `~/Downloads` | |
| `CB_CHROME_PATH` | auto | only if Chrome/Edge is not found |
| `CB_ALLOW_SCREENSHOT` | `true` | |
| `CB_HUMAN_WAIT` | `50` | seconds Colibri waits for you to solve a CAPTCHA / human check (`0` = don't wait) |
| `CB_TOOLS` | `all` | tool profile: `all`, `lite` (search, open, do, read: ~1,240 tokens per turn instead of ~1,800), `read` (search, open, read: ~640), or a list like `search,open,read` |
| `CB_STRIP_TRACKING` | `true` | remove `utm_*`, `gclid`, `gbraid`, `fbclid`... from URLs Colibri opens |
| `CB_CLOSE_POPUPS` | `true` | close promotional popups (newsletter, welcome discount) with their own Close/× button; never login, payment or multi-field windows |
| `CB_HUMAN_SHOW` | `true` | when headless and a check doesn't clear on its own, reopen Chrome visibly on the same page |
| `CB_MODE` / `CB_CDP_URL` | `launch` | `attach` = **your everyday Chrome, already open** (logins kept, see FAQ) · `cdp` = **real Chrome mode**: a normal Chrome on `--remote-debugging-port=9222` |
| `CB_TAB` | `active` (`attach`/`cdp`), `new` (`launch`) | `active` = work in the tab you are looking at · `new` = Colibri's own tab, closed on exit |
| `CB_USER_DATA_DIR` | auto | in `attach` mode, the Chrome profile folder to look in (default: Chrome, Beta, Canary, Edge, Brave, Chromium) |
| `CB_AUTO_CHROME` | `true` | in `cdp` mode, start the real Chrome by itself if nothing is listening on the port |
| `CB_REAL_PROFILE_DIR` | `~/.colibri/real-chrome` | profile used by the real Chrome that Colibri starts |
| `CB_SEARCH_URL` | DuckDuckGo, then Bing | search page(s) for `browse_search`, `{q}` = query; several separated by spaces are tried in order |
| `CB_CODE_MODE` | `0` | `1` = **code mode**: one tool, `browse_code {code, confirm?}`, with compact TypeScript-like signatures of the others (`colibri.open/search/view/do/read/task/text/tables/stats`). ~80% fewer definition tokens per turn; no screenshots in this mode |
<div align="right"><a href="#top">↑ back to top</a></div>
---
## Limits
- Charts, canvas and maps have no text: the agent falls back to the small screenshot (with refs drawn on it) and relative-coordinate clicks.
- Local scripts (`script`, `browse_code`) have no network, files or timers and stop after 60 s; `CB_CODE_MODE=1` has no screenshot tool.
- The `browse_task` engine is a calibrated vocabulary, not a trained model: with unknown jargon it asks more often (never acts wrongly). Answers are remembered per site.
- CAPTCHAs and logins are done by you, in the window: Colibri never bypasses them, it pauses and resumes on its own (see FAQ).
- Tested on pages modelled on public-administration portals: please report sites that don't work in [Issues](https://github.com/t4zxxx1/colibri-mcp/issues).
<div align="right"><a href="#top">↑ back to top</a></div>
---
## FAQ
<details>
<summary><b>Do I need a Jev account, an API key or a paid plan?</b></summary>
No. The Jev-style engine runs locally inside Colibri. You only use the agent you already have (Claude, Copilot, Codex, Gemini…).
</details>
<details>
<summary><b>Which browser does it drive? Will it see my logins?</b></summary>
Chrome or Edge, with a dedicated profile in `~/.colibri/profile`: log in once and it remembers. To work **in your own Chrome, in the tab you already have open** (with all your logins), use `CB_MODE=attach`: see the next question.
</details>
<details>
<summary><b>Can Colibri use my Chrome and the tab I'm on, instead of opening a new one?</b></summary>
Yes, with **attach mode** (Chrome 144+). No new window, no new tab, no new logins: Colibri works in the tab you are looking at.
1. In your Chrome open `chrome://inspect/#remote-debugging` and turn on **"Allow remote debugging for this browser instance"** (once; Chrome remembers it).
2. Add `"env": { "CB_MODE": "attach" }` to the Colibri entry in your agent's MCP config.
3. On the first call Chrome asks you to **allow** the connection: click *Allow*.
Colibri finds the running Chrome by itself (the `DevToolsActivePort` file in the profile) and picks the focused/visible tab, falling back to the last one you used. If you switch tab, the step `{"tab":"active"}` follows you. It never closes your Chrome or your tabs; only tabs it opened itself are closed on exit. Check the setup with `npx -y github:t4zxxx1/colibri-mcp --attach`. Prefer a separate tab? Add `"CB_TAB": "new"`.
</details>
<details>
<summary><b>How do I update or pin a version?</b></summary>
`github:t4zxxx1/colibri-mcp` follows the latest `main`. To pin a release use `github:t4zxxx1/colibri-mcp#v0.4.0`. Claude Desktop users download the new `.mcpb` from [Releases](https://github.com/t4zxxx1/colibri-mcp/releases).
</details>
<details>
<summary><b>Can it run invisibly, on a server or in CI?</b></summary>
Yes: `CB_HEADLESS=true`. Logins and CAPTCHAs still need a visible window the first time.
</details>
<details>
<summary><b>What happens when a site asks for a CAPTCHA or "verify you are human"?</b></summary>
Colibri recognises the check (Cloudflare "Just a moment" / Turnstile, reCAPTCHA, hCaptcha, DataDome, PerimeterX "press & hold", AWS WAF, Arkose, GeeTest, Friendly Captcha, image captchas) and **does not try to cheat it**. Instead it:
1. waits a few seconds: many checks (e.g. Cloudflare) clear by themselves;
2. otherwise shows a bar on top of the page — *"🐦 Colibri is paused: complete the check below"* — and brings the window to the front (if it was running headless it reopens Chrome visibly on the same page);
3. resumes **automatically** as soon as you solve it, and continues the remaining steps;
4. for a CAPTCHA inside a form it fills everything else, then waits for you before pressing *Submit*.
If you don't solve it within `CB_HUMAN_WAIT` seconds (default 50) the agent is told to ask you, and `browse_view` resumes waiting. Sites with very strict bot protection work best in **real Chrome mode** (next question).
</details>
<details>
<summary><b>The Cloudflare check keeps looping. What is "real Chrome mode"?</b></summary>
By default Colibri starts Chrome through Playwright, which marks the browser as automated, so some sites loop on "verify you are human". Real Chrome mode makes Colibri drive a **normal Chrome** instead. No stealth tricks: it is simply a regular browser.
1. Add `"env": { "CB_MODE": "cdp" }` to the Colibri entry in your agent's MCP config.
2. That's it: on the first call Colibri starts a normal Chrome on port 9222 (profile in `~/.colibri/real-chrome`). To start it yourself: `npx -y github:t4zxxx1/colibri-mcp --chrome`.
In this mode Colibri **never closes your Chrome**: on reconnect (`/mcp`) it only closes the tabs it opened. When a check blocks in the default mode, Colibri itself suggests switching.
</details>
<details>
<summary><b>Can the AI pay, submit or type my password by mistake?</b></summary>
No. Side effects (`!c`) need your explicit OK, secrets (`!x`) can never be typed by the AI. See [Safety](#safety).
</details>
<details>
<summary><b>What is code mode and when should I use it?</b></summary>
With `CB_CODE_MODE=1` the model sees a single tool, `browse_code`, and writes a short async script (`await colibri.open({url}); const t = await colibri.tables({filter:"2026"}); return t.length`). Tool definitions drop from about 1,800 to about 380 tokens per turn and loops/filters/sums happen locally, so only the final result enters the chat. It is opt-in: the default 8 tools are unchanged, and `browse_do` accepts the same scripts through `script`. Everything stays on your PC.
</details>
<div align="right"><a href="#top">↑ back to top</a></div>
---
## Development
<details>
<summary><b>Build, test, benchmark, release</b></summary>
```bash
npm ci # dev + runtime deps
npm test # 360+ end-to-end tests over the real MCP protocol (needs Chrome or Edge)
npm run test:live # optional checks on real sites: search, PDF, httpbin form, Wikipedia, upload area (network)
npm run bench # vs screenshots, Playwright MCP, agent-browser, Fast Playwright MCP
npm run bench:task # repeated train search: calls, tokens, seconds (add paths to older index.js to compare)
npm run bench:pages # Vinted / Amazon / calendar / discount-code scenarios: calls and tokens (same)
npm run calibrate # engine calibration (VERIFY5=1 adds the independent Test 5)
npm run build # dist/colibri.mcpb
```
Docs (Italian): [how it works](docs/come-funziona.md) · [benchmark](docs/benchmark.md) · [calibration & Jev comparison](docs/calibrazione.md).
Release: bump `version` in `package.json`, `extension/manifest.json`, `extension/server/package.json`, then `git tag vX.Y.Z && git push --tags` — CI tests, builds the `.mcpb` and publishes it.
</details>
---
## Support the project
If it saves you tokens, **⭐ star the repo** — it's the best way to help others find it. Ideas, bugs and sites to support: [open an issue](https://github.com/t4zxxx1/colibri-mcp/issues). Made with care in Italy by **[@t4zxxx1](https://github.com/t4zxxx1)** · Roca Software.
☕ **Buy me a coffee** — if Colibri is useful to you, you can support its development with a PayPal donation:
<a href="https://www.paypal.com/donate/?business=cavacarlo%40hotmail.it¤cy_code=EUR&item_name=Colibri+MCP"><img alt="Buy me a coffee with PayPal" src="https://img.shields.io/badge/Buy%20me%20a%20coffee-PayPal-FFDD00?style=for-the-badge&logo=paypal&logoColor=black&labelColor=0d1117"/></a>
## License
MIT — see [LICENSE](LICENSE). © 2026 Roca Software.
TDQS
Scored across 8 tools
Open/read/view/do all return page content and overlap: browse_open returns rows, browse_view returns current page rows, browse_read reads the page (including 'body'), and browse_open also accepts a url to load a background tab, which browse_read duplicates. The descriptions give hints (navigate vs. read structured data vs. re-read current page vs. multi-step acting), but an agent can easily pick the wrong one for 'get the content of this page'. browse_search, browse_task, browse_screenshot, and browse_stats are clearly distinct.
Every tool uses the same browse_ prefix plus a single lowercase word in snake_case, with no camelCase or stylistic mixing. The verb choices (open, read, view, do, search, task, screenshot, stats) are readable and predictable within that scheme.
Eight tools is well within the ideal range and each maps to a recognizable browser-automation capability (navigate, extract, act, search, screenshot, form fill, diagnostics). Nothing feels redundant at the count level.
The surface covers navigation, extraction (text/table/cards/fields/find/pdf), search, multi-step actions, form filling, screenshots, and token stats, so most browser workflows are achievable. Minor gaps exist: no explicit single-click/back-forward or tab-management tool, and clicking is only implied through browse_do steps.