Scout
Browser MCP server that connects to your existing browser, preserving sessions, passwords, and extensions, enabling AI agents to interact with web pages without bot detection.
README
Scout
Browser MCP server that connects to your existing browser. Your sessions, passwords, extensions — all preserved. No bot detection because it IS your real browser.
Gives AI agents a visually-grounded, semantically-precise view of any web page through hybrid A11y + Set-of-Marks grounding.
Why Scout?
Most browser automation launches a clean, disposable browser — no cookies, no history, no extensions. Every site detects it as a bot. Scout flips this: it connects to the browser you're already using via Chrome DevTools Protocol (CDP).
- Connect to your browser — attach to Chrome with
--remote-debugging-port, reuse all your logged-in sessions - Accessibility tree extraction — scans the DOM for interactive elements, assigns each a stable numeric ID, returns a compact markdown summary
- Set-of-Marks badges — overlays numbered badges on a compressed screenshot so the agent can see what it's clicking
- Non-blocking human handoff — agent returns immediately, polls for completion. CAPTCHAs, MFA, SMS codes — you solve them in your own browser
- State healer — every action captures before/after state, telling the agent what changed
The result: agents reference elements by ID (scout_click(3)), not by CSS selector or pixel coordinate. No hallucination, no token bloat, no bot detection.
Quick start
Connect to your browser (recommended)
# 1. Start your browser with remote debugging enabled
google-chrome --remote-debugging-port=9222
# 2. Install and run Scout
npm install
SCOUT_MODE=connect SCOUT_CONNECT_URL=http://localhost:9222 npm run dev
Scout auto-discovers your browser and connects. All your open tabs, sessions, and saved passwords are available.
Launch a fresh browser
npm install
npx playwright install chromium
npm run dev
Claude Desktop / Claude Code
Add to your MCP config:
{
"mcpServers": {
"scout": {
"command": "npx",
"args": ["tsx", "src/index.ts"],
"cwd": "/path/to/scout",
"env": {
"SCOUT_MODE": "connect",
"SCOUT_CONNECT_URL": "http://localhost:9222"
}
}
}
}
Docker
docker build -t scout .
docker run -it scout
Environment variables
Connection
| Variable | Default | Description |
|---|---|---|
SCOUT_MODE |
auto |
connect (attach to your browser), launch (start fresh), auto (try connect, fallback to launch) |
SCOUT_CONNECT_URL |
— | Explicit browser debug URL, e.g. http://localhost:9222 |
Browser
| Variable | Default | Description |
|---|---|---|
SCOUT_HEADLESS |
false |
Run browser in headless mode (only applies to launch mode) |
SCOUT_BROWSER |
chromium |
Browser engine for launch mode (chromium or firefox) |
SCOUT_CDP_PORT |
9229 |
Debug port when launching a fresh browser |
SCOUT_VIEWPORT_WIDTH |
1280 |
Browser viewport width |
SCOUT_VIEWPORT_HEIGHT |
800 |
Browser viewport height |
SCOUT_MAX_ELEMENTS |
1000 |
Max elements per snapshot |
SCOUT_MAX_TABS |
10 |
Max open tabs |
SCOUT_PROFILE_DIR |
— | Persistent browser profile path (launch mode only) |
SCOUT_LOGIN_ENABLED |
false |
Enable scout_login tool for automated platform auth |
SCOUT_LCP_PORT |
— | Enable HTTP dispatch server on this port |
Tools (27)
Navigation
| Tool | Params | Description |
|---|---|---|
scout_navigate |
url |
Navigate and return full snapshot |
scout_back |
— | Browser back |
scout_forward |
— | Browser forward |
scout_refresh |
— | Reload current page |
Observation
| Tool | Params | Description |
|---|---|---|
scout_snapshot |
— | Full snapshot: numbered element list + badged screenshot |
scout_elements |
— | Element list only (faster, no screenshot) |
scout_screenshot |
— | Plain screenshot without badges |
scout_console_logs |
clear? |
Last 100 browser console logs/errors |
Interaction
| Tool | Params | Description |
|---|---|---|
scout_click |
id |
Click element by snapshot ID |
scout_type |
id, text, clear? |
Type into input (React-safe keyboard events) |
scout_select |
id, value |
Select dropdown option |
scout_hover |
id |
Hover over element |
scout_press_key |
key |
Press keyboard key (Enter, Escape, etc.) |
scout_drag |
sourceId, targetId |
Drag one element onto another |
scout_scroll |
direction, pixels? |
Scroll up/down/left/right |
Human-in-the-loop
| Tool | Params | Description |
|---|---|---|
scout_handoff |
instruction, timeout? |
Show banner asking user to take manual action. Returns immediately with handoff_id — does NOT block. |
scout_handoff_check |
handoff_id |
Poll whether handoff is completed/expired |
scout_handoff_cancel |
handoff_id |
Cancel handoff and remove banner |
Tabs
| Tool | Params | Description |
|---|---|---|
scout_tabs |
— | List all open tabs |
scout_switch_tab |
index |
Switch active tab |
scout_new_tab |
url? |
Open a new tab |
Sessions
| Tool | Params | Description |
|---|---|---|
scout_save_session |
name |
Save cookies + localStorage to ~/.scout-sessions/<name>.json |
scout_load_session |
name |
Restore a saved session (restarts browser context) |
scout_list_sessions |
— | List saved sessions |
Performance
| Tool | Params | Description |
|---|---|---|
scout_wait |
condition, value?, timeout? |
Wait for navigation, network_idle, selector, or timeout |
scout_block_resources |
types |
Block resource types (e.g. ["image", "media"]) |
Login (opt-in)
| Tool | Params | Description |
|---|---|---|
scout_login |
platform, username, password |
Automated social login with challenge detection. Requires SCOUT_LOGIN_ENABLED=true. |
How it works
Typical agentic loop
scout_navigate(url)
→ read numbered element list + badged screenshot
→ scout_click(3) # healer returns stateChange
→ scout_snapshot() # re-snapshot after state change
→ scout_type(7, "hello")
→ scout_handoff("Solve the CAPTCHA, then click Done")
→ scout_handoff_check(handoff_id) # poll until completed
Connection modes
Connect mode (SCOUT_MODE=connect) — attaches to your running browser via CDP. Your open tabs, sessions, and passwords are all available. Start your browser with:
google-chrome --remote-debugging-port=9222
Scout auto-discovers the browser, or set SCOUT_CONNECT_URL=http://localhost:9222 explicitly. The browser stays running independently — Scout just connects to it.
Launch mode (SCOUT_MODE=launch) — starts a fresh Chromium instance. Use SCOUT_PROFILE_DIR for persistent cookies across restarts.
Auto mode (SCOUT_MODE=auto, default) — tries to discover a running browser first. If none found, launches a fresh one. Best of both worlds.
Browser persistence
In connect mode, Scout reconnects to your browser automatically if the MCP process restarts — the browser stays running.
In launch mode, Scout writes the CDP port to ~/.scout-browser.port and reconnects on restart if the browser is still alive.
Non-blocking handoff
Unlike blocking human-in-the-loop approaches, scout_handoff returns immediately with a handoff_id. The agent polls scout_handoff_check on its own schedule. The handoff banner re-injects across page navigations and auto-expires after timeout.
This matters because MCP tool calls often have timeouts (30-60s). A CAPTCHA that takes the user 2 minutes would kill a blocking approach.
HTTP dispatch server (optional)
Set SCOUT_LCP_PORT=8091 to expose an HTTP API alongside the MCP stdio transport. Useful for integrating Scout with non-MCP systems:
GET /lcp/health # Server status
POST /lcp/dispatch # Execute tool operations
GET /lcp/stream # SSE event stream
Security: The LCP server has no built-in authentication by default. Set
SCOUT_LCP_SECRETto require anX-Scout-Secretheader on all mutation endpoints. Do not expose the LCP port on a public network without authentication — it provides full control over the connected browser session.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。