Scout

io.github.felixgeelhaar由 GitHub 账号 felixgeelhaar 发布v1.10.0更新于 Nov 3, 2026

Browser automation MCP server with 84 tools. Pure CDP, DOM diffing, vision hybrid.

概览

AI 生成的概览

Scout 是一个单文件二进制的浏览器自动化 MCP 服务器,让 AI 助手操控真实浏览器进行导航、页面观察、表单填写、内容提取和录屏。

可以做什么
  • 导航页面并获取结构化观察结果、DOM 差异和受 token 预算限制的快照
  • 点击、输入、悬停、拖拽、选择选项,并按语义或标签填写表单
  • 提取文本、表格、Markdown、正文和可访问性树,并截取截图、标注截图和 PDF
  • 管理标签页、iframe、Cookie 和网络抓包,检测前端框架、应用状态以及控制台和请求错误
  • 录制与回放操作剧本、录制页面视频、批量执行动作与追踪,并检查 Web Vitals
适用场景
适合需要助手在用户本机驱动真实浏览器的场景:读取或抓取网页、测试本地 Web 应用、填写表单、截图或录屏,以及无需 Node 或 Python 运行时即可回放固定的自动化流程。
运行要求
以本地进程方式通过 scout mcp serve 命令启动,需先安装 scout 二进制(Homebrew cask、安装脚本或 go install)。工具会启动 Chrome 兼容浏览器。视频编码可选依赖 PATH 中的 ffmpeg。未声明任何 API 密钥或环境变量;独立的聊天界面可使用 ANTHROPIC_API_KEY 或 OPENAI_API_KEY 等提供商密钥。
安装前请注意
浏览器会操作真实网站,可能提交表单、点击按钮、设置 Cookie 和上传文件,从而改变远端状态。除非通过 configure(allow_private_ips) 或 SCOUT_ALLOW_PRIVATE_IPS 开启,否则私有和回环地址被阻止。页面内容、Cookie 和抓取到的网络请求会进入助手的上下文。可选的聊天界面会把页面数据发送给所配置的 LLM 提供商。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Scout,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[Scout]

Scout

Browser automation, one binary. The simpler alternative to Playwright — no Node, no Python, no runtime. Drive a real browser from Go, any shell, any AI agent (built-in MCP server), or a chat UI.

[Release] [License] [CI] [Go Reference] [Coverage] [Security (nox)]

A single statically-linked scout binary gives you a CLI, an 87-tool MCP server (so any MCP-aware agent — Claude Desktop, Cursor, Cline, custom — has a browser), a conversational chat UI, and a Go library with Gin-like middleware composition. Same engine, four access points.

bash
brew install --cask klarlabs-studio/tap/scout-mcp

vs. Playwright

ScoutPlaywright
Installone ~15 MB binarynpm + ~600 MB browser cache
Runtime depnone (static)Node.js always; Python/Java/.NET as wrappers
Drive fromGo, any shell, MCP, chat UITS/JS first-class; others lag
AI-agent nativebuilt-in scout mcp serveseparate playwright-mcp project
Token-aware extractionDOM diff, distillation, observation budgets (50–80% fewer tokens)not provided
Action playbooksrecord & replay deterministic JSONcodegen produces a script you maintain
Container deploydrop into scratch or distrolesscarry Node + browser binaries
CDP accessdirect WebSocket, zero abstractioninternal protocol over CDP

Quick Start

bash
# CLI — visible browser, one-shot commandsscout observe https://example.com          # structured page snapshotscout markdown https://news.ycombinator.com # page as compact markdownscout screenshot https://github.com         # save screenshotscout extract https://example.com h1        # extract element textscout frameworks https://react.dev          # detect React, Vue, etc.
# MCP Server — give AI agents browser superpowersclaude mcp add scout -- scout mcp serve
# Browser UI — conversational browser automationscout ui serve --provider=ollama --model=mistralcd ui && npm install && npm run dev  # open http://localhost:3000

Install

bash
# Homebrewbrew install --cask klarlabs-studio/tap/scout-mcp
# Direct binarycurl -fsSL https://raw.githubusercontent.com/klarlabs-studio/scout/main/install.sh | bash
# Gogo install go.klarlabs.de/scout/cmd/scout@latest
# As a librarygo get go.klarlabs.de/scout

