brave-real-browser-mcp-server 2.9.12 → 2.9.13

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
@@ -43,46 +43,6 @@ If you're just using this MCP server (not developing it), you don't need to run
43
43
  - Download and install Node.js (version 18 or higher)
44
44
  - Verify installation by opening terminal/command prompt and typing: `node --version`
45
45
 
46
- ## Installation for Developers
47
-
48
- > **Note for Claude Desktop Users:** You don't need to install anything! The npx command in your configuration automatically handles everything. Skip to the [Usage](#usage) section.
49
-
50
- This section is for developers who want to:
51
- - Contribute to the project
52
- - Run the server locally for development
53
- - Create custom modifications
54
-
55
- ### Global Installation (For Command Line Usage)
56
-
57
- If you want to run the server directly from the command line without using npx:
58
-
59
- ```bash
60
- npm install -g brave-real-browser-mcp-server@latest
61
- ```
62
-
63
- After global installation, you can run:
64
- ```bash
65
- brave-real-browser-mcp-server
66
- ```
67
-
68
- ### Development Setup (For Contributors)
69
-
70
- ```bash
71
- # Clone the repository
72
- git clone https://github.com/withLinda/brave-real-browser-mcp-server.git
73
- cd brave-real-browser-mcp-server
74
-
75
- # Install dependencies
76
- npm install
77
-
78
- # Build the project
79
- npm run build
80
-
81
- # Run in development mode
82
- npm run dev
83
- ```
84
-
85
-
86
46
  #### 2. Configure Claude Desktop
87
47
 
88
48
  **For Windows:**
@@ -101,20 +61,6 @@ npm run dev
101
61
  }
102
62
  ```
103
63
 
104
- ```json
105
- {
106
- "mcpServers": {
107
- "brave-real-browser": {
108
- "command": "npx",
109
- "args": ["brave-real-browser-mcp-server@latest"],
110
- "env": {
111
- "BRAVE_PATH": "C:/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe"
112
- }
113
- }
114
- }
115
- }
116
- ```
117
-
118
64
  **For Mac:**
119
65
  1. Open Finder and press `Cmd+Shift+G`
120
66
  2. Go to: `~/Library/Application Support/Claude/`
@@ -167,23 +113,15 @@ assistants to control a real browser, extract content, and more.
167
113
  ## Features
168
114
 
169
115
  - **🔄 Auto-Update System**: Automatically updates all dependencies to latest versions on every `npm install`
170
- - **🦁 Brave Browser Exclusive**: Specially designed for Brave Browser with exclusive optimizations
171
- - Advanced Brave path detection (Registry + File System + Environment Variables)
172
- - Brave-specific launch arguments and configurations
173
- - Full compatibility with Brave Browser's privacy features
174
- - Automatic detection across all Brave versions (Stable, Beta, Dev, Nightly)
175
- - **Stealth by default**: All browser instances use anti-detection features powered by `brave-real-browser`
176
- - **Enhanced cross-platform support**: Comprehensive Brave browser detection on Windows/Mac/Linux
177
- - **Windows**: Registry-based detection + 15+ installation paths
178
- - **macOS**: Application bundle detection for all Brave variants
179
- - **Linux**: Package manager and manual installation detection
180
- - **Smart browser detection**: Multi-layer detection system with automatic fallbacks
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)
181
119
  - **Connection resilience**: Automatic localhost/127.0.0.1 fallback with port management
182
120
  - **Multiple retry strategies**: 5 different connection approaches with progressive fallback
183
121
  - **Advanced configuration**: Full support for all brave-real-browser options
184
122
  - **Dynamic selector discovery**: Intelligent element finding without hardcoded selectors
185
123
  - **Random scrolling**: Tools for natural scrolling to avoid detection
186
- - **Comprehensive toolset**: 62+ professional tools covering all browser automation needs
124
+ - **Comprehensive toolset**: 11 tools covering all browser automation needs
187
125
  - **Proxy support**: Built-in proxy configuration for enhanced privacy
188
126
  - **Captcha handling**: Support for solving reCAPTCHA, hCaptcha, and Turnstile
189
127
  - **Robust error handling**: Advanced error recovery with circuit breaker pattern
@@ -195,58 +133,65 @@ assistants to control a real browser, extract content, and more.
195
133
 
196
134
  - Node.js >= 18.0.0
197
135
  - npm or yarn
198
- - **Brave Browser (REQUIRED)** - This project exclusively uses Brave Browser
136
+ - Google Chrome or Chromium browser installed
199
137
  - Basic understanding of TypeScript/JavaScript (for development)
200
138
 
201
- ### Browser Requirements
202
-
203
- #### 🦁 Brave Browser (Required)
204
-
205
- This project **exclusively uses Brave Browser** and is specifically optimized for the `brave-real-browser` package with advanced integration features.
206
-
207
- **Why Brave Browser Exclusively?**
208
- - **🎯 Perfect Compatibility**: Designed specifically for `brave-real-browser` package
209
- - **🔒 Enhanced Privacy**: Built-in ad-blocking and tracking protection
210
- - **🚀 Superior Performance**: Faster page loads and reduced memory usage
211
- - **🛡️ Anti-Detection**: Better stealth capabilities compared to regular browsers
212
- - **✅ Advanced Auto-Detection**: Multi-layer detection system across all platforms
213
- - **🎯 Reliability**: Simplified codebase focused on single browser for better stability
214
- - **🦁 Native Integration**: Custom launch arguments and configurations optimized for Brave
215
-
216
- **Install Brave:**
217
- - **All Platforms**: Download from [brave.com/download](https://brave.com/download/)
218
- - Brave is automatically detected in all standard installation locations
219
- - Use `BRAVE_PATH` environment variable for custom installations
220
-
221
- **Windows (Advanced Detection):**
222
- - **Registry-Based Detection**: Queries Windows Registry for all Brave installations
223
- - **File System Scanning**: Searches 15+ common installation paths
224
- - **Standard Paths Detected**:
225
- - System-wide: `C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe`
226
- - 32-bit: `C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe`
227
- - User-specific: `%LOCALAPPDATA%\BraveSoftware\Brave-Browser\Application\brave.exe`
228
- - Portable installations in common directories
229
- - **All Brave Variants Supported**:
230
- - Brave Browser (Stable)
231
- - Brave Browser Beta
232
- - Brave Browser Dev
233
- - Brave Browser Nightly
234
- - **Environment Variable Support**: `BRAVE_PATH` for custom locations
235
- - **Automatic Fallback**: Progressive detection with multiple strategies
139
+ ### Platform-Specific Requirements
140
+
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`
147
+ - Portable installations and Registry-detected paths
148
+ - Manual path specification: Use `CHROME_PATH` environment variable
236
149
 
