brave-real-browser-mcp-server 2.9.18 → 2.9.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -114,8 +114,8 @@ assistants to control a real browser, extract content, and more.
114
114
 
115
115
  - **🔄 Auto-Update System**: Automatically updates all dependencies to latest versions on every `npm install`
116
116
  - **Stealth by default**: All browser instances use anti-detection features
117
- - **Enhanced Windows support**: Comprehensive Chrome detection and ECONNREFUSED error fixes (v1.3.0)
118
- - **Smart Chrome detection**: Registry-based detection + 15+ installation paths (Windows)
117
+ - **Enhanced Windows support**: Comprehensive Brave detection and ECONNREFUSED error fixes (v1.3.0)
118
+ - **Smart Brave detection**: Registry-based detection + 15+ installation paths (Windows)
119
119
  - **Connection resilience**: Automatic localhost/127.0.0.1 fallback with port management
120
120
  - **Multiple retry strategies**: 5 different connection approaches with progressive fallback
121
121
  - **Advanced configuration**: Full support for all brave-real-browser options
@@ -133,25 +133,25 @@ assistants to control a real browser, extract content, and more.
133
133
 
134
134
  - Node.js >= 18.0.0
135
135
  - npm or yarn
136
- - Google Chrome or Chromium browser installed
136
+ - Brave Browser installed (recommended) or Google Chrome/Chromium as fallback
137
137
  - Basic understanding of TypeScript/JavaScript (for development)
138
138
 
139
139
  ### Platform-Specific Requirements
140
140
 
141
141
  **Windows:**
142
- - Google Chrome installation (automatic detection in v1.3.0+ includes):
143
- - Standard installations: `C:\Program Files\Google\Chrome\Application\chrome.exe`
144
- - 32-bit installations: `C:\Program Files (x86)\Google\Chrome\Application\chrome.exe`
145
- - User installations: `%LOCALAPPDATA%\Google\Chrome\Application\chrome.exe`
146
- - Chrome Canary: `%LOCALAPPDATA%\Google\Chrome SxS\Application\chrome.exe`
142
+ - Brave Browser installation (automatic detection in v1.3.0+ includes):
143
+ - Standard installations: `C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe`
144
+ - 32-bit installations: `C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe`
145
+ - User installations: `%LOCALAPPDATA%\BraveSoftware\Brave-Browser\Application\brave.exe`
146
+ - Brave Beta/Nightly: `%LOCALAPPDATA%\BraveSoftware\Brave-Browser-Beta\Application\brave.exe`
147
147
  - Portable installations and Registry-detected paths
148
- - Manual path specification: Use `CHROME_PATH` environment variable
148
+ - Manual path specification: Use `BRAVE_PATH` environment variable
149
149
 
150
150
  **macOS:**
151
- - Google Chrome or Chromium must be installed in `/Applications/`
151
+ - Brave Browser must be installed in `/Applications/Brave Browser.app`
152
152
 
153
153
  **Linux:**
154
- - Install Chrome/Chromium: `sudo apt-get install -y google-chrome-stable` or `sudo apt-get install -y chromium-browser`
154
+ - Install Brave: `sudo apt install brave-browser` or download from https://brave.com/linux/
155
155
  - Install xvfb for headless operation: `sudo apt-get install -y xvfb`
156
156
 
157
157
  ## Installation for Developers
@@ -231,11 +231,11 @@ This command:
231
231
 
232
232
  #### Method 2: Add with Environment Variables
233
233
 
234
- If you need to configure proxy settings or custom Chrome paths:
234
+ If you need to configure proxy settings or custom Brave paths:
235
235
 
236
236
  ```bash
237
237
  claude mcp add brave-real-browser \
238
- -e CHROME_PATH="/path/to/chrome" \
238
+ -e BRAVE_PATH="/path/to/brave" \
239
239
  -e PROXY_URL="http://proxy:8080" \
240
240
  -- npx brave-real-browser-mcp-server@latest
241
241
  ```
