antibrowser-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., "@antibrowser-mcp Go to example.com and read the main content."
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.
Antibrowser MCP
A stdio MCP server built on cloakbrowser (stealth Chromium) that lets LLM agents open web pages and interact with them via a browser-use-style accessibility tree with numeric indices — keeping token usage low.
Features
Persistent user profile at
$HOME/.antibrowser/data-dir(cookies, localStorage, cache survive restarts).Accessibility-tree snapshot: LLM receives an indexed text like
[1] button "Submit"and callsclick(1).Default headless; flip to headed at runtime via
set_headed(true)for debugging — profile state survives.12 tools:
navigate,snapshot,click,fill,press,scroll,get_text,back,forward,set_headed,set_humanize,close.
Related MCP server: Playwright MCP
Installation
git clone <this-repo>
cd anti-browser-mcp
uv synccloakbrowser downloads its patched Chromium on first launch; if that fails, run:
uv run python -c "import cloakbrowser; cloakbrowser.ensure_binary()"Configuration
Env var | Default | Meaning |
|
| Browser profile directory |
|
|
|
|
| Navigation timeout |
| unset | cloakbrowser license key (if required by your plan) |
| unset | Proxy URL |
|
|
|
Wiring into Claude Code
claude mcp add antibrowser -- uv --directory /path/to/anti-browser-mcp run anti-browser-mcpWiring into Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"antibrowser": {
"command": "uv",
"args": ["--directory", "/path/to/anti-browser-mcp", "run", "anti-browser-mcp"]
}
}
}Usage example (in Claude)
Open example.com and tell me the main heading.
Claude will call navigate, then snapshot, then get_text(1) (or whichever index the heading got) and reply.
Manual login CLI
Before letting the LLM drive the browser, you usually need to log in to sites once. The antibrowser open command launches cloakbrowser in headed mode against the same profile the MCP server uses.
uv run antibrowser open https://github.com https://mail.google.comA browser window opens. Log in to each site. When done, return to the terminal and press Enter — the browser closes and cookies/localStorage are persisted to your profile at ~/.antibrowser/data-dir (or $ANTIBROWSER_DATA_DIR).
Pass --humanize to enable cloakbrowser's human-like input layer (slower, randomized mouse/keyboard) — useful for sites with strict bot detection:
uv run antibrowser open --humanize https://github.comNow when the LLM (via the MCP server) calls navigate https://github.com, the session is already authenticated.
Profile is locked
If you see:
Error: profile at ... is locked. Is the antibrowser MCP server or another 'antibrowser open' running? Close it first.it means another process is using the profile. Chromium only allows one process per profile directory. Stop the MCP server (or close the other antibrowser open session) and retry.
Installed script
After uv sync, the entry antibrowser is installed into the venv. On Windows call it directly:
D:\path\to\anti-browser-mcp\.venv\Scripts\antibrowser.exe open https://github.comDevelopment
uv run pytest -q # all tests
uv run pytest tests/test_config.py -v # unit only
uv run pytest -k "not persistence" -v # skip slow persistence testsAll unit and integration tests are expected to pass locally.
Available Tools
12 toolsbackA
Go back one step in browser history.
Inputs: no named parameters. Returns: object
clickA
Click the element at snapshot index N. May trigger navigation.
Inputs: index (required). Returns: object
closeA
Close the browser. Next tool call lazy-launches again against the persistent profile.
Inputs: no named parameters. Returns: object
fillC
Replace the value of an input at snapshot index N with the given text.
Inputs: text (required), index (required). Returns: object
forwardA
Go forward one step in browser history.
Inputs: no named parameters. Returns: object
get_textA
Get text content of element at index N, or the whole page body if index is omitted.
Inputs: index. Returns: object
pressA
Press a keyboard key (Playwright key name, e.g. 'Enter', 'ArrowDown', 'Control+a').
Inputs: key (required). Returns: object
scrollA
Scroll the page. direction in {up, down, left, right}; amount is wheel ticks (default 3).
Inputs: direction (required), amount. Returns: object
set_headedA
Restart the browser in headed (headed=True) or headless (headed=False) mode. Profile state persists across restart.
Inputs: headed (required). Returns: object
set_humanizeA
Restart the browser with humanize on (humanize=True) or off (humanize=False). Useful when a site's bot detection needs more human-like input. Profile state persists across restart.
Inputs: humanize (required). Returns: object
snapshotC
Capture an indexed accessibility tree snapshot of the current page. Indices are valid until the next navigation or snapshot.
Inputs: viewport_only. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool has a clearly distinct purpose: navigation, history, clicking, filling, text extraction, scrolling, snapshot, closing, and configuration. No two tools overlap in functionality.
All tool names use a consistent lowercase verb or verb_noun pattern (e.g., 'click', 'get_text', 'set_headed'). No mixed naming conventions.
12 tools is well-scoped for browser automation, covering navigation, interaction, history, scrolling, and configuration without unnecessary bloat.
The set covers core browser interactions (navigate, click, fill, scroll, snapshot, history, close) and adds useful configuration (headed, humanize). Missing explicit operations like wait or element selection by CSS selector, but snapshot indexing covers interaction well.
Maintenance
Related MCP Connectors
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
A real browser for your agent: screenshots, page checks, Markdown and PDFs.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables browser automation and web page interaction through Playwright's accessibility tree, allowing LLMs to navigate, fill forms, click elements, and extract content without requiring vision models or screenshots.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceProvides browser automation capabilities using Playwright's accessibility tree, enabling LLMs to interact with web pages through structured data without screenshots or vision models. It's designed for specialized agentic loops that benefit from persistent state and iterative reasoning over page structure.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceProvides browser automation capabilities for LLMs using Playwright's accessibility tree, enabling web page interaction through structured data without vision models.Apache 2.0
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to browse and interact with web pages through a persistent headless Chromium session, serving compact structured orientations, targeted element queries, and full detail only when explicitly requested. It supports navigation, observation, form filling, monitoring, and session management while cutting token overhead by up to ~140x versus raw accessibility-tree dumps.4 npm-