brave-real-browser-mcp-server 2.12.3 โ†’ 2.12.5

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 +973 -193
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # ๐ŸŒ Brave Real Browser MCP Server
2
+
2
3
  ## Universal AI IDE Support with Advanced Browser Automation
3
4
 
4
5
  <div align="center">
@@ -11,7 +12,7 @@
11
12
 
12
13
  **เคธเคญเฅ€ AI IDEs เค•เฅ‡ เคฒเคฟเค Universal MCP Server | 111+ Tools | Browser Automation | Web Scraping | CAPTCHA Solving**
13
14
 
14
- [Installation](#-installation) | [Quick Start](#-quick-start) | [Tools](#-available-tools-111) | [HTTP/WebSocket](#-httpwebsocket-setup) | [Configuration](#-ide-configurations)
15
+ [Installation](#-installation) | [Quick Start](#-quick-start) | [Tools](#-available-tools-111) | [HTTP/WebSocket](#-httpwebsocket-setup) | [Configuration](#-ide-configurations) | [Troubleshooting](#-troubleshooting)
15
16
 
16
17
  </div>
17
18
 
@@ -32,13 +33,41 @@
32
33
 
33
34
  ## ๐Ÿš€ Quick Start
34
35
 
36
+ ### โšก Quick Setup Summary
37
+
38
+ **Choose your setup based on your AI Editor:**
39
+
40
+ | Editor | Setup Time | Method |
41
+ |--------|-----------|--------|
42
+ | **Claude Desktop** | 2 min | Add config โ†’ Restart |
43
+ | **Cursor AI** | 2 min | Add config โ†’ Restart |
44
+ | **Windsurf** | 2 min | Add config โ†’ Restart |
45
+ | **Zed Editor** | 3 min | Add to `context_servers` โ†’ Restart |
46
+ | **Qoder AI** | 4 min | Start HTTP server โ†’ Add config โ†’ Restart |
47
+ | **Others (HTTP)** | 3 min | Start HTTP server โ†’ Configure endpoint |
48
+
49
+ **Quick Commands:**
50
+
51
+ ```bash
52
+ # For MCP Editors (Claude, Cursor, Windsurf)
53
+ npx -y brave-real-browser-mcp-server@latest
54
+
55
+ # For HTTP-based Editors (Qoder AI, Custom)
56
+ npx brave-real-browser-mcp-server@latest --mode http --port 3000
57
+
58
+ # Check if working
59
+ curl http://localhost:3000/health # For HTTP mode
60
+ ```
61
+
62
+ ---
63
+
35
64
  ### Installation
36
65
 
37
66
  ```bash
38
67
  # Install globally
39
68
  npm install -g brave-real-browser-mcp-server@latest
40
69
 
41
- # Or use with npx (no installation)
70
+ # Or use with npx (no installation needed)
42
71
  npx brave-real-browser-mcp-server@latest
43
72
  ```
44
73
 
@@ -58,6 +87,7 @@ npx brave-real-browser-mcp-server@latest
58
87
  ```
59
88
 
60
89
  **Config file locations:**
90
+
61
91
  - **Claude Desktop:** `%APPDATA%\Claude\claude_desktop_config.json` (Windows) or `~/Library/Application Support/Claude/claude_desktop_config.json` (Mac)
62
92
  - **Cursor:** `%APPDATA%\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json`
63
93
  - **Windsurf:** `%APPDATA%\Windsurf\mcp.json`
@@ -88,6 +118,7 @@ npx brave-real-browser-mcp-server@latest --mode http --port 3000 --no-websocket
88
118
  ```
89
119
 
90
120
  **Server will start and show:**
121
+
91
122
  ```
92
123
  ๐ŸŸข [HTTP] Starting HTTP/WebSocket server...
93
124
  โœ… [HTTP] Server ready at http://localhost:3000
@@ -107,6 +138,7 @@ curl http://localhost:3000/tools
107
138
  #### Step 5: Configure in Your IDE
108
139
 
109
140
  **For Qoder AI:**
141
+
110
142
  ```json
111
143
  {
112
144
  "extensions": {
@@ -140,12 +172,44 @@ npx brave-real-browser-mcp-server@latest --mode http --port 3000
140
172
 
141
173
  ### Claude Desktop
142
174
 
143
- **File:** `claude_desktop_config.json`
175
+ **Protocol:** MCP (STDIO) | **Setup Time:** 2 minutes | **Auto-Start:** โœ… Yes
144
176
 
145
- **Location:**
146
- - Windows: `%APPDATA%\Claude\claude_desktop_config.json`
147
- - Mac: `~/Library/Application Support/Claude/claude_desktop_config.json`
148
- - Linux: `~/.config/Claude/claude_desktop_config.json`
177
+ #### ๐Ÿ“‹ Step-by-Step Setup Guide:
178
+
179
+ **Step 1: Locate Configuration File**
180
+
181
+ ```bash
182
+ # Windows (PowerShell)
183
+ cd $env:APPDATA\Claude
184
+ notepad claude_desktop_config.json
185
+
186
+ # Windows (CMD)
187
+ cd %APPDATA%\Claude
188
+ notepad claude_desktop_config.json
189
+
190
+ # Mac
191
+ cd ~/Library/Application\ Support/Claude
192
+ open -e claude_desktop_config.json
193
+
194
+ # Linux
195
+ cd ~/.config/Claude
196
+ gedit claude_desktop_config.json
197
+ ```
198
+
199
+ **If file doesn't exist, create it:**
200
+
201
+ ```bash
202
+ # Windows (PowerShell)
203
+ New-Item -Path "$env:APPDATA\Claude\claude_desktop_config.json" -ItemType File -Force
204
+
205
+ # Mac/Linux
206
+ mkdir -p ~/.config/Claude
207
+ touch ~/.config/Claude/claude_desktop_config.json
208
+ ```
209
+
210
+ **Step 2: Add Configuration**
211
+
212
+ Copy and paste this configuration:
149
213
 
150
214
  ```json
151
215
  {
@@ -158,14 +222,127 @@ npx brave-real-browser-mcp-server@latest --mode http --port 3000
158
222
  }
159
223
  ```
160
224
 
225
+ **Advanced Configuration (Optional):**
226
+
227
+ ```json
228
+ {
229
+ "mcpServers": {
230
+ "brave-real-browser": {
231
+ "command": "npx",
232
+ "args": ["-y", "brave-real-browser-mcp-server@latest"],
233
+ "env": {
234
+ "BRAVE_PATH": "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe",
235
+ "HEADLESS": "false"
236
+ }
237
+ }
238
+ }
239
+ }
240
+ ```
241
+
242
+ **Step 3: Save and Close File**
243
+
244
+ Press `Ctrl+S` (Windows/Linux) or `Cmd+S` (Mac) to save.
245
+
246
+ **Step 4: Restart Claude Desktop**
247
+
248
+ ```bash
249
+ # Windows
250
+ taskkill /F /IM claude.exe
251
+ # Then reopen Claude Desktop
252
+
253
+ # Mac
254
+ pkill -f Claude
255
+ # Then reopen Claude Desktop
256
+ ```
257
+
258
+ **Step 5: Verify Installation**
259
+
260
+ 1. Open Claude Desktop
261
+ 2. Look for ๐Ÿ”ง icon or "Tools" section
262
+ 3. You should see "brave-real-browser" with 111 tools
263
+ 4. Try this command in Claude:
264
+ ```
265
+ Use browser_init tool to start the browser
266
+ ```
267
+
268
+ **Troubleshooting:**
269
+
270
+ ```bash
271
+ # Check Claude logs
272
+ # Windows
273
+ type "%APPDATA%\Claude\logs\mcp*.log"
274
+
275
+ # Mac
276
+ cat ~/Library/Logs/Claude/mcp*.log
277
+
278
+ # If server fails, test manually:
279
+ npx -y brave-real-browser-mcp-server@latest
280
+ ```
281
+
282
+ **Configuration Locations:**
283
+ - Windows: `%APPDATA%\Claude\claude_desktop_config.json`
284
+ - Mac: `~/Library/Application Support/Claude/claude_desktop_config.json`
285
+ - Linux: `~/.config/Claude/claude_desktop_config.json`
286
+
161
287
  ### Cursor AI
162
288
 
163
- **File:** `cline_mcp_settings.json`
289
+ **Protocol:** MCP (STDIO) | **Setup Time:** 2 minutes | **Auto-Start:** โœ… Yes
164
290
 
165
- **Location:**
166
- - Windows: `%APPDATA%\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json`
167
- - Mac: `~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`
291
+ #### ๐Ÿ“‹ Step-by-Step Setup Guide:
292
+
293
+ **Step 1: Install Cline Extension (if not installed)**
294
+
295
+ 1. Open Cursor AI
296
+ 2. Press `Ctrl+Shift+X` (Extensions)
297
+ 3. Search for "Cline" or "Claude Dev"
298
+ 4. Click Install
299
+ 5. Restart Cursor
300
+
301
+ **Step 2: Locate Configuration File**
302
+
303
+ ```bash
304
+ # Windows (PowerShell)
305
+ $configPath = "$env:APPDATA\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings"
306
+ cd $configPath
307
+ notepad cline_mcp_settings.json
308
+
309
+ # Windows (CMD)
310
+ cd %APPDATA%\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings
311
+ notepad cline_mcp_settings.json
312
+
313
+ # Mac
314
+ cd ~/Library/Application\ Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings
315
+ open -e cline_mcp_settings.json
316
+ ```
317
+
318
+ **If file doesn't exist, create it:**
319
+
320
+ ```bash
321
+ # Windows (PowerShell)
322
+ $settingsPath = "$env:APPDATA\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings"
323
+ New-Item -Path $settingsPath -ItemType Directory -Force
324
+ New-Item -Path "$settingsPath\cline_mcp_settings.json" -ItemType File -Force
325
+
326
+ # Mac
327
+ mkdir -p ~/Library/Application\ Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings
328
+ touch ~/Library/Application\ Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
329
+ ```
330
+
331
+ **Step 3: Add Configuration**
332
+
333
+ **Basic Configuration:**
334
+ ```json
335
+ {
336
+ "mcpServers": {
337
+ "brave-real-browser": {
338
+ "command": "npx",
339
+ "args": ["-y", "brave-real-browser-mcp-server@latest"]
340
+ }
341
+ }
342
+ }
343
+ ```
168
344
 
345
+ **Advanced Configuration (with Brave path):**
169
346
  ```json
170
347
  {
171
348
  "mcpServers": {
@@ -173,18 +350,92 @@ npx brave-real-browser-mcp-server@latest --mode http --port 3000
173
350
  "command": "npx",
174
351
  "args": ["-y", "brave-real-browser-mcp-server@latest"],
175
352
  "env": {
176
- "BRAVE_PATH": "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
353
+ "BRAVE_PATH": "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe",
354
+ "HEADLESS": "false"
177
355
  }
178
356
  }
179
357
  }
180
358
  }
181
359
  ```
182
360
 
361
+ **For Mac:**
362
+ ```json
363
+ {
364
+ "mcpServers": {
365
+ "brave-real-browser": {
366
+ "command": "npx",
367
+ "args": ["-y", "brave-real-browser-mcp-server@latest"],
368
+ "env": {
369
+ "BRAVE_PATH": "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"
370
+ }
371
+ }
372
+ }
373
+ }
374
+ ```
375
+
376
+ **Step 4: Save and Restart Cursor**
377
+
378
+ ```bash
379
+ # Windows
380
+ taskkill /F /IM Cursor.exe
381
+ # Then reopen Cursor
382
+
383
+ # Mac
384
+ pkill -f Cursor
385
+ # Then reopen Cursor
386
+ ```
387
+
388
+ **Step 5: Verify Installation**
389
+
390
+ 1. Open Cursor AI
391
+ 2. Open Cline panel (usually in sidebar)
392
+ 3. Look for MCP tools section
393
+ 4. You should see "brave-real-browser" listed
394
+ 5. Test with:
395
+ ```
396
+ @brave-real-browser browser_init
397
+ ```
398
+
399
+ **Step 6: Using Tools in Cursor**
400
+
401
+ ```
402
+ # In Cline chat:
403
+ Use the browser_init tool from brave-real-browser to start automation
404
+
405
+ # Or directly:
406
+ @brave-real-browser navigate {"url": "https://example.com"}
407
+ ```
408
+
409
+ **Troubleshooting:**
410
+
411
+ ```bash
412
+ # Check if Cline extension is active
413
+ # Cursor โ†’ Extensions โ†’ Search "Cline" โ†’ Should show "Active"
414
+
415
+ # View Cline logs
416
+ # Cursor โ†’ View โ†’ Output โ†’ Select "Cline" from dropdown
417
+
418
+ # Test server manually
419
+ npx -y brave-real-browser-mcp-server@latest
420
+
421
+ # Clear Cursor cache
422
+ # Windows
423
+ Remove-Item -Recurse -Force "$env:APPDATA\Cursor\Cache"
424
+
425
+ # Mac
426
+ rm -rf ~/Library/Application\ Support/Cursor/Cache
427
+ ```
428
+
429
+ **Configuration Locations:**
430
+ - Windows: `%APPDATA%\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json`
431
+ - Mac: `~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`
432
+
183
433
  ### Windsurf
184
434
 
185
435
  **File:** `mcp.json`
186
436
 
187
437
  **Location:**
438
+
188
439
  - Windows: `%APPDATA%\Windsurf\mcp.json`
189
440
  - Mac: `~/.windsurf/mcp.json`
190
441
 
@@ -204,6 +455,7 @@ npx brave-real-browser-mcp-server@latest --mode http --port 3000
204
455
  **File:** `cline_mcp_settings.json`
205
456
 
206
457
  **Location:**
458
+
207
459
  - Windows: `%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json`
208
460
  - Mac: `~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`
209
461
 
@@ -220,27 +472,120 @@ npx brave-real-browser-mcp-server@latest --mode http --port 3000
220
472
 
221
473
  ### Zed Editor
222
474
 
475
+ **Protocol:** Context Servers (MCP)
476
+
223
477
  **File:** `settings.json`
224
478
 
225
479
  **Location:**
480
+
226
481
  - Windows: `%APPDATA%\Zed\settings.json`
227
482
  - Mac: `~/.config/zed/settings.json`
483
+ - Linux: `~/.config/zed/settings.json`
484
+
485
+ #### Step-by-Step Setup Guide:
486
+
487
+ **Step 1:** Open Zed Editor and press `Ctrl+Shift+P` (Windows/Linux) or `Cmd+Shift+P` (Mac)
488
+
489
+ **Step 2:** Type "Open Settings" and select "Zed: Open Settings"
490
+
491
+ **Step 3:** Add the following configuration:
492
+
493
+ ```json
494
+ {
495
+ "context_servers": {
496
+ "brave-real-browser": {
497
+ "source": "custom",
498
+ "command": "npx.cmd",
499
+ "args": ["-y", "brave-real-browser-mcp-server"]
500
+ }
501
+ }
502
+ }
503
+ ```
228
504
 
505
+ **For Mac/Linux, use:**
229
506
  ```json
230
507
  {
231
- "lsp": {
508
+ "context_servers": {
232
509
  "brave-real-browser": {
233
- "command": "brave-real-browser-mcp-server@latest",
234
- "args": ["--mode", "lsp"]
510
+ "source": "custom",
511
+ "command": "npx",
512
+ "args": ["-y", "brave-real-browser-mcp-server"]
235
513
  }
236
514
  }
237
515
  }
238
516
  ```
239
517
 
240
- ### Qoder AI / HTTP-based IDEs
518
+ **Step 4:** Save the file and restart Zed Editor
519
+
520
+ **Step 5:** Verify installation by checking Zed's output panel
521
+
522
+ **Important Notes:**
523
+ - โš ๏ธ **Zed uses `context_servers` NOT `mcpServers` or `lsp`**
524
+ - โœ… Make sure you're using Zed Preview version (v0.120.0+) for MCP support
525
+ - โœ… On Windows, use `npx.cmd` instead of `npx`
526
+ - โœ… Server will auto-start when Zed launches
527
+
528
+ ### Qoder AI Editor
529
+
530
+ **Protocol:** HTTP/WebSocket
531
+
532
+ **โš ๏ธ Important:** Qoder AI requires HTTP server to be running separately before configuration!
533
+
534
+ #### Step-by-Step Setup Guide:
241
535
 
242
- Start server in HTTP mode and configure:
536
+ **Step 1: Start HTTP Server First**
243
537
 
538
+ Open a terminal and run:
539
+
540
+ ```bash
541
+ # Windows (PowerShell)
542
+ npx brave-real-browser-mcp-server@latest --mode http --port 3000
543
+
544
+ # Mac/Linux
545
+ npx brave-real-browser-mcp-server@latest --mode http --port 3000
546
+ ```
547
+
548
+ **Expected Output:**
549
+ ```
550
+ ๐ŸŸข [HTTP] Starting HTTP/WebSocket server...
551
+ โœ… [HTTP] Server ready at http://localhost:3000
552
+ ๐Ÿ’ก [HTTP] Universal mode - works with ALL AI IDEs
553
+ ```
554
+
555
+ **Step 2: Test Server is Running**
556
+
557
+ Open another terminal and verify:
558
+
559
+ ```bash
560
+ # Health check
561
+ curl http://localhost:3000/health
562
+
563
+ # Expected response:
564
+ # {"status":"ok","timestamp":"..."}
565
+
566
+ # List all tools
567
+ curl http://localhost:3000/tools
568
+ ```
569
+
570
+ **Step 3: Configure Qoder AI**
571
+
572
+ Open Qoder AI settings and add:
573
+
574
+ **Option A - MCP Configuration (Recommended):**
575
+ ```json
576
+ {
577
+ "mcpServers": {
578
+ "brave-real-browser": {
579
+ "type": "http",
580
+ "endpoint": "http://localhost:3000",
581
+ "enabled": true,
582
+ "timeout": 30000
583
+ }
584
+ }
585
+ }
586
+ ```
587
+
588
+ **Option B - Extensions Configuration:**
244
589
  ```json
245
590
  {
246
591
  "extensions": {
@@ -254,212 +599,261 @@ Start server in HTTP mode and configure:
254
599
  }
255
600
  ```
256
601
 
257
- ---
602
+ **Step 4: Restart Qoder AI**
603
+
604
+ Close and reopen Qoder AI for changes to take effect.
605
+
606
+ **Step 5: Verify Connection**
607
+
608
+ Check Qoder AI's output/console for connection confirmation.
609
+
610
+ **Important Notes:**
611
+ - ๐Ÿ”ด **Server must be running BEFORE starting Qoder AI**
612
+ - โœ… Keep the HTTP server terminal window open while using Qoder AI
613
+ - โœ… If server stops, restart it before using browser automation
614
+ - ๐Ÿ’ก You can run server in background with `pm2` or as a service
615
+
616
+ **Background Server Setup (Optional):**
617
+
618
+ ```bash
619
+ # Install pm2 globally
620
+ npm install -g pm2
621
+
622
+ # Start server in background
623
+ pm2 start npx --name "brave-browser-server" -- brave-real-browser-mcp-server@latest --mode http --port 3000
624
+
625
+ # View logs
626
+ pm2 logs brave-browser-server
627
+
628
+ # Stop server
629
+ pm2 stop brave-browser-server
630
+ ```
631
+
632
+ ### Other HTTP-based IDEs (Gemini CLI, Qwen Code CLI, Custom Tools)
258
633
 
634
+ **Step 1:** Start HTTP server as shown above
635
+
636
+ **Step 2:** Configure your IDE/tool to use endpoint: `http://localhost:3000`
637
+
638
+ **Step 3:** Make HTTP POST requests to execute tools:
639
+
640
+ ```bash
641
+ # Example: Navigate to URL
642
+ curl -X POST http://localhost:3000/tools/navigate \
643
+ -H "Content-Type: application/json" \
644
+ -d '{"url": "https://example.com"}'
645
+
646
+ # Example: Get page content
647
+ curl -X POST http://localhost:3000/tools/get_content \
648
+ -H "Content-Type: application/json" \
649
+ -d '{"type": "text"}'
650
+ ```
651
+
652
+ ---
259
653
 
260
654
  ## ๐Ÿ› ๏ธ Available Tools (111)
261
655
 
262
656
  ### ๐ŸŒ Browser Management (2 tools)
263
657
 
264
- | Tool | Description |
265
- |------|-------------|
266
- | `browser_init` | Initialize browser with anti-detection features |
267
- | `browser_close` | Close browser instance |
658
+ | Tool | Description |
659
+ | --------------- | ----------------------------------------------- |
660
+ | `browser_init` | Initialize browser with anti-detection features |
661
+ | `browser_close` | Close browser instance |
268
662
 
269
663
  ### ๐Ÿงญ Navigation (2 tools)
270
664
 
271
- | Tool | Description |
272
- |------|-------------|
273
- | `navigate` | Navigate to URL with wait conditions |
274
- | `wait` | Wait for selector, navigation, or timeout |
665
+ | Tool | Description |
666
+ | ---------- | ----------------------------------------- |
667
+ | `navigate` | Navigate to URL with wait conditions |
668
+ | `wait` | Wait for selector, navigation, or timeout |
275
669
 
276
670
  ### ๐Ÿ–ฑ๏ธ Interactions (4 tools)
277
671
 
278
- | Tool | Description |
279
- |------|-------------|
280
- | `click` | Click on elements |
281
- | `type` | Type text into inputs |
282
- | `random_scroll` | Human-like scrolling |
672
+ | Tool | Description |
673
+ | --------------- | ---------------------------------------------------- |
674
+ | `click` | Click on elements |
675
+ | `type` | Type text into inputs |
676
+ | `random_scroll` | Human-like scrolling |
283
677
  | `solve_captcha` | Solve CAPTCHA (reCAPTCHA, hCaptcha, Turnstile, etc.) |
284
678
 
285
679
  ### ๐Ÿ“„ Content Extraction (10 tools)
286
680
 
287
- | Tool | Description |
288
- |------|-------------|
289
- | `get_content` | Extract page content (HTML/Text/Markdown) |
290
- | `find_selector` | Find CSS selectors for elements |
291
- | `scrape_table` | Extract table data with headers |
292
- | `extract_list` | Extract list items |
293
- | `extract_json` | Extract JSON data from page |
294
- | `scrape_meta_tags` | Extract meta tags and SEO info |
295
- | `extract_schema` | Extract schema.org structured data |
296
- | `save_content_as_markdown` | Save page as markdown file |
297
- | `html_to_text` | Convert HTML to clean text |
298
- | `smart_text_cleaner` | Clean and normalize text |
681
+ | Tool | Description |
682
+ | -------------------------- | ----------------------------------------- |
683
+ | `get_content` | Extract page content (HTML/Text/Markdown) |
684
+ | `find_selector` | Find CSS selectors for elements |
685
+ | `scrape_table` | Extract table data with headers |
686
+ | `extract_list` | Extract list items |
687
+ | `extract_json` | Extract JSON data from page |
688
+ | `scrape_meta_tags` | Extract meta tags and SEO info |
689
+ | `extract_schema` | Extract schema.org structured data |
690
+ | `save_content_as_markdown` | Save page as markdown file |
691
+ | `html_to_text` | Convert HTML to clean text |
692
+ | `smart_text_cleaner` | Clean and normalize text |
299
693
 
300
694
  ### ๐Ÿ” Multi-Element Extraction (8 tools)
301
695
 
302
- | Tool | Description |
303
- |------|-------------|
304
- | `batch_element_scraper` | Scrape multiple elements at once |
305
- | `nested_data_extraction` | Extract nested data structures |
306
- | `attribute_harvester` | Extract element attributes |
307
- | `image_scraper` | Extract all images with metadata |
308
- | `link_harvester` | Extract all links from page |
309
- | `media_extractor` | Extract media files (audio/video) |
310
- | `pdf_link_finder` | Find PDF download links |
311
- | `html_elements_extractor` | Extract specific HTML elements |
696
+ | Tool | Description |
697
+ | ------------------------- | --------------------------------- |
698
+ | `batch_element_scraper` | Scrape multiple elements at once |
699
+ | `nested_data_extraction` | Extract nested data structures |
700
+ | `attribute_harvester` | Extract element attributes |
701
+ | `image_scraper` | Extract all images with metadata |
702
+ | `link_harvester` | Extract all links from page |
703
+ | `media_extractor` | Extract media files (audio/video) |
704
+ | `pdf_link_finder` | Find PDF download links |
705
+ | `html_elements_extractor` | Extract specific HTML elements |
312
706
 
313
707
  ### ๐ŸŽฏ Advanced Extraction (10 tools)
314
708
 
315
- | Tool | Description |
316
- |------|-------------|
317
- | `tags_finder` | Find elements by tag name |
318
- | `links_finder` | Advanced link extraction |
319
- | `xpath_links` | Extract links using XPath |
320
- | `ajax_extractor` | Extract AJAX/dynamic content |
321
- | `fetch_xhr` | Capture XHR/Fetch requests |
322
- | `network_recorder` | Record all network traffic |
323
- | `api_finder` | Discover API endpoints |
324
- | `regex_pattern_finder` | Find patterns using regex |
325
- | `iframe_extractor` | Extract iframe content |
326
- | `embed_page_extractor` | Extract embedded pages |
709
+ | Tool | Description |
710
+ | ---------------------- | ---------------------------- |
711
+ | `tags_finder` | Find elements by tag name |
712
+ | `links_finder` | Advanced link extraction |
713
+ | `xpath_links` | Extract links using XPath |
714
+ | `ajax_extractor` | Extract AJAX/dynamic content |
715
+ | `fetch_xhr` | Capture XHR/Fetch requests |
716
+ | `network_recorder` | Record all network traffic |
717
+ | `api_finder` | Discover API endpoints |
718
+ | `regex_pattern_finder` | Find patterns using regex |
719
+ | `iframe_extractor` | Extract iframe content |
720
+ | `embed_page_extractor` | Extract embedded pages |
327
721
 
328
722
  ### ๐ŸŽฌ Video & Media Tools (19 tools)
329
723
 
330
- | Tool | Description |
331
- |------|-------------|
332
- | `video_link_finder` | Find video URLs |
333
- | `video_download_page` | Navigate to video download page |
334
- | `video_download_button` | Find video download buttons |
335
- | `video_play_push_source` | Get video play sources |
336
- | `video_play_button_click` | Click video play button |
337
- | `url_redirect_trace_endpoints` | Trace URL redirects |
338
- | `network_recording_finder` | Find network recordings |
339
- | `network_recording_extractors` | Extract network data |
340
- | `video_links_finders` | Multiple video link finders |
341
- | `videos_selectors` | Video element selectors |
342
- | `link_process_extracts` | Process and extract links |
343
- | `video_link_finders_extracts` | Advanced video link extraction |
344
- | `video_download_button_finders` | Find all download buttons |
345
- | `advanced_video_extraction` | Advanced video extraction with ad-bypass |
346
- | `image_extractor_advanced` | Advanced image extraction |
347
- | `video_source_extractor` | Extract video source URLs |
348
- | `video_player_extractor` | Extract video player info |
349
- | `video_player_hoster_finder` | Find video hosting platform |
350
- | `original_video_hoster_finder` | Find original video source |
724
+ | Tool | Description |
725
+ | ------------------------------- | ---------------------------------------- |
726
+ | `video_link_finder` | Find video URLs |
727
+ | `video_download_page` | Navigate to video download page |
728
+ | `video_download_button` | Find video download buttons |
729
+ | `video_play_push_source` | Get video play sources |
730
+ | `video_play_button_click` | Click video play button |
731
+ | `url_redirect_trace_endpoints` | Trace URL redirects |
732
+ | `network_recording_finder` | Find network recordings |
733
+ | `network_recording_extractors` | Extract network data |
734
+ | `video_links_finders` | Multiple video link finders |
735
+ | `videos_selectors` | Video element selectors |
736
+ | `link_process_extracts` | Process and extract links |
737
+ | `video_link_finders_extracts` | Advanced video link extraction |
738
+ | `video_download_button_finders` | Find all download buttons |
739
+ | `advanced_video_extraction` | Advanced video extraction with ad-bypass |
740
+ | `image_extractor_advanced` | Advanced image extraction |
741
+ | `video_source_extractor` | Extract video source URLs |
742
+ | `video_player_extractor` | Extract video player info |
743
+ | `video_player_hoster_finder` | Find video hosting platform |
744
+ | `original_video_hoster_finder` | Find original video source |
351
745
 
352
746
  ### ๐Ÿ” CAPTCHA & Security (4 tools)
353
747
 
354
- | Tool | Description |
355
- |------|-------------|
356
- | `solve_captcha` | Multi-CAPTCHA solver (reCAPTCHA, hCaptcha, Turnstile, Arkose, etc.) |
357
- | `ocr_engine` | OCR for text-based CAPTCHAs |
358
- | `audio_captcha_solver` | Solve audio CAPTCHAs |
359
- | `puzzle_captcha_handler` | Handle puzzle CAPTCHAs |
748
+ | Tool | Description |
749
+ | ------------------------ | ------------------------------------------------------------------- |
750
+ | `solve_captcha` | Multi-CAPTCHA solver (reCAPTCHA, hCaptcha, Turnstile, Arkose, etc.) |
751
+ | `ocr_engine` | OCR for text-based CAPTCHAs |
752
+ | `audio_captcha_solver` | Solve audio CAPTCHAs |
753
+ | `puzzle_captcha_handler` | Handle puzzle CAPTCHAs |
360
754
 
361
755
  ### ๐Ÿ”ง Data Processing (9 tools)
362
756
 
363
- | Tool | Description |
364
- |------|-------------|
365
- | `price_parser` | Extract and parse prices |
366
- | `date_normalizer` | Normalize dates to standard format |
367
- | `contact_extractor` | Extract contact information |
368
- | `schema_validator` | Validate data against schema |
369
- | `required_fields_checker` | Check for required fields |
370
- | `duplicate_remover` | Remove duplicate entries |
371
- | `data_deduplication` | Advanced deduplication |
372
- | `missing_data_handler` | Handle missing data |
373
- | `data_type_validator` | Validate data types |
757
+ | Tool | Description |
758
+ | ------------------------- | ---------------------------------- |
759
+ | `price_parser` | Extract and parse prices |
760
+ | `date_normalizer` | Normalize dates to standard format |
761
+ | `contact_extractor` | Extract contact information |
762
+ | `schema_validator` | Validate data against schema |
763
+ | `required_fields_checker` | Check for required fields |
764
+ | `duplicate_remover` | Remove duplicate entries |
765
+ | `data_deduplication` | Advanced deduplication |
766
+ | `missing_data_handler` | Handle missing data |
767
+ | `data_type_validator` | Validate data types |
374
768
 
375
769
  ### ๐Ÿ“Š Data Quality (3 tools)
376
770
 
377
- | Tool | Description |
378
- |------|-------------|
379
- | `outlier_detection` | Detect data outliers |
380
- | `consistency_checker` | Check data consistency |
771
+ | Tool | Description |
772
+ | ---------------------- | ------------------------ |
773
+ | `outlier_detection` | Detect data outliers |
774
+ | `consistency_checker` | Check data consistency |
381
775
  | `data_quality_metrics` | Generate quality metrics |
382
776
 
383
777
  ### ๐Ÿค– AI-Powered Tools (5 tools)
384
778
 
385
- | Tool | Description |
386
- |------|-------------|
779
+ | Tool | Description |
780
+ | -------------------------- | --------------------------- |
387
781
  | `smart_selector_generator` | Auto-generate CSS selectors |
388
- | `content_classification` | Classify content type |
389
- | `sentiment_analysis` | Analyze text sentiment |
390
- | `summary_generator` | Generate content summaries |
391
- | `translation_support` | Translate content |
782
+ | `content_classification` | Classify content type |
783
+ | `sentiment_analysis` | Analyze text sentiment |
784
+ | `summary_generator` | Generate content summaries |
785
+ | `translation_support` | Translate content |
392
786
 
393
787
  ### ๐Ÿ”Ž Search & Filter (5 tools)
394
788
 
395
- | Tool | Description |
396
- |------|-------------|
397
- | `keyword_search` | Search for keywords in page |
398
- | `regex_pattern_matcher` | Match regex patterns |
399
- | `xpath_support` | XPath query support |
789
+ | Tool | Description |
790
+ | ------------------------ | ----------------------------- |
791
+ | `keyword_search` | Search for keywords in page |
792
+ | `regex_pattern_matcher` | Match regex patterns |
793
+ | `xpath_support` | XPath query support |
400
794
  | `advanced_css_selectors` | Advanced CSS selector queries |
401
- | `visual_element_finder` | Find elements visually |
795
+ | `visual_element_finder` | Find elements visually |
402
796
 
403
797
  ### ๐Ÿ“‘ Pagination & Navigation (5 tools)
404
798
 
405
- | Tool | Description |
406
- |------|-------------|
407
- | `auto_pagination` | Auto-paginate through pages |
408
- | `infinite_scroll` | Handle infinite scroll |
409
- | `multi_page_scraper` | Scrape multiple pages |
410
- | `sitemap_parser` | Parse and navigate sitemaps |
411
- | `breadcrumb_navigator` | Navigate using breadcrumbs |
799
+ | Tool | Description |
800
+ | ---------------------- | --------------------------- |
801
+ | `auto_pagination` | Auto-paginate through pages |
802
+ | `infinite_scroll` | Handle infinite scroll |
803
+ | `multi_page_scraper` | Scrape multiple pages |
804
+ | `sitemap_parser` | Parse and navigate sitemaps |
805
+ | `breadcrumb_navigator` | Navigate using breadcrumbs |
412
806
 
413
807
  ### ๐Ÿ”’ Session Management (7 tools)
414
808
 
415
- | Tool | Description |
416
- |------|-------------|
417
- | `cookie_manager` | Manage cookies |
418
- | `session_persistence` | Persist sessions |
419
- | `form_auto_fill` | Auto-fill forms |
420
- | `ajax_content_waiter` | Wait for AJAX content |
421
- | `modal_popup_handler` | Handle modal popups |
422
- | `login_session_manager` | Manage login sessions |
423
- | `shadow_dom_extractor` | Extract Shadow DOM content |
809
+ | Tool | Description |
810
+ | ----------------------- | -------------------------- |
811
+ | `cookie_manager` | Manage cookies |
812
+ | `session_persistence` | Persist sessions |
813
+ | `form_auto_fill` | Auto-fill forms |
814
+ | `ajax_content_waiter` | Wait for AJAX content |
815
+ | `modal_popup_handler` | Handle modal popups |
816
+ | `login_session_manager` | Manage login sessions |
817
+ | `shadow_dom_extractor` | Extract Shadow DOM content |
424
818
 
425
819
  ### ๐Ÿ“ธ Visual Tools (5 tools)
426
820
 
427
- | Tool | Description |
428
- |------|-------------|
429
- | `full_page_screenshot` | Full page screenshot |
430
- | `element_screenshot` | Screenshot specific element |
431
- | `pdf_generation` | Generate PDF from page |
432
- | `video_recording` | Record page as video |
433
- | `visual_comparison` | Compare screenshots |
821
+ | Tool | Description |
822
+ | ---------------------- | --------------------------- |
823
+ | `full_page_screenshot` | Full page screenshot |
824
+ | `element_screenshot` | Screenshot specific element |
825
+ | `pdf_generation` | Generate PDF from page |
826
+ | `video_recording` | Record page as video |
827
+ | `visual_comparison` | Compare screenshots |
434
828
 
435
829
  ### ๐Ÿ“ˆ Monitoring & Reporting (6 tools)
436
830
 
437
- | Tool | Description |
438
- |------|-------------|
439
- | `progress_tracker` | Track automation progress |
440
- | `error_logger` | Log errors |
441
- | `success_rate_reporter` | Report success rates |
442
- | `data_quality_metrics` | Data quality metrics |
443
- | `performance_monitor` | Monitor performance |
444
- | `monitoring_summary` | Get monitoring summary |
831
+ | Tool | Description |
832
+ | ----------------------- | ------------------------- |
833
+ | `progress_tracker` | Track automation progress |
834
+ | `error_logger` | Log errors |
835
+ | `success_rate_reporter` | Report success rates |
836
+ | `data_quality_metrics` | Data quality metrics |
837
+ | `performance_monitor` | Monitor performance |
838
+ | `monitoring_summary` | Get monitoring summary |
445
839
 
446
840
  ### ๐ŸŒ API Integration (3 tools)
447
841
 
448
- | Tool | Description |
449
- |------|-------------|
450
- | `rest_api_endpoint_finder` | Find REST API endpoints |
451
- | `webhook_support` | Webhook integration |
452
- | `all_website_api_finder` | Find all APIs on website |
842
+ | Tool | Description |
843
+ | -------------------------- | ------------------------ |
844
+ | `rest_api_endpoint_finder` | Find REST API endpoints |
845
+ | `webhook_support` | Webhook integration |
846
+ | `all_website_api_finder` | Find all APIs on website |
453
847
 
454
848
  ### ๐Ÿ›ก๏ธ Advanced Extraction & Obfuscation (5 tools)
455
849
 
456
- | Tool | Description |
457
- |------|-------------|
458
- | `deobfuscate_js` | Deobfuscate JavaScript |
850
+ | Tool | Description |
851
+ | ---------------------------- | --------------------------- |
852
+ | `deobfuscate_js` | Deobfuscate JavaScript |
459
853
  | `multi_layer_redirect_trace` | Trace multi-layer redirects |
460
- | `ad_protection_detector` | Detect ad protection |
461
- | `url_redirect_tracer` | Trace URL redirects |
462
- | `user_agent_extractor` | Extract user agent info |
854
+ | `ad_protection_detector` | Detect ad protection |
855
+ | `url_redirect_tracer` | Trace URL redirects |
856
+ | `user_agent_extractor` | Extract user agent info |
463
857
 
464
858
  ---
465
859
 
@@ -472,19 +866,19 @@ Start server in HTTP mode and configure:
472
866
  await use_mcp_tool({
473
867
  server_name: "brave-real-browser",
474
868
  tool_name: "browser_init",
475
- arguments: {}
869
+ arguments: {},
476
870
  });
477
871
 
478
872
  await use_mcp_tool({
479
873
  server_name: "brave-real-browser",
480
874
  tool_name: "navigate",
481
- arguments: { url: "https://example.com" }
875
+ arguments: { url: "https://example.com" },
482
876
  });
483
877
 
484
878
  await use_mcp_tool({
485
879
  server_name: "brave-real-browser",
486
880
  tool_name: "get_content",
487
- arguments: { type: "text" }
881
+ arguments: { type: "text" },
488
882
  });
489
883
  ```
490
884
 
@@ -495,21 +889,21 @@ await use_mcp_tool({
495
889
  await use_mcp_tool({
496
890
  server_name: "brave-real-browser",
497
891
  tool_name: "navigate",
498
- arguments: { url: "https://site-with-captcha.com" }
892
+ arguments: { url: "https://site-with-captcha.com" },
499
893
  });
500
894
 
501
895
  // Solve CAPTCHA
502
896
  await use_mcp_tool({
503
897
  server_name: "brave-real-browser",
504
898
  tool_name: "solve_captcha",
505
- arguments: { type: "recaptcha" }
899
+ arguments: { type: "recaptcha" },
506
900
  });
507
901
 
508
902
  // Continue automation
509
903
  await use_mcp_tool({
510
904
  server_name: "brave-real-browser",
511
905
  tool_name: "click",
512
- arguments: { selector: "button.submit" }
906
+ arguments: { selector: "button.submit" },
513
907
  });
514
908
  ```
515
909
 
@@ -520,21 +914,21 @@ await use_mcp_tool({
520
914
  await use_mcp_tool({
521
915
  server_name: "brave-real-browser",
522
916
  tool_name: "navigate",
523
- arguments: { url: "https://video-site.com/video/123" }
917
+ arguments: { url: "https://video-site.com/video/123" },
524
918
  });
525
919
 
526
920
  // Find video links
527
921
  await use_mcp_tool({
528
922
  server_name: "brave-real-browser",
529
923
  tool_name: "video_link_finder",
530
- arguments: {}
924
+ arguments: {},
531
925
  });
532
926
 
533
927
  // Advanced video extraction with ad bypass
534
928
  await use_mcp_tool({
535
929
  server_name: "brave-real-browser",
536
930
  tool_name: "advanced_video_extraction",
537
- arguments: {}
931
+ arguments: {},
538
932
  });
539
933
  ```
540
934
 
@@ -545,7 +939,7 @@ await use_mcp_tool({
545
939
  await use_mcp_tool({
546
940
  server_name: "brave-real-browser",
547
941
  tool_name: "browser_init",
548
- arguments: {}
942
+ arguments: {},
549
943
  });
550
944
 
551
945
  // Auto-paginate through all pages
@@ -554,8 +948,8 @@ await use_mcp_tool({
554
948
  tool_name: "multi_page_scraper",
555
949
  arguments: {
556
950
  startUrl: "https://example.com/page/1",
557
- maxPages: 10
558
- }
951
+ maxPages: 10,
952
+ },
559
953
  });
560
954
  ```
561
955
 
@@ -578,6 +972,7 @@ POST /browser/close - Close browser
578
972
  ```
579
973
 
580
974
  **Example:**
975
+
581
976
  ```bash
582
977
  curl -X POST http://localhost:3000/tools/navigate \
583
978
  -H "Content-Type: application/json" \
@@ -606,46 +1001,431 @@ HTTP_PORT=3000
606
1001
 
607
1002
  ## ๐Ÿ› Troubleshooting
608
1003
 
609
- ### Brave Browser Not Found
1004
+ ### Common Issues & Solutions
1005
+
1006
+ #### 1. Brave Browser Not Found
1007
+
1008
+ **Symptoms:**
1009
+ - Error: "Brave browser not found"
1010
+ - Browser fails to launch
1011
+
1012
+ **Solutions:**
610
1013
 
611
- **Solution:**
612
1014
  ```bash
613
- # Windows
1015
+ # Windows (PowerShell)
1016
+ $env:BRAVE_PATH="C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe"
1017
+
1018
+ # Windows (CMD)
614
1019
  set BRAVE_PATH="C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe"
615
1020
 
616
- # Linux/Mac
1021
+ # Mac
1022
+ export BRAVE_PATH="/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"
1023
+
1024
+ # Linux (Ubuntu/Debian)
617
1025
  export BRAVE_PATH="/usr/bin/brave-browser"
1026
+
1027
+ # Linux (Snap)
1028
+ export BRAVE_PATH="/snap/bin/brave"
1029
+ ```
1030
+
1031
+ **Permanent Fix (Windows):**
1032
+ ```powershell
1033
+ # Add to System Environment Variables
1034
+ [System.Environment]::SetEnvironmentVariable('BRAVE_PATH', 'C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe', 'User')
1035
+ ```
1036
+
1037
+ ---
1038
+
1039
+ #### 2. Server Won't Start
1040
+
1041
+ **Symptoms:**
1042
+ - "Failed to start server" error
1043
+ - Process exits immediately
1044
+ - No output in terminal
1045
+
1046
+ **Solutions:**
1047
+
1048
+ **Step 1:** Check Node.js version
1049
+ ```bash
1050
+ node --version
1051
+ # Should show v18.0.0 or higher
1052
+ ```
1053
+
1054
+ **Step 2:** If Node.js is old, update it:
1055
+ ```bash
1056
+ # Windows (using Chocolatey)
1057
+ choco upgrade nodejs
1058
+
1059
+ # Mac (using Homebrew)
1060
+ brew upgrade node
1061
+
1062
+ # Or download from: https://nodejs.org/
1063
+ ```
1064
+
1065
+ **Step 3:** Clear npm cache and reinstall
1066
+ ```bash
1067
+ npm cache clean --force
1068
+ npm uninstall -g brave-real-browser-mcp-server
1069
+ npm install -g brave-real-browser-mcp-server@latest
618
1070
  ```
619
1071
 
620
- ### Server Won't Start
1072
+ **Step 4:** Check for conflicting processes
1073
+ ```bash
1074
+ # Windows
1075
+ taskkill /F /IM brave.exe
1076
+
1077
+ # Mac/Linux
1078
+ pkill -f brave
1079
+ ```
1080
+
1081
+ ---
621
1082
 
622
- 1. Check Node.js version: `node --version` (should be >= 18)
623
- 2. Clear npm cache: `npm cache clean --force`
624
- 3. Reinstall: `npm install -g brave-real-browser-mcp-server@latest`
1083
+ #### 3. Port Already in Use (HTTP Mode)
625
1084
 
626
- ### Port Already in Use
1085
+ **Symptoms:**
1086
+ - Error: "EADDRINUSE: address already in use ::3000"
1087
+ - HTTP server fails to start
627
1088
 
1089
+ **Solutions:**
1090
+
1091
+ **Option A:** Use a different port
628
1092
  ```bash
629
- # Use different port
630
1093
  npx brave-real-browser-mcp-server@latest --mode http --port 8080
631
1094
  ```
632
1095
 
633
- ### CAPTCHA Not Solving
1096
+ **Option B:** Kill the process using port 3000
1097
+
1098
+ ```bash
1099
+ # Windows (PowerShell)
1100
+ Get-Process -Id (Get-NetTCPConnection -LocalPort 3000).OwningProcess | Stop-Process -Force
1101
+
1102
+ # Windows (CMD)
1103
+ for /f "tokens=5" %a in ('netstat -aon ^| find ":3000" ^| find "LISTENING"') do taskkill /F /PID %a
1104
+
1105
+ # Mac/Linux
1106
+ lsof -ti:3000 | xargs kill -9
1107
+ ```
1108
+
1109
+ ---
1110
+
1111
+ #### 4. Qoder AI Configuration Fails
1112
+
1113
+ **Symptoms:**
1114
+ - "Connection refused" error
1115
+ - "Server not reachable" message
1116
+ - Tools not appearing in Qoder AI
1117
+
1118
+ **Solutions:**
1119
+
1120
+ **Step 1:** Verify HTTP server is running
1121
+ ```bash
1122
+ # Start server in a separate terminal
1123
+ npx brave-real-browser-mcp-server@latest --mode http --port 3000
1124
+
1125
+ # You should see:
1126
+ # โœ… [HTTP] Server ready at http://localhost:3000
1127
+ ```
1128
+
1129
+ **Step 2:** Test server connection
1130
+ ```bash
1131
+ curl http://localhost:3000/health
1132
+ # Expected: {"status":"ok","timestamp":"..."}
1133
+ ```
1134
+
1135
+ **Step 3:** Check firewall settings
1136
+ ```bash
1137
+ # Windows: Allow Node.js through firewall
1138
+ netsh advfirewall firewall add rule name="Node.js" dir=in action=allow program="C:\Program Files\nodejs\node.exe" enable=yes
1139
+ ```
1140
+
1141
+ **Step 4:** Try alternative configuration
1142
+ ```json
1143
+ {
1144
+ "mcpServers": {
1145
+ "brave-real-browser": {
1146
+ "command": "npx",
1147
+ "args": ["-y", "brave-real-browser-mcp-server@latest", "--mode", "http", "--port", "3000"],
1148
+ "env": {}
1149
+ }
1150
+ }
1151
+ }
1152
+ ```
1153
+
1154
+ ---
1155
+
1156
+ #### 5. Zed Editor Not Detecting Server
1157
+
1158
+ **Symptoms:**
1159
+ - Context servers not appearing
1160
+ - "Failed to start context server" error
1161
+
1162
+ **Solutions:**
1163
+
1164
+ **Step 1:** Ensure Zed Preview version
1165
+ ```bash
1166
+ # Check Zed version (should be v0.120.0 or higher)
1167
+ # Open Zed โ†’ Help โ†’ About Zed
1168
+ ```
1169
+
1170
+ **Step 2:** Verify correct configuration format
1171
+ ```json
1172
+ {
1173
+ "context_servers": {
1174
+ "brave-real-browser": {
1175
+ "source": "custom",
1176
+ "command": "npx.cmd", // Windows: use npx.cmd, Mac/Linux: use npx
1177
+ "args": ["-y", "brave-real-browser-mcp-server"]
1178
+ }
1179
+ }
1180
+ }
1181
+ ```
1182
+
1183
+ **Step 3:** Check Zed logs
1184
+ ```bash
1185
+ # Open Zed โ†’ View โ†’ Debug โ†’ Language Server Logs
1186
+ # Look for error messages
1187
+ ```
634
1188
 
635
- 1. Ensure CAPTCHA is fully loaded
636
- 2. Try longer timeout: `{ "timeout": 30000 }`
637
- 3. Try different CAPTCHA types: `recaptcha`, `hcaptcha`, `turnstile`
1189
+ **Step 4:** Restart Zed completely
1190
+ ```bash
1191
+ # Close Zed and kill any background processes
1192
+ # Windows
1193
+ taskkill /F /IM zed.exe
1194
+
1195
+ # Mac
1196
+ pkill -f zed
1197
+ ```
1198
+
1199
+ ---
1200
+
1201
+ #### 6. Claude Desktop Configuration Issues
1202
+
1203
+ **Symptoms:**
1204
+ - "MCP server failed to start"
1205
+ - Tools not appearing in Claude
1206
+
1207
+ **Solutions:**
1208
+
1209
+ **Step 1:** Check config file location
1210
+ ```bash
1211
+ # Windows
1212
+ echo %APPDATA%\Claude\claude_desktop_config.json
1213
+
1214
+ # Mac
1215
+ echo ~/Library/Application\ Support/Claude/claude_desktop_config.json
1216
+ ```
1217
+
1218
+ **Step 2:** Validate JSON format
1219
+ - Use https://jsonlint.com/ to validate your config
1220
+ - Ensure no trailing commas
1221
+ - Check quotes are properly escaped
1222
+
1223
+ **Step 3:** Check Claude logs
1224
+ ```bash
1225
+ # Windows
1226
+ type "%APPDATA%\Claude\logs\mcp*.log"
1227
+
1228
+ # Mac
1229
+ cat ~/Library/Logs/Claude/mcp*.log
1230
+ ```
1231
+
1232
+ **Step 4:** Restart Claude Desktop completely
1233
+ ```bash
1234
+ # Windows
1235
+ taskkill /F /IM claude.exe
1236
+
1237
+ # Mac
1238
+ pkill -f Claude
1239
+ ```
1240
+
1241
+ ---
1242
+
1243
+ #### 7. CAPTCHA Not Solving
1244
+
1245
+ **Symptoms:**
1246
+ - CAPTCHA solve timeout
1247
+ - "Failed to solve CAPTCHA" error
1248
+
1249
+ **Solutions:**
1250
+
1251
+ **Step 1:** Ensure CAPTCHA is fully loaded
1252
+ ```javascript
1253
+ // Add wait before solving
1254
+ await use_mcp_tool({
1255
+ server_name: "brave-real-browser",
1256
+ tool_name: "wait",
1257
+ arguments: { type: "timeout", value: "5000" }
1258
+ });
1259
+ ```
1260
+
1261
+ **Step 2:** Try longer timeout
1262
+ ```javascript
1263
+ await use_mcp_tool({
1264
+ server_name: "brave-real-browser",
1265
+ tool_name: "solve_captcha",
1266
+ arguments: {
1267
+ type: "recaptcha",
1268
+ timeout: 60000 // 60 seconds
1269
+ }
1270
+ });
1271
+ ```
1272
+
1273
+ **Step 3:** Try different CAPTCHA types
1274
+ - `recaptcha` - Google reCAPTCHA v2/v3
1275
+ - `hcaptcha` - hCaptcha
1276
+ - `turnstile` - Cloudflare Turnstile
1277
+
1278
+ ---
1279
+
1280
+ #### 8. NPX Command Not Found
1281
+
1282
+ **Symptoms:**
1283
+ - "npx: command not found"
1284
+ - "npx is not recognized"
1285
+
1286
+ **Solutions:**
1287
+
1288
+ **Step 1:** Verify npm installation
1289
+ ```bash
1290
+ npm --version
1291
+ ```
1292
+
1293
+ **Step 2:** Reinstall Node.js
1294
+ - Download from: https://nodejs.org/
1295
+ - Choose LTS version
1296
+ - During installation, ensure "Add to PATH" is checked
1297
+
1298
+ **Step 3:** Add npm to PATH manually (Windows)
1299
+ ```powershell
1300
+ $env:PATH += ";C:\Program Files\nodejs"
1301
+ ```
1302
+
1303
+ ---
1304
+
1305
+ #### 9. Permission Denied Errors (Linux/Mac)
1306
+
1307
+ **Symptoms:**
1308
+ - "EACCES: permission denied"
1309
+ - Cannot install globally
1310
+
1311
+ **Solutions:**
1312
+
1313
+ ```bash
1314
+ # Option A: Fix npm permissions
1315
+ sudo chown -R $(whoami) ~/.npm
1316
+ sudo chown -R $(whoami) /usr/local/lib/node_modules
1317
+
1318
+ # Option B: Use npx instead of global install
1319
+ npx brave-real-browser-mcp-server@latest
1320
+
1321
+ # Option C: Use nvm (recommended)
1322
+ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
1323
+ nvm install --lts
1324
+ ```
1325
+
1326
+ ---
1327
+
1328
+ #### 10. Browser Crashes or Hangs
1329
+
1330
+ **Symptoms:**
1331
+ - Browser becomes unresponsive
1332
+ - "Page crashed" errors
1333
+ - Memory issues
1334
+
1335
+ **Solutions:**
1336
+
1337
+ **Step 1:** Enable headless mode
1338
+ ```json
1339
+ {
1340
+ "mcpServers": {
1341
+ "brave-real-browser": {
1342
+ "command": "npx",
1343
+ "args": ["-y", "brave-real-browser-mcp-server@latest"],
1344
+ "env": {
1345
+ "HEADLESS": "true"
1346
+ }
1347
+ }
1348
+ }
1349
+ }
1350
+ ```
1351
+
1352
+ **Step 2:** Increase timeout values
1353
+ ```javascript
1354
+ await use_mcp_tool({
1355
+ server_name: "brave-real-browser",
1356
+ tool_name: "navigate",
1357
+ arguments: {
1358
+ url: "https://example.com",
1359
+ waitUntil: "networkidle2",
1360
+ timeout: 60000
1361
+ }
1362
+ });
1363
+ ```
1364
+
1365
+ **Step 3:** Clear browser cache
1366
+ ```bash
1367
+ # Kill all Brave processes
1368
+ # Windows
1369
+ taskkill /F /IM brave.exe
1370
+
1371
+ # Mac/Linux
1372
+ pkill -9 brave
1373
+ ```
1374
+
1375
+ ---
1376
+
1377
+ ### Getting Help
1378
+
1379
+ If you're still experiencing issues:
1380
+
1381
+ 1. **Check GitHub Issues:** https://github.com/codeiva4u/Brave-Real-Browser-Mcp-Server/issues
1382
+ 2. **Enable Debug Logs:** Set `DEBUG=*` environment variable
1383
+ 3. **Report Bug:** Include:
1384
+ - Operating System & version
1385
+ - Node.js version (`node --version`)
1386
+ - Editor/IDE name & version
1387
+ - Complete error message
1388
+ - Configuration file (remove sensitive data)
1389
+
1390
+ ```bash
1391
+ # Run with debug logging
1392
+ DEBUG=* npx brave-real-browser-mcp-server@latest --mode http
1393
+ ```
638
1394
 
639
1395
  ---
640
1396
 
641
1397
  ## ๐Ÿ“Š Supported Protocols
642
1398
 
643
- | Protocol | Used By | Auto-Config | Status |
644
- |----------|---------|-------------|--------|
645
- | **MCP (STDIO)** | Claude Desktop, Cursor, Windsurf, Cline, Warp | โœ… | ๐ŸŸข Working |
646
- | **LSP** | Zed Editor, VSCode, Neovim | โœ… | ๐ŸŸข Working |
647
- | **HTTP/REST** | Any IDE/Tool | โœ… | ๐ŸŸข Working |
648
- | **WebSocket** | Modern Web Apps, Real-time Tools | โœ… | ๐ŸŸข Working |
1399
+ || Protocol | Used By | Auto-Config | Status |
1400
+ || --------------- | --------------------------------------------- | ----------- | ---------- |
1401
+ || **MCP (STDIO)** | Claude Desktop, Cursor, Windsurf, Cline, Warp | โœ… | ๐ŸŸข Working |
1402
+ || **LSP** | Zed Editor, VSCode, Neovim | โœ… | ๐ŸŸข Working |
1403
+ || **HTTP/REST** | Any IDE/Tool | โœ… | ๐ŸŸข Working |
1404
+ || **WebSocket** | Modern Web Apps, Real-time Tools | โœ… | ๐ŸŸข Working |
1405
+
1406
+ ---
1407
+
1408
+ ## ๐Ÿ“Š Editor Compatibility Matrix
1409
+
1410
+ | AI Editor | Protocol | Config File | Server Auto-Start | HTTP Server Required | Status |
1411
+ |-----------|----------|-------------|-------------------|----------------------|--------|
1412
+ | **Claude Desktop** | MCP | `claude_desktop_config.json` | โœ… Yes | โŒ No | ๐ŸŸข Working |
1413
+ | **Cursor AI** | MCP | `cline_mcp_settings.json` | โœ… Yes | โŒ No | ๐ŸŸข Working |
1414
+ | **Windsurf** | MCP | `mcp.json` | โœ… Yes | โŒ No | ๐ŸŸข Working |
1415
+ | **Cline (VSCode)** | MCP | `cline_mcp_settings.json` | โœ… Yes | โŒ No | ๐ŸŸข Working |
1416
+ | **Warp Terminal** | MCP | Warp config | โœ… Yes | โŒ No | ๐ŸŸข Working |
1417
+ | **Zed Editor** | Context Servers (MCP) | `settings.json` | โœ… Yes | โŒ No | ๐ŸŸข Working |
1418
+ | **Qoder AI** | HTTP | `mcp.json` or config | โŒ No | โœ… **Yes** | ๐ŸŸข Working |
1419
+ | **Gemini CLI** | HTTP | CLI config | โŒ No | โœ… **Yes** | ๐ŸŸข Working |
1420
+ | **Qwen Code CLI** | HTTP | CLI config | โŒ No | โœ… **Yes** | ๐ŸŸข Working |
1421
+ | **Continue.dev** | HTTP | Extension config | โŒ No | โœ… **Yes** | ๐ŸŸข Working |
1422
+ | **Custom Tools** | HTTP | API integration | โŒ No | โœ… **Yes** | ๐ŸŸข Working |
1423
+ | **VSCode (Generic)** | LSP/HTTP | Extension config | Varies | Optional | ๐ŸŸข Working |
1424
+
1425
+ **Legend:**
1426
+ - โœ… **Server Auto-Start**: Editor automatically starts the MCP server
1427
+ - โŒ **HTTP Server Required**: You must manually start HTTP server before using
1428
+ - ๐ŸŸข **Working**: Fully tested and operational
649
1429
 
650
1430
  ---
651
1431