@@ -262,7 +262,7 @@ claude mcp add-json brave-real-browser '{
262
262
  "command": "npx",
263
263
  "args": ["brave-real-browser-mcp-server@latest"],
264
264
  "env": {
265
- "CHROME_PATH": "/path/to/chrome",
265
+ "BRAVE_PATH": "/path/to/brave",
266
266
  "PROXY_URL": "http://proxy:8080"
267
267
  }
268
268
  }'
@@ -337,7 +337,7 @@ Cursor IDE uses the same npx approach - no installation needed! Here are the set
337
337
 
338
338
  > **Important:** Just like Claude Desktop, Cursor will use `npx` to automatically download and run the server. You don't need to install anything with npm!
339
339
 
340
- **Windows-Specific Configuration (if experiencing Chrome path issues):**
340
+ **Windows-Specific Configuration (if experiencing Brave path issues):**
341
341
  ```json
342
342
  {
343
343
  "mcpServers": {
@@ -345,7 +345,7 @@ Cursor IDE uses the same npx approach - no installation needed! Here are the set
345
345
  "command": "npx",
346
346
  "args": ["brave-real-browser-mcp-server@latest"],
347
347
  "env": {
348
- "CHROME_PATH": "C:/Program Files/Google/Chrome/Application/chrome.exe"
348
+ "BRAVE_PATH": "C:/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe"
349
349
  }
350
350
  }
351
351
  }
@@ -354,7 +354,7 @@ Cursor IDE uses the same npx approach - no installation needed! Here are the set
354
354
 
355
355
  > **Note**: Browser options like headless mode should be configured when initializing the browser through the `browser_init` tool, not via environment variables.
356
356
 
357
- **Advanced Configuration with Custom Chrome Path:**
357
+ **Advanced Configuration with Custom Brave Path:**
358
358
  ```json
359
359
  {
360
360
  "mcpServers": {
@@ -362,7 +362,7 @@ Cursor IDE uses the same npx approach - no installation needed! Here are the set
362
362
  "command": "npx",
363
363
  "args": ["brave-real-browser-mcp-server@latest"],
364
364
  "env": {
365
- "CHROME_PATH": "C:/Program Files/Google/Chrome/Application/chrome.exe"
365
+ "BRAVE_PATH": "C:/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe"
366
366
  }
367
367
  }
368
368
  }
@@ -371,34 +371,34 @@ Cursor IDE uses the same npx approach - no installation needed! Here are the set
371
371
 
372
372
  > **Note**: Proxy settings and browser options should be configured when asking Claude to initialize the browser using the `browser_init` tool.
373
373
 
374
- #### Platform-Specific Chrome Paths for Cursor IDE
374
+ #### Platform-Specific Brave Paths for Cursor IDE
375
375
 
376
- If Chrome auto-detection fails, you can specify the Chrome path using the `CHROME_PATH` environment variable:
376
+ If Brave auto-detection fails, you can specify the Brave path using the `BRAVE_PATH` environment variable:
377
377
 
378
378
  **Windows:**
379
379
  ```json
380
380
  "env": {
381
- "CHROME_PATH": "C:/Program Files/Google/Chrome/Application/chrome.exe"
381
+ "BRAVE_PATH": "C:/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe"
382
382
  }
383
383
  ```
384
384
  Alternative Windows paths:
385
- - `"C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"`
386
- - `"%LOCALAPPDATA%/Google/Chrome/Application/chrome.exe"`
385
+ - `"C:/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe"`
386
+ - `"%LOCALAPPDATA%/BraveSoftware/Brave-Browser/Application/brave.exe"`
387
387
 
388
388
  **macOS:**
389
389
  ```json
390
390
  "env": {
391
- "CHROME_PATH": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
391
+ "BRAVE_PATH": "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"
392
392
  }
393
393
  ```
394
394
 
