Logo van WebClaw

WebClaw

Community
kuroko1t

A WebMCP-native browser agent that runs inside your real Chrome — control it from Claude, Cursor, and any MCP client

Uitgeverkuroko1t
Repositorywebclaw
TaalTypeScript
Forks
8
Sterren
21
Beschikbare tools
17
Transporttypestdio
Categorieën
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    WebClaw biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 17 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    21 sterren en 8 forks in de gekoppelde repository.

WebClaw

CI npm License: MIT

A WebMCP-native browser agent that runs inside your real Chrome — control it from Claude, Cursor, and any MCP client.

Why WebClaw?

WebClawbrowser-usePlaywright MCP
Runs in real ChromeYes (extension)No (CDP)No (Playwright)
User's logged-in sessionsYesNoNo
Bot detectionResistantVulnerableVulnerable
WebMCP native toolsYesNoNo
Page understanding@ref a11y treeScreenshotsDOM / Screenshots

WebClaw runs as a Chrome extension, so it sees exactly what you see — cookies, logins, extensions, and all. No headless browser, no CDP injection, no bot flags.

Quick Start

1. Configure your MCP client

Add to claude_desktop_config.json:

json
{
  "mcpServers": {
    "webclaw": {
      "command": "npx",
      "args": ["-y", "webclaw-mcp"]
    }
  }
}

Config file locations:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
bash
claude mcp add webclaw -- npx -y webclaw-mcp

Add to .cursor/mcp.json in your project root:

json
{
  "mcpServers": {
    "webclaw": {
      "command": "npx",
      "args": ["-y", "webclaw-mcp"]
    }
  }
}

Add to .vscode/mcp.json in your project root:

json
{
  "servers": {
    "webclaw": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "webclaw-mcp"]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json:

json
{
  "mcpServers": {
    "webclaw": {
      "command": "npx",
      "args": ["-y", "webclaw-mcp"]
    }
  }
}

2. Load the Chrome extension

  1. Download the latest webclaw-extension.zip from the Releases page and unzip
  2. Open chrome://extensions/ → enable Developer mode
  3. Click Load unpacked → select the dist/ folder
bash
git clone https://github.com/kuroko1t/webclaw.git && cd webclaw && pnpm install && pnpm build

Then load packages/extension/dist/ as above.

3. Try it

Restart your MCP client and ask:

"Go to wikipedia.org and search for Model Context Protocol"

Chrome launches automatically on the first tool call. The Side Panel shows all activity in real-time.

How It Works

  1. The AI calls MCP tools (navigate_to, page_snapshot, click, ...)
  2. The MCP server forwards requests to the Chrome extension via WebSocket
  3. The content script reads the page as a compact accessibility tree with @ref labels
  4. The AI picks the right @ref and acts — no pixel coordinates, no CSS selectors

page_snapshot output

[page "Wikipedia, the free encyclopedia"]
  [search]
    [form]
      [@e3 searchbox "Search Wikipedia"]    ← AI targets this
      [@e4 button "Search"]                 ← and clicks this
  [main]
    [heading[1] "Welcome to Wikipedia"]
    [group]
      [heading[2] "From today's featured article"]
      ...

Every interactive element gets a stable @ref label. The AI reads the tree, picks the right @ref, and calls click / type_text / select_option.

MCP Tools (21)

ToolParametersDescription
navigate_tourl, tabId?Navigate to a URL
page_snapshotfocusRegion?, interactiveOnly?, tabId?Get a compact accessibility tree with @ref labels
clickref, snapshotId, tabId?Click an element by its @ref label
hoverref, snapshotId, tabId?Hover over an element to reveal hidden UI (dropdowns, tooltips)
type_textref, text, snapshotId, clearFirst?, tabId?Type text into an input/textarea by @ref
select_optionref, value, snapshotId, tabId?Select a dropdown option by @ref
drop_filesref, snapshotId, files, tabId?Drop files onto an element (e.g., upload images to GitHub issues)
screenshottabId?Capture the visible area of the active tab
handle_dialogaction, promptText?, tabId?Handle a native browser dialog (alert/confirm/prompt)
evaluateexpression, tabId?Evaluate JavaScript in the page context (e.g., localStorage, cookies, computed styles)
ToolParametersDescription
new_taburl?Open a new tab (optionally with a URL)
list_tabsList all open tabs with tabId, URL, title, and active state
switch_tabtabIdSwitch to a specific tab
close_tabtabIdClose a specific tab
ToolParametersDescription
go_backtabId?Go back to the previous page
go_forwardtabId?Go forward to the next page
reloadtabId?, bypassCache?Reload the current page
wait_for_navigationtabId?, timeoutMs?Wait for the page to finish loading
scroll_pagedirection?, amount?, ref?, snapshotId?, tabId?Scroll the page or scroll to a specific element
ToolParametersDescription
list_webmcp_toolstabId?Discover tools on the page (native WebMCP + auto-synthesized from buttons/forms)
invoke_webmcp_tooltoolName, args?, tabId?Invoke a discovered tool (native or synthesized)

Development

bash
git clone https://github.com/kuroko1t/webclaw.git
cd webclaw
pnpm install
pnpm build        # Build all packages
pnpm test         # Run all tests
pnpm dev          # Watch mode

Project Structure

packages/
  shared/          Type definitions, Zod schemas, utilities
  mcp-server/      MCP server with 21 tools, WebSocket bridge
  extension/       Chrome MV3 extension (service worker, content scripts, side panel)
examples/
  webmcp-demo-site/  WebMCP-enabled Todo app for testing native tool discovery

Multi-Session Support

WebClaw automatically scans ports 18080–18089, so you can run up to 10 MCP server instances simultaneously (e.g., multiple Claude Code sessions). Each instance binds to the first available port, and the Chrome extension connects to all of them.

Environment Variables

VariableDefaultDescription
WEBCLAW_PORT18080WebSocket port for MCP server ↔ extension communication. When set, disables auto-scanning and uses only this port.

Chrome extension not connected

  • Chrome is auto-launched when a tool is called. If it fails, start Chrome manually with the extension loaded
  • Check the Service Worker console (chrome://extensions/ → Details → Service Worker) for Connected to MCP server
  • Verify the MCP server is running (look for WebSocket server listening on 127.0.0.1:<port> in stderr)

MCP client cannot connect

  • Ensure npx webclaw-mcp runs successfully from your terminal
  • Check for port conflicts: WebClaw auto-scans 18080–18089. If all are in use, set WEBCLAW_PORT to a custom port
  • Restart your MCP client after updating the config

Content script not injecting

  • Content scripts only inject into http:// and https:// pages (not chrome://, file://, etc.)
  • Try refreshing the page after loading the extension

WebMCP tools not discovered

  • Native WebMCP requires Chrome 146+ with the navigator.modelContext API
  • Verify the page declares tools via navigator.modelContext.addTool() or <link rel="webmcp-manifest">

Contributing

Contributions are welcome! Please open an issue to discuss your idea before submitting a pull request.

Disclaimer

WebClaw is a browser automation tool intended for legitimate use cases such as personal productivity, development, testing, and accessibility. Users are responsible for complying with the terms of service of any website they interact with. The authors are not responsible for any misuse of this tool.

License

MIT

Installatie

TypingMind
{
  "mcpServers": {
    "kuroko1t-webclaw": {
      "command": "npx",
      "args": [
        "-y",
        "webclaw-mcp"
      ]
    }
  }
}

Beschikbare tools

  • navigate_to

    Navigate the browser to a URL

  • page_snapshot

    Get a compact accessibility tree snapshot of the current page with @ref labels for interactive elements

  • click

    Click an element identified by its @ref from the latest page snapshot

  • type_text

    Type text into an input element identified by its @ref

  • select_option

    Select an option in a dropdown/select element by its @ref

  • list_webmcp_tools

    List all WebMCP tools available on the current page (both native and auto-synthesized)

  • invoke_webmcp_tool

    Invoke a WebMCP tool declared by the current page

  • screenshot

    Capture a screenshot of the current visible tab

  • new_tab

    Open a new browser tab

  • list_tabs

    List all open browser tabs

  • switch_tab

    Switch to a specific browser tab

  • close_tab

    Close a browser tab

  • go_back

    Navigate back in browser history

  • go_forward

    Navigate forward in browser history

  • reload

    Reload the current page

  • wait_for_navigation

    Wait for the current page to finish loading

  • scroll_page

    Scroll the page or scroll to a specific element

Gebruik WebClaw MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra WebClaw is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg WebClaw toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van WebClaw.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "kuroko1t-webclaw": {
      "command": "npx",
      "args": [
        "-y",
        "webclaw-monorepo"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van WebClaw in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van WebClaw in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je WebClaw gebruiken om me hiermee te helpen?
WebClaw
Zeker. Ik heb het gelezen.
Dit vond ik met WebClaw.

Veelgestelde vragen

Waarvoor wordt de MCP-server WebClaw gebruikt?

WebClaw is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik WebClaw MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je WebClaw gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom WebClaw MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als WebClaw verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik WebClaw MCP met TypingMind?

WebClaw werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt WebClaw MCP in TypingMind?

WebClaw biedt 17 MCP-tools die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om WebClaw MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als WebClaw authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