leapfrog logo

leapfrog

Community
anthonybono21-cloud

Multi-session browser MCP for AI agents. 36 tools. 15 parallel sessions. Stealth. Self-improvement. Up to 10x fewer tokens.

Publisheranthonybono21-cloud
Repositoryleapfrog
LanguageTypeScript
Forks
0
Stars
5
Available tools
19
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    leapfrog exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 19 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    5 stars and 0 forks from the linked repository.


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.

┌─────────────────────────────────────────────────────┐
│  Playwright MCP                                     │
│  ████████████████████████████████████████  ~14,000   │
│                                                     │
│  Leapfrog                                           │
│  █████                                    ~1,400    │
└─────────────────────────────────────────────────────┘
          tokens per page (Hacker News, real test)

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

bash
npx leapfrog-mcp --doctor          # verify everything works
npx leapfrog-mcp --stealth-audit   # test all 19 stealth patches
npx leapfrog-mcp --config          # print MCP config to paste

Add to ~/.mcp.json (Claude Code) or your editor's MCP config:

json
{
  "leapfrog": {
    "command": "npx",
    "args": ["-y", "leapfrog-mcp"],
    "env": {
      "LEAP_MAX_SESSIONS": "15",
      "LEAP_TILE": "true",
      "LEAP_HUD": "true",
      "LEAP_AUTO_CONSENT": "true"
    }
  }
}

Leapfrog uses playwright-core (15MB) instead of playwright (1.6GB) and does not bundle a browser. Either:

  • Set LEAP_CHANNEL=chrome to use your installed Chrome/Chromium (recommended)
  • Or run npx playwright-core install chromium to install the bundled Chromium binary
  • Or set LEAP_CDP_ENDPOINT to connect to an already-running Chrome instance

Feature Matrix

LeapfrogPlaywright MCPagent-browser
Tokens per page~1,200-2,500~3,800-15,000~300
Parallel sessions1511
Session isolationYesNoNo
Multi-tab / popupsYesNoNo
Network interceptYesNoNo
Console captureYesYesNo
Stealth / anti-botYesNoNo
Smart wait (5 types)YesBasicNo
Crash recoveryYesNoNo
Batch actions (100/call)YesNoNo
Init script injectionYesYesNo
Drag / upload / resizeYesYesNo
Per-session proxyYesNoNo
Humanization (opt-in)YesNoNo
Auth profile reuseYesNoNo
Cookie persistenceYesNoNo
Page classification (18)YesNoNo
Session memoryYesNoNo
API intelligenceYesNoNo
Adaptive wait + auto-retryYesNoNo
CAPTCHA auto-resolveYesNoNo
Self-improvement (9 dims)YesNoNo
Record / replayYesNoNo
Pagination extractionYesNoNo
Incremental snapshots (diff)YesNoNo
Stealth self-test CLIYesNoNo
SSRF protectionYesNoNo

Stealth

Leapfrog ships 19 anti-detection patches enabled by default (LEAP_STEALTH=true). Four modes:

  • true (default) — all 19 patches active
  • passive — 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 before
  • false — no stealth patches

These cover the vectors that fingerprint services like CreepJS and fingerprint-pro actually check:

  • Client Hints brands (strips HeadlessChrome)
  • navigator.webdriver forced to undefined
  • 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.app emulation
  • iframe contentWindow protection
  • 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.enable detection (Error.prepareStackTrace filter)
  • 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_memory tool 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:

  1. Try load (fastest) — if empty, retry with networkidle (10s cap)
  2. If networkidle times out (Amazon, ad-heavy sites), fall back to domcontentloaded
  3. If blocked/challenged, escalate stealth: random delays → wait for JS challenge → rotate session with fresh fingerprint
  4. 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. @eN refs resolved to stable CSS selectors. Auto-detects emails, passwords, URLs as {{placeholders}}.
  • session_replay — replays a recording with parameter overrides. Supports onError: '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_KEY for 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_human tool — 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:

