brave-real-browser-mcp-server 2.14.4 → 2.14.6
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 +20 -557
- package/dist/index.js +19 -77
- package/dist/tool-definitions.js +0 -45
- package/package.json +4 -15
- package/dist/handlers/api-integration-handlers.js +0 -335
- package/dist/launcher.js +0 -266
- package/dist/transports/http-transport.js +0 -198
- package/dist/transports/lsp-transport.js +0 -165
- package/dist/transports/sse-transport.js +0 -312
- package/dist/transports/sse-transport.test.js +0 -244
- package/dist/universal-ide-adapter.js +0 -855
package/README.md
CHANGED
|
@@ -4,17 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
<div align="center">
|
|
6
6
|
|
|
7
|
-

|
|
8
8
|

|
|
9
|
-

|
|
10
10
|

|
|
11
11
|

|
|
12
12
|
|
|
13
|
-
**सभी AI IDEs के लिए Universal MCP Server |
|
|
13
|
+
**सभी AI IDEs के लिए Universal MCP Server | 108+ Tools | Browser Automation | Web Scraping | CAPTCHA Solving**
|
|
14
14
|
|
|
15
|
-
[
|
|
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-108) | [IDE Configurations](#-ide-configurations)
|
|
18
16
|
|
|
19
17
|
</div>
|
|
20
18
|
|
|
@@ -25,8 +23,8 @@
|
|
|
25
23
|
**Brave Real Browser MCP Server** एक powerful automation tool है जो:
|
|
26
24
|
|
|
27
25
|
- ✅ **15+ AI IDEs में काम करता है** (Claude, Cursor, Windsurf, Cline, Zed, VSCode, Qoder AI, etc.)
|
|
28
|
-
- ✅ **
|
|
29
|
-
- ✅ **
|
|
26
|
+
- ✅ **108+ Automation Tools** - Browser control, scraping, CAPTCHA solving, video extraction
|
|
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
|
-
| **
|
|
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
|
---
|
|
@@ -101,334 +81,25 @@ npx brave-real-browser-mcp-server@latest
|
|
|
101
81
|
**Config file locations:**
|
|
102
82
|
|
|
103
83
|
- **Claude Desktop:** `%APPDATA%\Claude\claude_desktop_config.json` (Windows) or `~/Library/Application Support/Claude/claude_desktop_config.json` (Mac)
|
|
104
|
-
- **Cursor:** `%APPDATA%\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings
|
|
84
|
+
- **Cursor:** `%APPDATA%\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings<tool_call>_mcp_settings.json`
|
|
105
85
|
- **Windsurf:** `%APPDATA%\Windsurf\mcp.json`
|
|
106
86
|
|
|
107
87
|
### For Qoder AI
|
|
108
88
|
|
|
109
|
-
**Qoder AI supports
|
|
89
|
+
**Qoder AI supports MCP servers through **STDIO** (Standard Input/Output).
|
|
110
90
|
|
|
111
91
|
**Complete step-by-step guide:** [See Qoder AI Integration Guide](#-qoder-ai---complete-integration-guide)
|
|
112
92
|
|
|
113
93
|
**Quick setup (STDIO):**
|
|
114
94
|
1. Add to config: `{"command": "npx", "args": ["-y", "brave-real-browser-mcp-server@latest"]}`
|
|
115
95
|
2. Restart Qoder AI
|
|
116
|
-
3. Use
|
|
117
|
-
|
|
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
|
-
```
|
|
96
|
+
3. Use 108 browser automation tools!
|
|
424
97
|
|
|
425
98
|
---
|
|
426
99
|
|
|
427
100
|
## 🤖 Qoder AI - Complete Integration Guide
|
|
428
101
|
|
|
429
|
-
**Qoder AI** supports MCP servers through **
|
|
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
|
|
|
@@ -510,7 +181,7 @@ In Qoder AI, test:
|
|
|
510
181
|
|
|
511
182
|
```
|
|
512
183
|
"List all available MCP tools"
|
|
513
|
-
→ Expected:
|
|
184
|
+
→ Expected: 108 tools from Brave Real Browser
|
|
514
185
|
|
|
515
186
|
"Use browser_init to start the browser"
|
|
516
187
|
→ Expected: Browser opens
|
|
@@ -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,22 +232,11 @@ 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
|
|
657
238
|
|
|
658
|
-
All **
|
|
239
|
+
All **108 tools** are available:
|
|
659
240
|
|
|
660
241
|
✅ **Browser Management:** `browser_init`, `browser_close`
|
|
661
242
|
✅ **Navigation:** `navigate`, `wait`, `click`, `type`
|
|
@@ -664,12 +245,13 @@ All **111 tools** are available:
|
|
|
664
245
|
✅ **CAPTCHA Solving:** `solve_captcha`, `ocr_engine`
|
|
665
246
|
✅ **Data Processing:** `price_parser`, `date_normalizer`, `contact_extractor`
|
|
666
247
|
✅ **Visual Tools:** `full_page_screenshot`, `pdf_generation`
|
|
667
|
-
✅ **And
|
|
248
|
+
✅ **And 87+ more tools!**
|
|
668
249
|
|
|
669
250
|
---
|
|
670
251
|
|
|
671
252
|
## 🎨 IDE Configurations
|
|
672
253
|
|
|
254
|
+
### Claude Desktop
|
|
673
255
|
|
|
674
256
|
**Step 2: Add Configuration**
|
|
675
257
|
|
|
@@ -781,7 +363,7 @@ Copy and paste this configuration:
|
|
|
781
363
|
|
|
782
364
|
**Location:**
|
|
783
365
|
|
|
784
|
-
- Windows: `%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings
|
|
366
|
+
- Windows: `%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings<tool_call>_mcp_settings.json`
|
|
785
367
|
- Mac: `~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`
|
|
786
368
|
|
|
787
369
|
```json
|
|
@@ -795,109 +377,7 @@ Copy and paste this configuration:
|
|
|
795
377
|
}
|
|
796
378
|
```
|
|
797
379
|
|
|
798
|
-
|
|
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
|
-
## 🛠️ Available Tools (111)
|
|
380
|
+
## 🛠️ Available Tools (108)
|
|
901
381
|
|
|
902
382
|
### 🌐 Browser Management (2 tools)
|
|
903
383
|
|
|
@@ -960,10 +440,10 @@ Then update your configuration to:
|
|
|
960
440
|
| `ajax_extractor` | Extract AJAX/dynamic content |
|
|
961
441
|
| `fetch_xhr` | Capture XHR/Fetch requests |
|
|
962
442
|
| `network_recorder` | Record all network traffic |
|
|
963
|
-
| `api_finder` | Discover API endpoints |
|
|
964
443
|
| `regex_pattern_finder` | Find patterns using regex |
|
|
965
444
|
| `iframe_extractor` | Extract iframe content |
|
|
966
445
|
| `embed_page_extractor` | Extract embedded pages |
|
|
446
|
+
| `user_agent_extractor` | Extract user agent info |
|
|
967
447
|
|
|
968
448
|
### 🎬 Video & Media Tools (19 tools)
|
|
969
449
|
|
|
@@ -1083,15 +563,7 @@ Then update your configuration to:
|
|
|
1083
563
|
| `performance_monitor` | Monitor performance |
|
|
1084
564
|
| `monitoring_summary` | Get monitoring summary |
|
|
1085
565
|
|
|
1086
|
-
###
|
|
1087
|
-
|
|
1088
|
-
| Tool | Description |
|
|
1089
|
-
| -------------------------- | ------------------------ |
|
|
1090
|
-
| `rest_api_endpoint_finder` | Find REST API endpoints |
|
|
1091
|
-
| `webhook_support` | Webhook integration |
|
|
1092
|
-
| `all_website_api_finder` | Find all APIs on website |
|
|
1093
|
-
|
|
1094
|
-
### 🛡️ Advanced Extraction & Obfuscation (5 tools)
|
|
566
|
+
### 🛡️ Advanced Extraction & Obfuscation (4 tools)
|
|
1095
567
|
|
|
1096
568
|
| Tool | Description |
|
|
1097
569
|
| ---------------------------- | --------------------------- |
|
|
@@ -1099,7 +571,6 @@ Then update your configuration to:
|
|
|
1099
571
|
| `multi_layer_redirect_trace` | Trace multi-layer redirects |
|
|
1100
572
|
| `ad_protection_detector` | Detect ad protection |
|
|
1101
573
|
| `url_redirect_tracer` | Trace URL redirects |
|
|
1102
|
-
| `user_agent_extractor` | Extract user agent info |
|
|
1103
574
|
|
|
1104
575
|
|
|
1105
576
|
## 🔧 Environment Variables
|
|
@@ -1113,9 +584,6 @@ HEADLESS=true
|
|
|
1113
584
|
|
|
1114
585
|
# Optional: Disable content priority
|
|
1115
586
|
DISABLE_CONTENT_PRIORITY=true
|
|
1116
|
-
|
|
1117
|
-
# Optional: HTTP port
|
|
1118
|
-
HTTP_PORT=3000
|
|
1119
587
|
```
|
|
1120
588
|
|
|
1121
589
|
## 📊 Supported Protocols
|
|
@@ -1123,10 +591,6 @@ HTTP_PORT=3000
|
|
|
1123
591
|
|| Protocol | Used By | Auto-Config | Status |
|
|
1124
592
|
|| --------------- | --------------------------------------------- | ----------- | ---------- |
|
|
1125
593
|
|| **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
594
|
|
|
1131
595
|
## 📄 License
|
|
1132
596
|
|
|
@@ -1144,7 +608,6 @@ MIT License - See LICENSE file for details.
|
|
|
1144
608
|
|
|
1145
609
|
<div align="center">
|
|
1146
610
|
|
|
1147
|
-
**🌟
|
|
611
|
+
**🌟 108 Tools | 15+ AI IDEs | MCP Protocol | Universal Support 🌟**
|
|
1148
612
|
|
|
1149
613
|
**Made with ❤️ for the AI Development Community**
|
|
1150
|
-
|