by buyitsydney
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.
The project consists of two main components:
The system uses WebSocket (port 9876 by default) to establish a bidirectional communication channel between the MCP server and the Chrome extension.
*Configuration content*
Once installed, you can ask Claude 3.7 in Cursor to control your browser:
Use the browser to navigate to https://example.com
navigate
: Open a URL in the browserclick
: Click on elementstype
: Enter text in form fieldspressKey
: Simulate keyboard actionsscroll
: Scroll in any directiontakeScreenshot
: Capture browser contentwait
: Pause execution for specified timesetViewport
: Change browser window dimensionstabNew
, tabList
, tabSelect
, tabClose
: Tab managementbatch
: Execute multiple commands in sequenceclose
: Close the browser sessionIf you've downloaded the source code, you can set up the project for development and debugging purposes.
To load and debug the Chrome extension from source code:
chrome://extensions/
chrome-extension
directory in the project and select itTo use the local MCP server code for debugging:
cd Browser-MCP npm install
Replace{ "mcpServers": { "CodingBaby-Browser-MCP-Dev": { "command": "node", "args": ["/absolute/path/to/your/Browser-MCP/index.js"] } } }
/absolute/path/to/your/
with the actual path to the downloaded projectFor debugging, you can:
console.error()
statements to the code for more detailed loggingMIT
No version information available
0 contributors