MCP Server — 77 Tools

Run scout mcp serve and any MCP-aware agent has a browser. No second project to install, no Node runtime, no Python interpreter — the binary is the server. Configure in any MCP client:

bash
claude mcp add scout -- scout mcp serve           # Claude Code
json
{"mcpServers": {"scout": {"command": "scout", "args": ["mcp", "serve"]}}}

Tool Categories

CategoryTools
Navigationnavigate, observe, observe_diff, observe_with_budget
Interactionclick, click_label, click_text, type, hover, double_click, right_click, select_option, scroll_to, scroll_by, focus, drag_drop, dispatch_event
Formsfill_form, fill_form_semantic (checkbox/radio + state echo), discover_form
Extractionextract, extract_all, extract_table, auto_extract, scroll_and_collect, markdown, readable_text, accessibility_tree
Capturescreenshot, annotated_screenshot, pdf
Networkenable_network_capture, network_requests
Tabsopen_tab, switch_tab, close_tab, list_tabs
Frameworkswait_spa, detect_frameworks, component_state, app_state
Playbackstart_recording, stop_recording, save_playbook, replay_playbook
Videostart_screen_recording, stop_screen_recording
Smart Helperscheck_readiness, suggest_selectors, session_history
Visionhybrid_observe, find_by_coordinates
Batchexecute_batch
Iframeswitch_to_frame, switch_to_main_frame
Tracestart_trace, stop_trace
Cookiescookies_list, cookies_clear, cookies_set, dismiss_cookies
Diagnosticsdetect_dialog, detect_auth_wall, console_errors (incl. network 4xx/5xx), failed_requests, compare_tabs, upload_file
Utilityhas_element, wait_for, configure, set_viewport, web_vitals, select_by_prompt

All tools have MCP annotations (ReadOnly, OpenWorld, ClosedWorld, Idempotent) for smart auto-approval. Read-only tools like observe, extract, and screenshot run without permission prompts.

Runtime Configuration

Switch between headless and visible browser without restarting, and opt into local-dev workflows (loopback, private IPs):

Agent: configure(headless: false)                        → browser window appearsAgent: navigate("https://...")                           → watch it workAgent: configure(headless: true)                         → back to headlessAgent: configure(allow_private_ips: true)                → unlock localhost / 192.168.* / 10.*Agent: navigate("http://127.0.0.1:4173/")                → drive your local dev server

The MCP server also reads SCOUT_ALLOW_PRIVATE_IPS=1 at startup as a one-shot toggle for trusted environments.

Screen Recording (video)

Record the active page as a video. Pure CDP — works in headless, no Playwright needed. Recording survives navigate, open_tab, and switch_tab calls in between, so a multi-page demo lands as one continuous clip:

Agent: start_screen_recording({ width: 1280, height: 800, fps: 15, format: "webm" })Agent: navigate("https://example.com")Agent: click("#cta")Agent: navigate("https://example.com/dashboard")   # recording continues across pagesAgent: stop_screen_recording()       → { path: "/tmp/scout-rec-XXX.webm", format: "webm", encoder: "ffmpeg",           frame_count: N, duration_ms: N }

If ffmpeg is on PATH, the result is encoded to WebM (libvpx-vp9) or MP4 (libx264). If not, scout returns the raw JPEG frames directory plus an ffmpeg concat list so you can encode offline. The result is always a file path, never base64 — never enters your LLM token budget.

Realistic FPS: ~10–15 on typical pages, capped at 30. Implementation polls Page.captureScreenshot (CDP Page.startScreencast events are silently dropped under --headless=new Chrome).

Browser UI

A conversational browser automation interface. Type natural language, watch the browser respond in real-time.

bash
# Start the AG-UI server (Go backend)scout ui serve --provider=ollama --model=mistral    # local, no API keyscout ui serve --provider=claude                     # needs ANTHROPIC_API_KEYscout ui serve --provider=openai --model=gpt-4o     # needs OPENAI_API_KEYscout ui serve --provider=groq --base-url=https://api.groq.com/openai --model=llama-3.3-70b-versatile
# Start the Vue frontendcd ui && npm install && npm run dev                  # http://localhost:3000