237
150
  **macOS:**
238
- - **Brave Browser** paths:
239
- - `/Applications/Brave Browser.app/Contents/MacOS/Brave Browser`
240
- - `/Applications/Brave Browser Beta.app/Contents/MacOS/Brave Browser Beta`
241
- - `/Applications/Brave Browser Nightly.app/Contents/MacOS/Brave Browser Nightly`
242
- - `/Applications/Brave Browser Dev.app/Contents/MacOS/Brave Browser Dev`
151
+ - Google Chrome or Chromium must be installed in `/Applications/`
243
152
 
244
153
  **Linux:**
245
- - **Brave Browser** installation:
246
- - Install: `sudo apt install brave-browser` or from [brave.com](https://brave.com/)
247
- - Detected paths: `/usr/bin/brave-browser`, `/snap/bin/brave`, `/usr/bin/brave`, `/opt/brave.com/brave/brave-browser`
154
+ - Install Chrome/Chromium: `sudo apt-get install -y google-chrome-stable` or `sudo apt-get install -y chromium-browser`
248
155
  - Install xvfb for headless operation: `sudo apt-get install -y xvfb`
249
156
 
157
+ ## Installation for Developers
158
+
159
+ > **Note for Claude Desktop Users:** You don't need to install anything! The npx command in your configuration automatically handles everything. Skip to the [Usage](#usage) section.
160
+
161
+ This section is for developers who want to:
162
+ - Contribute to the project
163
+ - Run the server locally for development
164
+ - Create custom modifications
165
+
166
+ ### Global Installation (For Command Line Usage)
167
+
168
+ If you want to run the server directly from the command line without using npx:
169
+
170
+ ```bash
171
+ npm install -g brave-real-browser-mcp-server@latest
172
+ ```
173
+
174
+ After global installation, you can run:
175
+ ```bash
176
+ brave-real-browser-mcp-server
177
+ ```
178
+
179
+ ### Development Setup (For Contributors)
180
+
181
+ ```bash
182
+ # Clone the repository
183
+ git clone https://github.com/withLinda/brave-real-browser-mcp-server.git
184
+ cd brave-real-browser-mcp-server
185
+
186
+ # Install dependencies
187
+ npm install
188
+
189
+ # Build the project
190
+ npm run build
191
+
192
+ # Run in development mode
193
+ npm run dev
194
+ ```
250
195
 
251
196
  ## Usage
252
197
 
@@ -286,11 +231,11 @@ This command:
286
231
 
287
232
  #### Method 2: Add with Environment Variables
288
233
 
289
- If you need to configure proxy settings or custom Brave paths:
234
+ If you need to configure proxy settings or custom Chrome paths:
290
235
 
291
236
  ```bash
292
237
  claude mcp add brave-real-browser \
293
- -e BRAVE_PATH="/path/to/brave" \
238
+ -e CHROME_PATH="/path/to/chrome" \
294
239
  -e PROXY_URL="http://proxy:8080" \
295
240
  -- npx brave-real-browser-mcp-server@latest
296
241
  ```
@@ -317,7 +262,7 @@ claude mcp add-json brave-real-browser '{
317
262
  "command": "npx",
318
263
  "args": ["brave-real-browser-mcp-server@latest"],
319
264
  "env": {
320
- "BRAVE_PATH": "/path/to/brave",
265
+ "CHROME_PATH": "/path/to/chrome",
321
266
  "PROXY_URL": "http://proxy:8080"
322
267
  }
323
268
  }'
