New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

mantis-browser

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mantis-browser

A lean browser interface for AI agents: web pages as short numbered text.

Source
npmnpm
Version
0.1.9
Version published
Weekly downloads
955
139.35%
Maintainers
1
Weekly downloads
 
Created
Source

mantis

Lets AI agents browse the web as short, numbered text instead of screenshots.

perzian.dev/mantis · by Perzian

It works with Claude Code, Codex, Cursor or your own agent as an MCP server. Install in two commands.

npx -y -p mantis-browser mantis install
claude mcp add mantis -- npx -y -p mantis-browser mantis-mcp
npx -y -p mantis-browser mantis read https://example.com   # try it without an agent

Windows, Linux servers and other agents: SETUP.

Side-by-side replay of the same task with Mantis and Playwright MCP: Mantis finishes in 10 calls and about 292k input tokens, Playwright MCP in 22 calls and about 733k

One real task (Luna, logged runs replayed): about a third less time, over 2x fewer input tokens, about half the calls. This is a selected example from 16 long tasks; medians across all 16 are in Results. Full video.

Security and threat model: SECURITY.md.

How it works

Agent sends open/click to Mantis; Mantis reads the page in Chromium, numbers each control and returns only what changed; CAPTCHA, 2FA and payment go to you

What the agent sees

A shop page with a cookie popup becomes 8 numbered lines; after click #3 only the changes come back

Results

Mantis vs the accessibility tree (Playwright MCP) on public sites, gpt-6-luna and claude-haiku-5-5. Every cell is a per-run median; time is end-to-end wall time per run:

Long tasks (correct: 14 keyed tasks, 42 runs per cell; medians: all 16 tasks, 48 runs per cell; both approaches run in the same session):

Luna MantisLuna treeHaiku MantisHaiku tree
Correct35/4234/4240/4240/42
Input tokens (median)244k345k268k506k
Tool calls (median)17241930
Time (median)42s66s54s85s

Short tasks (30 tasks, 90 runs per cell; tree and screenshot columns are the earlier 20261026 run):

Luna MantisLuna treeLuna screenshotHaiku MantisHaiku treeHaiku screenshot
Correct88/9086/9090/9090/9088/9088/90
Input tokens (median)64k99k104k38k88k33k
Tool calls (median)347356
Time (median)16s31s35s19s30s23s

Long tasks: accuracy within one run, 29-47% fewer input tokens, 29-37% fewer calls and about a third less time than the tree. Short tasks: accuracy equal or better than the tree, 35-57% fewer input tokens. Short-task times compare a newer Mantis build with the earlier tree and screenshot run, so treat that gap as indicative. Screenshots score 2 runs higher on Luna but use more tokens and time there; on Haiku they use fewer tokens.

Scores come from deterministic answer keys on the final page state. Two long iframe/tab tasks can't be keyed and are left out of the long-task counts. Method, screenshot baseline and caveats: bench/RESULTS.md.

Limitations

  • No canvas input: canvas, WebGL, maps and drawing apps are described only as canvas, with no coordinate click or draw tool.
  • Login and bot walls need ask_human, which needs a display.
  • Benchmarked only on read, navigate and form-fill tasks on public sites, with two models. The screenshot baseline is this project's own tool, and a few tasks were swapped after results (disclosed).
  • Page content is untrusted data; see SECURITY.md.
  • Small v0.1.x beta.

Learn more

License

MIT

Keywords

mcp

FAQs

Package last updated on 27 Oct 2026

Related posts