Skip to main content
Glama

local-browser-mcp

English | 简体中文

npm version License: MIT

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.

Architecture


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?

A visual setup page opens in your browser automatically:

  1. Click "Open Dedicated Browser" → log in once to your university library / WebVPN / publisher accounts (saved permanently).

  2. 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-mcp with --auto-launch.

Option 3: One-Line Auto-Install (Let Your AI Run It)

npx -y local-browser-mcp install

Automatically detects installed agents, backs up existing files, and merges the MCP config safely. To remove later:

npx -y local-browser-mcp uninstall

Related MCP server: Antigravity Browser Controller

Why local-browser-mcp?

Problem

Headless / web_fetch

local-browser-mcp

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 + browser_wait_for_human resumes automatically once you click

Downloading PDFs / SI files behind auth

Fails with 403 / HTML login page

browser_download fetches inside the real authenticated page context

Multi-agent compatibility

Locked to one app

Visual one-click wizard + native DSH bundle + standard MCP (stdio & Streamable HTTP)

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

browser_status

Check CDP connection, browser version, open tabs, and detected local browsers

browser_tabs

List open page tabs (tab_id, title, url)

browser_navigate

Navigate to a URL (optionally in a new tab) and auto-detect Cloudflare / CAPTCHA challenges

browser_snapshot

Compact numbered DOM snapshot of visible & interactive elements with ref IDs and bounding boxes

browser_extract_text

Extract clean visible text from the page or a CSS selector

browser_click

Click by ref, CSS selector, or viewport x/y

browser_type

Insert text into focused element or target (ref / selector / x,y)

browser_press

Press a keyboard key (Enter, Tab, Escape, arrows, etc.)

browser_scroll

Scroll page with real mouse-wheel events

browser_screenshot

Capture viewport or clipped region as PNG/JPEG image

browser_download

Authenticated file download inside the real browser session (ideal for PDFs, SI zips/docx, datasets)

browser_wait_for_human

Focuses the tab and waits for you to click a Cloudflare Turnstile / CAPTCHA / SSO login, resuming automatically

browser_evaluate

Run async JavaScript in the page context and return JSON result

browser_console

Read captured console logs & uncaught exceptions

browser_network

Inspect recent network requests (status, MIME type, URLs — great for discovering PDF/SI URLs)

browser_close_tab

Close a specific tab or active tab


Print Manual Config Snippets

npx local-browser-mcp setup --client all

Streamable HTTP Mode (for Doubao / Coze / Web Agents)

npx local-browser-mcp serve --http --port 3845 --auto-launch
# Endpoint: http://127.0.0.1:3845/mcp

Full 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-mcp uses 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 tools
browser_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_navigateA

Navigate the local browser to a URL (reusing your real browser fingerprint, cookies, and institutional/campus login). Automatically flags if a Cloudflare or human verification challenge is detected.

Inputs: url (required), tab_id, new_tab, timeout_ms, +1 more.

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

    A3.6/5.0

    Scored across 16 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables 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.
      20
      243
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables 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 npm
      ISC
    • A
      license
      Not graded
      quality
      A
      maintenance
      Lets 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 npm
      ISC