
Leapfrog
io.github.anthonybono21-cloud由 GitHub 帳號 anthonybono21-cloud 發布v0.7.4更新於 Oct 24, 2026
Multi-session browser MCP — 15 parallel isolated browsers, 37 tools, stealth, self-improvement.
概覽
為 AI 助理提供本機多工作階段瀏覽器,可用精簡頁面快照、隱身修補與網路檢查來操作網頁。
- 可以做什麼
- Leapfrog 執行彼此隔離的瀏覽器工作階段(預設最多 15 個),並提供導覽、快照、點擊、輸入、捲動、上傳、截圖與分頁管理等工具。它還支援網路與主控台日誌、請求攔截、API 探索、分頁擷取、增量快照差異、工作階段匯出與重播,以及沙箱化的 Playwright 指令碼執行。此外會套用反偵測修補、自動關閉 Cookie 橫幅,並依網域保存等待策略、同意選擇器等知識。
- 適用情境
- 當助理需要在多個並行工作階段中瀏覽網站、填寫表單或擷取資料,或在意的頁面快照 token 成本時適合使用。它更適合擷取、監控與可重複的網頁流程,而不是單純的單次頁面讀取。
- 執行需求
- 透過 npm 套件 leapfrog-mcp 以 stdio 在本機執行,需要 Node.js 20 或更新版本。需要瀏覽器:可用 LEAP_CHANNEL=chrome 使用系統 Chrome,或用 playwright-core 安裝 Chromium,或透過 LEAP_CDP_ENDPOINT 連接已執行的 Chrome。除設定外部驗證碼服務外,不需帳號或 API 金鑰。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Leapfrog,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Leapfrog
Multi-session browser MCP for AI agents.
36 tools. 15 parallel sessions. Stealth. HUD. Self-improvement. Up to 10x fewer tokens.
npm i leapfrog-mcp | Works with Claude Code, Cursor, Windsurf
The Problem
Playwright MCP sends ~14,000 tokens for a content-heavy page like Hacker News. Most of that is noise. Your context window fills up. Your agent gets confused. You pay for it.
Leapfrog sends ~1,400 tokens. Same page. Same information. Up to 10x less noise.
Savings range from 2-10x depending on page complexity. Content-heavy pages see the biggest wins. Dense forms see the smallest. The median across real-world sites is ~4-5x.
Quick Start
Add to ~/.mcp.json (Claude Code) or your editor's MCP config:
Leapfrog uses playwright-core (15MB) instead of playwright (1.6GB) and does not bundle a browser. Either:
- Set
LEAP_CHANNEL=chrometo use your installed Chrome/Chromium (recommended) - Or run
npx playwright-core install chromiumto install the bundled Chromium binary - Or set
LEAP_CDP_ENDPOINTto connect to an already-running Chrome instance
Feature Matrix
Stealth
Leapfrog ships 19 anti-detection patches enabled by default (LEAP_STEALTH=true). Four modes:
true(default) — all 19 patches activepassive— removes automation signals only (webdriver, HeadlessChrome). Does NOT fake identity (WebGL, fonts, audio). Better for sites where trust matters more than evasion.auto— per-domain EXP3 bandit selects the optimal stealth configuration based on what's worked beforefalse— no stealth patches
These cover the vectors that fingerprint services like CreepJS and fingerprint-pro actually check:
- Client Hints brands (strips HeadlessChrome)
navigator.webdriverforced toundefined- WebGL vendor/renderer (replaces SwiftShader with real GPU strings)
- Connection RTT (non-zero)
- Alert dismiss timing (human-speed delay)
- Window outer/inner height offset
- MIME type array population
- Platform inference from user agent
chrome.appemulation- iframe
contentWindowprotection - Media codec spoofing (
canPlayType) document.hasFocus()override- Source URL comment stripping
- Custom UA + stealth coexistence (custom user agents no longer disable stealth context)
- CDP
Runtime.enabledetection (Error.prepareStackTracefilter) - Permissions API spoofing (20+ permission types)
- AudioContext fingerprint noise (
getChannelData/getFloatFrequencyData) - WebRTC IP leak prevention (ICE candidate filtering)
- Font enumeration fingerprint spoofing
Per-session stealth control: pass stealth: false in session_create to disable for a specific session.
Humanization (Experimental)
Set LEAP_HUMANIZE=true to enable human-like browser interaction. This is opt-in and adds latency in exchange for more realistic behavior. Six modules:
- Mouse — Bezier curve paths with Fitts's Law timing and micro-tremor jitter
- Typing — Log-normal inter-key delays (200ms median), key dwell time, bigram-aware speed, rollover typing
- Scroll — Inertial simulation with ramp-up and momentum decay (touchpad/mouse-wheel physics)
- Pause — Inter-action "think" delays that simulate cognitive gaps between actions
- Fingerprint — Coherent browser fingerprint generation (platform, device memory, GPU, timezone)
- Utils — Shared math primitives (Box-Muller gaussian, distributions)
Page Classification
Every navigate and snapshot call automatically classifies the page type using weighted signal scoring (no LLM required). 18 types:
login · search-results · product · product-list · checkout · article · dashboard · form · error · challenge · landing · documentation · profile · media · feed · qa · ecommerce · unknown
Classification drives smarter snapshot extraction — login pages surface form fields, articles surface content, dashboards surface interactive elements.
Harness Intelligence
The harness tracks every action in a session and classifies outcomes:
- Action outcome classification —
SUCCESS,SILENT_CLICK,NAVIGATION,WRONG_ELEMENT,BLOCKED,ERROR,PENDING - Bot redirect detection — detects when a site redirects to a challenge or block page after an action
- Loop detection — warns when the agent is stuck clicking the same element, ping-ponging between URLs, or repeating actions
- Session memory —
session_memorytool recalls actions after context window compression
Cookie Persistence
Persistent browser profiles now use context.cookies() + addCookies() instead of storageState(), which returns empty on persistent contexts. Auth state survives across sessions.
Adaptive Wait + Stealth Escalation
Navigate automatically retries with fallback strategies when pages fail to load:
- Try
load(fastest) — if empty, retry withnetworkidle(10s cap) - If
networkidletimes out (Amazon, ad-heavy sites), fall back todomcontentloaded - If blocked/challenged, escalate stealth: random delays → wait for JS challenge → rotate session with fresh fingerprint
- Profile sessions (auth'd) never have their session destroyed — hard-capped at Level 2
Opt-out with autoRetry: false on navigate. Control max escalation with maxRetryLevel (0-5, default 3).
Record / Replay
Export a session's action history as a replayable recording, then replay it in new sessions:
session_export— creates parameterized JSON or Playwright script from session history.@eNrefs resolved to stable CSS selectors. Auto-detects emails, passwords, URLs as{{placeholders}}.session_replay— replays a recording with parameter overrides. SupportsonError: 'stop'or'skip'.
Turn one-off agent workflows into reusable automations.
Pagination Extraction
Extract data across multiple pages in a single tool call:
- Click-next — auto-detects "Next" buttons, pagination links, "Load more" buttons
- Infinite scroll — scrolls and waits for new content via DOM hash comparison
- URL pattern — increments
?page={page}or custom patterns
Replaces 3-4 tool calls per page. Cap: 50 pages, 100K total chars. Stops on: no next button, empty page, duplicate content, or bot detection.
Incremental Snapshots
The diff tool returns only what changed since the last snapshot — additions, removals, changes. Massive token savings for monitoring and polling workflows.
HUD Overlays (LEAP_HUD=true)
When running headed, Leapfrog overlays visual feedback on every session:
- Click ripple — expanding green circle at click coordinates (agent actions only)
- Zoom-to-target — browser zooms to 1.15x on the clicked element briefly so agents (and humans) can visually track what's happening in tiled windows
- Scroll-to-target — scrollIntoView before clicks so you can see what the agent is about to click
Minimal by design. No borders, no status bars, no cursor overlay — just the feedback that matters.
Multi-Terminal Tiling (LEAP_TILE=true)
Multiple Leapfrog instances share the screen via file-based coordination. Each instance tracks its own windows and a TilesCoordinator assigns global grid slots — no overlap, no manual arrangement. Set LEAP_TILE=true (or LEAP_TILE=master for the primary instance). Padding between tiles is configurable with LEAP_TILE_PADDING (default 8px).
Human Intervention
Leapfrog auto-detects situations that need a human — CAPTCHAs, login forms, OAuth redirects, Cloudflare challenges — and tries to self-resolve before pausing.
- Auto-resolves first: clicks reCAPTCHA checkboxes, Cloudflare verify buttons, generic verify/continue buttons, then a second-pass retry — all before asking for help
- External solvers: set
LEAP_CAPTCHA_PROVIDER+LEAP_CAPTCHA_API_KEYfor CapSolver, 2Captcha, or NopeCHA integration - Learns what works: remembers which resolution method succeeded per domain and tries the known-good method first on revisit
- Detects reCAPTCHA, hCaptcha, Turnstile, login forms, OAuth redirects, Cloudflare challenges
- Tab title changes to "NEEDS HUMAN" when intervention is needed
wait_for_humantool — agent calls when stuck, blocks until you resolve it or navigate past
Cookie Consent Auto-Dismiss (LEAP_AUTO_CONSENT=true)
Automatically dismisses cookie consent banners across 10 frameworks (OneTrust, CookieBot, TrustArc, Quantcast, Didomi, Cookielaw, Osano, Usercentrics, + generic) plus text-matching fallback. Per-domain selector caching for instant replay on revisit.
Tracing (LEAP_TRACE=true)
Per-session Playwright tracing with screenshots + DOM snapshots. Export ZIP files viewable at trace.playwright.dev via the session_export_trace tool. Auto-saves on session destroy.
Self-Improvement
Leapfrog learns from every visit. Per-domain knowledge persists at ~/.leapfrog/domains/{domain}.json — 9 dimensions, all automatic:
LRU eviction at 500 domains. Inspect with the domain_knowledge tool.
SSRF Hardening
URL validation blocks hex-encoded IPs (0x7f000001), octal notation (0177.0.0.1), CGNAT ranges (100.64.0.0/10), and redirect chains that resolve to internal addresses. Localhost and 127.0.0.0/8 are allowed by default for local dev workflows — set LEAP_BLOCK_LOCALHOST=true to block them.
The Ecosystem
Leapfrog uses pond metaphors to keep things memorable. Your agent is the frog.
All 36 Tools
Pond Management (11)
Navigation & Snapshots (12)
Tab Management (3)
Agent Intelligence (3)
Network & API Intelligence (7)
Environment Variables
Tests
Session management, snapshot engine, snapshot differ, network intelligence, tab management, security, SSRF protection, stealth patches (19), stealth enhanced, humanization (mouse, typing, scroll), page classification, harness intelligence, API intelligence, script executor, extended actions, HUD overlays, human intervention, cookie consent, domain knowledge, selector healing, stable elements, tile manager, bug regression, integration smoke, stress tests, benchmarks.
Requirements
- Node.js >= 20
- Chromium — use system Chrome (
LEAP_CHANNEL=chrome) or install vianpx playwright-core install chromium
License
MIT
來源:README.md,提交 dddbe82
工具
0版本歷史
1- v0.7.4最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分