MCP Browser Kitのロゴ

MCP Browser Kit

コミュニティ
ndthanhdev

An MCP Server that enables AI assistants to interact with your local browsers.

公開者ndthanhdev
リポジトリmcp-browser-kit
言語TypeScript
フォーク
10
スター
54
利用可能なツール
11
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

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

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

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

  • コピーして使える設定

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

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

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

MCP Browser Kit

NPM Version Firefox Add-on Chrome Web Store Workspace Updated Checked with Biome Trust Score

mcp-browser-kit MCP server

🚀 On the main branch? You're viewing the bleeding-edge dev docs! For other versions, check out the release/* branches.

An MCP Server that enables AI assistants to interact with your local browsers.

https://github.com/user-attachments/assets/1fbf87fd-06d1-42bf-a06f-cc2bbdf375a8

Usage

  1. Add MCP Browser Kit to your MCP Client:

    json
    {
    	"mcpServers": {
    		"browser-kit": {
    			"command": "npx",
    			"args": ["@mcp-browser-kit/server@latest"]
    		}
    	}
    }

    By default the server use stdio transport, alternatively you can use http transport:

    bash
    npx @mcp-browser-kit/server@latest --transport http
    # optional flags (defaults shown):
    #   --http-host 127.0.0.1
    #   --http-port 21082

    Then point your MCP client at the URL instead of a command:

    json
    {
    	"mcpServers": {
    		"browser-kit": {
    			"url": "http://127.0.0.1:21082/mcp"
    		}
    	}
    }

    Security: there's no auth yet, so --http-host defaults to 127.0.0.1 (loopback only). Only pass --http-host 0.0.0.0 (or a LAN address) if you understand that anyone who can reach that host/port can control your browser.

  2. Choose the right extension build for your browser:

    • Check the Compatibility table below to see which build (M2 or M3) is compatible with your browser
    • Note that M2 builds offer more functionality than M3 builds, so prefer M2 if your browser supports both
  3. Download the latest compatible build from The Latest Release.

  4. Load the extension into a compatible browser and enable it.

  5. Refresh open tabs to ensure extension scripts are loaded.

  6. Start messaging on your MCP Client:

    Use browser-kit, star the last open GitHub repo on my browser
  7. Optional, check User Notes for more information.

Compatibility table

The M2 build supports more functionalities than the M3 build. Extension file name patterns:

  • M2 build:
    • Chromium: mcp_browser_kit_m2-<version>.zip (e.g., mcp_browser_kit_m2-5.0.0.zip)
    • Firefox: mcp_browser_kit_m2-<version>.xpi (e.g., mcp_browser_kit_m2-5.0.0.xpi)
  • M3 build: mcp_browser_kit_m3-<version>.zip (e.g., mcp_browser_kit_m3-5.0.0.zip)
BrowserM2 buildM3 build
Chrome❌✅
Brave✅✅
Edge✅✅
Firefox✅❌
Safari✅❌

Load Extension

  • Chromium-based browsers (Chrome, Brave, Edge)
    1. Unzip the downloaded .zip file
    2. Open chrome://extensions/
    3. Enable Developer mode
    4. Click Load unpacked
    5. Select the unpacked extension folder
  • Firefox
    1. Open about:addons
    2. Click the gear icon and select Install Add-on From File
    3. Select the downloaded .xpi file
  • Safari
    1. Unzip the downloaded .zip file
    2. Open Develop > Show Extension Builder
    3. Click + and select Add Extension
    4. Select the unpacked extension folder
    5. Click Install to install the extension

User Notes

Note for Alpha stage: Consider using a separate browser profile or dedicated browser instance with this MCP to prevent sensitive data from being unintentionally exposed to AI model providers.

Security: BrowserKit currently lacks authentication for incoming requests. Keep ports 21082 and 2769-2799 on your device network only.

Hosted deployment

A hosted deployment is available on Fronteir AI.

インストール

TypingMind
{
  "mcpServers": {
    "mcp-browser-kit": {
      "command": "npx",
      "args": [
        "@mcp-browser-kit/server"
      ]
    }
  }
}