395
395
  **Linux:**
396
396
  ```json
397
397
  "env": {
398
- "CHROME_PATH": "/usr/bin/google-chrome"
398
+ "BRAVE_PATH": "/usr/bin/brave-browser"
399
399
  }
400
400
  ```
401
- Alternative Linux paths: `/usr/bin/chromium-browser`, `/snap/bin/chromium`
401
+ Alternative Linux paths: `/usr/bin/brave`, `/snap/bin/brave`
402
402
 
403
403
 
404
404
  #### Testing Cursor IDE Setup
@@ -423,9 +423,9 @@ If successful, you should see:
423
423
  - Ensure Node.js 18+ is installed
424
424
 
425
425
  2. **"Browser failed to launch" on Windows**
426
- - Add explicit Chrome path in `executablePath`
426
+ - Add explicit Brave path in `executablePath`
427
427
  - Try running Cursor IDE as Administrator
428
- - Check Windows Defender isn't blocking Chrome
428
+ - Check Windows Defender isn't blocking Brave
429
429
 
430
430
  3. **"Permission denied"**
431
431
  - Use `sudo npm install -g brave-real-browser-mcp-server` on Linux/Mac
@@ -586,27 +586,27 @@ brave-real-browser implementation.
586
586
 
587
587
  ## Configuration
588
588
 
589
- ### Automatic Chrome Path Detection (Enhanced in v1.3.0)
589
+ ### Automatic Brave Path Detection (Enhanced in v1.3.0)
590
590
 
591
- The server automatically detects Chrome installation paths across different operating systems with significantly improved Windows support:
591
+ The server automatically detects Brave installation paths across different operating systems with significantly improved Windows support:
592
592
 
593
593
  - **Windows (v1.3.0+)**:
594
- - Registry-based detection for installed Chrome versions
594
+ - Registry-based detection for installed Brave versions
595
595
  - Searches 15+ common installation directories including Program Files, user-specific locations, and portable installations
596
- - Support for Chrome Canary fallback
597
- - Environment variable detection (`CHROME_PATH`, `PUPPETEER_EXECUTABLE_PATH`)
598
- - Detailed troubleshooting guidance when Chrome is not found
596
+ - Support for Brave Beta and Nightly fallback
597
+ - Environment variable detection (`BRAVE_PATH`, `PUPPETEER_EXECUTABLE_PATH`)
598
+ - Detailed troubleshooting guidance when Brave is not found
599
599
 
600
- - **macOS**: Looks for Chrome in `/Applications/Google Chrome.app/` and Chrome Canary locations
600
+ - **macOS**: Looks for Brave in `/Applications/Brave Browser.app/` and Beta/Nightly locations
601
601
 
602
- - **Linux**: Checks multiple locations including `/usr/bin/google-chrome`, `/usr/bin/chromium-browser`, and snap installations
602
+ - **Linux**: Checks multiple locations including `/usr/bin/brave-browser`, `/usr/bin/brave`, and snap installations
603
603
 
604
604
  **Windows Registry Detection** (NEW in v1.3.0):
605
- The server now queries Windows Registry to find Chrome installations, making detection more reliable across different installation types.
605
+ The server now queries Windows Registry to find Brave installations, making detection more reliable across different installation types.
606
606
 
607
- If Chrome is not found automatically, you can specify a custom path using:
608
- 1. Environment variable: `set CHROME_PATH="C:\Your\Chrome\Path\chrome.exe"`
609
- 2. Browser init option: `customConfig.chromePath` when initializing the browser
607
+ If Brave is not found automatically, you can specify a custom path using:
608
+ 1. Environment variable: `set BRAVE_PATH="C:\Your\Brave\Path\brave.exe"`
609
+ 2. Browser init option: `customConfig.bravePath` when initializing the browser
610
610
 
611
611
  ### Configuring Custom Options (like headless mode)
