Logotipo de WebClaw

WebClaw

Comunidad
kuroko1t

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

Editorkuroko1t
Repositoriowebclaw
IdiomaTypeScript
Forks
8
Estrellas
21
Herramientas disponibles
17
Tipo de transportestdio
Categorías
LicenciaMIT
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    WebClaw ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 17 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    21 estrellas y 8 forks en el repositorio enlazado.

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

Instalación

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

Herramientas disponibles

  • 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

Usa el MCP de WebClaw con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado WebClaw, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade WebClaw como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de WebClaw.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "kuroko1t-webclaw": {
      "command": "npx",
      "args": [
        "-y",
        "webclaw-monorepo"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de WebClaw y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de WebClaw.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar WebClaw para ayudarme con esta tarea?
WebClaw
Claro. Lo he leído.
Esto he encontrado usando WebClaw.

Preguntas frecuentes

¿Para qué sirve el servidor MCP WebClaw?

WebClaw es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP WebClaw con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar WebClaw con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de WebClaw con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con WebClaw conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP WebClaw a TypingMind?

WebClaw funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP WebClaw en TypingMind?

WebClaw ofrece 17 herramientas MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP WebClaw?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si WebClaw requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