brave-real-browser-mcp-server 2.12.4 → 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 +805 -40
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  **सभी AI IDEs के लिए Universal MCP Server | 111+ Tools | Browser Automation | Web Scraping | CAPTCHA Solving**
14
14
 
15
- [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)
16
16
 
17
17
  </div>
18
18
 
@@ -33,13 +33,41 @@
33
33
 
34
34
  ## 🚀 Quick Start
35
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
+
36
64
  ### Installation
37
65
 
38
66
  ```bash
39
67
  # Install globally
40
68
  npm install -g brave-real-browser-mcp-server@latest
41
69
 
42
- # Or use with npx (no installation)
70
+ # Or use with npx (no installation needed)
43
71
  npx brave-real-browser-mcp-server@latest
44
72
  ```
45
73
 
@@ -144,13 +172,44 @@ npx brave-real-browser-mcp-server@latest --mode http --port 3000
144
172
 
145
173
  ### Claude Desktop
146
174
 
147
- **File:** `claude_desktop_config.json`
175
+ **Protocol:** MCP (STDIO) | **Setup Time:** 2 minutes | **Auto-Start:** ✅ Yes
148
176
 
149
- **Location:**
177
+ #### 📋 Step-by-Step Setup Guide:
150
178
 
151
- - Windows: `%APPDATA%\Claude\claude_desktop_config.json`
152
- - Mac: `~/Library/Application Support/Claude/claude_desktop_config.json`
153
- - Linux: `~/.config/Claude/claude_desktop_config.json`
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:
154
213
 
155
214
  ```json
156
215
  {
@@ -163,15 +222,127 @@ npx brave-real-browser-mcp-server@latest --mode http --port 3000
163
222
  }
164
223
  ```
165
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
+
166
287
  ### Cursor AI
167
288
 
168
- **File:** `cline_mcp_settings.json`
289
+ **Protocol:** MCP (STDIO) | **Setup Time:** 2 minutes | **Auto-Start:** ✅ Yes
169
290
 
170
- **Location:**
291
+ #### 📋 Step-by-Step Setup Guide:
171
292
 
172
- - Windows: `%APPDATA%\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json`
173
- - Mac: `~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`
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
+ ```
174
344
 
345
+ **Advanced Configuration (with Brave path):**
175
346
  ```json
176
347
  {
177
348
  "mcpServers": {
@@ -179,13 +350,86 @@ npx brave-real-browser-mcp-server@latest --mode http --port 3000
179
350
  "command": "npx",
180
351
  "args": ["-y", "brave-real-browser-mcp-server@latest"],
181
352
  "env": {
182
- "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"
183
355
  }
184
356
  }
185
357
  }
186
358
  }
187
359
  ```
188
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
+
189
433
  ### Windsurf
190
434
 
191
435
  **File:** `mcp.json`
@@ -228,33 +472,120 @@ npx brave-real-browser-mcp-server@latest --mode http --port 3000
228
472
 
229
473
  ### Zed Editor
230
474
 
475
+ **Protocol:** Context Servers (MCP)
476
+
231
477
  **File:** `settings.json`
232
478
 
233
479
  **Location:**
234
480
 
235
481
  - Windows: `%APPDATA%\Zed\settings.json`
236
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:
237
492
 
238
493
  ```json
239
494
  {
240
495
  "context_servers": {
241
496
  "brave-real-browser": {
242
- "command": {
243
- "path": "npx",
244
- "args": ["-y", "brave-real-browser-mcp-server@latest"]
245
- },
246
- "settings": {}
497
+ "source": "custom",
498
+ "command": "npx.cmd",
499
+ "args": ["-y", "brave-real-browser-mcp-server"]
247
500
  }
248
501
  }
249
502
  }
250
503
  ```
251
504
 
252
- **Note:** Zed uses `context_servers` (not `lsp`) for MCP servers. Make sure you're using Zed Preview version for MCP support.
505
+ **For Mac/Linux, use:**
506
+ ```json
507
+ {
508
+ "context_servers": {
509
+ "brave-real-browser": {
510
+ "source": "custom",
511
+ "command": "npx",
512
+ "args": ["-y", "brave-real-browser-mcp-server"]
513
+ }
514
+ }
515
+ }
516
+ ```
517
+
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:
535
+
536
+ **Step 1: Start HTTP Server First**
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**
253
556
 
254
- ### Qoder AI / HTTP-based IDEs
557
+ Open another terminal and verify:
255
558
 
256
- Start server in HTTP mode and configure:
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
+ ```
257
587
 