@@ -354,7 +299,7 @@ After adding the server:
354
299
 
355
300
  - **Automatic Updates**: Using `@latest` ensures you get bug fixes and improvements
356
301
  - **No Installation**: npx handles downloading and running automatically
357
- - **Environment Variables**: Easy configuration of proxies, Brave paths, etc.
302
+ - **Environment Variables**: Easy configuration of proxies, Chrome paths, etc.
358
303
  - **Scope Control**: Choose where the server is available (local/project/user)
359
304
  - **Team Sharing**: Project scope allows sharing configurations with teammates
360
305
  - **Status Monitoring**: Built-in `/mcp` command for server health checks
@@ -392,7 +337,7 @@ Cursor IDE uses the same npx approach - no installation needed! Here are the set
392
337
 
393
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!
394
339
 
395
- **Windows-Specific Configuration (if experiencing Brave path issues):**
340
+ **Windows-Specific Configuration (if experiencing Chrome path issues):**
396
341
  ```json
397
342
  {
398
343
  "mcpServers": {
@@ -400,7 +345,7 @@ Cursor IDE uses the same npx approach - no installation needed! Here are the set
400
345
  "command": "npx",
401
346
  "args": ["brave-real-browser-mcp-server@latest"],
402
347
  "env": {
403
- "BRAVE_PATH": "C:/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe"
348
+ "CHROME_PATH": "C:/Program Files/Google/Chrome/Application/chrome.exe"
404
349
  }
405
350
  }
406
351
  }
@@ -409,7 +354,7 @@ Cursor IDE uses the same npx approach - no installation needed! Here are the set
409
354
 
410
355
  > **Note**: Browser options like headless mode should be configured when initializing the browser through the `browser_init` tool, not via environment variables.
411
356
 
412
- **Advanced Configuration with Custom Brave Path:**
357
+ **Advanced Configuration with Custom Chrome Path:**
413
358
  ```json
414
359
  {
415
360
  "mcpServers": {
@@ -417,7 +362,7 @@ Cursor IDE uses the same npx approach - no installation needed! Here are the set
417
362
  "command": "npx",
418
363
  "args": ["brave-real-browser-mcp-server@latest"],
419
364
  "env": {
420
- "BRAVE_PATH": "C:/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe"
365
+ "CHROME_PATH": "C:/Program Files/Google/Chrome/Application/chrome.exe"
421
366
  }
422
367
  }
423
368
  }
@@ -426,34 +371,34 @@ Cursor IDE uses the same npx approach - no installation needed! Here are the set
426
371
 
427
372
  > **Note**: Proxy settings and browser options should be configured when asking Claude to initialize the browser using the `browser_init` tool.
428
373
 
429
- #### Platform-Specific Brave Paths for Cursor IDE
374
+ #### Platform-Specific Chrome Paths for Cursor IDE
430
375
 
431
- If Brave auto-detection fails, you can specify the Brave path using the `BRAVE_PATH` environment variable:
376
+ If Chrome auto-detection fails, you can specify the Chrome path using the `CHROME_PATH` environment variable:
432
377
 
433
378
  **Windows:**
434
379
  ```json
435
380
  "env": {
436
- "BRAVE_PATH": "C:/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe"
381
+ "CHROME_PATH": "C:/Program Files/Google/Chrome/Application/chrome.exe"
437
382
  }
438
383
  ```
439
384
  Alternative Windows paths:
440
- - `"C:/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe"`
441
- - `"%LOCALAPPDATA%/BraveSoftware/Brave-Browser/Application/brave.exe"`
385
+ - `"C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"`
386
+ - `"%LOCALAPPDATA%/Google/Chrome/Application/chrome.exe"`
442
387
 
443
388
  **macOS:**
444
389
  ```json
445
390
  "env": {
446
- "BRAVE_PATH": "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"
391
+ "CHROME_PATH": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
447
392
  }
448
393
  ```
449
394
 
450
395
  **Linux:**
451
396
  ```json
452
397
  "env": {
453
- "BRAVE_PATH": "/usr/bin/brave-browser"
398
+ "CHROME_PATH": "/usr/bin/google-chrome"
454
399
  }
455
400
  ```
456
- Alternative Linux paths: `/snap/bin/brave`, `/usr/bin/brave`, `/opt/brave.com/brave/brave-browser`
401
+ Alternative Linux paths: `/usr/bin/chromium-browser`, `/snap/bin/chromium`
457
402
 
458
403
 
459
404
  #### Testing Cursor IDE Setup
@@ -478,9 +423,9 @@ If successful, you should see:
478
423
  - Ensure Node.js 18+ is installed
479
424
 
480
425
  2. **"Browser failed to launch" on Windows**
481
- - Add explicit Brave path in `BRAVE_PATH` environment variable
426
+ - Add explicit Chrome path in `executablePath`
482
427
  - Try running Cursor IDE as Administrator