612
612
  Custom options like headless mode are **not configured in the MCP config file**. Instead, they're passed when initializing the browser using the `browser_init` tool:
@@ -662,11 +662,11 @@ When initializing the browser with `browser_init`, you can configure:
662
662
 
663
663
  ### Advanced Configuration Examples
664
664
 
665
- #### Specifying Custom Chrome Path
665
+ #### Specifying Custom Brave Path
666
666
  ```json
667
667
  {
668
668
  "customConfig": {
669
- "chromePath": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
669
+ "bravePath": "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
670
670
  }
671
671
  }
672
672
  ```
@@ -709,14 +709,14 @@ For advanced users, you can modify the server behavior by editing the source cod
709
709
 
710
710
  Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0.1:60725` error commonly experienced on Windows systems:
711
711
 
712
- **Enhanced Chrome Path Detection:**
713
- - Added Windows Registry-based Chrome detection
712
+ **Enhanced Brave Path Detection:**
713
+ - Added Windows Registry-based Brave detection
714
714
  - Expanded search to 15+ Windows installation locations including portable installations
715
- - Added support for Chrome Canary fallback
716
- - Environment variable support (`CHROME_PATH`, `PUPPETEER_EXECUTABLE_PATH`)
715
+ - Added support for Brave Beta and Nightly fallback
716
+ - Environment variable support (`BRAVE_PATH`, `PUPPETEER_EXECUTABLE_PATH`)
717
717
 
718
718
  **Windows-Specific Launch Optimizations:**
719
- - 20+ Windows-specific Chrome flags for better compatibility
719
+ - 20+ Windows-specific Brave flags for better compatibility
720
720
  - Multiple fallback strategies (5 different connection approaches)
721
721
  - Progressive retry logic with exponential backoff
722
722
  - Enhanced timeout handling (120s for Windows vs 90s for other platforms)
@@ -731,12 +731,12 @@ Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0
731
731
 
732
732
  1. **Environment Variables (Recommended):**
733
733
  ```bash
734
- set CHROME_PATH="C:\Program Files\Google\Chrome\Application\chrome.exe"
734
+ set BRAVE_PATH="C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe"
735
735
  ```
736
736
 
737
- 2. **Manual Chrome Path Configuration:**
737
+ 2. **Manual Brave Path Configuration:**
738
738
  ```text
739
- Ask Claude: "Initialize browser with custom Chrome path at C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
739
+ Ask Claude: "Initialize browser with custom Brave path at C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
740
740
  ```
741
741
 
742
742
  3. **Network Troubleshooting:**
@@ -750,10 +750,10 @@ Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0
750
750
  # Ensure: 127.0.0.1 localhost
751
751
  ```
752
752
 
753
- 4. **Chrome Process Management:**
753
+ 4. **Brave Process Management:**
754
754
  ```bash
755
- # Kill existing Chrome processes
756
- taskkill /f /im chrome.exe
755
+ # Kill existing Brave processes
756
+ taskkill /f /im brave.exe
757
757
  ```
758
758
 
759
759
  ### Common Issues
@@ -812,20 +812,20 @@ Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0
812
812
  - Check your PATH includes npm global binaries: `npm config get prefix`
813
813
 
814
814
  3. **Browser won't start**
815
- - Check if Chrome/Chromium is installed in standard locations
815
+ - Check if Brave is installed in standard locations
816
816
  - **Windows specific troubleshooting**:
817
817
 
818
- **Step 1: Verify Chrome Installation Paths**
818
+ **Step 1: Verify Brave Installation Paths**
819
819
  Check these locations in order:
820
- - `C:\Program Files\Google\Chrome\Application\chrome.exe`
821
- - `C:\Program Files (x86)\Google\Chrome\Application\chrome.exe`
822
- - `%LOCALAPPDATA%\Google\Chrome\Application\chrome.exe`
823
- - `%PROGRAMFILES%\Google\Chrome\Application\chrome.exe`
820
+ - `C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe`
821
+ - `C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe`
822
+ - `%LOCALAPPDATA%\BraveSoftware\Brave-Browser\Application\brave.exe`
823
+ - `%PROGRAMFILES%\BraveSoftware\Brave-Browser\Application\brave.exe`
824
824
 
