brave-real-browser-mcp-server 2.9.6 → 2.9.8

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.
Files changed (2) hide show
  1. package/README.md +148 -126
  2. package/package.json +2 -3
package/README.md CHANGED
@@ -68,7 +68,7 @@ If you're just using this MCP server (not developing it), you don't need to run
68
68
  "command": "npx",
69
69
  "args": ["brave-real-browser-mcp-server@latest"],
70
70
  "env": {
71
- "CHROME_PATH": "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
71
+ "BRAVE_PATH": "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
72
72
  }
73
73
  }
74
74
  }
@@ -127,10 +127,17 @@ assistants to control a real browser, extract content, and more.
127
127
  ## Features
128
128
 
129
129
  - **🔄 Auto-Update System**: Automatically updates all dependencies to latest versions on every `npm install`
130
- - **🦁 Brave Browser Priority**: Automatically detects and uses Brave Browser first, Chrome as fallback
131
- - **Stealth by default**: All browser instances use anti-detection features
132
- - **Enhanced cross-platform support**: Comprehensive browser detection (Brave + Chrome) on Windows/Mac/Linux
133
- - **Smart browser detection**: Registry-based + file system detection for both Brave and Chrome
130
+ - **🦁 Brave Browser Exclusive**: Specially designed for Brave Browser with exclusive optimizations
131
+ - Advanced Brave path detection (Registry + File System + Environment Variables)
132
+ - Brave-specific launch arguments and configurations
133
+ - Full compatibility with Brave Browser's privacy features
134
+ - Automatic detection across all Brave versions (Stable, Beta, Dev, Nightly)
135
+ - **Stealth by default**: All browser instances use anti-detection features powered by `brave-real-browser`
136
+ - **Enhanced cross-platform support**: Comprehensive Brave browser detection on Windows/Mac/Linux
137
+ - **Windows**: Registry-based detection + 15+ installation paths
138
+ - **macOS**: Application bundle detection for all Brave variants
139
+ - **Linux**: Package manager and manual installation detection
140
+ - **Smart browser detection**: Multi-layer detection system with automatic fallbacks
134
141
  - **Connection resilience**: Automatic localhost/127.0.0.1 fallback with port management
135
142
  - **Multiple retry strategies**: 5 different connection approaches with progressive fallback
136
143
  - **Advanced configuration**: Full support for all brave-real-browser options
@@ -148,54 +155,56 @@ assistants to control a real browser, extract content, and more.
148
155
 
149
156
  - Node.js >= 18.0.0
150
157
  - npm or yarn
151
- - **Brave Browser (RECOMMENDED)** or Google Chrome/Chromium browser installed
158
+ - **Brave Browser (REQUIRED)** - This project exclusively uses Brave Browser
152
159
  - Basic understanding of TypeScript/JavaScript (for development)
153
160
 
154
161
  ### Browser Requirements
155
162
 
156
- #### 🦁 Brave Browser (Recommended)
163
+ #### 🦁 Brave Browser (Required)
157
164
 
158
- This project **automatically detects and prioritizes Brave Browser** as it's specifically designed for the brave-real-browser package. Brave is detected first, then Chrome as fallback.
165
+ This project **exclusively uses Brave Browser** and is specifically optimized for the `brave-real-browser` package with advanced integration features.
159
166
 
160
- **Why Brave?**
161
- - 🎯 Perfect compatibility with brave-real-browser
162
- - 🔒 Better privacy and security by default
163
- - 🚀 Faster performance
164
- - Automatic detection after installation
167
+ **Why Brave Browser Exclusively?**
168
+ - **🎯 Perfect Compatibility**: Designed specifically for `brave-real-browser` package
169
+ - **🔒 Enhanced Privacy**: Built-in ad-blocking and tracking protection
170
+ - **🚀 Superior Performance**: Faster page loads and reduced memory usage
171
+ - **🛡️ Anti-Detection**: Better stealth capabilities compared to regular browsers
172
+ - **✅ Advanced Auto-Detection**: Multi-layer detection system across all platforms
173
+ - **🎯 Reliability**: Simplified codebase focused on single browser for better stability
174
+ - **🦁 Native Integration**: Custom launch arguments and configurations optimized for Brave
165
175
 
166
176
  **Install Brave:**