483
- - Check Windows Defender isn't blocking Brave Browser
428
+ - Check Windows Defender isn't blocking Chrome
484
429
 
485
430
  3. **"Permission denied"**
486
431
  - Use `sudo npm install -g brave-real-browser-mcp-server` on Linux/Mac
@@ -553,106 +498,48 @@ AI: I'll set up the browser with your proxy configuration.
553
498
 
554
499
  ## Available Tools
555
500
 
556
- ### 🎯 **Complete Professional Toolset - 62 Tools**
557
-
558
- This MCP server provides **62 professional-grade tools** organized into 11 major categories:
559
-
560
- ### 🔥 **Core Browser Management (11 Tools)**
561
- 1. `browser_init` - Initialize stealth browser with advanced options
562
- 2. `navigate` - Navigate to a URL
563
- 3. `get_content` - Get page content (HTML or text)
564
- 4. `click` - Click on elements
565
- 5. `type` - Type text into input fields
566
- 6. `wait` - Wait for various conditions
567
- 7. `browser_close` - Close browser instance
568
- 8. `solve_captcha` - Solve captchas (reCAPTCHA, hCaptcha, Turnstile)
569
- 9. `random_scroll` - Natural scrolling behavior
570
- 10. `find_selector` - Find CSS selectors by text content
571
- 11. `save_content_as_markdown` - Save page content as markdown
572
-
573
- ### 📊 **Smart Data Extractors (5 Tools)**
574
- 12. `scrape_table` - Extract structured data from HTML tables
575
- 13. `extract_list` - Extract data from bullet and numbered lists
576
- 14. `extract_json` - Extract embedded JSON/API data
577
- 15. `scrape_meta_tags` - Extract SEO meta tags and Open Graph data
578
- 16. `extract_schema` - Extract Schema.org structured data
579
-
580
- ### 🔄 **Multi-Element Extractors (7 Tools)**
581
- 17. `batch_element_scraper` - Scrape multiple similar elements in batch
582
- 18. `nested_data_extraction` - Extract data maintaining parent-child relationships
583
- 19. `attribute_harvester` - Collect element attributes (href, src, data-*)
584
- 20. `image_scraper` - Extract image URLs, alt text, dimensions
585
- 21. `link_harvester` - Collect internal/external links with classification
586
- 22. `media_extractor` - Extract video, audio, iframe URLs and metadata
587
- 23. `pdf_link_finder` - Find downloadable files (PDF, DOC, etc.)
588
-
589
- ### 📄 **Pagination Tools (5 Tools)**
590
- 24. `auto_pagination` - Automatically detect and navigate through pages
591
- 25. `infinite_scroll` - Handle lazy-loading pages with auto-scroll
592
- 26. `multi_page_scraper` - Collect data from multiple pages
593
- 27. `sitemap_parser` - Extract URLs from sitemap.xml
594
- 28. `breadcrumb_navigator` - Navigate site structure using breadcrumbs
595
-
596
- ### 🧹 **Data Processing Tools (8 Tools)**
597
- 29. `smart_text_cleaner` - Clean and normalize text data
598
- 30. `html_to_text` - Convert HTML to clean text
599
- 31. `price_parser` - Extract numbers from currency strings
600
- 32. `date_normalizer` - Convert various date formats to standard format
601
- 33. `contact_extractor` - Detect phone numbers and email addresses
602
- 34. `schema_validator` - Validate data against JSON schema
603
- 35. `required_fields_checker` - Check for missing required fields
604
- 36. `duplicate_remover` - Remove duplicate items from arrays
605
-
606
- ### 🤖 **AI-Powered Features (5 Tools)**
607
- 37. `smart_selector_generator` - AI-based CSS selector generation
608
- 38. `content_classification` - Classify webpage content into categories
609
- 39. `sentiment_analysis` - Analyze sentiment of page content
610
- 40. `summary_generator` - Generate page content summaries using TF-IDF
611
- 41. `translation_support` - Detect language and provide translation info
612
-
613
- ### 🔍 **Search & Filter Tools (5 Tools)**
614
- 42. `keyword_search` - Advanced keyword search with context
615
- 43. `regex_pattern_matcher` - Search using regular expressions
616
- 44. `xpath_support` - Query elements using XPath expressions
617
- 45. `advanced_css_selectors` - Support for complex CSS selectors
618
- 46. `visual_element_finder` - Find elements by visual properties
619
-
620
- ### 🔧 **Data Quality & Validation (5 Tools)**
621
- 47. `data_deduplication` - Advanced duplicate removal with fuzzy matching
622
- 48. `missing_data_handler` - Detect and handle missing data
623
- 49. `data_type_validator` - Validate data types against JSON schema
624
- 50. `outlier_detection` - Detect outliers in numerical data
625
- 51. `consistency_checker` - Check data consistency across fields
626
-
627
- ### 🛡️ **Advanced Captcha Handling (3 Tools)**
628
- 52. `ocr_engine` - Extract text from images using OCR
629
- 53. `audio_captcha_solver` - Handle audio captchas
630
- 54. `puzzle_captcha_handler` - Handle slider and puzzle captchas
631
-
632
- ### 📸 **Screenshot & Visual Tools (5 Tools)**
633
- 55. `full_page_screenshot` - Capture complete page screenshots
634
- 56. `element_screenshot` - Capture screenshots of specific elements
635
- 57. `pdf_generation` - Convert pages to PDF
636
- 58. `video_recording` - Record browser sessions
637
- 59. `visual_comparison` - Compare two screenshots for differences
638
-
639
- ### 🌐 **Website API Integration (3 Tools)**
640
- 60. `rest_api_endpoint_finder` - Discover REST API endpoints
641
- 61. `webhook_support` - Set up and test webhooks
642
- 62. `all_website_api_finder` - Comprehensive API discovery
643
-
644
- ---
645
-
646
- ### 📝 **Usage Examples**
647
-
648
- | Category | Example Usage |
649
- |----------|---------------|
650
- | **Basic Browsing** | `browser_init` → `navigate` → `get_content` |
651
- | **Data Extraction** | `scrape_table` → `smart_text_cleaner` → `duplicate_remover` |
652
- | **Form Automation** | `find_selector` → `type` → `click` → `wait` |
653
- | **Content Analysis** | `get_content` → `sentiment_analysis` → `summary_generator` |
654
- | **Visual Capture** | `full_page_screenshot` → `element_screenshot` |
655
- | **Quality Control** | `data_type_validator` → `consistency_checker` |
501
+ ### Core Browser Tools
502
+
503
+ | Tool Name | Description | Required Parameters | Optional Parameters |
504
+ |-----------|-------------|---------------------|-------------------|
505
+ | `browser_init` | Initialize stealth browser with advanced options | None | `headless`, `disableXvfb`, `ignoreAllFlags`, `proxy`, `plugins`, `connectOption` |
506
+ | `navigate` | Navigate to a URL | `url` | `waitUntil` |
507
+ | `get_content` | Get page content (HTML or text) | None | `type`, `selector` |
508
+ | `browser_close` | Close the browser instance | None | None |
509
+
510
+ ### Interaction Tools
511
+
512
+ | Tool Name | Description | Required Parameters | Optional Parameters |
513
+ |-----------|-------------|---------------------|-------------------|
514
+ | `click` | Standard click on element | `selector` | `waitForNavigation` |
515
+ | `type` | Type text into input field | `selector`, `text` | `delay` |
516
+ | `wait` | Wait for various conditions | `type`, `value` | `timeout` |
517
+ | `find_selector` | Find CSS selector for element containing specific text | `text` | `elementType`, `exact` |
518
+
519
+
520
+ ### Behavior Tools
521
+
522
+ | Tool Name | Description | Required Parameters | Optional Parameters |
523
+ |-----------|-------------|---------------------|-------------------|
524
+ | `random_scroll` | Perform random scrolling with natural timing | None | None |
525
+
526
+ ### Element Discovery Tools
527
+
528
+ | Tool Name | Description | Required Parameters | Optional Parameters |
529
+ |-----------|-------------|---------------------|-------------------|
530
+ | `find_selector` | Find CSS selector for element containing specific text | `text` | `elementType`, `exact` |
531
+
532
+ ### Content Tools
533
+
534
+ | Tool Name | Description | Required Parameters | Optional Parameters |
535
+ |-----------|-------------|---------------------|-------------------|
536
+ | `save_content_as_markdown` | Extract page content and save it as a formatted markdown file | `filePath` | `contentType`, `selector`, `formatOptions` |
537
+
538
+ ### Anti-Detection Tools
539
+
540
+ | Tool Name | Description | Required Parameters | Optional Parameters |
541
+ |-----------|-------------|---------------------|-------------------|
542
+ | `solve_captcha` | Attempt to solve captchas | `type` | None |
656
543
 