588
+ **Option B - Extensions Configuration:**
258
589
  ```json
259
590
  {
260
591
  "extensions": {
@@ -268,6 +599,56 @@ Start server in HTTP mode and configure:
268
599
  }
269
600
  ```
270
601
 
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)
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
+
271
652
  ---
272
653
 
273
654
  ## 🛠️ Available Tools (111)
@@ -620,47 +1001,431 @@ HTTP_PORT=3000
620
1001
 
621
1002
  ## 🐛 Troubleshooting
622
1003
 
623
- ### 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
624
1011
 
625
- **Solution:**
1012
+ **Solutions:**
626
1013
 
627
1014
  ```bash
628
- # Windows
1015
+ # Windows (PowerShell)
1016
+ $env:BRAVE_PATH="C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe"
1017
+
1018
+ # Windows (CMD)
629
1019
  set BRAVE_PATH="C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe"
630
1020
 
631
- # Linux/Mac
1021
+ # Mac
1022
+ export BRAVE_PATH="/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"
1023
+
1024
+ # Linux (Ubuntu/Debian)
632
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')
633
1035
  ```
634
1036
 
635
- ### Server Won't Start
1037
+ ---
636
1038
 
637
- 1. Check Node.js version: `node --version` (should be >= 18)
638
- 2. Clear npm cache: `npm cache clean --force`
639
- 3. Reinstall: `npm install -g brave-real-browser-mcp-server@latest`
1039
+ #### 2. Server Won't Start
640
1040
 
641
- ### Port Already in Use
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
+ ```
642
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
1070
+ ```
1071
+
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
+ ---
1082
+
1083
+ #### 3. Port Already in Use (HTTP Mode)
1084
+
1085
+ **Symptoms:**
1086
+ - Error: "EADDRINUSE: address already in use ::3000"
1087
+ - HTTP server fails to start
1088
+
1089
+ **Solutions:**
1090
+
1091
+ **Option A:** Use a different port
643
1092
  ```bash
644
- # Use different port
645
1093
  npx brave-real-browser-mcp-server@latest --mode http --port 8080
646
1094
  ```
647
1095
 
648
- ### 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
649
1104
 
650
- 1. Ensure CAPTCHA is fully loaded
651
- 2. Try longer timeout: `{ "timeout": 30000 }`
652
- 3. Try different CAPTCHA types: `recaptcha`, `hcaptcha`, `turnstile`
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
+ ```
1188
+
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
+ ```
653
1394
 
654
1395
  ---
655
1396
 
656
1397
  ## 📊 Supported Protocols
657
1398
 
658
- | Protocol | Used By | Auto-Config | Status |
659
- | --------------- | --------------------------------------------- | ----------- | ---------- |
660
- | **MCP (STDIO)** | Claude Desktop, Cursor, Windsurf, Cline, Warp | ✅ | 🟢 Working |
661
- | **LSP** | Zed Editor, VSCode, Neovim | ✅ | 🟢 Working |
662
- | **HTTP/REST** | Any IDE/Tool | ✅ | 🟢 Working |
663
- | **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
664
1429
 
665
1430
  ---
666
1431
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brave-real-browser-mcp-server",
3
- "version": "2.12.4",
3
+ "version": "2.12.5",
4
4
  "description": "Universal AI IDE MCP Server - Auto-detects and supports all AI IDEs (Claude Desktop, Cursor, Windsurf, Cline, Zed, VSCode, Qoder AI, etc.) with Brave browser automation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -36,7 +36,7 @@
36
36
  "test:brave:cleanup": "taskkill /F /IM brave.exe || pkill -f brave || true"
37
37
  },
38
38
  "dependencies": {
39
- "@modelcontextprotocol/sdk": "^1.20.1",
39
+ "@modelcontextprotocol/sdk": "^1.20.2",
40
40
  "@types/turndown": "^5.0.5",
41
41
  "ajv": "^8.12.0",
42
42
  "axios": "^1.6.5",