825
825
  **Step 2: Manual Path Configuration**
826
- If Chrome is in a different location, specify it manually:
826
+ If Brave is in a different location, specify it manually:
827
827
  ```
828
- Ask Claude: "Initialize browser with custom Chrome path at C:\Your\Chrome\Path\chrome.exe"
828
+ Ask Claude: "Initialize browser with custom Brave path at C:\Your\Brave\Path\brave.exe"
829
829
  ```
830
830
 
831
831
  **Step 3: Windows Launch Arguments**
@@ -836,15 +836,15 @@ Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0
836
836
 
837
837
  **Step 4: Windows-Specific Solutions**
838
838
  - **Run as Administrator**: Try running your IDE/terminal as Administrator
839
- - **Windows Defender**: Add Chrome and Node.js to Windows Defender exclusions
840
- - **Antivirus Software**: Temporarily disable antivirus to test if it's blocking Chrome
839
+ - **Windows Defender**: Add Brave and Node.js to Windows Defender exclusions
840
+ - **Antivirus Software**: Temporarily disable antivirus to test if it's blocking Brave
841
841
  - **User Account Control**: Lower UAC settings temporarily for testing
842
- - **Chrome Processes**: Kill any existing Chrome processes in Task Manager
842
+ - **Brave Processes**: Kill any existing Brave processes in Task Manager
843
843
 
