Logo MCP Browser Kit

MCP Browser Kit

Cộng đồng
ndthanhdev

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

Nhà phát hànhndthanhdev
Kho mãmcp-browser-kit
Ngôn ngữTypeScript
Bản fork
10
Sao
54
Công cụ có sẵn
11
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    MCP Browser Kit cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 11 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    54 sao và 10 bản fork từ kho mã được liên kết.

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.

Cài đặt

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

Công cụ có sẵn

  • 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

Dùng MCP MCP Browser Kit với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối MCP Browser Kit, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm MCP Browser Kit làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của MCP Browser Kit.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "mcp-browser-kit": {
      "command": "npx",
      "args": [
        "-y",
        "root"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của MCP Browser Kit, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của MCP Browser Kit.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng MCP Browser Kit giúp tôi làm việc này không?
MCP Browser Kit
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng MCP Browser Kit.

Câu hỏi thường gặp

Máy chủ MCP MCP Browser Kit dùng để làm gì?

MCP Browser Kit là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP MCP Browser Kit với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng MCP Browser Kit với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP MCP Browser Kit với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối MCP Browser Kit, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP MCP Browser Kit với TypingMind?

MCP Browser Kit hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP MCP Browser Kit cung cấp những công cụ nào trong TypingMind?

MCP Browser Kit cung cấp 11 công cụ MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP MCP Browser Kit không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu MCP Browser Kit yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