657
544
  ## Advanced Features
658
545
 
@@ -661,7 +548,7 @@ This MCP server provides **62 professional-grade tools** organized into 11 major
661
548
  The server includes intelligent element discovery capabilities through the `find_selector` tool:
662
549
 
663
550
  - **Text-based element finding**: Automatically locates elements containing specific text
664
- - **Smart CSS selector generation**: Creates unique, robust CSS selectors similar to Brave DevTools
551
+ - **Smart CSS selector generation**: Creates unique, robust CSS selectors similar to Chrome DevTools
665
552
  - **Element type filtering**: Optionally restrict search to specific HTML elements (e.g., buttons, links)
666
553
  - **Exact or partial text matching**: Choose between precise text matching or substring searches
667
554
  - **Universal compatibility**: Works across any website without hardcoded selectors
@@ -699,27 +586,27 @@ brave-real-browser implementation.
699
586
 
700
587
  ## Configuration
701
588
 
702
- ### Automatic Brave Path Detection (Enhanced in v2.9.5)
589
+ ### Automatic Chrome Path Detection (Enhanced in v1.3.0)
703
590
 
704
- The server automatically detects Brave Browser installation paths across different operating systems with advanced multi-layer detection:
591
+ The server automatically detects Chrome installation paths across different operating systems with significantly improved Windows support:
705
592
 