844
- **Step 5: Alternative Chrome Installation**
845
- If Chrome detection still fails:
846
- - Download Chrome directly from [google.com/chrome](https://www.google.com/chrome/)
847
- - Install to default location (`C:\Program Files\Google\Chrome\`)
844
+ **Step 5: Alternative Brave Installation**
845
+ If Brave detection still fails:
846
+ - Download Brave directly from [brave.com/download](https://brave.com/download/)
847
+ - Install to default location (`C:\Program Files\BraveSoftware\Brave-Browser\`)
848
848
  - Restart your IDE after installation
849
849
 
850
850
  **Step 6: PowerShell vs Command Prompt**
@@ -857,10 +857,10 @@ Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0
857
857
  - Clear npm cache: `npm cache clean --force`
858
858
  - Reinstall global packages: `npm install -g brave-real-browser-mcp-server@latest`
859
859
 
860
- - **Linux**: Install dependencies: `sudo apt-get install -y google-chrome-stable`
861
- - **macOS**: Ensure Chrome is in `/Applications/`
860
+ - **Linux**: Install dependencies: `sudo apt install brave-browser`
861
+ - **macOS**: Ensure Brave is in `/Applications/`
862
862
  - Try with `headless: true` first
863
- - Check console output for Chrome path detection messages
863
+ - Check console output for Brave path detection messages
864
864
 
865
865
  4. **Claude doesn't see the MCP server**
866
866
  - Verify `claude_desktop_config.json` is in the correct location
@@ -1013,7 +1013,7 @@ A: brave-real-browser includes anti-detection features, but no solution is 100%
1013
1013
  A: Yes, through the `plugins` option in browser_init.
1014
1014
 
1015
1015
  **Q: Does it work on all operating systems?**
1016
- A: Yes, tested on Windows, macOS, and Linux. The server automatically detects Chrome installations on all platforms.
1016
+ A: Yes, tested on Windows, macOS, and Linux. The server automatically detects Brave installations on all platforms.
1017
1017
 
1018
1018
  **Q: What's the difference between Claude Desktop, Claude Code CLI, and Cursor IDE configurations?**
1019
1019
  A: Here's a comparison:
@@ -1034,30 +1034,30 @@ A: Here's a comparison:
1034
1034
  - **Claude Code CLI**: `claude mcp add brave-real-browser -- npx brave-real-browser-mcp-server@latest`
1035
1035
  - **Cursor IDE**: One-click install or manual JSON config
1036
1036
 
1037
- **Q: What if Chrome is installed in a non-standard location?**
1038
- A: Version 1.3.0 dramatically improves Chrome detection. The server now searches 15+ locations including portable installations and uses Windows Registry detection. If Chrome is still not found automatically, you can:
1039
- 1. Set environment variable: `set CHROME_PATH="C:\Your\Chrome\Path\chrome.exe"`
1040
- 2. Use the `customConfig.chromePath` option: `{"customConfig": {"chromePath": "C:\\Custom\\Chrome\\chrome.exe"}}`
1041
-
1042
- **Q: Why am I getting "Chrome not found" or ECONNREFUSED errors on Windows?**
1043
- A: Version 1.3.0 includes comprehensive fixes for Windows Chrome detection and connection issues. The server now automatically searches these locations and more:
1044
- - `C:\Program Files\Google\Chrome\Application\chrome.exe`
1045
- - `C:\Program Files (x86)\Google\Chrome\Application\chrome.exe`
1046
- - `%LOCALAPPDATA%\Google\Chrome\Application\chrome.exe`
1047
- - `%USERPROFILE%\AppData\Local\Google\Chrome\Application\chrome.exe`
1048
- - Chrome Canary installations
1049
- - Portable Chrome installations
1037
+ **Q: What if Brave is installed in a non-standard location?**
1038
+ A: Version 1.3.0 dramatically improves Brave detection. The server now searches 15+ locations including portable installations and uses Windows Registry detection. If Brave is still not found automatically, you can:
1039
+ 1. Set environment variable: `set BRAVE_PATH="C:\Your\Brave\Path\brave.exe"`
1040
+ 2. Use the `customConfig.bravePath` option: `{"customConfig": {"bravePath": "C:\\Custom\\Brave\\brave.exe"}}`
1041
+
1042
+ **Q: Why am I getting "Brave not found" or ECONNREFUSED errors on Windows?**
1043
+ A: Version 1.3.0 includes comprehensive fixes for Windows Brave detection and connection issues. The server now automatically searches these locations and more:
1044
+ - `C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe`
1045
+ - `C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe`
1046
+ - `%LOCALAPPDATA%\BraveSoftware\Brave-Browser\Application\brave.exe`
1047
+ - `%USERPROFILE%\AppData\Local\BraveSoftware\Brave-Browser\Application\brave.exe`
1048
+ - Brave Beta and Nightly installations
1049
+ - Portable Brave installations
1050
1050
  - Registry-detected installations
1051
1051
 
1052
- The server also implements multiple connection strategies with automatic fallback between localhost and 127.0.0.1, plus enhanced Windows-specific Chrome flags for better compatibility.
1052
+ The server also implements multiple connection strategies with automatic fallback between localhost and 127.0.0.1, plus enhanced Windows-specific Brave flags for better compatibility.
1053
1053
 
1054
1054
  **Q: I'm still getting ECONNREFUSED errors after upgrading to v1.3.0. What should I do?**
1055
1055
  A: Try these steps in order:
1056
- 1. Set the `CHROME_PATH` environment variable to your Chrome location
1057
- 2. Kill all existing Chrome processes: `taskkill /f /im chrome.exe`
1056
+ 1. Set the `BRAVE_PATH` environment variable to your Brave location
1057
+ 2. Kill all existing Brave processes: `taskkill /f /im brave.exe`
1058
1058
  3. Check your Windows hosts file contains: `127.0.0.1 localhost`
1059
1059
  4. Try running your IDE as Administrator
1060
- 5. Add Chrome to Windows Defender exclusions
1060
+ 5. Add Brave to Windows Defender exclusions
1061
1061
  6. If using a VPN/proxy, try disabling it temporarily
1062
1062
 
1063
1063
  ### Debug Mode