利用可能なツール

  • getBasicBrowserContext

    🌐 GET BROWSER CONTEXT - CRITICAL FIRST STEP BEFORE USING ANY OTHER TOOLS!

    • This tool MUST be called first to initialize browser automation and get essential data.
    • Returns data structure with:
      • tabs: Array of browser tabs with properties like id, url, title, and active status
      • manifestVersion: Version of extension manifest format supported by the browser
    • Each tab includes a unique tabId required for all other tool operations
    • The active tab (marked with 'active: true') is typically your target for automation
    • The manifestVersion determines which browser features and extension capabilities are available
    • Different browsers support different manifest versions, affecting available tools and API access
    • Standard workflow:
      1. getBasicBrowserContext → get browser state and tabId
      2. Analyze page content based on your goal and manifest version:
        • If interaction is required (clicking, filling forms, etc.): · For Manifest Version 2: Use captureActiveTab for visual
  • captureActiveTab

    📷 Captures a screenshot of the active browser tab

    • Use this tool after calling getBasicBrowserContext to obtain visual context of the current page
    • The screenshot helps you see what the browser is displaying to the user
    • No parameters are needed as it automatically captures the active tab
    • Returns an image with width, height, and data in base64 format
    • Workflow: 1) getBasicBrowserContext → 2) captureActiveTab → 3) interact with elements
    • NOTE: This feature is only available in browsers supporting Manifest Version 2
  • getInnerText

    📝 Extracts all text content from the current web page

    • Retrieves all visible text from the active tab
    • Requires the tabId obtained from getBasicBrowserContext
    • Use this to analyze the page content without visual elements
    • Returns a string containing all the text on the page
    • Useful for getting a quick overview of page content
  • getReadableElements

    🔍 Lists all interactive elements on the page with their text

    • Returns a list of elements with their index, HTML tag, and text content
    • Requires the tabId obtained from getBasicBrowserContext
    • Each element is returned as [index, tag, text]
    • Use the index to interact with elements through click or fill operations
    • Helps you identify which elements can be interacted with by their text
  • clickOnViewableElement

    👆 Clicks on an element at specific X,Y coordinates

    • Use this to click on elements by their position on the screen
    • Requires tabId from getBasicBrowserContext and x,y coordinates from the screenshot
    • Coordinates are based on the captureActiveTab screenshot dimensions
    • Useful when you know the visual position of an element
    • Parameters: tabId, x, y
  • fillTextToViewableElement

    ⌨️ Types text into an input field at specific X,Y coordinates

    • Use this to enter text into form fields by their position
    • Requires tabId from getBasicBrowserContext, x,y coordinates, and the text to enter
    • Coordinates are based on the captureActiveTab screenshot dimensions
    • First clicks at the specified position, then types the provided text
    • After filling text, check for associated submit-like buttons (submit, search, send, etc.)
    • If submit button is visible, use clickOnViewableElement with that button
    • If no submit button is visible, use hitEnterOnViewableElement instead
    • Parameters: tabId, x, y, value (text to enter)
  • hitEnterOnViewableElement

    ↵ Hits the Enter key on an element at specific X,Y coordinates

    • Use this to trigger actions like form submission or button clicks
    • Requires tabId from getBasicBrowserContext and x,y coordinates from the screenshot
    • Coordinates are based on the captureActiveTab screenshot dimensions
    • Parameters: tabId, x, y
  • clickOnReadableElement

    🔘 Clicks on an element identified by its index from getReadableElements

    • Use this to click on elements after identifying them by their text
    • Requires tabId from getBasicBrowserContext and index from getReadableElements
    • More reliable than coordinate-based clicking for dynamic layouts
    • First call getReadableElements to get the index, then use this tool
    • Parameters: tabId, index
  • fillTextToReadableElement

    ✏️ Types text into an input field identified by its index from getReadableElements

    • Use this to enter text into form fields identified by their text
    • Requires tabId from getBasicBrowserContext, index from getReadableElements, and text to enter
    • Works with text inputs, textareas, and other editable elements
    • First call getReadableElements to get the index, then use this tool
    • After filling text, check for associated submit-like buttons (submit, search, send, etc.)
    • If submit button is visible, use clickOnReadableElement with that button
    • If no submit button is visible, use hitEnterOnReadableElement instead
    • Parameters: tabId, index, value (text to enter)
  • hitEnterOnReadableElement

    ↵ Hits the Enter key on an element identified by its index from getReadableElements

    • Use this to trigger actions like form submission or button clicks
    • Requires tabId from getBasicBrowserContext and index from getReadableElements
    • More reliable than coordinate-based clicking for dynamic layouts
    • First call getReadableElements to get the index, then use this tool
    • Parameters: tabId, index
  • invokeJsFn

    ⚙️ Executes custom JavaScript code in the context of the web page

    • Use this for advanced operations not covered by other tools
    • Requires tabId from getBasicBrowserContext and JavaScript code to execute
    • The code should be the body of a function that returns a value
    • Example: 'return document.title;' to get the page title
    • Gives you full flexibility for custom browser automation
    • Parameters: tabId, fnBodyCode (JavaScript code as string)
    • NOTE: This feature is only available in browsers supporting Manifest Version 2

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

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度MCP Browser Kitに接続すれば、モデルごとに個別に設定することなく、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

MCP Browser Kitをサーバーとして追加

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

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

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

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

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

よくある質問

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

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

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

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

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

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

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

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

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

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

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

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

関連するMCPサーバー

すべて見る

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

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