jev-browser-mcp
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., "@jev-browser-mcpOpen the login page and sign in with my test account"
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.
jev-browser
Browser automation where an LLM plans and Jev decides.
Unofficial project, not affiliated with TypeSafe. It calls the TypeSafe System One API with your own API key.
The calling LLM (Claude, via MCP) says what outcome it wants, one step at a time, and hands over any text to type. For each round of a step, code describes the page. Then one ~300 ms Typesafe System One request asks Jev several questions at once: which element, which action, which value, and is the step done / blocked / showing an error / about to do something irreversible. Playwright performs the action. The LLM never reads page snapshots unless it chooses to take over.
Claude ── browser_do("Log in", {email, password}) ──▶ jev-browser
│ loop until done / stuck / needs confirmation
│ 1. settle (network + DOM quiet)
│ 2. describe (elements, labels, state, visible text, diff, counts)
│ 3. Jev (done? error? irreversible? tool? target? value?)
│ 4. act (Playwright)
Claude ◀── { status: "done", url, actions[], done_score } ─┘https://github.com/user-attachments/assets/2e688df9-4985-4854-8ebe-ba97c9d13d68
Jev only answers with probability distributions: yes/no (noul), pick one option (choice)
or a rating (score). It never writes text. So everything free-form comes from the caller as
candidates, and code turns disagreement or low confidence into a status the LLM can act on.
Results
42 tasks in 16 categories on live sites (see RESULTS.md):
40/42 correct in the latest run, 0 false "done" claims (38/41 twice before the latest fixes). Remaining misses: counting ("add until 3", flagged
likely_done) and verifying a sort.~300 ms per Jev call, 2–4 calls for most steps; a 5-step checkout takes ~14 s end to end.
Pause before irreversible actions: across ~200 rounds it flagged only saucedemo's "Finish" (place order) button.
Less page content for the LLM than a Playwright-MCP-style loop on the same tasks (estimate): median 5× per task, ≈8k vs ≈557k tokens in total. Big pages dominate the total: a Wikipedia article is ~149k snapshot tokens. On tiny pages there is no saving. The page reading moves to Jev.
Works on: forms, native and custom dropdowns, checkboxes and radios (including styled replacements), dynamic loading, modals, JS dialogs, hover, right-click, drag and drop, key presses, file upload, iframes, shadow DOM, new tabs, pages with 2,000+ elements (two-stage selection), and non-English UIs.
Known limits, so write steps around them:
Ordered sub-goals in one step ("add two todos, complete one, clear completed") → split into one outcome per step.
Open-ended goals ("scroll to load more") → make them measurable or check yourself.
Judgements that compare many values (is this table sorted, did exactly one thing change) → verify with
browser_checkorbrowser_snapshot.
Related MCP server: playwright-mcp
Quick start (MCP, from npm)
npx playwright install chromium # once
claude mcp add jev-browser -e TYPESAFE_API_KEY=your-key -- npx -y -p jev-browser jev-browser-mcpAny MCP client works the same way: command npx, args -y -p jev-browser jev-browser-mcp,
env TYPESAFE_API_KEY. Add JEV_BROWSER_HEADED=1 to watch it work.
Setup (from source)
git clone https://github.com/Ying-Kai-Liao/jev-browser && cd jev-browser
npm install
npm run setup # downloads Chromium for Playwright
cp .env.example .env # add TYPESAFE_API_KEY
npm test # offline tests (no network, no key)
npm run test:e2e # MCP server end to end (network + key)Use from Claude Code (MCP, from source)
claude mcp add jev-browser -- node /absolute/path/to/jev-browser/bin/jev-browser-mcp.mjsFrom a source checkout the server reads TYPESAFE_API_KEY from the repo's .env.
tool | purpose |
| navigate and wait for the page to settle |
| work toward one outcome; returns a status |
| yes/no about the page → |
| pick among given options → distribution |
| compact numbered element list, for taking over |
| act on an element directly, no model; confirm/prompt dialogs are dismissed unless |
| PNG image |
| end the session |
browser_do statuses:
status | meaning / what the caller should do |
| goal reached |
| the page looks done but Jev is unsure: verify before moving on |
| a sign-in wall and no credentials in |
| next action, or a confirm dialog it opened (then dismissed), looks irreversible (order, pay, send, delete); see |
| the page shows an error after the last action (e.g. wrong password); see |
| no progress; see |
| low confidence in the target; pick from |
| captcha, access denied, error page |
Env: JEV_BROWSER_HEADED=1 shows the browser, JEV_BROWSER_PROFILE=/dir keeps a persistent
profile (logins survive restarts), JEV_BROWSER_LOG=1 prints per-round decisions to stderr.
Library
// npm install jev-browser && npx playwright install chromium
import { JevBrowser } from "jev-browser";
const b = await JevBrowser.launch({ headed: true });
await b.open("https://www.saucedemo.com/");
await b.do("Log in", { values: { username: "standard_user", password: "secret_sauce" } });
await b.do("Add the Sauce Labs Backpack to the cart");
const p = await b.check("Does the cart badge show 1 item?"); // 0..1
await b.close();Watch it
node examples/x-profile-demo.mjs # headed, read-only x.com walkthrough with decision highlightsEach action is outlined in red with Jev's choice and scores before it happens (highlight: true,
on by default in the MCP server when JEV_BROWSER_HEADED=1). Some sites, x.com included, serve a
blank page to headless Chromium: use headed mode there.
CLI
node bin/jev-browser.mjs do https://the-internet.herokuapp.com/login "Log in" username=tomsmith 'password=SuperSecretPassword!'
node bin/jev-browser.mjs run examples/flows/todomvc.json --headedWriting good steps
One observable outcome per step: "Log in", "Open the Pull requests tab", "Mark 'buy milk' completed".
Every string goes in
valueswith a meaningful key (email,postal_code,file).Treat
likely_done,needs_confirmation,ambiguousandstuckas your turn: check, snapshot or ask the user, don't just retry.After steps with side effects,
browser_checkwhat must not have changed.
Benchmark
node bench/run.mjs --set all # base, hard, guard (+ bench/tasks.local.mjs if present)
node bench/run.mjs --only ti-login,drag
node bench/context-cost.mjs bench/results/<run>.jsonPrivate sites and credentials go in bench/tasks.local.mjs (git-ignored), exporting LOCAL.
Layout
src/session.mjs JevBrowser: settle, snapshot, decide (1 or 2 stages), resolve, act, do, check, choose
src/page-script.mjs runs in each frame: elements, labels, state, visible text, metrics, dialogs
src/page-model.mjs pure helpers: diff between pages, counts, compact rendering
src/jev.mjs System One API client
src/flow.mjs JSON flow runner
bin/ CLI and MCP server
bench/ tasks with ground-truth checks, runner, context-cost estimate
test/ offline fixture tests, MCP end-to-end test
NOTES.md design notes: what works with Jev, what doesn't, and whyReleasing
CI runs the offline tests on every push and pull request. To publish, bump the version and push
the tag; .github/workflows/release.yml tests, publishes to npm with provenance and creates a
GitHub release:
npm version patch # or minor / major: commits and tags vX.Y.Z
git push --follow-tagsPublishing uses npm trusted publishing, set up once with
npx npm@latest trust github jev-browser --file release.yml --repo Ying-Kai-Liao/jev-browser --allow-publish.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
AI-powered web automation. Navigate websites using AI agents for one page or a thousand
AI-powered web automation. Navigate websites using AI agents for one page or a thousand
AI-powered browser automation — navigate, click, fill forms, and extract data from any website.
E2LLM gives your AI eyes and hands in a real browser: structured perception (SiFR) plus action.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides browser automation capabilities for LLMs using Playwright, leveraging structured accessibility snapshots to interact with web pages without needing vision models. It enables tasks like web navigation, data extraction, and automated testing through a lightweight and deterministic toolset.6 npmApache 2.0
- FlicenseNot gradedqualityCmaintenanceEnables LLMs to autonomously navigate, type, click, and extract data from web pages using Playwright, without hardcoded selectors.4,799 npm-
- AlicenseNot gradedqualityCmaintenanceEnables LLMs to interact with web pages through structured accessibility snapshots using Playwright, providing fast and lightweight browser automation without needing vision models.4,633,135 npmApache 2.0
- AlicenseBqualityBmaintenanceEnables LLMs to automate web browsers using Playwright through structured accessibility snapshots, allowing interaction with web pages without needing vision models.244,633,135 npmApache 2.0