local-browser-mcp
Controls a real local Brave browser over CDP, enabling tab management, navigation, DOM snapshots, clicks/typing, screenshots, authenticated downloads, and human-in-the-loop CAPTCHA handling using the user's persistent profile.
Enables accessing authenticated Elsevier content through the user's real browser session, including reusing institutional/library logins, handling Cloudflare challenges, and downloading PDFs or supporting information.
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., "@local-browser-mcp Open this Wiley article in my browser and download the PDF."
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.
local-browser-mcp
Zero-terminal, one-click MCP server & native DeepSeek Harness (DSH) bundle that connects your AI agents — DeepSeek Harness (DSH), OpenAI Codex, Antigravity, Doubao / Trae, Claude Code, Claude Desktop, Cursor — directly to your real local Chrome, Edge, or Brave browser via CDP.
Bypass Cloudflare 403 on RSC, Wiley, ACS, Elsevier, and Springer by reusing your real browser fingerprint, cookies, campus/institutional login, and persistent profile — with built-in human-in-the-loop CAPTCHA waiting and authenticated PDF / Supporting Information (SI) downloading.
Easiest Setup (No Manual Config Editing!)
Option 1: DeepSeek Harness (DSH) — 1 Step
local-browser-mcp is a native DSH bundle. Simply tell DSH in chat:
"Install plugin
local-browser-mcp"
(Or search & install local-browser-mcp in DSH Plugin Manager.) Done — no terminal or config editing required.
Option 2: Visual One-Click Setup Wizard (All Other Agents)
Don't want to edit JSON/TOML files by hand?
Windows: Download
一键安装配置.cmdand double-click it.macOS: Download
install-macos.commandand double-click it.Or run one command:
npx -y local-browser-mcp ui
A visual setup page opens in your browser automatically:
Click "Open Dedicated Browser" → log in once to your university library / WebVPN / publisher accounts (saved permanently).
Click "One-Click Enable All" → automatically detects Codex, Antigravity, Trae / Trae CN (Doubao IDE), Claude, and Cursor, backs up existing configs, and enables
local-browser-mcpwith--auto-launch.
Option 3: One-Line Auto-Install (Let Your AI Run It)
npx -y local-browser-mcp installAutomatically detects installed agents, backs up existing files, and merges the MCP config safely. To remove later:
npx -y local-browser-mcp uninstallRelated MCP server: Antigravity Browser Controller
Why local-browser-mcp?
Problem | Headless / |
|
Cloudflare 403 / TLS fingerprinting | Blocked immediately | Uses your real Chrome/Edge/Brave binary & TLS stack |
Campus VPN / Institutional SSO / Cookies | No login state | Persistent local profile keeps all logins & cookies |
Cloudflare Turnstile / CAPTCHA | Stuck forever | Auto-detects challenge + |
Downloading PDFs / SI files behind auth | Fails with 403 / HTML login page |
|
Multi-agent compatibility | Locked to one app | Visual one-click wizard + native DSH bundle + standard MCP ( |
Heavy browser downloads (300 MB+) | Playwright downloads its own Chromium | Zero browser binaries downloaded — uses the Chrome/Edge you already have |
Available MCP Tools (16)
Tool | Description |
| Check CDP connection, browser version, open tabs, and detected local browsers |
| List open page tabs ( |
| Navigate to a URL (optionally in a new tab) and auto-detect Cloudflare / CAPTCHA challenges |
| Compact numbered DOM snapshot of visible & interactive elements with |
| Extract clean visible text from the page or a CSS selector |
| Click by |
| Insert text into focused element or target ( |
| Press a keyboard key ( |
| Scroll page with real mouse-wheel events |
| Capture viewport or clipped region as PNG/JPEG image |
| Authenticated file download inside the real browser session (ideal for PDFs, SI zips/docx, datasets) |
| Focuses the tab and waits for you to click a Cloudflare Turnstile / CAPTCHA / SSO login, resuming automatically |
| Run async JavaScript in the page context and return JSON result |
| Read captured console logs & uncaught exceptions |
| Inspect recent network requests (status, MIME type, URLs — great for discovering PDF/SI URLs) |
| Close a specific tab or active tab |
Print Manual Config Snippets
npx local-browser-mcp setup --client allStreamable HTTP Mode (for Doubao / Coze / Web Agents)
npx local-browser-mcp serve --http --port 3845 --auto-launch
# Endpoint: http://127.0.0.1:3845/mcpFull CLI Reference
local-browser-mcp ui [--port 0] [--cdp-url http://127.0.0.1:9222]
local-browser-mcp install [--clients codex,cursor] [--all] [--dry-run]
local-browser-mcp uninstall [--clients codex,cursor] [--dry-run]
local-browser-mcp launch [--channel chrome|edge|brave] [--port 9222]
local-browser-mcp doctor [--cdp-url http://127.0.0.1:9222]
local-browser-mcp serve [--cdp-url <url>] [--auto-launch] [--download-dir <dir>] [--http --port 3845]
local-browser-mcp setup [--client dsh|codex|antigravity|doubao|trae|claude-code|claude-desktop|cursor|all]Security Note
Both the visual wizard and CDP bind strictly to
127.0.0.1(localhost only). The wizard enforces per-session CSRF tokens and Host header checks.local-browser-mcpuses a dedicated persistent profile by default (~/.local-browser-mcp/profiles/<channel>) so you control exactly which accounts and institutional sessions are shared with AI agents.
License
MIT © yangdw2024
Available Tools
16 toolsbrowser_clickB
Click an element in the local browser using a ref from browser_snapshot, a CSS selector, or viewport x/y coordinates.
Inputs: x, y, ref, tab_id, +1 more.
browser_close_tabC
Close a specific tab (or the current active tab) in the connected local browser.
Inputs: tab_id.
browser_consoleB
Read recent console log/warn/error entries captured from the browser tab.
Inputs: limit, tab_id.
browser_downloadA
Download a PDF, Supporting Information (SI), dataset, or any file directly through the real browser's authenticated session (preserving cookies, TLS fingerprint, Cloudflare clearance, and institutional/campus access) and save it to disk.
Inputs: url (required), tab_id, filename, save_path, +1 more.
browser_evaluateA
Execute a JavaScript expression in the page context (supports async/await promises) and return its JSON-serializable result. Useful for extracting DOIs, PDF/SI links, or table data.
Inputs: expression (required), tab_id.
browser_extract_textA
Extract clean visible text from the current page (or a specific CSS selector) — ideal for reading articles, abstracts, tables, or institutional portal pages without raw HTML bloat.
Inputs: tab_id, selector, max_chars.
browser_networkA
Read recent network requests (URL, method, HTTP status, MIME type, errors) observed in the browser tab — useful for finding actual PDF/SI download endpoints.
Inputs: limit, tab_id.
browser_pressB
Press a single keyboard key (Enter, Tab, Escape, Backspace, Delete, Space, ArrowUp/Down/Left/Right, PageUp/Down, Home, End, or a single character).
Inputs: key (required), tab_id.
browser_screenshotB
Capture a screenshot of the current browser viewport (or clipped region) and return it as an image.
Inputs: clip, format, tab_id, full_page.
browser_scrollC
Scroll the page vertically or horizontally using a real mouse wheel event.
Inputs: x, y, tab_id, delta_x, +1 more.
browser_snapshotA
Capture a compact, numbered DOM snapshot of visible & interactive elements (with ref numbers and bounding boxes). Call this before browser_click or browser_type by ref.
Inputs: tab_id.
browser_statusA
Check connection status to the local Chrome/Edge/Brave browser via CDP, showing browser version, CDP URL, open tab count, and detected local browsers.
Inputs: no named parameters.
browser_tabsA
List open page tabs in the connected local browser with their tab_id, title, and URL.
Inputs: no named parameters.
browser_typeA
Type text into the focused element, or click a target (ref, selector, or x/y) first and then insert text.
Inputs: text (required), x, y, ref, +3 more.
browser_wait_for_humanA
Bring the tab to focus and wait for the human user to complete a Cloudflare Turnstile / CAPTCHA / institutional SSO login in their local browser, returning automatically once cleared.
Inputs: reason, tab_id, selector, timeout_ms, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Most tools target distinct actions (navigate, click, type, press, scroll, screenshot, download, etc.) and descriptions clarify boundaries. However there is mild overlap among the three read/inspect tools (browser_snapshot, browser_extract_text, browser_evaluate) and between browser_click and browser_type's click-then-insert behavior, which could cause occasional misselection.
Every tool uses the same browser_ prefix with a snake_case verb/noun suffix (browser_navigate, browser_extract_text, browser_close_tab). The pattern is uniform and predictable, including the longer browser_wait_for_human which still follows the convention.
16 tools is slightly above the ideal 3-15 range but each maps to a distinct browser capability, so the surface is well-earned. It's a touch heavy but not bloated for a full browser-automation server.
Core browser lifecycle is well covered: connect/status, navigate, tabs, click/type/press/scroll, screenshot, text extraction, JS eval, console/network inspection, download, CAPTCHA wait, and tab closing. Minor gaps exist for form interactions like select/dropdown, hover, right-click, drag, and file upload, plus explicit back/forward navigation.
Maintenance
Related MCP Connectors
Cloud browser, web extraction, screenshots, and remote CDP tools for AI agents.
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
Let your AI agent operate any website through a real, logged-in browser session.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI agents to directly control your real Chrome browser with full context including login sessions, cookies, and open tabs. It provides tools for page scanning, JavaScript execution, CDP control, screenshots, and physical mouse/keyboard input for authentic browser automation.20243MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to control a user's existing Chrome browser with preserved logins, performing tab management, element interaction, script execution, and screenshots, all locally via a Chrome extension and Python bridge.2MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to drive the user's real, already-logged-in Chrome browser locally, so they can read and navigate pages, click, type, fill forms, take screenshots, and inspect cookies, tabs, console, and network traffic without headless browsers or remote-debugging ports.1 npmISC
- AlicenseNot gradedqualityAmaintenanceLets AI coding tools drive the real, already-logged-in Chrome browser over local stdio—snapshotting and reading pages, clicking, typing, managing tabs, capturing screenshots, and inspecting network, console, storage, and cookies—without opening a remote-debugging port. It installs as a Chrome extension plus native-messaging bridge, so agents work in the user's authenticated sessions while passing bot detection.1 npmISC