#DimensionWhat it does
1Wait strategiesLearns optimal wait method per domain (networkidle vs domcontentloaded vs load) + running average timing
2Stealth tiersAuto-escalates 0→3 when blocks are detected (2+ blocks in 1 hour). Starts at learned tier on revisit
3Consent selectorsRemembers cookie banner dismiss selectors, auto-clicks on revisit
4Challenge resolutionRecords which CAPTCHA method worked (reCAPTCHA checkbox, Cloudflare verify, etc.), tries known-good method first
5Stable element suppressionIdentifies nav/footer/sidebar elements seen 3+ visits, suppresses from snapshots (30-40% token savings on mature domains)
6Selector healingRemembers element fingerprints → selectors, heals broken refs across visits
7API endpoint cachingDiscovered API endpoints persist across sessions
8Interaction heat mapsTracks which elements agents actually use, suppresses untouched elements (coming)
9Strategy selectionAdversarial bandit (EXP3) for stealth config optimization. Use LEAP_STEALTH=auto to enable.

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.

ConceptLeapfrog termWhat it means
SessionsPondsIsolated browser contexts — cookies, storage, state
TabsLily padsWhere the frog lands within a pond
NavigateLeapJump to a URL, get a compact snapshot back
SnapshotsSurfaceWhat you see on the surface — interactive @eN refs
Network trafficRippleHTTP requests flowing under the surface
Console errorsCroakSomething went wrong in the browser
Stealth modeCamouflageAnti-bot evasion patches

All 36 Tools

Pond Management (11)

ToolWhat it does
session_createOpen a new pond — isolated cookies, state, viewport, locale, timezone, stealth, proxy
session_destroyDrain a pond and free the slot
session_listSee all active ponds with URLs and idle times
session_save_profileSave auth state to disk for future ponds
session_list_profilesList saved auth profiles
pool_statusPool stats, memory, uptime
session_healthIs the pond healthy? Browser connected, page responsive?
profile_listList saved persistent browser profiles
profile_deleteDelete a saved persistent browser profile and its data
profile_import_from_chromeImport cookies and state from an installed Chrome profile
profile_warmPre-warm a profile by loading key URLs to establish cookies/state

Navigation & Snapshots (12)

ToolWhat it does
navigateLeap to a URL, return a compact @eN snapshot. Adaptive wait + stealth escalation built in.
snapshotRe-read the surface (scope with CSS selector)
diffIncremental snapshot — returns only what changed since last snapshot
actClick, fill, type, check, select, press, scroll, hover, mousemove, drag, upload, resize, back, forward
batch_actionsUp to 100 sequential actions in one MCP call — eliminates round-trip overhead
paginateExtract data across multiple pages in one call (click-next, scroll, URL pattern)
add_init_scriptInject JS that runs before every page load, persists across navigations
wait_forWait for element / text / network idle / navigation / JS expression
screenshotCapture PNG (full page or element)
extractPull text, HTML, title, URL, or evaluate JS
session_memoryRecall actions performed in this session — recovers context after compression
session_exportExport session history as a replayable JSON recording or Playwright script

Tab Management (3)

