WebClawのロゴ

WebClaw

コミュニティ
kuroko1t

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

公開者kuroko1t
リポジトリwebclaw
言語TypeScript
フォーク
8
スター
21
利用可能なツール
17
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    WebClawは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 17個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには21件のスターと8件のフォークがあります。

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

インストール

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

利用可能なツール

  • 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

WebClawのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度WebClawに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

WebClawをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. WebClawのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "kuroko1t-webclaw": {
      "command": "npx",
      "args": [
        "-y",
        "webclaw-monorepo"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてWebClawのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. WebClawのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
WebClawを使ってこのタスクを手伝ってもらえますか?
WebClaw
はい、読みました。
WebClawで調べた結果をお伝えします。

よくある質問

WebClaw MCPサーバーは何に使いますか?

WebClawは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでWebClaw MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでWebClawを利用できます。

TypingMindでWebClaw MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。WebClawを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

WebClaw MCPをTypingMindに接続するにはどうすればよいですか?

WebClawはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでWebClaw MCPのどのようなツールを利用できますか?

WebClawは17個のMCPツールを提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

WebClaw MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。WebClawで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