The UI streams AG-UI protocol events over SSE:

  • Chat panel with markdown rendering and quick-action pills
  • Live browser viewport with screenshot streaming and URL bar
  • Activity timeline showing tool calls in real-time
  • Stop button to cancel mid-stream

The Go server handles the agentic loop: LLM decides which scout tools to call, executes them, streams browser state deltas back to the frontend. Supports any OpenAI-compatible endpoint via --base-url.

Agent Package (Go)

High-level Go API for callers that want to embed scout in a program. Structured output, auto-wait, goroutine-safe. Most users reach scout through the CLI or MCP server above — this section is for the Go-library path.

go
session, _ := agent.NewSession(agent.SessionConfig{Headless: true})defer session.Close()
// Navigate and observesession.Navigate("https://example.com")obs, _ := session.Observe()               // links, inputs, buttons, text + action costs
// DOM diff — only what changed (saves 50-80% tokens)session.Click("#submit")_, diff, _ := session.ObserveDiff()// diff.Classification: "modal_appeared"// diff.Summary: "Modal/dialog appeared: Login required"
// Semantic form filling — no CSS selectorssession.FillFormSemantic(map[string]string{    "Email": "user-example", "Password": "secret",})
// Visual grounding — click by number, not selectorresult, _ := session.AnnotatedScreenshot()  // numbered labels on elementssession.ClickLabel(7)                        // click element [7]
// Multi-tab coordinationsession.OpenTab("pricing", "https://example.com/pricing")session.SwitchTab("default")
// Framework detection (19 frameworks)frameworks, _ := session.DetectedFrameworks() // ["react", "nextjs"]state, _ := session.ComponentState("#app")    // read React/Vue state
// Network capture — read API responses directlysession.EnableNetworkCapture("/api/")captured := session.CapturedRequests("/api/users")
// Action replay — record once, replay without LLMsession.StartRecordingPlaybook("login-flow")// ... do stuff ...pb, _ := session.StopRecordingPlaybook()agent.SavePlaybook(pb, "login.json")// Later: session.ReplayPlaybook(pb)  // 100x cheaper
// Persistent profilessession.SaveProfile("session.json")   // cookies + localStoragesession.LoadProfile("session.json")
// Content distillation (5 levels)session.Markdown()          // ~2-8KB compact markdownsession.ReadableText()      // ~1-4KB main content onlysession.AccessibilityTree() // ~1-4KB semantic treesession.ObserveWithBudget(500) // fit in ~500 tokens

Core Library (Go)

Gin-like Engine/Context/Group/HandlerFunc with middleware composition. The lowest-level Go API — use it when you want full control of task lifecycle, named groups, and middleware chains:

go
engine := browse.Default(browse.WithHeadless(true))engine.MustLaunch()defer engine.Close()
engine.Use(middleware.Stealth())engine.Use(middleware.Retry(middleware.RetryConfig{MaxAttempts: 3}))engine.Use(middleware.Timeout(30 * time.Second))
admin := engine.Group("admin", middleware.BasicAuth("admin", "secret"))admin.Task("export", func(c *browse.Context) {    c.MustNavigate("https://app.example.com/admin")    table, _ := c.ExtractTable("#users")    c.Set("data", table)})
engine.RunGroup("admin")

Middleware

CategoryMiddleware
ResilienceRetry, Timeout, CircuitBreaker, RateLimit, Bulkhead
AuthBearerAuth, BasicAuth, CookieAuth, HeaderAuth
Anti-detectionStealth (10 patches: webdriver, plugins, WebGL, etc.)
NetworkBlockResources, WaitNetworkIdle
UtilitiesScreenshotOnError, SlowMotion, Viewport

CLI

The CLI is a deliberate one-shot tier: each command launches a browser, navigates, runs one read/diagnostic action, prints the result, and exits. Stateful interactive flows (click→type→submit, multi-tab, live cookie/network manipulation) live in the MCP server (scout mcp serve) and chat UI (scout ui serve), which keep a session alive across actions.