ToolWhat it does
tabs_listList all pads in a pond
tab_switchHop to another pad (-1 for most recent popup)
tab_closeClose a pad (can't close the last one)

Agent Intelligence (3)

ToolWhat it does
wait_for_humanPause for human intervention — blocks until user clicks Done on the @..@ overlay
domain_knowledgeInspect what Leapfrog has learned about a domain (wait strategies, stealth tiers, endpoints)
session_export_traceExport a Playwright trace ZIP — viewable at trace.playwright.dev

Network & API Intelligence (7)

ToolWhat it does
network_logSee HTTP traffic — filter by URL, method, status, content-type
console_logRead browser console output, filtered by level
network_interceptBlock, mock, or log requests by URL pattern
api_discoverList JSON APIs the page has called, classified by category (data, tracking, auth, cdn, ads)
api_exportGenerate an OpenAPI v3 spec from observed API traffic
executeRun a Playwright script in a sandboxed environment — replaces 5-20 sequential MCP round trips
session_replayReplay a recording in the current session with parameter overrides

Environment Variables

VariableDefaultDescription
LEAP_MAX_SESSIONS15Max concurrent sessions
LEAP_IDLE_TIMEOUT1800000Session idle timeout in ms (30 min). Set 0 to disable.
LEAP_HEADLESStrueSet false to watch the browser
LEAP_HEADEDfalseSet true to watch the browser (positive alternative to LEAP_HEADLESS)
LEAP_CHANNEL(bundled chromium)Set chrome to use your installed Chrome
LEAP_CDP_ENDPOINT(none)Connect to a running Chrome instance (e.g. http://localhost:9222)
LEAP_EXTENSIONS(none)Comma-separated paths to browser extensions to load
LEAP_ALLOW_JStrueAllow JS evaluation in extract and wait_for
LEAP_STEALTHtrueStealth mode: true | passive | auto | false. See Stealth section.
LEAP_STEALTH_PROFILESfalseEnable stealth patches on profile (auth'd) sessions
LEAP_CDP_STEALTHtrueCDP detection evasion (Runtime.enable filtering)
LEAP_HUMANIZEfalseExperimental. Human-like mouse movement, typing cadence, and scroll behavior.
LEAP_ALLOW_EXECUTEtrueAllow the execute tool (sandboxed Playwright scripts)
LEAP_BLOCK_LOCALHOSTfalseBlock localhost/127.x.x.x (allowed by default for local dev)
LEAP_PROFILES_DIR~/.leapfrog/chrome-profilesDirectory for persistent browser profiles
LEAP_TILEfalseTile sessions in a grid (true | master | false)
LEAP_TILE_PADDING8Padding between tiled windows (px)
LEAP_MULTI_TILEfalseMulti-terminal tiling coordination across Leapfrog instances
LEAP_SCREEN_WIDTH(auto)Explicit screen width for tiling calculations
LEAP_SCREEN_HEIGHT(auto)Explicit screen height for tiling calculations
LEAP_HUDfalseClick ripple, zoom-to-target, scroll-to-target on agent actions
LEAP_AUTO_CONSENTtrueAuto-dismiss cookie consent banners (10 frameworks + fallback)
LEAP_TRACEfalsePer-session Playwright tracing (screenshots + DOM snapshots)
LEAP_RECORDfalseSession recording (action history export)
LEAP_REBROWSERfalseEnable Rebrowser integration
LEAP_AUTO_WARMfalseAuto-warm profiles by loading key URLs on session create
LEAP_CAPTCHA_PROVIDER(none)External CAPTCHA solver: capsolver | 2captcha | nopecha
LEAP_CAPTCHA_API_KEY(none)API key for the configured CAPTCHA provider
LEAP_MAX_SESSIONS_PER_CLIENT(none)Per-client session pool limit
LEAP_LOG_LEVELinfodebug / info / warn / error

Tests

 769 passing across 31 suites

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.

bash
npm test

Requirements

  • Node.js >= 20
  • Chromium — use system Chrome (LEAP_CHANNEL=chrome) or install via npx playwright-core install chromium

License

MIT

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "leapfrog": {
      "command": "npx",
      "args": [
        "-y",
        "leapfrog"
      ],
      "env": {
        "LEAP_MAX_SESSIONS": "15"
      }
    }
  }
}

Available Tools

  • session_create

    Open a new isolated browser session with separate cookies and state

  • session_destroy

    Close a browser session and free the slot

  • session_list

    List all active browser sessions with URLs and idle times

  • session_save_profile

    Save authentication state to disk for future sessions

  • session_list_profiles

    List saved authentication profiles

  • pool_status

    Get browser pool statistics, memory usage, and uptime

  • session_health

    Check if a browser session is healthy and responsive

  • navigate

    Navigate to a URL and return a compact snapshot with interactive elements

  • snapshot

    Capture current page state, optionally scoped with CSS selector

  • act

    Perform browser actions like click, fill, type, scroll, hover, navigation

  • wait_for

    Wait for elements, text, network idle, navigation, or JavaScript expressions

  • screenshot

    Capture PNG screenshot of full page or specific element

  • extract

    Extract text, HTML, title, URL, or evaluate JavaScript

  • tabs_list

    List all tabs in a browser session

  • tab_switch

    Switch to another tab or most recent popup

  • tab_close

    Close a tab (cannot close the last tab)

  • network_log

    View HTTP traffic filtered by URL, method, status, or content-type

  • console_log

    Read browser console output filtered by log level

  • network_intercept

    Block, mock, or log network requests by URL pattern

Use leapfrog MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once leapfrog is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add leapfrog as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the leapfrog MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "leapfrog": {
      "command": "npx",
      "args": [
        "-y",
        "leapfrog"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the leapfrog MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the leapfrog MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use leapfrog to help me with this task?
leapfrog
Sure. I read it.
Here is what I found using leapfrog.

Frequently asked questions

What is the leapfrog MCP server used for?

leapfrog is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use leapfrog MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use leapfrog with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use leapfrog MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With leapfrog connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect leapfrog MCP to TypingMind?

leapfrog runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does leapfrog MCP provide in TypingMind?

leapfrog exposes 19 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use leapfrog MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If leapfrog requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