Logo de MCP Browser Kit

MCP Browser Kit

Comunidade
ndthanhdev

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

Publicado porndthanhdev
Repositóriomcp-browser-kit
IdiomaTypeScript
Forks
10
Estrelas
54
Ferramentas disponíveis
11
Tipo de transportestdio
Categorias
LicençaMIT
Links
  • Conecte ferramentas a fluxos de trabalho de IA

    MCP Browser Kit disponibiliza recursos MCP que podem ser usados por clientes e agentes de IA compatíveis.

  • 11 ferramentas disponíveis

    Confira abaixo as ações que podem ser chamadas, incluindo nomes e descrições quando fornecidos pelo servidor.

  • Configuração pronta para copiar

    Use os exemplos de instalação para configurar este servidor no seu cliente MCP preferido.

  • Indicadores da comunidade de código aberto

    54 estrelas e 10 forks no repositório vinculado.

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.

Instalação

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

Ferramentas disponíveis

  • 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

Use o MCP de MCP Browser Kit com vários modelos de IA

O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho. Assim, após conectar MCP Browser Kit, é possível usá-lo com diferentes modelos de IA no TypingMind, em vez de configurá-lo separadamente para cada modelo. Este MCP é executado localmente no seu dispositivo por meio do conector MCP do TypingMind.

Guia de configuração para usar o conector local

Use esta opção quando o servidor MCP precisar acessar arquivos locais, aplicativos ou recursos privados no seu computador.

1

Abra as configurações de MCP

No TypingMind, vá até Configurações, Configurações avançadas e depois Model Context Protocol e selecione Configurar conector.

  1. Abra o TypingMind no navegador.
  2. Clique no ícone de Ajustes.
  3. Acesse Configurações avançadas.
  4. Abra a seção Model Context Protocol.
  5. Clique em Configurar conector e selecione Este dispositivo.
Tela de configuração do conector MCP do TypingMind com a opção Este dispositivo selecionada
2

Execute o comando do conector

Selecione Este dispositivo, copie o comando do TypingMind e execute-o no Terminal. Mantenha o processo em execução enquanto usa o MCP.

  1. Copie o comando de configuração exibido pelo TypingMind.
  2. Abra o Terminal no macOS ou o Windows Terminal no Windows.
  3. Cole e execute o comando.
  4. Autorize a instalação do pacote se o Terminal pedir confirmação para continuar.
  5. Mantenha o processo em execução na janela do Terminal enquanto usa as ferramentas MCP.
3

Adicione MCP Browser Kit como servidor

Quando o status do conector for Pronto, clique em Editar e cole a configuração do servidor MCP.

  1. Aguarde até que o status do conector mostre Pronto.
  2. Clique em Editar.
  3. Cole a configuração do servidor MCP de MCP Browser Kit.
  4. Salve a lista de servidores.
  5. Atualize para confirmar se o conector ainda está pronto para uso.
Configurações de MCP do TypingMind mostrando um servidor ativo e o botão Editar
{
  "mcpServers": {
    "mcp-browser-kit": {
      "command": "npx",
      "args": [
        "-y",
        "root"
      ]
    }
  }
}
4

Use a conexão com diferentes modelos

Salve a lista de servidores, abra Plugins, ative as ferramentas MCP de MCP Browser Kit, selecione qualquer modelo de IA compatível no TypingMind e use as ferramentas no chat ou atribua-as a um agente de IA.

  1. Abra a página Plugins no TypingMind.
  2. Ative as ferramentas MCP de MCP Browser Kit.
  3. Inicie um chat e escolha o modelo de IA que deseja usar.
  4. Use as ferramentas MCP no chat ou atribua-as a um agente de IA.
  5. Mude para outro modelo de IA sempre que necessário, sem reconectar o MCP.
Chat do TypingMind usando ferramentas MCP ativadas com um modelo de IA selecionado
Pode usar MCP Browser Kit para me ajudar nesta tarefa?
MCP Browser Kit
Claro. Já li.
Veja o que encontrei usando MCP Browser Kit.

Perguntas frequentes

Para que serve o servidor MCP MCP Browser Kit?

MCP Browser Kit é um servidor MCP que permite que aplicativos de IA compatíveis se conectem a ferramentas externas e informações de contexto. No TypingMind, basta adicionar esse servidor MCP uma vez para disponibilizar suas ferramentas no seu espaço de trabalho com IA.

Posso usar o MCP MCP Browser Kit com vários modelos de IA no TypingMind?

Sim. O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho, permitindo usar MCP Browser Kit com diferentes modelos de IA, como Claude, ChatGPT, Gemini ou outros modelos configurados no TypingMind, sem configurar o servidor MCP separadamente para cada modelo.

Por que usar o MCP MCP Browser Kit com o TypingMind?

O TypingMind é uma das melhores interfaces de chat com LLMs porque reúne vários modelos de IA, prompts, plugins, agentes de IA, chaves de API e ferramentas MCP em um só espaço de trabalho. Com MCP Browser Kit conectado, é possível usar suas ferramentas MCP nos seus modelos preferidos e manter seu fluxo de trabalho de chat organizado no TypingMind.

Como conecto o MCP MCP Browser Kit ao TypingMind?

MCP Browser Kit funciona por meio do conector MCP local do TypingMind. Essa é a melhor opção quando o servidor MCP precisa acessar arquivos locais, apps de desktop, ferramentas de linha de comando ou recursos privados no seu computador.

Quais ferramentas o MCP MCP Browser Kit oferece no TypingMind?

MCP Browser Kit disponibiliza 11 ferramentas MCP que podem ser ativadas na página Plugins do TypingMind e usadas no chat ou atribuídas a agentes de IA.

Preciso compartilhar minhas chaves de API com o TypingMind para usar o MCP MCP Browser Kit?

Não. O TypingMind prioriza o uso local e permite manter seus provedores de modelos, chaves de API, prompts e configuração MCP sob seu controle. Se MCP Browser Kit exigir autenticação, adicione os cabeçalhos, as configurações OAuth ou a configuração local exigidos por esse servidor MCP ao criar a conexão.

Servidores MCP relacionados

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