Logo di CodingBaby-Browser-MCP

CodingBaby-Browser-MCP

Community
buyitsydney

MCP Server allowing AI agents to control Google Chrome via the CodingBaby Extension

Autorebuyitsydney
RepositoryCodingBaby-Browser-MCP
LinguaJavaScript
Fork
5
Stelle
29
Strumenti disponibili
14
Tipo di trasportostdio
Categorie
Link
  • Collega gli strumenti ai flussi di lavoro IA

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

  • 14 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

    29 stelle e 5 fork nel repository collegato.

CodingBaby-Browser-MCP

Overview

CodingBaby-Browser-MCP is a powerful tool that enables AI assistants like Claude 3.7 Sonnet in Cursor to control Chrome browser for automated tasks. This tool bridges the gap between AI and web browser interaction through a WebSocket-based communication protocol.

Features

  • Browser Automation: Control Chrome browser programmatically to navigate websites, fill forms, and perform clicks
  • Screenshot Capture: Take screenshots of entire pages or specific areas
  • Multi-tab Support: Create, list, select, and close browser tabs
  • Form Interaction: Type text, press keys, and select form elements
  • Batch Commands: Execute multiple browser operations in sequence
  • Viewport Control: Adjust browser window size for responsive testing

Architecture

The project consists of two main components:

  1. MCP Tool Server: A Node.js server that implements the Model Context Protocol (MCP) to communicate with AI assistants in Cursor
  2. Chrome Extension: A browser extension that receives commands from the MCP server and controls the browser

The system uses WebSocket (port 9876 by default) to establish a bidirectional communication channel between the MCP server and the Chrome extension.

Installation

Prerequisites

  • Node.js (v14 or higher)
  • Chrome browser
  • Cursor editor with Claude 3.7 Sonnet

MCP Tool Setup

  1. In Cursor, go to Settings → MCP
  2. Add new global MCP server with the following configuration:
json
{
  "mcpServers": {
    "CodingBaby-Browser-MCP": {
      "command": "npx",
      "args": ["@sydneyassistent/codingbaby-browser-mcp"]
    }
  }
}

Chrome Extension Setup

  1. Install the CodingBaby Extension from the Chrome Web Store
  2. Enable the extension and ensure it has the necessary permissions

Usage

Once installed, you can ask Claude 3.7 in Cursor to control your browser:

Use the browser to navigate to https://example.com

Available Commands

  • navigate: Open a URL in the browser
  • click: Click on elements
  • type: Enter text in form fields
  • pressKey: Simulate keyboard actions
  • scroll: Scroll in any direction
  • takeScreenshot: Capture browser content
  • wait: Pause execution for specified time
  • setViewport: Change browser window dimensions
  • tabNew, tabList, tabSelect, tabClose: Tab management
  • batch: Execute multiple commands in sequence
  • close: Close the browser session

Development and Debugging

If you've downloaded the source code, you can set up the project for development and debugging purposes.

Debugging Chrome Extension

To load and debug the Chrome extension from source code:

  1. Open Chrome and navigate to chrome://extensions/
  2. Enable "Developer mode" by toggling the switch in the top-right corner
  3. Click "Load unpacked" button
  4. Navigate to the chrome-extension directory in the project and select it
  5. The extension will now be loaded in developer mode
  6. You can view console logs by right-clicking the extension icon, selecting "Inspect" and opening the Console tab
  7. Make changes to the extension code and click the refresh icon on the extension card to apply changes

Debugging MCP Server in Cursor

To use the local MCP server code for debugging:

  1. Clone or download the repository to your local machine
  2. Navigate to the project directory and install dependencies:
    bash
    cd Browser-MCP
    npm install
  3. In Cursor, go to Settings → MCP
  4. Add a new MCP server with the following configuration:
    json
    {
      "mcpServers": {
        "CodingBaby-Browser-MCP-Dev": {
          "command": "node",
          "args": ["/absolute/path/to/your/Browser-MCP/index.js"]
        }
      }
    }
    Replace /absolute/path/to/your/ with the actual path to the downloaded project
  5. Click "Refresh" to load the MCP server
  6. You can now make changes to the MCP server code and restart the server by clicking "Refresh" in Cursor's MCP settings

For debugging, you can:

  • Check the Cursor MCP logs by clicking on the MCP status icon
  • Add console.error() statements to the code for more detailed logging
  • Run the MCP server manually from the terminal for full console output

Troubleshooting

  • Port Conflict: If port 9876 is already in use, the tool will attempt to release it automatically
  • Connection Issues: Ensure the Chrome extension is properly installed and enabled

License

MIT

Links

Installazione

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

Strumenti disponibili

  • navigate

    Navigate to a URL

  • click

    Perform click on a web page

  • type

    Type text into focused element

  • press_key

    Press a key or key combination on the keyboard

  • close

    Close the browser

  • scroll

    Scroll the page in a specified direction

  • set_viewport

    Set the viewport configuration of the browser

  • area_screenshot

    Take a screenshot of a specific area of the current page

  • wait

    Wait for a specified number of seconds, with a screenshot of the current page state after waiting

  • tab_list

    List browser tabs

  • tab_new

    Open a new tab

  • tab_select

    Select a tab by index

  • tab_close

    Close a tab

  • batch

    Execute a batch of browser operations in sequence. This powerful tool allows combining multiple actions (click, type, press_key, etc.) into a single command, reducing round-trip time. Ideal for form filling, search operations, and simple navigation sequences.

Usa MCP CodingBaby-Browser-MCP con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso CodingBaby-Browser-MCP, 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 CodingBaby-Browser-MCP 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 CodingBaby-Browser-MCP.
  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": {
    "codingbaby-browser-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@sydneyassistent/codingbaby-browser-mcp"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di CodingBaby-Browser-MCP, 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 CodingBaby-Browser-MCP.
  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 CodingBaby-Browser-MCP per aiutarmi con questa attività?
CodingBaby-Browser-MCP
Certo. Ho letto.
Ecco cosa ho trovato con CodingBaby-Browser-MCP.

Domande frequenti

A cosa serve il server MCP CodingBaby-Browser-MCP?

CodingBaby-Browser-MCP è 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 CodingBaby-Browser-MCP MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare CodingBaby-Browser-MCP 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 CodingBaby-Browser-MCP 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 CodingBaby-Browser-MCP, 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 CodingBaby-Browser-MCP MCP a TypingMind?

CodingBaby-Browser-MCP 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 CodingBaby-Browser-MCP MCP in TypingMind?

CodingBaby-Browser-MCP mette a disposizione 14 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 CodingBaby-Browser-MCP 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 CodingBaby-Browser-MCP 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 👇