706
- - **Windows (v2.9.5+)**:
707
- - Registry-based detection for all installed Brave versions
593
+ - **Windows (v1.3.0+)**:
594
+ - Registry-based detection for installed Chrome versions
708
595
  - Searches 15+ common installation directories including Program Files, user-specific locations, and portable installations
709
- - Support for all Brave variants (Stable, Beta, Dev, Nightly)
710
- - Environment variable detection (`BRAVE_PATH`, `CHROME_PATH` for fallback)
711
- - Detailed troubleshooting guidance when Brave is not found
596
+ - Support for Chrome Canary fallback
597
+ - Environment variable detection (`CHROME_PATH`, `PUPPETEER_EXECUTABLE_PATH`)
598
+ - Detailed troubleshooting guidance when Chrome is not found
712
599
 
713
- - **macOS**: Detects Brave in all Application bundle locations for all variants
600
+ - **macOS**: Looks for Chrome in `/Applications/Google Chrome.app/` and Chrome Canary locations
714
601
 
715
- - **Linux**: Checks multiple locations including package manager installations and manual installs
602
+ - **Linux**: Checks multiple locations including `/usr/bin/google-chrome`, `/usr/bin/chromium-browser`, and snap installations
716
603
 
717
- **Advanced Brave Detection** (Enhanced in v2.9.5):
718
- The server now uses sophisticated multi-layer detection combining Windows Registry queries, file system scanning, and environment variables for maximum compatibility.
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.
719
606
 
720
- If Brave is not found automatically, you can specify a custom path using:
721
- 1. Environment variable: `set BRAVE_PATH="C:\Your\Brave\Path\brave.exe"`
722
- 2. Browser init option: `customConfig.chromePath` when initializing the browser (legacy Chrome path support)
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
723
610
 
724
611
  ### Configuring Custom Options (like headless mode)
725
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:
@@ -746,7 +633,7 @@ When initializing with `browser_init`, you can configure:
746
633
 
747
634
  - `headless`: true/false (Set to true for headless operation)
748
635
  - `disableXvfb`: true/false (Disable X Virtual Framebuffer)
749
- - `ignoreAllFlags`: true/false (Ignore all Brave browser flags)
636
+ - `ignoreAllFlags`: true/false (Ignore all Chrome flags)
750
637
  - `proxy`: "https://proxy:8080" (Proxy server URL)
751
638
  - `plugins`: ["plugin1", "plugin2"] (Array of plugins to load)
752
639
  - `connectOption`: Additional connection options like:
@@ -775,11 +662,11 @@ When initializing the browser with `browser_init`, you can configure:
775
662
 
776
663
  ### Advanced Configuration Examples
777
664
 
778
- #### Specifying Custom Brave Path
665
+ #### Specifying Custom Chrome Path
779
666
  ```json
780
667
  {
781
668
  "customConfig": {
782
- "chromePath": "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
669
+ "chromePath": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
783
670
  }
784
671
  }
785
672
  ```
@@ -822,14 +709,14 @@ For advanced users, you can modify the server behavior by editing the source cod
822
709
 
823
710
  Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0.1:60725` error commonly experienced on Windows systems:
824
711
 
825
- **Enhanced Brave Path Detection:**
826
- - Added Windows Registry-based Brave detection for all variants
712
+ **Enhanced Chrome Path Detection:**
713
+ - Added Windows Registry-based Chrome detection
827
714
  - Expanded search to 15+ Windows installation locations including portable installations
828
- - Added support for all Brave versions (Stable, Beta, Dev, Nightly)
829
- - Environment variable support (`BRAVE_PATH`, `CHROME_PATH` for legacy fallback)
715
+ - Added support for Chrome Canary fallback
716
+ - Environment variable support (`CHROME_PATH`, `PUPPETEER_EXECUTABLE_PATH`)
830
717
 
831
718
  **Windows-Specific Launch Optimizations:**
832
- - 20+ Windows-specific Brave browser flags for better compatibility
719
+ - 20+ Windows-specific Chrome flags for better compatibility
833
720
  - Multiple fallback strategies (5 different connection approaches)
834
721
  - Progressive retry logic with exponential backoff
835
722
  - Enhanced timeout handling (120s for Windows vs 90s for other platforms)
@@ -844,12 +731,12 @@ Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0
844
731
 
845
732
  1. **Environment Variables (Recommended):**
846
733
  ```bash
847
- set BRAVE_PATH="C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe"
734
+ set CHROME_PATH="C:\Program Files\Google\Chrome\Application\chrome.exe"
848
735
  ```
849
736
 
850
- 2. **Manual Brave Path Configuration:**
737
+ 2. **Manual Chrome Path Configuration:**
851
738
  ```text
852
- Ask Claude: "Initialize browser with custom Brave path at C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
739
+ Ask Claude: "Initialize browser with custom Chrome path at C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
853
740
  ```
854
741
 
855
742
  3. **Network Troubleshooting:**
@@ -863,10 +750,10 @@ Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0
863
750
  # Ensure: 127.0.0.1 localhost
864
751
  ```
