CodingBaby-Browser-MCP logo

CodingBaby-Browser-MCP

Community
buyitsydney

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

Publisherbuyitsydney
RepositoryCodingBaby-Browser-MCP
LanguageJavaScript
Forks
5
Stars
29
Available tools
14
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    CodingBaby-Browser-MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 14 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    29 stars and 5 forks from the linked repository.

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

Installation

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

Available Tools

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

Use CodingBaby-Browser-MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once CodingBaby-Browser-MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add CodingBaby-Browser-MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the CodingBaby-Browser-MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "codingbaby-browser-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@sydneyassistent/codingbaby-browser-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the CodingBaby-Browser-MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the CodingBaby-Browser-MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use CodingBaby-Browser-MCP to help me with this task?
CodingBaby-Browser-MCP
Sure. I read it.
Here is what I found using CodingBaby-Browser-MCP.

Frequently asked questions

What is the CodingBaby-Browser-MCP MCP server used for?

CodingBaby-Browser-MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use CodingBaby-Browser-MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use CodingBaby-Browser-MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use CodingBaby-Browser-MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With CodingBaby-Browser-MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect CodingBaby-Browser-MCP MCP to TypingMind?

CodingBaby-Browser-MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does CodingBaby-Browser-MCP MCP provide in TypingMind?

CodingBaby-Browser-MCP exposes 14 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use CodingBaby-Browser-MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If CodingBaby-Browser-MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