- Inicio
- Plugins
- Herramientas y funciones
- local-browser-mcp
local-browser-mcp
yangdw2024/local-browser-mcp
Connects DSH to your existing local Chrome, Edge, or Brave browser over CDP via 19 MCP tools: auto-discovers browsers and user profiles, preserves cookies and institutional sessions, handles Cloudflare/CAPTCHA pauses with human-in-the-loop waiting, extracts links and downloads authenticated files, and adds a Local browser settings panel. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Instalar
dsh plugin --profile web add github:yangdw2024/local-browser-mcpREADME
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 over CDP.
Auto-discovers installed browsers and user profiles, lets you switch browsers/accounts visually in DSH Settings → Local browser or the Web Setup Wizard, connects directly to your running Chrome/Edge 136+ window via inspect/#remote-debugging, bypasses Cloudflare 403 on RSC/Wiley/ACS/Elsevier/Springer, and downloads PDF & Supporting Information (SI) files using your real institutional session.
Easiest Setup (No Manual Config Editing!)
Option 1: DeepSeek Harness (DSH) — Native Bundle + Built-in Settings Page
- Tell DSH in chat: "Install plugin
local-browser-mcp" (or installlocal-browser-mcpin Plugin Manager). - Open Settings → Local browser (or Plugins → Local browser bridge) inside DSH to view all auto-discovered browsers (
Chrome/Edge/Brave), see detected profiles/accounts, switch your active browser anytime without restarting, or launch a dedicated persistent window.
Option 2: Visual One-Click Setup Wizard (All Other Agents)
- Windows: Download
一键安装配置.cmdand double-click it. - macOS: Download
install-macos.commandand double-click it. - Or run one command:
npx -y local-browser-mcp ui
In the visual wizard page:
- Pick any auto-discovered browser (
Auto/Chrome/Edge/Brave) & account, or click Launch Dedicated Window (or enablechrome://inspect/#remote-debugging/edge://inspect/#remote-debuggingin your everyday browser). - Click "One-Click Enable Selected" — automatically detects Codex, Antigravity, Trae / Trae CN (Doubao IDE), Claude, and Cursor, creates timestamped backups, and writes safe MCP configs.
Option 3: One-Line Auto-Install
npx -y local-browser-mcp install
# Remove later:
npx -y local-browser-mcp uninstall
Why local-browser-mcp?
| Feature | Headless / web_fetch | local-browser-mcp |
|---|---|---|
| Cloudflare 403 / TLS fingerprint | Blocked immediately | Uses your real Chrome / Edge / Brave binary & TLS stack |
| Campus VPN / Institutional SSO / Cookies | No login state | Connects directly to your everyday Chrome/Edge (inspect/#remote-debugging) or persistent profile |
| Auto-discovery & switching | Fixed to one browser | Auto-discovers Chrome, Edge, Brave & all user profiles; switch live with browser_select or DSH Settings |
| Cloudflare Turnstile / CAPTCHA | Stuck forever | Auto-detects EN/ZH challenge pages + browser_wait_for_human resumes automatically once clicked |
| Downloading PDFs / SI behind auth | Fails with 403 / login page | browser_download uses authenticated in-page fetch() + native CDP download fallback |
| Multi-agent compatibility | Locked to one app | Native DSH bundle + standard MCP (stdio & Streamable HTTP) for Codex, Antigravity, Doubao/Trae, Claude, Cursor |
| Heavy browser downloads (300 MB+) | Downloads separate Chromium | Zero browser binaries downloaded — uses the Chrome/Edge you already have |
Available MCP Tools (19)
| Tool | Description |
|---|---|
browser_status | Check CDP connection, active preference, browser version, open tabs, and detected browsers |
browser_discover | Auto-discover installed browsers (Chrome/Edge/Brave), live debugging status, and all user profiles |
browser_select | Switch preferred browser (auto | chrome | edge | brave | chromium) & profile immediately |
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_extract_links | Scan the current page for PDF, Supporting Information (SI), dataset, and DOI links |
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 (with native CDP download fallback) |
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) |
browser_close_tab | Close a specific tab or active tab |
Advanced: CLI Reference & Manual Configuration
local-browser-mcp ui [--port 0] [--cdp-url http://127.0.0.1:9222]
local-browser-mcp select [--channel auto|chrome|edge|brave] [--profile-dir "Profile 18"] [--download-dir <dir>]
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] [--channel <name>] [--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; DSH Host routes enforce loopback/dsh-app://origin validation. - Preferences are stored locally at
~/.local-browser-mcp/config.json.
License
MIT © yangdw2024
Plugins relacionados
archify (deepseek-harness)
tt-a1i/archify
WeKnora (dsh-weknora)
tencent/weknora
next-ai-draw-io (dsh-plugin)
dayuanjiang/next-ai-draw-io
AiToEarn (dsh-plugin-aitoearn)
yikart/aitoearn