Logo di MCP Browser Kit

MCP Browser Kit

Community
ndthanhdev

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

Autorendthanhdev
Repositorymcp-browser-kit
LinguaTypeScript
Fork
10
Stelle
54
Strumenti disponibili
11
Tipo di trasportostdio
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    MCP Browser Kit mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 11 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    54 stelle e 10 fork nel repository collegato.

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.

Installazione

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

Strumenti disponibili

  • 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

Usa MCP MCP Browser Kit con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso MCP Browser Kit, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi MCP Browser Kit come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di MCP Browser Kit.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "mcp-browser-kit": {
      "command": "npx",
      "args": [
        "-y",
        "root"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di MCP Browser Kit, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di MCP Browser Kit.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare MCP Browser Kit per aiutarmi con questa attività?
MCP Browser Kit
Certo. Ho letto.
Ecco cosa ho trovato con MCP Browser Kit.

Domande frequenti

A cosa serve il server MCP MCP Browser Kit?

MCP Browser Kit è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare MCP Browser Kit MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare MCP Browser Kit con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP MCP Browser Kit con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando MCP Browser Kit, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego MCP Browser Kit MCP a TypingMind?

MCP Browser Kit funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre MCP Browser Kit MCP in TypingMind?

MCP Browser Kit mette a disposizione 11 strumenti MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare MCP Browser Kit MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se MCP Browser Kit richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