167
177
  - **All Platforms**: Download from [brave.com/download](https://brave.com/download/)
168
178
  - Brave is automatically detected in all standard installation locations
169
179
  - Use `BRAVE_PATH` environment variable for custom installations
170
180
 
171
- #### 🌐 Chrome/Chromium (Fallback)
172
-
173
- Chrome/Chromium works as a fallback if Brave is not installed.
174
-
175
- **Windows:**
176
- - Automatic detection includes (in order of priority):
177
- 1. **Brave Browser** paths (Registry + standard locations)
178
- 2. Chrome paths (Registry + 15+ standard locations)
179
- - Standard: `C:\Program Files\Google\Chrome\Application\chrome.exe`
180
- - 32-bit: `C:\Program Files (x86)\Google\Chrome\Application\chrome.exe`
181
- - User: `%LOCALAPPDATA%\Google\Chrome\Application\chrome.exe`
182
- - Chrome Canary, Portable installations
183
- - Manual path: Use `BRAVE_PATH` or `CHROME_PATH` environment variable
181
+ **Windows (Advanced Detection):**
182
+ - **Registry-Based Detection**: Queries Windows Registry for all Brave installations
183
+ - **File System Scanning**: Searches 15+ common installation paths
184
+ - **Standard Paths Detected**:
185
+ - System-wide: `C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe`
186
+ - 32-bit: `C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe`
187
+ - User-specific: `%LOCALAPPDATA%\BraveSoftware\Brave-Browser\Application\brave.exe`
188
+ - Portable installations in common directories
189
+ - **All Brave Variants Supported**:
190
+ - Brave Browser (Stable)
191
+ - Brave Browser Beta
192
+ - Brave Browser Dev
193
+ - Brave Browser Nightly
194
+ - **Environment Variable Support**: `BRAVE_PATH` for custom locations
195
+ - **Automatic Fallback**: Progressive detection with multiple strategies
184
196
 
185
197
  **macOS:**
186
- - **Brave Browser** (priority):
198
+ - **Brave Browser** paths:
187
199
  - `/Applications/Brave Browser.app/Contents/MacOS/Brave Browser`
188
- - Beta/Nightly/Dev versions also detected
189
- - Chrome/Chromium (fallback):
190
- - `/Applications/Google Chrome.app/Contents/MacOS/Google Chrome`
191
- - Chromium and Chrome Canary also supported
200
+ - `/Applications/Brave Browser Beta.app/Contents/MacOS/Brave Browser Beta`
201
+ - `/Applications/Brave Browser Nightly.app/Contents/MacOS/Brave Browser Nightly`
202
+ - `/Applications/Brave Browser Dev.app/Contents/MacOS/Brave Browser Dev`
192
203
 
193
204
  **Linux:**
194
- - **Brave Browser** (priority):
205
+ - **Brave Browser** installation:
195
206
  - Install: `sudo apt install brave-browser` or from [brave.com](https://brave.com/)
196
- - Detected paths: `/usr/bin/brave-browser`, `/snap/bin/brave`, etc.
197
- - Chrome/Chromium (fallback):
198
- - Install: `sudo apt-get install -y google-chrome-stable` or `chromium-browser`
207
+ - Detected paths: `/usr/bin/brave-browser`, `/snap/bin/brave`, `/usr/bin/brave`, `/opt/brave.com/brave/brave-browser`
199
208
  - Install xvfb for headless operation: `sudo apt-get install -y xvfb`
200
209
 
201
210
  ## Installation for Developers
@@ -275,11 +284,11 @@ This command:
275
284
 
276
285
  #### Method 2: Add with Environment Variables
277
286
 
278
- If you need to configure proxy settings or custom Chrome paths:
287
+ If you need to configure proxy settings or custom Brave paths:
279
288
 
280
289
  ```bash
281
290
  claude mcp add brave-real-browser \
282
- -e CHROME_PATH="/path/to/chrome" \
291
+ -e BRAVE_PATH="/path/to/brave" \
283
292
  -e PROXY_URL="http://proxy:8080" \
284
293
  -- npx brave-real-browser-mcp-server@latest
285
294
  ```
@@ -306,7 +315,7 @@ claude mcp add-json brave-real-browser '{
306
315
  "command": "npx",
307
316
  "args": ["brave-real-browser-mcp-server@latest"],
308
317
  "env": {
309
- "CHROME_PATH": "/path/to/chrome",
318
+ "BRAVE_PATH": "/path/to/brave",
310
319
  "PROXY_URL": "http://proxy:8080"
311
320
  }
312
321
  }'
@@ -343,7 +352,7 @@ After adding the server:
343
352
 
344
353
  - **Automatic Updates**: Using `@latest` ensures you get bug fixes and improvements
345
354
  - **No Installation**: npx handles downloading and running automatically
346
- - **Environment Variables**: Easy configuration of proxies, Chrome paths, etc.
355
+ - **Environment Variables**: Easy configuration of proxies, Brave paths, etc.
347
356
  - **Scope Control**: Choose where the server is available (local/project/user)
348
357
  - **Team Sharing**: Project scope allows sharing configurations with teammates
349
358
  - **Status Monitoring**: Built-in `/mcp` command for server health checks
@@ -381,7 +390,7 @@ Cursor IDE uses the same npx approach - no installation needed! Here are the set
381
390
 
382
391
  > **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!
383
392
 
384
- **Windows-Specific Configuration (if experiencing Chrome path issues):**
393
+ **Windows-Specific Configuration (if experiencing Brave path issues):**
385
394
  ```json
386
395
  {
387
396
  "mcpServers": {
@@ -389,7 +398,7 @@ Cursor IDE uses the same npx approach - no installation needed! Here are the set
389
398
  "command": "npx",
390
399
  "args": ["brave-real-browser-mcp-server@latest"],
391
400
  "env": {
392
- "CHROME_PATH": "C:/Program Files/Google/Chrome/Application/chrome.exe"
401
+ "BRAVE_PATH": "C:/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe"
393
402
  }
394
403
  }
395
404
  }
@@ -398,7 +407,7 @@ Cursor IDE uses the same npx approach - no installation needed! Here are the set
398
407
 
399
408
  > **Note**: Browser options like headless mode should be configured when initializing the browser through the `browser_init` tool, not via environment variables.
400
409
 
401
- **Advanced Configuration with Custom Chrome Path:**
410
+ **Advanced Configuration with Custom Brave Path:**
402
411
  ```json
403
412
  {
404
413
  "mcpServers": {
@@ -406,7 +415,7 @@ Cursor IDE uses the same npx approach - no installation needed! Here are the set
406
415
  "command": "npx",
407
416
  "args": ["brave-real-browser-mcp-server@latest"],
408
417
  "env": {
409
- "CHROME_PATH": "C:/Program Files/Google/Chrome/Application/chrome.exe"
418
+ "BRAVE_PATH": "C:/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe"
410
419
  }
411
420
  }
412
421
  }
@@ -415,34 +424,34 @@ Cursor IDE uses the same npx approach - no installation needed! Here are the set
415
424
 
416
425
  > **Note**: Proxy settings and browser options should be configured when asking Claude to initialize the browser using the `browser_init` tool.
417
426
 
418
- #### Platform-Specific Chrome Paths for Cursor IDE
427
+ #### Platform-Specific Brave Paths for Cursor IDE
419
428
 
420
- If Chrome auto-detection fails, you can specify the Chrome path using the `CHROME_PATH` environment variable:
429
+ If Brave auto-detection fails, you can specify the Brave path using the `BRAVE_PATH` environment variable:
421
430
 
422
431
  **Windows:**
423
432
  ```json
424
433
  "env": {
425
- "CHROME_PATH": "C:/Program Files/Google/Chrome/Application/chrome.exe"
434
+ "BRAVE_PATH": "C:/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe"
426
435
  }
427
436
  ```
428
437
  Alternative Windows paths:
429
- - `"C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"`
430
- - `"%LOCALAPPDATA%/Google/Chrome/Application/chrome.exe"`
438
+ - `"C:/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe"`
439
+ - `"%LOCALAPPDATA%/BraveSoftware/Brave-Browser/Application/brave.exe"`
431
440
 
432
441
  **macOS:**
433
442
  ```json
434
443
  "env": {
435
- "CHROME_PATH": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
444
+ "BRAVE_PATH": "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"
436
445
  }
437
446
  ```
438
447
 
439
448
  **Linux:**
440
449
  ```json
441
450
  "env": {
442
- "CHROME_PATH": "/usr/bin/google-chrome"
451
+ "BRAVE_PATH": "/usr/bin/brave-browser"
443
452
  }
444
453
  ```
445
- Alternative Linux paths: `/usr/bin/chromium-browser`, `/snap/bin/chromium`
454
+ Alternative Linux paths: `/snap/bin/brave`, `/usr/bin/brave`, `/opt/brave.com/brave/brave-browser`
446
455
 
447
456
 
448
457
  #### Testing Cursor IDE Setup
@@ -467,9 +476,9 @@ If successful, you should see:
467
476
  - Ensure Node.js 18+ is installed
468
477
 
469
478
  2. **"Browser failed to launch" on Windows**
470
- - Add explicit Chrome path in `executablePath`
479
+ - Add explicit Brave path in `BRAVE_PATH` environment variable
471
480
  - Try running Cursor IDE as Administrator
472
- - Check Windows Defender isn't blocking Chrome
481
+ - Check Windows Defender isn't blocking Brave Browser
473
482
 
474
483
  3. **"Permission denied"**
475
484
  - Use `sudo npm install -g brave-real-browser-mcp-server` on Linux/Mac
@@ -650,7 +659,7 @@ This MCP server provides **62 professional-grade tools** organized into 11 major
650
659
  The server includes intelligent element discovery capabilities through the `find_selector` tool:
651
660
 
652
661
  - **Text-based element finding**: Automatically locates elements containing specific text
653
- - **Smart CSS selector generation**: Creates unique, robust CSS selectors similar to Chrome DevTools
662
+ - **Smart CSS selector generation**: Creates unique, robust CSS selectors similar to Brave DevTools
654
663
  - **Element type filtering**: Optionally restrict search to specific HTML elements (e.g., buttons, links)
655
664
  - **Exact or partial text matching**: Choose between precise text matching or substring searches
656
665
  - **Universal compatibility**: Works across any website without hardcoded selectors
@@ -688,27 +697,27 @@ brave-real-browser implementation.
688
697
 
689
698
  ## Configuration
690
699
 
691
- ### Automatic Chrome Path Detection (Enhanced in v1.3.0)
700
+ ### Automatic Brave Path Detection (Enhanced in v2.9.5)
692
701
 
693
- The server automatically detects Chrome installation paths across different operating systems with significantly improved Windows support:
702
+ The server automatically detects Brave Browser installation paths across different operating systems with advanced multi-layer detection:
694
703
 
695
- - **Windows (v1.3.0+)**:
696
- - Registry-based detection for installed Chrome versions
704
+ - **Windows (v2.9.5+)**:
705
+ - Registry-based detection for all installed Brave versions
697
706
  - Searches 15+ common installation directories including Program Files, user-specific locations, and portable installations
698
- - Support for Chrome Canary fallback
699
- - Environment variable detection (`CHROME_PATH`, `PUPPETEER_EXECUTABLE_PATH`)
700
- - Detailed troubleshooting guidance when Chrome is not found
707
+ - Support for all Brave variants (Stable, Beta, Dev, Nightly)
708
+ - Environment variable detection (`BRAVE_PATH`, `CHROME_PATH` for fallback)
709
+ - Detailed troubleshooting guidance when Brave is not found
701
710
 
702
- - **macOS**: Looks for Chrome in `/Applications/Google Chrome.app/` and Chrome Canary locations
711
+ - **macOS**: Detects Brave in all Application bundle locations for all variants
703
712
 
704
- - **Linux**: Checks multiple locations including `/usr/bin/google-chrome`, `/usr/bin/chromium-browser`, and snap installations
713
+ - **Linux**: Checks multiple locations including package manager installations and manual installs
705
714
 
706
- **Windows Registry Detection** (NEW in v1.3.0):
707
- The server now queries Windows Registry to find Chrome installations, making detection more reliable across different installation types.
715
+ **Advanced Brave Detection** (Enhanced in v2.9.5):
716
+ The server now uses sophisticated multi-layer detection combining Windows Registry queries, file system scanning, and environment variables for maximum compatibility.
708
717
 
709
- If Chrome is not found automatically, you can specify a custom path using:
710
- 1. Environment variable: `set CHROME_PATH="C:\Your\Chrome\Path\chrome.exe"`
711
- 2. Browser init option: `customConfig.chromePath` when initializing the browser
718
+ If Brave is not found automatically, you can specify a custom path using:
719
+ 1. Environment variable: `set BRAVE_PATH="C:\Your\Brave\Path\brave.exe"`
720
+ 2. Browser init option: `customConfig.chromePath` when initializing the browser (legacy Chrome path support)
712
721
 
713
722
  ### Configuring Custom Options (like headless mode)
714
723
  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:
@@ -735,7 +744,7 @@ When initializing with `browser_init`, you can configure:
735
744
 
736
745
  - `headless`: true/false (Set to true for headless operation)
737
746
  - `disableXvfb`: true/false (Disable X Virtual Framebuffer)
738
- - `ignoreAllFlags`: true/false (Ignore all Chrome flags)
747
+ - `ignoreAllFlags`: true/false (Ignore all Brave browser flags)
739
748
  - `proxy`: "https://proxy:8080" (Proxy server URL)
740
749
  - `plugins`: ["plugin1", "plugin2"] (Array of plugins to load)
741
750
  - `connectOption`: Additional connection options like:
@@ -764,11 +773,11 @@ When initializing the browser with `browser_init`, you can configure:
764
773
 
765
774
  ### Advanced Configuration Examples
766
775
 
767
- #### Specifying Custom Chrome Path
776
+ #### Specifying Custom Brave Path
768
777
  ```json
769
778
  {
770
779
  "customConfig": {
771
- "chromePath": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
780
+ "chromePath": "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
772
781
  }
773
782
  }
774
783
  ```
@@ -811,14 +820,14 @@ For advanced users, you can modify the server behavior by editing the source cod
811
820
 
812
821
  Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0.1:60725` error commonly experienced on Windows systems:
813
822
 
814
- **Enhanced Chrome Path Detection:**
815
- - Added Windows Registry-based Chrome detection
823
+ **Enhanced Brave Path Detection:**
824
+ - Added Windows Registry-based Brave detection for all variants
816
825
  - Expanded search to 15+ Windows installation locations including portable installations
817
- - Added support for Chrome Canary fallback
818
- - Environment variable support (`CHROME_PATH`, `PUPPETEER_EXECUTABLE_PATH`)
826
+ - Added support for all Brave versions (Stable, Beta, Dev, Nightly)
827
+ - Environment variable support (`BRAVE_PATH`, `CHROME_PATH` for legacy fallback)
819
828
 
820
829
  **Windows-Specific Launch Optimizations:**
821
- - 20+ Windows-specific Chrome flags for better compatibility
830
+ - 20+ Windows-specific Brave browser flags for better compatibility
822
831
  - Multiple fallback strategies (5 different connection approaches)
823
832
  - Progressive retry logic with exponential backoff
824
833
  - Enhanced timeout handling (120s for Windows vs 90s for other platforms)
@@ -833,12 +842,12 @@ Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0
833
842
 
834
843
  1. **Environment Variables (Recommended):**
835
844
  ```bash
836
- set CHROME_PATH="C:\Program Files\Google\Chrome\Application\chrome.exe"
845
+ set BRAVE_PATH="C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe"
837
846
  ```
838
847
 
839
- 2. **Manual Chrome Path Configuration:**
848
+ 2. **Manual Brave Path Configuration:**
840
849
  ```text
841
- Ask Claude: "Initialize browser with custom Chrome path at C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
850
+ Ask Claude: "Initialize browser with custom Brave path at C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
842
851
  ```
843
852
 
844
853
  3. **Network Troubleshooting:**
@@ -852,10 +861,10 @@ Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0
852
861
  # Ensure: 127.0.0.1 localhost
853
862
  ```
854
863
 
855
- 4. **Chrome Process Management:**
864
+ 4. **Brave Process Management:**
856
865
  ```bash
857
- # Kill existing Chrome processes
858
- taskkill /f /im chrome.exe
866
+ # Kill existing Brave processes
867
+ taskkill /f /im brave.exe
859
868
  ```
860
869
 
861
870
  ### Common Issues
@@ -914,20 +923,20 @@ Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0
914
923
  - Check your PATH includes npm global binaries: `npm config get prefix`
915
924
 
916
925
  3. **Browser won't start**
917
- - Check if Chrome/Chromium is installed in standard locations
926
+ - Check if Brave Browser is installed in standard locations
918
927
  - **Windows specific troubleshooting**:
919
928
 
920
- **Step 1: Verify Chrome Installation Paths**
929
+ **Step 1: Verify Brave Installation Paths**
921
930
  Check these locations in order:
922
- - `C:\Program Files\Google\Chrome\Application\chrome.exe`
923
- - `C:\Program Files (x86)\Google\Chrome\Application\chrome.exe`
924
- - `%LOCALAPPDATA%\Google\Chrome\Application\chrome.exe`
925
- - `%PROGRAMFILES%\Google\Chrome\Application\chrome.exe`
931
+ - `C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe`
932
+ - `C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe`
933
+ - `%LOCALAPPDATA%\BraveSoftware\Brave-Browser\Application\brave.exe`
934
+ - `%PROGRAMFILES%\BraveSoftware\Brave-Browser\Application\brave.exe`
926
935
 
927
936
  **Step 2: Manual Path Configuration**
928
- If Chrome is in a different location, specify it manually:
937
+ If Brave is in a different location, specify it manually:
929
938
  ```
930
- Ask Claude: "Initialize browser with custom Chrome path at C:\Your\Chrome\Path\chrome.exe"
939
+ Ask Claude: "Initialize browser with custom Brave path at C:\Your\Brave\Path\brave.exe"
931
940
  ```
932
941
 
933
942
  **Step 3: Windows Launch Arguments**
@@ -938,15 +947,15 @@ Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0
938
947
 
939
948
  **Step 4: Windows-Specific Solutions**
940
949
  - **Run as Administrator**: Try running your IDE/terminal as Administrator
941
- - **Windows Defender**: Add Chrome and Node.js to Windows Defender exclusions
942
- - **Antivirus Software**: Temporarily disable antivirus to test if it's blocking Chrome
950
+ - **Windows Defender**: Add Brave Browser and Node.js to Windows Defender exclusions
951
+ - **Antivirus Software**: Temporarily disable antivirus to test if it's blocking Brave
943
952
  - **User Account Control**: Lower UAC settings temporarily for testing
944
- - **Chrome Processes**: Kill any existing Chrome processes in Task Manager
953
+ - **Brave Processes**: Kill any existing Brave processes in Task Manager
945
954
 
946
- **Step 5: Alternative Chrome Installation**
947
- If Chrome detection still fails:
948
- - Download Chrome directly from [google.com/chrome](https://www.google.com/chrome/)
949
- - Install to default location (`C:\Program Files\Google\Chrome\`)
955
+ **Step 5: Alternative Brave Installation**
956
+ If Brave detection still fails:
957
+ - Download Brave directly from [brave.com/download](https://brave.com/download/)
958
+ - Install to default location (`C:\Program Files\BraveSoftware\Brave-Browser\`)
950
959
  - Restart your IDE after installation
951
960
 
952
961
  **Step 6: PowerShell vs Command Prompt**
@@ -959,10 +968,10 @@ Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0
959
968
  - Clear npm cache: `npm cache clean --force`
960
969
  - Reinstall global packages: `npm install -g brave-real-browser-mcp-server@latest`
961
970
 
962
- - **Linux**: Install dependencies: `sudo apt-get install -y google-chrome-stable`
963
- - **macOS**: Ensure Chrome is in `/Applications/`
971
+ - **Linux**: Install Brave: `sudo apt install brave-browser` or from [brave.com](https://brave.com/)
972
+ - **macOS**: Ensure Brave is in `/Applications/Brave Browser.app/`
964
973
  - Try with `headless: true` first
965
- - Check console output for Chrome path detection messages
974
+ - Check console output for Brave path detection messages
966
975
 
967
976
  4. **Claude doesn't see the MCP server**
968
977
  - Verify `claude_desktop_config.json` is in the correct location
@@ -988,7 +997,7 @@ Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0
988
997
  - Check if server status shows "connected" or error messages
989
998
 
990
999
  - **Environment Variables**:
991
- - If using custom environment variables (Chrome path, proxy), verify they're correctly set
1000
+ - If using custom environment variables (Brave path, proxy), verify they're correctly set
992
1001
  - Test without environment variables first: `claude mcp add brave-real-browser -- npx brave-real-browser-mcp-server@latest`
993
1002
 
994
1003
  - **Node.js and npx Issues**:
@@ -1111,11 +1120,11 @@ A: Supports reCAPTCHA, hCaptcha, and Cloudflare Turnstile through brave-real-bro
1111
1120
  **Q: Is this detectable by websites?**
1112
1121
  A: brave-real-browser includes anti-detection features, but no solution is 100% undetectable.
1113
1122
 
1114
- **Q: Can I use custom Chrome extensions?**
1115
- A: Yes, through the `plugins` option in browser_init.
1123
+ **Q: Can I use custom Brave extensions?**
1124
+ A: Yes, through the `plugins` option in browser_init. Brave extensions and Chrome extensions are compatible.
1116
1125
 
1117
1126
  **Q: Does it work on all operating systems?**
1118
- A: Yes, tested on Windows, macOS, and Linux. The server automatically detects Chrome installations on all platforms.
1127
+ A: Yes, tested on Windows, macOS, and Linux. The server automatically detects Brave Browser installations on all platforms with advanced multi-layer detection.
1119
1128
 
1120
1129
  **Q: What's the difference between Claude Desktop, Claude Code CLI, and Cursor IDE configurations?**
1121
1130
  A: Here's a comparison:
@@ -1136,30 +1145,30 @@ A: Here's a comparison:
1136
1145
  - **Claude Code CLI**: `claude mcp add brave-real-browser -- npx brave-real-browser-mcp-server@latest`
1137
1146
  - **Cursor IDE**: One-click install or manual JSON config
1138
1147
 
1139
- **Q: What if Chrome is installed in a non-standard location?**
1140
- 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:
1141
- 1. Set environment variable: `set CHROME_PATH="C:\Your\Chrome\Path\chrome.exe"`
1142
- 2. Use the `customConfig.chromePath` option: `{"customConfig": {"chromePath": "C:\\Custom\\Chrome\\chrome.exe"}}`
1143
-
1144
- **Q: Why am I getting "Chrome not found" or ECONNREFUSED errors on Windows?**
1145
- A: Version 1.3.0 includes comprehensive fixes for Windows Chrome detection and connection issues. The server now automatically searches these locations and more:
1146
- - `C:\Program Files\Google\Chrome\Application\chrome.exe`
1147
- - `C:\Program Files (x86)\Google\Chrome\Application\chrome.exe`
1148
- - `%LOCALAPPDATA%\Google\Chrome\Application\chrome.exe`
1149
- - `%USERPROFILE%\AppData\Local\Google\Chrome\Application\chrome.exe`
1150
- - Chrome Canary installations
1151
- - Portable Chrome installations
1148
+ **Q: What if Brave is installed in a non-standard location?**
1149
+ A: Version 2.9.5 dramatically improves Brave detection with multi-layer scanning. The server now searches 15+ locations including portable installations and uses Windows Registry detection for all Brave variants. If Brave is still not found automatically, you can:
1150
+ 1. Set environment variable: `set BRAVE_PATH="C:\Your\Brave\Path\brave.exe"`
1151
+ 2. Use the `customConfig.chromePath` option: `{"customConfig": {"chromePath": "C:\\Custom\\Brave\\brave.exe"}}`
1152
+
1153
+ **Q: Why am I getting "Brave not found" or ECONNREFUSED errors on Windows?**
1154
+ A: Version 2.9.5 includes comprehensive fixes for Windows Brave detection and connection issues. The server now automatically searches these locations and more:
1155
+ - `C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe`
1156
+ - `C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe`
1157
+ - `%LOCALAPPDATA%\BraveSoftware\Brave-Browser\Application\brave.exe`
1158
+ - `%USERPROFILE%\AppData\Local\BraveSoftware\Brave-Browser\Application\brave.exe`
1159
+ - All Brave variants (Stable, Beta, Dev, Nightly) installations
1160
+ - Portable Brave installations
1152
1161
  - Registry-detected installations
1153
1162
 
1154
- 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.
1163
+ 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.
1155
1164
 
1156
- **Q: I'm still getting ECONNREFUSED errors after upgrading to v1.3.0. What should I do?**
1165
+ **Q: I'm still getting ECONNREFUSED errors after upgrading to v2.9.5. What should I do?**
1157
1166
  A: Try these steps in order:
1158
- 1. Set the `CHROME_PATH` environment variable to your Chrome location
1159
- 2. Kill all existing Chrome processes: `taskkill /f /im chrome.exe`
1167
+ 1. Set the `BRAVE_PATH` environment variable to your Brave location
1168
+ 2. Kill all existing Brave processes: `taskkill /f /im brave.exe`
1160
1169
  3. Check your Windows hosts file contains: `127.0.0.1 localhost`
1161
1170
  4. Try running your IDE as Administrator
1162
- 5. Add Chrome to Windows Defender exclusions
1171
+ 5. Add Brave Browser to Windows Defender exclusions
1163
1172
  6. If using a VPN/proxy, try disabling it temporarily
1164
1173
 
1165
1174
  ### Debug Mode
@@ -1258,7 +1267,7 @@ npm run test:debug # Environment diagnostics and troubleshooting
1258
1267
 
1259
1268
  Debug tools provide:
1260
1269
  - Environment validation (Node.js version, platform, memory)
1261
- - Chrome installation detection with specific paths
1270
+ - Brave Browser installation detection with specific paths
1262
1271
  - Quick server health check with startup timing
1263
1272
  - Network connectivity validation
1264
1273
  - Build status verification
@@ -1300,9 +1309,22 @@ This project is licensed under the MIT License - see the LICENSE file for detail
1300
1309
 
1301
1310
  ## Acknowledgments
1302
1311
 
1303
- This MCP server is based on the excellent [brave-real-browser](https://github.com/ZFC-Digital/brave-real-browser) library by ZFC-Digital.
1312
+ ### 🦁 **Powered by brave-real-browser**
1313
+
1314
+ This MCP server is built upon the excellent **[brave-real-browser](https://github.com/ZFC-Digital/brave-real-browser)** library by **ZFC-Digital**, which provides the core automation capabilities.
1315
+
1316
+ **Why brave-real-browser is Amazing:**
1317
+ - **🛡️ Advanced Anti-Detection**: Sophisticated techniques to bypass bot detection
1318
+ - **🦁 Brave Browser Optimized**: Specifically designed for Brave Browser
1319
+ - **🔒 Privacy-First**: Built with privacy and security in mind
1320
+ - **🎨 Stealth Capabilities**: Natural human-like interactions
1321
+ - **⚡ High Performance**: Optimized for speed and reliability
1322
+ - **🔧 Professional Grade**: Enterprise-level automation features
1304
1323
 
1305
1324
  **Thank you** to the brave-real-browser team for creating such a powerful and detection-resistant browser automation solution!
1306
1325
 
1307
- - GitHub: [https://github.com/ZFC-Digital/brave-real-browser](https://github.com/ZFC-Digital/brave-real-browser)
1308
- - npm: [https://www.npmjs.com/package/brave-real-browser](https://www.npmjs.com/package/brave-real-browser)
1326
+ **Resources:**
1327
+ - **GitHub**: [https://github.com/ZFC-Digital/brave-real-browser](https://github.com/ZFC-Digital/brave-real-browser)
1328
+ - **npm Package**: [https://www.npmjs.com/package/brave-real-browser](https://www.npmjs.com/package/brave-real-browser)
1329
+ - **Documentation**: Comprehensive guides and examples
1330
+ - **Community**: Active development and support
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brave-real-browser-mcp-server",
3
- "version": "2.9.6",
3
+ "version": "2.9.8",
4
4
  "description": "MCP server for brave-real-browser",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -39,8 +39,7 @@
39
39
  "ajv": "^8.12.0",
40
40
  "axios": "^1.12.2",
41
41
  "brave-real-browser": "^1.5.102",
42
- "brave-real-launcher": "^1.2.16",
43
- "brave-real-playwright-core": "^1.56.0",
42
+ "brave-real-launcher": "^1.2.17",
44
43
  "brave-real-puppeteer-core": "^24.24.0",
45
44
  "cheerio": "^1.0.0-rc.12",
46
45
  "chrono-node": "^2.7.0",