Skip to content

Quick Start Guide

  • Node.js 18 or higher
  • Chrome browser
  • Claude Desktop (optional)

Terminal window
cd /Users/indo/code/project/phantom-agent/mcp-server
npm install
npm start

Expected output:

[MCP] Starting BrowseHand MCP Server...
[MCP] WebSocket server listening on ws://localhost:8765
[MCP] MCP Server ready. Waiting for Chrome Extension connection...

  1. Open Chrome and navigate to chrome://extensions/
  2. Enable “Developer mode” in the top right corner
  3. Click “Load unpacked”
  4. Select the /Users/indo/code/project/phantom-agent/chrome-extension folder
  • “BrowseHand” should appear in your extensions list
  • Open any webpage, press F12 to open Console, and look for:
[BrowseHand] ✅ Connected to MCP server

Terminal window
open /Users/indo/code/project/phantom-agent/test-page.html

Or open the file directly in your browser.


To integrate with Claude Desktop, edit the configuration file.

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"browsehand": {
"command": "node",
"args": ["/Users/indo/code/project/phantom-agent/mcp-server/index.js"]
}
}
}

With the test page open, ask Claude:

Use the ping_extension tool to check the extension connection status
Use read_browser_content to read the current page content
Use execute_script to run document.title

Congratulations! Basic setup is complete.