865
752
 
866
- 4. **Brave Process Management:**
753
+ 4. **Chrome Process Management:**
867
754
  ```bash
868
- # Kill existing Brave processes
869
- taskkill /f /im brave.exe
755
+ # Kill existing Chrome processes
756
+ taskkill /f /im chrome.exe
870
757
  ```
871
758
 
872
759
  ### Common Issues
@@ -925,20 +812,20 @@ Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0
925
812
  - Check your PATH includes npm global binaries: `npm config get prefix`
926
813
 
927
814
  3. **Browser won't start**
928
- - Check if Brave Browser is installed in standard locations
815
+ - Check if Chrome/Chromium is installed in standard locations
929
816
  - **Windows specific troubleshooting**:
930
817
 
931
- **Step 1: Verify Brave Installation Paths**
818
+ **Step 1: Verify Chrome Installation Paths**
932
819
  Check these locations in order:
933
- - `C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe`
934
- - `C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe`
935
- - `%LOCALAPPDATA%\BraveSoftware\Brave-Browser\Application\brave.exe`
936
- - `%PROGRAMFILES%\BraveSoftware\Brave-Browser\Application\brave.exe`
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`
937
824
 
938
825
  **Step 2: Manual Path Configuration**
939
- If Brave is in a different location, specify it manually:
826
+ If Chrome is in a different location, specify it manually:
940
827
  ```
