brave-real-browser-mcp-server 2.14.3 → 2.14.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.
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  <div align="center">
6
6
 
7
- ![Version](https://img.shields.io/badge/version-2.12.1-blue.svg)
7
+ ![Version](https://img.shields.io/badge/version-2.14.0-blue.svg)
8
8
  ![Node](https://img.shields.io/badge/node-%3E%3D18.0.0-green.svg)
9
9
  ![Tools](https://img.shields.io/badge/tools-111-purple.svg)
10
10
  ![IDEs](https://img.shields.io/badge/AI_IDEs-15+-orange.svg)
@@ -12,9 +12,7 @@
12
12
 
13
13
  **सभी AI IDEs के लिए Universal MCP Server | 111+ Tools | Browser Automation | Web Scraping | CAPTCHA Solving**
14
14
 
15
- [📖 **All 5 Protocols Complete Guide**](./ALL-PROTOCOLS.md) 👈 **NEW! Step-by-step setup for all protocols**
16
-
17
- [Installation](#-installation) | [Quick Start](#-quick-start) | [Qoder AI Setup](#-qoder-ai---complete-integration-guide) | [Tools](#-available-tools-111) | [HTTP/WebSocket/SSE](#-httpwebsocketsse-protocol-setup) | [IDE Configurations](#-ide-configurations)
15
+ [Installation](#-installation) | [Quick Start](#-quick-start) | [Qoder AI Setup](#-qoder-ai---complete-integration-guide) | [Tools](#-available-tools-111) | [IDE Configurations](#-ide-configurations)
18
16
 
19
17
  </div>
20
18
 
@@ -26,7 +24,7 @@
26
24
 
27
25
  - ✅ **15+ AI IDEs में काम करता है** (Claude, Cursor, Windsurf, Cline, Zed, VSCode, Qoder AI, etc.)
28
26
  - ✅ **111+ Automation Tools** - Browser control, scraping, CAPTCHA solving, video extraction
29
- - ✅ **5 Protocol Modes** - MCP (STDIO), LSP, HTTP/WebSocket, SSE
27
+ - ✅ **MCP Protocol (STDIO)** - Fast and secure local communication
30
28
  - ✅ **Auto-Detection** - Automatically detects your IDE
31
29
  - ✅ **Real Brave Browser** - Anti-detection features, bypass Cloudflare
32
30
  - ✅ **Universal API** - Works with any programming language (JS, Python, PHP, Go, etc.)
@@ -44,31 +42,13 @@
44
42
  | **Claude Desktop** | 2 min | MCP | Add config → Restart |
45
43
  | **Cursor AI** | 2 min | MCP | Add config → Restart |
46
44
  | **Windsurf** | 2 min | MCP | Add config → Restart |
47
- | **Zed Editor** | 3 min | LSP | Add to `context_servers` → Restart |
48
- || **Qoder AI** | 3 min | MCP (STDIO/SSE) | Add config → Restart |
49
- | **Custom Apps** | 1 min | HTTP/WebSocket/SSE | Start server → Use API |
45
+ | **Qoder AI** | 3 min | MCP (STDIO) | Add config → Restart |
50
46
 
51
47
  **Quick Commands:**
52
48
 
53
49
  ```bash
54
50
  # Auto-detect environment
55
51
  npx brave-real-browser-mcp-server@latest
56
-
57
- # MCP mode (Claude, Cursor, Windsurf)
58
- npx brave-real-browser-mcp-server@latest --mode mcp
59
-
60
- # LSP mode (Zed, VSCode, Neovim)
61
- npx brave-real-browser-mcp-server@latest --mode lsp
62
-
63
- # HTTP mode (Universal API + WebSocket)
64
- npx brave-real-browser-mcp-server@latest --mode http --port 3000
65
-
66
- # SSE mode (Real-time monitoring)
67
- npx brave-real-browser-mcp-server@latest --mode sse --sse-port 3001
68
-
69
- # Check if working
70
- curl http://localhost:3000/health # For HTTP mode
71
- curl http://localhost:3001/health # For SSE mode
72
52
  ```
73
53
 
74
54
  ---
@@ -106,7 +86,7 @@ npx brave-real-browser-mcp-server@latest
106
86
 
107
87
  ### For Qoder AI
108
88
 
109
- **Qoder AI supports 2 MCP transport types:** STDIO (local) and SSE (remote)
89
+ **Qoder AI supports MCP transport type:** STDIO (local)
110
90
 
111
91
  **Complete step-by-step guide:** [See Qoder AI Integration Guide](#-qoder-ai---complete-integration-guide)
112
92
 
@@ -115,320 +95,11 @@ npx brave-real-browser-mcp-server@latest
115
95
  2. Restart Qoder AI
116
96
  3. Use 111 browser automation tools!
117
97
 
118
- ### For Other Custom Tools
119
-
120
- Use HTTP/WebSocket/SSE mode - [See Protocol Setup](#-httpwebsocketsse-protocol-setup)
121
-
122
- ---
123
-
124
- ## 🌐 HTTP/WebSocket/SSE Protocol Setup
125
-
126
- ### 1️⃣ HTTP Protocol - Complete Configuration
127
-
128
- HTTP mode works with **ANY IDE or programming language**. No special configuration needed!
129
-
130
- #### Step 1: Start HTTP Server
131
-
132
- ```bash
133
- # Start server on port 3000
134
- npx brave-real-browser-mcp-server@latest --mode http --port 3000
135
-
136
- # Custom host and port
137
- npx brave-real-browser-mcp-server@latest --mode http --host 0.0.0.0 --port 8080
138
-
139
- # HTTP only (without WebSocket)
140
- npx brave-real-browser-mcp-server@latest --mode http --port 3000 --no-websocket
141
-
142
- # With custom Brave browser path
143
- set BRAVE_PATH=C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe
144
- npx brave-real-browser-mcp-server@latest --mode http --port 3000
145
- ```
146
-
147
- **Server will start and show:**
148
-
149
- ```
150
- 🟢 [HTTP] Starting HTTP/WebSocket server...
151
- ✅ [HTTP] Server ready at http://localhost:3000
152
- ✅ [WebSocket] Server running on ws://localhost:3000
153
- 💡 [HTTP] Universal mode - works with ALL AI IDEs
154
- ```
155
-
156
- #### Step 2: Test Server
157
-
158
- ```bash
159
- # Health check
160
- curl http://localhost:3000/health
161
-
162
- # List all available tools
163
- curl http://localhost:3000/tools
164
-
165
- # Get specific tool info
166
- curl http://localhost:3000/tools/browser_init
167
- ```
168
-
169
- #### Step 3: Available HTTP Endpoints
170
-
171
- | Method | Endpoint | Description | Example |
172
- |--------|----------|-------------|----------|
173
- | **GET** | `/health` | Health check | `curl http://localhost:3000/health` |
174
- | **GET** | `/tools` | List all 111 tools | `curl http://localhost:3000/tools` |
175
- | **GET** | `/tools/:toolName` | Get tool info | `curl http://localhost:3000/tools/browser_init` |
176
- | **POST** | `/tools/:toolName` | Execute any tool | See documentation |
177
-
178
- #### Step 4: MCP Configuration for HTTP
179
-
180
- If your IDE supports HTTP-based MCP servers, use this configuration:
181
-
182
- **Config format:**
183
- ```json
184
- {
185
- "mcpServers": {
186
- "brave-real-browser-http": {
187
- "url": "http://localhost:3000",
188
- "transport": "http",
189
- "name": "Brave Browser (HTTP)",
190
- "enabled": true
191
- }
192
- }
193
- }
194
- ```
195
-
196
- **With authentication:**
197
- ```json
198
- {
199
- "mcpServers": {
200
- "brave-real-browser-http": {
201
- "url": "http://localhost:3000",
202
- "transport": "http",
203
- "headers": {
204
- "Authorization": "Bearer your-token"
205
- },
206
- "enabled": true
207
- }
208
- }
209
- }
210
- ```
211
-
212
- #### Step 5: Error Handling
213
-
214
- **Success Response:**
215
- ```json
216
- {
217
- "success": true,
218
- "data": {
219
- "result": "Browser initialized successfully"
220
- }
221
- }
222
- ```
223
-
224
- **Error Response:**
225
- ```json
226
- {
227
- "success": false,
228
- "error": "Browser initialization failed",
229
- "details": "Brave browser not found at specified path"
230
- }
231
- ```
232
-
233
- ---
234
-
235
- ### 2️⃣ WebSocket Protocol - Complete Configuration
236
-
237
- WebSocket provides **real-time, bidirectional communication** for modern applications.
238
-
239
- #### Step 1: Start WebSocket Server
240
-
241
- ```bash
242
- # WebSocket is automatically enabled with HTTP mode
243
- npx brave-real-browser-mcp-server@latest --mode http --port 3000
244
-
245
- # WebSocket will be available at: ws://localhost:3000
246
- ```
247
-
248
- **Server will start and show:**
249
-
250
- ```
251
- 🟢 [HTTP] Starting HTTP/WebSocket server...
252
- ✅ [HTTP] Server ready at http://localhost:3000
253
- ✅ [WebSocket] Server running on ws://localhost:3000
254
- 💡 [HTTP] Universal mode - works with ALL AI IDEs
255
- ```
256
-
257
- #### Step 2: WebSocket Message Format
258
-
259
- **Request Format:**
260
- ```json
261
- {
262
- "tool": "tool_name",
263
- "params": {
264
- "param1": "value1",
265
- "param2": "value2"
266
- }
267
- }
268
- ```
269
-
270
- **Response Format:**
271
- ```json
272
- {
273
- "success": true,
274
- "tool": "browser_init",
275
- "data": {
276
- "result": "Browser initialized successfully"
277
- },
278
- "timestamp": "2025-01-25T04:20:00.000Z"
279
- }
280
- ```
281
-
282
- #### Step 3: MCP Configuration for WebSocket
283
-
284
- If your IDE supports WebSocket-based MCP servers:
285
-
286
- **Config format:**
287
- ```json
288
- {
289
- "mcpServers": {
290
- "brave-real-browser-ws": {
291
- "url": "ws://localhost:3000",
292
- "transport": "websocket",
293
- "name": "Brave Browser (WebSocket)",
294
- "enabled": true
295
- }
296
- }
297
- }
298
- ```
299
-
300
- **With custom options:**
301
- ```json
302
- {
303
- "mcpServers": {
304
- "brave-real-browser-ws": {
305
- "url": "ws://localhost:3000",
306
- "transport": "websocket",
307
- "reconnect": true,
308
- "reconnectDelay": 3000,
309
- "headers": {
310
- "Authorization": "Bearer your-token"
311
- },
312
- "enabled": true
313
- }
314
- }
315
- }
316
- ```
317
-
318
- #### Step 4: WebSocket Features
319
-
320
- **WebSocket URL:** `ws://localhost:3000`
321
-
322
- **Features:**
323
- - ✅ Real-time bidirectional communication
324
- - ✅ Auto-reconnection support
325
- - ✅ Ping/Pong keep-alive
326
- - ✅ Custom headers support
327
- - ✅ All 111 tools accessible
328
-
329
- ---
330
-
331
- ### 3️⃣ SSE Protocol - Complete Configuration
332
-
333
- Server-Sent Events (SSE) provides **real-time, one-way streaming** from server to client.
334
-
335
- #### Step 1: Start SSE Server
336
-
337
- ```bash
338
- # Default (port 3001)
339
- npx brave-real-browser-mcp-server@latest --mode sse
340
-
341
- # Custom port
342
- npx brave-real-browser-mcp-server@latest --mode sse --sse-port 3001
343
-
344
- # Custom host
345
- npx brave-real-browser-mcp-server@latest --mode sse --sse-port 3001 --host 0.0.0.0
346
-
347
- # With custom Brave path
348
- set BRAVE_PATH=C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe
349
- npx brave-real-browser-mcp-server@latest --mode sse --sse-port 3001
350
- ```
351
-
352
- **Server will start and show:**
353
-
354
- ```
355
- 🟢 [SSE] Starting SSE server...
356
- ✅ [SSE] Server ready at http://localhost:3001
357
- 💡 [SSE] Real-time monitoring enabled
358
- ```
359
-
360
- #### Step 2: Test SSE Server
361
-
362
- ```bash
363
- # Health check
364
- curl http://localhost:3001/health
365
-
366
- # List available event types
367
- curl http://localhost:3001/events/types
368
- ```
369
-
370
- #### Step 3: Available SSE Event Types
371
-
372
- | Event Type | Description | Example Data |
373
- |------------|-------------|-------------|
374
- | `browser_init_success` | Browser initialized | `{"status": "ready", "pid": 12345}` |
375
- | `browser_init_error` | Browser failed to start | `{"error": "Brave not found"}` |
376
- | `navigation_start` | Navigation started | `{"url": "https://example.com"}` |
377
- | `navigation_complete` | Navigation finished | `{"url": "https://example.com", "time": 1250}` |
378
- | `tool_start` | Tool execution started | `{"tool": "scrape_table"}` |
379
- | `tool_success` | Tool completed successfully | `{"tool": "scrape_table", "result": [...]}` |
380
- | `tool_error` | Tool execution failed | `{"tool": "scrape_table", "error": "Selector not found"}` |
381
- | `content_extracted` | Content extracted | `{"type": "html", "size": 50000}` |
382
- | `screenshot_captured` | Screenshot taken | `{"path": "/path/to/screenshot.png"}` |
383
- | `error_occurred` | General error | `{"error": "Connection timeout"}` |
384
-
385
- #### Step 4: MCP Configuration for SSE
386
-
387
- If your IDE supports SSE-based MCP servers:
388
-
389
- **Config format:**
390
- ```json
391
- {
392
- "mcpServers": {
393
- "brave-real-browser-sse": {
394
- "url": "http://localhost:3001/sse",
395
- "transport": "sse",
396
- "name": "Brave Browser (SSE)",
397
- "enabled": true
398
- }
399
- }
400
- }
401
- ```
402
-
403
- **With event filters:**
404
- ```json
405
- {
406
- "mcpServers": {
407
- "brave-real-browser-sse": {
408
- "url": "http://localhost:3001/sse?filter=tool_success,navigation_complete",
409
- "transport": "sse",
410
- "reconnect": true,
411
- "enabled": true
412
- }
413
- }
414
- }
415
- ```
416
-
417
- #### Step 5: SSE Advanced Features
418
-
419
- **Custom Event Filters:**
420
- ```bash
421
- # Connect with filter query parameter
422
- curl http://localhost:3001/events?filter=tool_success,navigation_complete
423
- ```
424
-
425
98
  ---
426
99
 
427
100
  ## 🤖 Qoder AI - Complete Integration Guide
428
101
 
429
- **Qoder AI** supports MCP servers through **2 official transport types:**
430
- - ✅ **STDIO** (Standard Input/Output) - For local MCP servers
431
- - ✅ **SSE** (Server-Sent Events) - For remote MCP servers
102
+ **Qoder AI** supports MCP servers through **STDIO** (Standard Input/Output).
432
103
 
433
104
  [Official Documentation](https://docs.qoder.com/user-guide/chat/model-context-protocol)
434
105
 
@@ -521,85 +192,6 @@ In Qoder AI, test:
521
192
 
522
193
  ---
523
194
 
524
- ### 🔵 Method 2: SSE Transport (For Remote MCP Servers)
525
-
526
- **SSE** uses HTTP POST for requests and event streams for responses. Perfect for remote hosted servers.
527
-
528
- #### Step 1: Start SSE Server
529
-
530
- ```bash
531
- # Windows
532
- set BRAVE_PATH=C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe
533
- npx brave-real-browser-mcp-server@latest --mode sse --sse-port 3001
534
-
535
- # Mac
536
- export BRAVE_PATH="/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"
537
- npx brave-real-browser-mcp-server@latest --mode sse --sse-port 3001
538
-
539
- # Linux
540
- export BRAVE_PATH="/usr/bin/brave-browser"
541
- npx brave-real-browser-mcp-server@latest --mode sse --sse-port 3001
542
- ```
543
-
544
- **Server will start:**
545
- ```
546
- 🟢 [SSE] Starting SSE server...
547
- ✅ [SSE] Server ready at http://localhost:3001
548
- 💡 [SSE] Real-time monitoring enabled
549
- ```
550
-
551
- #### Step 2: Configure Qoder AI for SSE
552
-
553
- **In Qoder AI Settings → MCP Servers:**
554
-
555
- ```json
556
- {
557
- "brave-real-browser": {
558
- "url": "http://localhost:3001/sse",
559
- "transport": "sse",
560
- "name": "Brave Real Browser (SSE)",
561
- "enabled": true
562
- }
563
- }
564
- ```
565
-
566
- #### Step 3: Restart Qoder AI
567
-
568
- Close and reopen Qoder AI.
569
-
570
- ---
571
-
572
- ### 🛠️ Using Brave Browser in Qoder AI
573
-
574
- Once configured, you can use **all 111 tools** in Qoder AI:
575
-
576
- **Example 1: Web Scraping**
577
- ```
578
- "Initialize browser, navigate to https://news.ycombinator.com and scrape all article titles"
579
- ```
580
-
581
- **Example 2: Form Automation**
582
- ```
583
- "Open https://example.com/login, fill the form with username 'test' and password 'pass123', then click submit"
584
- ```
585
-
586
- **Example 3: Data Extraction**
587
- ```
588
- "Go to https://example.com/products and extract all product names, prices, and images"
589
- ```
590
-
591
- **Example 4: Video Extraction**
592
- ```
593
- "Navigate to [video URL] and extract all video download links"
594
- ```
595
-
596
- **Example 5: Screenshot**
597
- ```
598
- "Take a full-page screenshot of https://example.com and save it"
599
- ```
600
-
601
- ---
602
-
603
195
  ### ⚡ Quick Troubleshooting for Qoder AI
604
196
 
605
197
  **Problem 1: "MCP Server timeout" or "Connection failed"**
@@ -640,17 +232,6 @@ Then update config to:
640
232
  }
641
233
  ```
642
234
 
643
- **Problem 4: "SSE server not connecting"**
644
-
645
- **Solution:**
646
- ```bash
647
- # Check if server is running
648
- curl http://localhost:3001/health
649
-
650
- # Try different port
651
- npx brave-real-browser-mcp-server@latest --mode sse --sse-port 3002
652
- ```
653
-
654
235
  ---
655
236
 
656
237
  ### 📊 Available Tools in Qoder AI
@@ -670,6 +251,7 @@ All **111 tools** are available:
670
251
 
671
252
  ## 🎨 IDE Configurations
672
253
 
254
+ ### Claude Desktop
673
255
 
674
256
  **Step 2: Add Configuration**
675
257
 
@@ -795,108 +377,6 @@ Copy and paste this configuration:
795
377
  }
796
378
  ```
797
379
 
798
- ### Zed Editor
799
-
800
- **Protocol:** Context Servers (MCP)
801
-
802
- **File:** `settings.json`
803
-
804
- **Location:**
805
-
806
- - Windows: `%APPDATA%\Zed\settings.json`
807
- - Mac: `~/.config/zed/settings.json`
808
- - Linux: `~/.config/zed/settings.json`
809
-
810
- #### Step-by-Step Setup Guide:
811
-
812
- **Step 1:** Open Zed Editor and press `Ctrl+Shift+P` (Windows/Linux) or `Cmd+Shift+P` (Mac)
813
-
814
- **Step 2:** Type "Open Settings" and select "Zed: Open Settings"
815
-
816
- **Step 3:** Add the following configuration:
817
-
818
- ```json
819
- {
820
- "context_servers": {
821
- "brave-real-browser": {
822
- "source": "custom",
823
- "command": "npx.cmd",
824
- "args": ["-y", "brave-real-browser-mcp-server"]
825
- }
826
- }
827
- }
828
- ```
829
-
830
- **For Mac/Linux, use:**
831
- ```json
832
- {
833
- "context_servers": {
834
- "brave-real-browser": {
835
- "source": "custom",
836
- "command": "npx",
837
- "args": ["-y", "brave-real-browser-mcp-server"]
838
- }
839
- }
840
- }
841
- ```
842
-
843
- **Note:** Replace path in Option C with your actual global npm modules path:
844
- - Windows: `%APPDATA%\npm\node_modules\brave-real-browser-mcp-server\dist\index.js`
845
- - Mac/Linux: `/usr/local/lib/node_modules/brave-real-browser-mcp-server/dist/index.js`
846
-
847
- **Advanced Configuration (with environment variables):**
848
-
849
- ```json
850
- {
851
- "mcpServers": {
852
- "brave-real-browser": {
853
- "command": "npx",
854
- "args": ["-y", "brave-real-browser-mcp-server@latest"],
855
- "env": {
856
- "BRAVE_PATH": "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe",
857
- "HEADLESS": "false"
858
- }
859
- }
860
- }
861
- }
862
- ```
863
-
864
- **For Mac:**
865
-
866
- ```json
867
- {
868
- "mcpServers": {
869
- "brave-real-browser": {
870
- "command": "npx",
871
- "args": ["-y", "brave-real-browser-mcp-server@latest"],
872
- "env": {
873
- "BRAVE_PATH": "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"
874
- }
875
- }
876
- }
877
- }
878
- ```
879
-
880
- **Cause:** Qoder AI has a short initialization timeout. Using `npx` can be slow on first run because it needs to download and cache the package.
881
-
882
- **Solution 1 - Install Globally (Recommended):**
883
- ```bash
884
- # Install package globally for instant startup
885
- npm install -g brave-real-browser-mcp-server@latest
886
- ```
887
-
888
- Then update your configuration to:
889
- ```json
890
- {
891
- "mcpServers": {
892
- "brave-real-browser": {
893
- "command": "brave-real-browser-mcp-server",
894
- "args": []
895
- }
896
- }
897
- }
898
- ```
899
-
900
380
  ## 🛠️ Available Tools (111)
901
381
 
902
382
  ### 🌐 Browser Management (2 tools)
@@ -1113,9 +593,6 @@ HEADLESS=true
1113
593
 
1114
594
  # Optional: Disable content priority
1115
595
  DISABLE_CONTENT_PRIORITY=true
1116
-
1117
- # Optional: HTTP port
1118
- HTTP_PORT=3000
1119
596
  ```
1120
597
 
1121
598
  ## 📊 Supported Protocols
@@ -1123,10 +600,6 @@ HTTP_PORT=3000
1123
600
  || Protocol | Used By | Auto-Config | Status |
1124
601
  || --------------- | --------------------------------------------- | ----------- | ---------- |
1125
602
  || **MCP (STDIO)** | Claude Desktop, Cursor, Windsurf, Cline, Warp | ✅ | 🟢 Working |
1126
- || **LSP** | Zed Editor, VSCode, Neovim | ✅ | 🟢 Working |
1127
- || **HTTP/REST** | Any IDE/Tool | ✅ | 🟢 Working |
1128
- || **WebSocket** | Modern Web Apps, Real-time Tools | ✅ | 🟢 Working |
1129
- || **SSE** | Real-time Streaming, Web Apps | ✅ | 🟢 Working |
1130
603
 
1131
604
  ## 📄 License
1132
605
 
@@ -1144,7 +617,7 @@ MIT License - See LICENSE file for details.
1144
617
 
1145
618
  <div align="center">
1146
619
 
1147
- **🌟 111 Tools | 15+ AI IDEs | 5 Protocols | Universal Support 🌟**
620
+ **🌟 111 Tools | 15+ AI IDEs | MCP Protocol | Universal Support 🌟**
1148
621
 
1149
622
  **Made with ❤️ for the AI Development Community**
1150
623