CLI defaults to visible browser (--headless to hide):

bash
scout navigate <url>                  # page info as JSONscout observe <url>                   # structured observationscout markdown <url>                  # compact markdownscout readable <url>                  # main readable content (boilerplate stripped)scout accessibility <url>             # semantic accessibility treescout screenshot <url> [--output f]   # save screenshotscout pdf <url> [--output f]          # save PDFscout extract <url> <selector>        # extract textscout table <url> <selector>          # extract a table as structured rowsscout auto-extract <url>              # auto-detect dominant data patternscout eval <url> <expression>         # run JavaScriptscout form discover <url>             # discover form fieldsscout frameworks <url>                # detect frameworksscout app-state <url>                 # global app/store state (JSON)scout aria <url>                      # ARIA violation report (JSON)scout vitals <url>                    # Core Web Vitals (JSON)scout console <url>                   # console errors + network 4xx/5xx (JSON)scout dialog <url>                    # detect visible modal/dialog (JSON)scout auth-wall <url>                 # detect login/auth wall (JSON)scout cookies <url>                   # list cookies (values redacted)scout watch <url> [--interval=5s]     # live-watch page changesscout pipe <command> [selector]       # batch process URLs from stdinscout record <url> [--output f]       # interactive recording → playbookscout mcp serve                       # start MCP serverscout ui serve [flags]                # start chat UIscout version                         # print version

Architecture

scout/├── browse.go, engine.go, context.go   # Gin-like API├── page.go, selection.go              # CDP page & element interaction├── recorder.go                        # Action playbook recording (Navigate/Click/Type → JSON)├── middleware/                        # stealth, resilience, auth, network├── agent/                             # AI agent API (50+ methods)│   ├── session.go                     # Session lifecycle, Navigate, Click, Type│   ├── observe.go, diff.go            # Observe, ObserveDiff, cost estimation│   ├── content.go                     # Markdown, ReadableText, AccessibilityTree│   ├── form.go                        # DiscoverForm, FillFormSemantic, MatchFormField│   ├── annotate.go                    # AnnotatedScreenshot, ClickLabel│   ├── network.go                     # EnableNetworkCapture, CapturedRequests│   ├── spa.go                         # DetectedFrameworks, ComponentState, GetAppState│   ├── tabs.go                        # OpenTab, SwitchTab, CloseTab, ListTabs│   ├── playbook.go                    # StartRecording, ReplayPlaybook, SavePlaybook│   ├── interact.go                    # Hover, DragDrop, SelectOption, ScrollTo│   ├── profile.go                     # CaptureProfile, ApplyProfile, SaveProfile│   ├── selector.go                    # Playwright :text() selector translation│   ├── budget.go                      # ObserveWithBudget, EstimateTokens│   ├── nlselect.go                    # SelectByPrompt, fuzzy NL element matching│   ├── batch.go                       # ExecuteBatch, sequential multi-action│   ├── vision.go                      # HybridObserve, FindByCoordinates│   ├── trace.go                       # StartTrace, StopTrace, action tracing│   ├── screencast.go                  # StartScreenRecording / StopScreenRecording — video via captureScreenshot polling + ffmpeg encode│   ├── iframe.go                      # SwitchToFrame, SwitchToMainFrame│   └── vitals.go                      # WebVitals (LCP/CLS/INP)├── internal/cdp/                      # WebSocket CDP client (context-aware)├── internal/launcher/                 # Chrome process management├── cmd/scout/                         # CLI + MCP server (87 tools)└── docs/                              # Landing page (GitHub Pages)

Security

Vulnerability scanning runs on every push and PR via nox. Findings are uploaded to GitHub code scanning, annotated inline on PRs, and gated against .nox/baseline.json so regressions block merges. The status badge in the header reflects the latest main-branch scan.

nox also drives dependency remediation in place of Dependabot — the Nox Remediate workflow runs weekly (Monday 06:00 UTC) and on demand, executing nox fix against fresh OSV.dev findings and opening a single PR with the verified upgrades.

bash
# Local scannox scan -severity-threshold high .
# Local fixnox fix -input findings.json

License

MIT

来源:README.md,提交 f45eb04

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.10.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分