941
- Ask Claude: "Initialize browser with custom Brave path at C:\Your\Brave\Path\brave.exe"
828
+ Ask Claude: "Initialize browser with custom Chrome path at C:\Your\Chrome\Path\chrome.exe"
942
829
  ```
943
830
 
944
831
  **Step 3: Windows Launch Arguments**
@@ -949,15 +836,15 @@ Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0
949
836
 
950
837
  **Step 4: Windows-Specific Solutions**
951
838
  - **Run as Administrator**: Try running your IDE/terminal as Administrator
952
- - **Windows Defender**: Add Brave Browser and Node.js to Windows Defender exclusions
953
- - **Antivirus Software**: Temporarily disable antivirus to test if it's blocking Brave
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
954
841
  - **User Account Control**: Lower UAC settings temporarily for testing
955
- - **Brave Processes**: Kill any existing Brave processes in Task Manager
842
+ - **Chrome Processes**: Kill any existing Chrome processes in Task Manager
956
843
 
957
- **Step 5: Alternative Brave Installation**
958
- If Brave detection still fails:
959
- - Download Brave directly from [brave.com/download](https://brave.com/download/)
960
- - Install to default location (`C:\Program Files\BraveSoftware\Brave-Browser\`)
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\`)
961
848
  - Restart your IDE after installation
962
849
 
963
850
  **Step 6: PowerShell vs Command Prompt**
@@ -970,10 +857,10 @@ Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0
970
857
  - Clear npm cache: `npm cache clean --force`
971
858
  - Reinstall global packages: `npm install -g brave-real-browser-mcp-server@latest`
972
859
 
973
- - **Linux**: Install Brave: `sudo apt install brave-browser` or from [brave.com](https://brave.com/)
974
- - **macOS**: Ensure Brave is in `/Applications/Brave Browser.app/`
860
+ - **Linux**: Install dependencies: `sudo apt-get install -y google-chrome-stable`
861
+ - **macOS**: Ensure Chrome is in `/Applications/`
975
862
  - Try with `headless: true` first
976
- - Check console output for Brave path detection messages
863
+ - Check console output for Chrome path detection messages
977
864
 
978
865
  4. **Claude doesn't see the MCP server**
979
866
  - Verify `claude_desktop_config.json` is in the correct location
@@ -999,7 +886,7 @@ Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0
999
886
  - Check if server status shows "connected" or error messages
1000
887
 
1001
888
  - **Environment Variables**:
1002
- - If using custom environment variables (Brave path, proxy), verify they're correctly set
889
+ - If using custom environment variables (Chrome path, proxy), verify they're correctly set
1003
890
  - Test without environment variables first: `claude mcp add brave-real-browser -- npx brave-real-browser-mcp-server@latest`
1004
891
 
1005
892
  - **Node.js and npx Issues**:
@@ -1122,11 +1009,11 @@ A: Supports reCAPTCHA, hCaptcha, and Cloudflare Turnstile through brave-real-bro
1122
1009
  **Q: Is this detectable by websites?**
1123
1010
  A: brave-real-browser includes anti-detection features, but no solution is 100% undetectable.
1124
1011
 
1125
- **Q: Can I use custom Brave extensions?**
1126
- A: Yes, through the `plugins` option in browser_init. Brave extensions and Chrome extensions are compatible.
1012
+ **Q: Can I use custom Chrome extensions?**
1013
+ A: Yes, through the `plugins` option in browser_init.
1127
1014
 
1128
1015
  **Q: Does it work on all operating systems?**
1129
- A: Yes, tested on Windows, macOS, and Linux. The server automatically detects Brave Browser installations on all platforms with advanced multi-layer detection.
1016
+ A: Yes, tested on Windows, macOS, and Linux. The server automatically detects Chrome installations on all platforms.
1130
1017
 
1131
1018
  **Q: What's the difference between Claude Desktop, Claude Code CLI, and Cursor IDE configurations?**
1132
1019
  A: Here's a comparison:
@@ -1147,30 +1034,30 @@ A: Here's a comparison:
1147
1034
  - **Claude Code CLI**: `claude mcp add brave-real-browser -- npx brave-real-browser-mcp-server@latest`
1148
1035
  - **Cursor IDE**: One-click install or manual JSON config
1149
1036
 
1150
- **Q: What if Brave is installed in a non-standard location?**
1151
- 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:
1152
- 1. Set environment variable: `set BRAVE_PATH="C:\Your\Brave\Path\brave.exe"`
1153
- 2. Use the `customConfig.chromePath` option: `{"customConfig": {"chromePath": "C:\\Custom\\Brave\\brave.exe"}}`
1154
-
1155
- **Q: Why am I getting "Brave not found" or ECONNREFUSED errors on Windows?**
1156
- A: Version 2.9.5 includes comprehensive fixes for Windows Brave detection and connection issues. The server now automatically searches these locations and more:
1157
- - `C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe`
1158
- - `C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe`
1159
- - `%LOCALAPPDATA%\BraveSoftware\Brave-Browser\Application\brave.exe`
1160
- - `%USERPROFILE%\AppData\Local\BraveSoftware\Brave-Browser\Application\brave.exe`
1161
- - All Brave variants (Stable, Beta, Dev, Nightly) installations
1162
- - Portable Brave installations
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
1163
1050
  - Registry-detected installations
1164
1051
 
1165
- 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.
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.
1166
1053
 
1167
- **Q: I'm still getting ECONNREFUSED errors after upgrading to v2.9.5. What should I do?**
1054
+ **Q: I'm still getting ECONNREFUSED errors after upgrading to v1.3.0. What should I do?**
1168
1055
  A: Try these steps in order:
1169
- 1. Set the `BRAVE_PATH` environment variable to your Brave location
1170
- 2. Kill all existing Brave processes: `taskkill /f /im brave.exe`
1056
+ 1. Set the `CHROME_PATH` environment variable to your Chrome location
1057
+ 2. Kill all existing Chrome processes: `taskkill /f /im chrome.exe`
1171
1058
  3. Check your Windows hosts file contains: `127.0.0.1 localhost`
1172
1059
  4. Try running your IDE as Administrator
1173
- 5. Add Brave Browser to Windows Defender exclusions
1060
+ 5. Add Chrome to Windows Defender exclusions
1174
1061
  6. If using a VPN/proxy, try disabling it temporarily
1175
1062
 
1176
1063
  ### Debug Mode
@@ -1269,7 +1156,7 @@ npm run test:debug # Environment diagnostics and troubleshooting
1269
1156
 
1270
1157
  Debug tools provide:
1271
1158
  - Environment validation (Node.js version, platform, memory)
1272
- - Brave Browser installation detection with specific paths
1159
+ - Chrome installation detection with specific paths
1273
1160
  - Quick server health check with startup timing
1274
1161
  - Network connectivity validation
1275
1162
  - Build status verification
@@ -1311,22 +1198,9 @@ This project is licensed under the MIT License - see the LICENSE file for detail
1311
1198
 
1312
1199
  ## Acknowledgments
1313
1200
 
1314
- ### 🦁 **Powered by brave-real-browser**
1315
-
1316
- 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.
1317
-
1318
- **Why brave-real-browser is Amazing:**
1319
- - **🛡️ Advanced Anti-Detection**: Sophisticated techniques to bypass bot detection
1320
- - **🦁 Brave Browser Optimized**: Specifically designed for Brave Browser
1321
- - **🔒 Privacy-First**: Built with privacy and security in mind
1322
- - **🎨 Stealth Capabilities**: Natural human-like interactions
1323
- - **⚡ High Performance**: Optimized for speed and reliability
1324
- - **🔧 Professional Grade**: Enterprise-level automation features
1201
+ This MCP server is based on the excellent [brave-real-browser](https://github.com/ZFC-Digital/brave-real-browser) library by ZFC-Digital.
1325
1202
 
1326
1203
  **Thank you** to the brave-real-browser team for creating such a powerful and detection-resistant browser automation solution!
1327
1204
 
1328
- **Resources:**
1329
- - **GitHub**: [https://github.com/ZFC-Digital/brave-real-browser](https://github.com/ZFC-Digital/brave-real-browser)
1330
- - **npm Package**: [https://www.npmjs.com/package/brave-real-browser](https://www.npmjs.com/package/brave-real-browser)
1331
- - **Documentation**: Comprehensive guides and examples
1332
- - **Community**: Active development and support
1205
+ - GitHub: [https://github.com/ZFC-Digital/brave-real-browser](https://github.com/ZFC-Digital/brave-real-browser)
1206
+ - npm: [https://www.npmjs.com/package/brave-real-browser](https://www.npmjs.com/package/brave-real-browser)