brave-real-browser-mcp-server 2.14.10 → 2.14.12

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
@@ -22,7 +22,7 @@
22
22
 
23
23
  **Brave Real Browser MCP Server** एक powerful automation tool है जो:
24
24
 
25
- - ✅ **15+ AI IDEs में काम करता है** (Claude, Cursor, Windsurf, Cline, Zed, VSCode, Qoder AI, etc.)
25
+ - ✅ **20+ AI IDEs में काम करता है** (Antigravity, Warp AI, Zed, Cursor, Claude, Windsurf, Cline, Qoder AI, etc.)
26
26
  - ✅ **108+ Automation Tools** - Browser control, scraping, CAPTCHA solving, video extraction
27
27
  - ✅ **MCP Protocol (STDIO)** - Fast and secure local communication
28
28
  - ✅ **Auto-Detection** - Automatically detects your IDE
@@ -42,6 +42,9 @@
42
42
  | **Claude Desktop** | 2 min | MCP | Add config → Restart |
43
43
  | **Cursor AI** | 2 min | MCP | Add config → Restart |
44
44
  | **Windsurf** | 2 min | MCP | Add config → Restart |
45
+ | **Antigravity IDE** | 1 min | MCP | Auto-Detect |
46
+ | **Warp AI** | 2 min | MCP | Add config |
47
+ | **Zed AI** | 2 min | MCP | Add config |
45
48
  | **Qoder AI** | 3 min | MCP (STDIO) | Add config → Restart |
46
49
 
47
50
  **Quick Commands:**
@@ -56,206 +59,47 @@ npx brave-real-browser-mcp-server@latest
56
59
  ### Installation
57
60
 
58
61
  ```bash
59
- # Install globally
60
- npm install -g brave-real-browser-mcp-server@latest
61
-
62
- # Or use with npx (no installation needed)
62
+ # Recommended: Use directly with npx (No install needed)
63
63
  npx brave-real-browser-mcp-server@latest
64
- ```
65
-
66
- ### For MCP IDEs (Claude, Cursor, Windsurf)
67
-
68
- **Add to your IDE config file:**
69
64
 
70
- ```json
71
- {
72
- "mcpServers": {
73
- "brave-real-browser": {
74
- "command": "npx",
75
- "args": ["-y", "brave-real-browser-mcp-server@latest"]
76
- }
77
- }
78
- }
65
+ # Alternative: Install globally
66
+ npm install -g brave-real-browser-mcp-server@latest
79
67
  ```
80
68
 
81
- **Config file locations:**
82
-
83
- - **Claude Desktop:** `%APPDATA%\Claude\claude_desktop_config.json` (Windows) or `~/Library/Application Support/Claude/claude_desktop_config.json` (Mac)
84
- - **Cursor:** `%APPDATA%\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings<tool_call>_mcp_settings.json`
85
- - **Windsurf:** `%APPDATA%\Windsurf\mcp.json`
86
-
87
- ### For Qoder AI
88
-
89
- **Qoder AI supports MCP servers through **STDIO** (Standard Input/Output).
90
-
91
- **Complete step-by-step guide:** [See Qoder AI Integration Guide](#-qoder-ai---complete-integration-guide)
92
-
93
- **Quick setup (STDIO):**
94
- 1. Add to config: `{"command": "npx", "args": ["-y", "brave-real-browser-mcp-server@latest"]}`
95
- 2. Restart Qoder AI
96
- 3. Use 108 browser automation tools!
97
-
98
69
  ---
99
70
 
100
- ## 🤖 Qoder AI - Complete Integration Guide
101
-
102
- **Qoder AI** supports MCP servers through **STDIO** (Standard Input/Output).
103
-
104
- [Official Documentation](https://docs.qoder.com/user-guide/chat/model-context-protocol)
105
-
106
- ---
107
-
108
- ### 🟢 Method 1: STDIO Transport (Recommended for Local)
109
-
110
- **STDIO** uses stdin/stdout streams for communication. Perfect for local MCP servers.
111
-
112
- #### Step 1: Find Qoder AI MCP Config File
113
-
114
- **Config file locations:**
115
-
116
- ```bash
117
- # Windows
118
- %APPDATA%\Qoder\mcp_settings.json
119
-
120
- # Mac
121
- ~/Library/Application Support/Qoder/mcp_settings.json
122
-
123
- # Linux
124
- ~/.config/Qoder/mcp_settings.json
125
- ```
71
+ ## 🎨 IDE Configurations
126
72
 
127
- #### Step 2: Add STDIO Configuration
73
+ ### 1. Claude Desktop
74
+ **File:** `%APPDATA%\Claude\claude_desktop_config.json` (Windows) or `~/Library/Application Support/Claude/claude_desktop_config.json` (Mac)
128
75
 
129
- **Windows Configuration:**
130
76
  ```json
131
77
  {
132
78
  "mcpServers": {
133
79
  "brave-real-browser": {
134
80
  "command": "npx",
135
- "args": ["-y", "brave-real-browser-mcp-server@latest"],
136
- "env": {
137
- "BRAVE_PATH": "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
138
- }
81
+ "args": ["-y", "brave-real-browser-mcp-server@latest"]
139
82
  }
140
83
  }
141
84
  }
142
85
  ```
143
86
 
144
- **Mac Configuration:**
145
- ```json
146
- {
147
- "mcpServers": {
148
- "brave-real-browser": {
149
- "command": "npx",
150
- "args": ["-y", "brave-real-browser-mcp-server@latest"],
151
- "env": {
152
- "BRAVE_PATH": "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"
153
- }
154
- }
155
- }
156
- }
157
- ```
87
+ ### 2. Cursor AI
88
+ **File:** `%APPDATA%\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings\mcp_settings.json`
158
89
 
159
- **Linux Configuration:**
160
90
  ```json
161
91
  {
162
92
  "mcpServers": {
163
93
  "brave-real-browser": {
164
94
  "command": "npx",
165
- "args": ["-y", "brave-real-browser-mcp-server@latest"],
166
- "env": {
167
- "BRAVE_PATH": "/usr/bin/brave-browser"
168
- }
169
- }
170
- }
171
- }
172
- ```
173
-
174
- #### Step 3: Restart Qoder AI
175
-
176
- Close and reopen Qoder AI completely.
177
-
178
- #### Step 4: Verify Integration
179
-
180
- In Qoder AI, test:
181
-
182
- ```
183
- "List all available MCP tools"
184
- → Expected: 108 tools from Brave Real Browser
185
-
186
- "Use browser_init to start the browser"
187
- → Expected: Browser opens
188
-
189
- "Navigate to https://example.com and get content"
190
- → Expected: Page content extracted
191
- ```
192
-
193
- ---
194
-
195
- ### ⚡ Quick Troubleshooting for Qoder AI
196
-
197
- **Problem 1: "MCP Server timeout" or "Connection failed"**
198
-
199
- **Solution:**
200
- ```bash
201
- # Install globally for faster startup
202
- npm install -g brave-real-browser-mcp-server@latest
203
- ```
204
-
205
- Then update config to:
206
- ```json
207
- {
208
- "mcpServers": {
209
- "brave-real-browser": {
210
- "command": "brave-real-browser-mcp-server",
211
- "args": []
95
+ "args": ["-y", "brave-real-browser-mcp-server@latest"]
212
96
  }
213
97
  }
214
98
  }
215
99
  ```
216
100
 
217
- **Problem 2: "Tools not showing in Qoder AI"**
218
-
219
- **Solution:**
220
- 1. Check config file path is correct
221
- 2. Verify JSON format is valid
222
- 3. Restart Qoder AI completely
223
- 4. Check Qoder AI logs for errors
224
-
225
- **Problem 3: "Browser not opening"**
226
-
227
- **Solution:**
228
- ```bash
229
- # Set Brave path explicitly in config
230
- "env": {
231
- "BRAVE_PATH": "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
232
- }
233
- ```
234
-
235
- ---
236
-
237
- ### 📊 Available Tools in Qoder AI
238
-
239
- All **108 tools** are available:
240
-
241
- ✅ **Browser Management:** `browser_init`, `browser_close`
242
- ✅ **Navigation:** `navigate`, `wait`, `click`, `type`
243
- ✅ **Content Extraction:** `get_content`, `scrape_table`, `extract_json`, `scrape_meta_tags`
244
- ✅ **Media Tools:** `video_link_finder`, `image_scraper`, `media_extractor`
245
- ✅ **CAPTCHA Solving:** `solve_captcha`, `ocr_engine`
246
- ✅ **Data Processing:** `price_parser`, `date_normalizer`, `contact_extractor`
247
- ✅ **Visual Tools:** `full_page_screenshot`, `pdf_generation`
248
- ✅ **And 87+ more tools!**
249
-
250
- ---
251
-
252
- ## 🎨 IDE Configurations
253
-
254
- ### Claude Desktop
255
-
256
- **Step 2: Add Configuration**
257
-
258
- Copy and paste this configuration:
101
+ ### 3. Windsurf
102
+ **File:** `%APPDATA%\Windsurf\mcp.json` (Windows) or `~/.windsurf/mcp.json` (Mac)
259
103
 
260
104
  ```json
261
105
  {
@@ -268,33 +112,24 @@ Copy and paste this configuration:
268
112
  }
269
113
  ```
270
114
 
271
- **Advanced Configuration (Optional):**
115
+ ### 4. Antigravity IDE
116
+ **Auto-Detection:** Automatically detects installed MCP servers.
117
+ **Manual Config:** Add to project config if needed:
272
118
 
273
119
  ```json
274
120
  {
275
121
  "mcpServers": {
276
122
  "brave-real-browser": {
277
123
  "command": "npx",
278
- "args": ["-y", "brave-real-browser-mcp-server@latest"],
279
- "env": {
280
- "BRAVE_PATH": "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe",
281
- "HEADLESS": "false"
282
- }
124
+ "args": ["-y", "brave-real-browser-mcp-server@latest"]
283
125
  }
284
126
  }
285
127
  }
286
128
  ```
287
129
 
288
- **Configuration Locations:**
289
- - Windows: `%APPDATA%\Claude\claude_desktop_config.json`
290
- - Mac: `~/Library/Application Support/Claude/claude_desktop_config.json`
291
- - Linux: `~/.config/Claude/claude_desktop_config.json`
292
-
293
- ### Cursor AI
130
+ ### 5. Warp AI
131
+ **File:** `~/.warp/mcp_config.json`
294
132
 
295
- **Step 3: Add Configuration**
296
-
297
- **Basic Configuration:**
298
133
  ```json
299
134
  {
300
135
  "mcpServers": {
@@ -306,45 +141,22 @@ Copy and paste this configuration:
306
141
  }
307
142
  ```
308
143
 
309
- **Advanced Configuration (with Brave path):**
310
- ```json
311
- {
312
- "mcpServers": {
313
- "brave-real-browser": {
314
- "command": "npx",
315
- "args": ["-y", "brave-real-browser-mcp-server@latest"],
316
- "env": {
317
- "BRAVE_PATH": "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe",
318
- "HEADLESS": "false"
319
- }
320
- }
321
- }
322
- }
323
- ```
144
+ ### 6. Zed AI
145
+ **File:** `.zed/settings.json`
324
146
 
325
- **For Mac:**
326
147
  ```json
327
148
  {
328
- "mcpServers": {
149
+ "mcp_servers": {
329
150
  "brave-real-browser": {
330
151
  "command": "npx",
331
- "args": ["-y", "brave-real-browser-mcp-server@latest"],
332
- "env": {
333
- "BRAVE_PATH": "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"
334
- }
152
+ "args": ["-y", "brave-real-browser-mcp-server@latest"]
335
153
  }
336
154
  }
337
155
  }
338
156
  ```
339
157
 
340
- ### Windsurf
341
-
342
- **File:** `mcp.json`
343
-
344
- **Location:**
345
-
346
- - Windows: `%APPDATA%\Windsurf\mcp.json`
347
- - Mac: `~/.windsurf/mcp.json`
158
+ ### 7. Cline (VSCode Extension)
159
+ **File:** `cline_mcp_settings.json`
348
160
 
349
161
  ```json
350
162
  {
@@ -357,26 +169,26 @@ Copy and paste this configuration:
357
169
  }
358
170
  ```
359
171
 
360
- ### Cline (VSCode Extension)
361
-
362
- **File:** `cline_mcp_settings.json`
363
-
364
- **Location:**
365
-
366
- - Windows: `%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings<tool_call>_mcp_settings.json`
367
- - Mac: `~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`
172
+ ### 8. Qoder AI
173
+ **File:** `%APPDATA%\Qoder\mcp_settings.json` (Windows) or `~/.config/Qoder/mcp_settings.json` (Linux)
174
+ **Note:** Qoder AI uses STDIO.
368
175
 
369
176
  ```json
370
177
  {
371
178
  "mcpServers": {
372
179
  "brave-real-browser": {
373
180
  "command": "npx",
374
- "args": ["-y", "brave-real-browser-mcp-server@latest"]
181
+ "args": ["-y", "brave-real-browser-mcp-server@latest"],
182
+ "env": {
183
+ "BRAVE_PATH": "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
184
+ }
375
185
  }
376
186
  }
377
187
  }
378
188
  ```
379
189
 
190
+ ---
191
+
380
192
  ## 🛠️ Available Tools (108)
381
193
 
382
194
  ### 🌐 Browser Management (2 tools)
@@ -557,7 +369,6 @@ Copy and paste this configuration:
557
369
  | Tool | Description |
558
370
  | ----------------------- | ------------------------- |
559
371
  | `progress_tracker` | Track automation progress |
560
-
561
372
  | `success_rate_reporter` | Report success rates |
562
373
  | `data_quality_metrics` | Data quality metrics |
563
374
  | `performance_monitor` | Monitor performance |
@@ -575,15 +386,26 @@ Copy and paste this configuration:
575
386
 
576
387
  ## 🔧 Environment Variables
577
388
 
389
+ You can configure the server using a local `.env` file (recommended for development) or by passing variables in your IDE config.
390
+
391
+ 1. Copy `.env.example` to `.env`:
392
+ ```bash
393
+ cp .env.example .env
394
+ ```
395
+ 2. Edit `.env` to set your preferences:
396
+
578
397
  ```bash
579
398
  # Optional: Specify Brave browser path
580
399
  BRAVE_PATH="C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe"
581
400
 
582
- # Optional: Run in headless mode
401
+ # Optional: Run in headless mode (default: false)
583
402
  HEADLESS=true
584
403
 
585
404
  # Optional: Disable content priority
586
405
  DISABLE_CONTENT_PRIORITY=true
406
+
407
+ # Optional: Proxy URL
408
+ PROXY_URL=http://localhost:8080
587
409
  ```
588
410
 
589
411
  ## 📊 Supported Protocols
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  // Debug logging setup - Log process start
3
+ import 'dotenv/config';
3
4
  console.error(`🔍 [DEBUG] Process starting - PID: ${process.pid}, Node: ${process.version}, Platform: ${process.platform}`);
4
5
  console.error(`🔍 [DEBUG] Working directory: ${process.cwd()}`);
5
6
  console.error(`🔍 [DEBUG] Command args: ${process.argv.join(" ")}`);
@@ -333,7 +333,7 @@ export const TOOLS = [
333
333
  // Smart Data Extractors
334
334
  {
335
335
  name: 'extract_list',
336
- description: 'Bullet lists और numbered lists से data extract करता है',
336
+ description: 'Extract data from bullet lists and numbered lists',
337
337
  inputSchema: {
338
338
  type: 'object',
339
339
  properties: {
@@ -345,7 +345,7 @@ export const TOOLS = [
345
345
  },
346
346
  {
347
347
  name: 'extract_json',
348
- description: 'Page में embedded JSON/API data extract करता है',
348
+ description: 'Extract embedded JSON/API data from the page',
349
349
  inputSchema: {
350
350
  type: 'object',
351
351
  properties: {
@@ -357,7 +357,7 @@ export const TOOLS = [
357
357
  },
358
358
  {
359
359
  name: 'scrape_meta_tags',
360
- description: 'SEO meta tags और Open Graph data extract करता है',
360
+ description: 'Extract SEO meta tags and Open Graph data',
361
361
  inputSchema: {
362
362
  type: 'object',
363
363
  properties: {
@@ -369,7 +369,7 @@ export const TOOLS = [
369
369
  },
370
370
  {
371
371
  name: 'extract_schema',
372
- description: 'Schema.org structured data (JSON-LD, Microdata) extract करता है',
372
+ description: 'Extract Schema.org structured data (JSON-LD, Microdata)',
373
373
  inputSchema: {
374
374
  type: 'object',
375
375
  properties: {
@@ -381,7 +381,7 @@ export const TOOLS = [
381
381
  // Multi-Element Extractors
382
382
  {
383
383
  name: 'batch_element_scraper',
384
- description: 'Multiple similar elements को batch में scrape करता है',
384
+ description: 'Scrape multiple similar elements in a batch',
385
385
  inputSchema: {
386
386
  type: 'object',
387
387
  properties: {
@@ -395,7 +395,7 @@ export const TOOLS = [
395
395
  },
396
396
  {
397
397
  name: 'nested_data_extraction',
398
- description: 'Parent-child relationships maintain करते हुए data extract करता है',
398
+ description: 'Extract data maintaining parent-child relationships',
399
399
  inputSchema: {
400
400
  type: 'object',
401
401
  properties: {
@@ -408,7 +408,7 @@ export const TOOLS = [
408
408
  },
409
409
  {
410
410
  name: 'attribute_harvester',
411
- description: 'Elements के attributes (href, src, data-*) collect करता है',
411
+ description: 'Collect attributes (href, src, data-*) from elements',
412
412
  inputSchema: {
413
413
  type: 'object',
414
414
  properties: {
@@ -422,7 +422,7 @@ export const TOOLS = [
422
422
  // Content Type Specific Extractors
423
423
  {
424
424
  name: 'link_harvester',
425
- description: 'Internal/external links classification के साथ collect करता है',
425
+ description: 'Collect internal/external links with classification',
426
426
  inputSchema: {
427
427
  type: 'object',
428
428
  properties: {
@@ -434,7 +434,7 @@ export const TOOLS = [
434
434
  },
435
435
  {
436
436
  name: 'media_extractor',
437
- description: 'Videos, audio, iframes का URLs और metadata extract करता है',
437
+ description: 'Extract URLs and metadata for videos, audio, and iframes',
438
438
  inputSchema: {
439
439
  type: 'object',
440
440
  properties: {
@@ -446,7 +446,7 @@ export const TOOLS = [
446
446
  // Pagination Tools
447
447
  {
448
448
  name: 'multi_page_scraper',
449
- description: 'Multiple pages से data collect और merge करता है',
449
+ description: 'Collect and merge data from multiple pages',
450
450
  inputSchema: {
451
451
  type: 'object',
452
452
  properties: {
@@ -459,7 +459,7 @@ export const TOOLS = [
459
459
  },
460
460
  {
461
461
  name: 'breadcrumb_navigator',
462
- description: 'Site structure follow करके navigation path extract करता है',
462
+ description: 'Extract navigation path by following site structure',
463
463
  inputSchema: {
464
464
  type: 'object',
465
465
  properties: {
@@ -471,7 +471,7 @@ export const TOOLS = [
471
471
  // Data Processing Tools
472
472
  {
473
473
  name: 'html_to_text',
474
- description: 'HTML को clean text में convert करता है',
474
+ description: 'Convert HTML content to clean text',
475
475
  inputSchema: {
476
476
  type: 'object',
477
477
  properties: {
@@ -485,7 +485,7 @@ export const TOOLS = [
485
485
  // Data Validation Tools
486
486
  {
487
487
  name: 'duplicate_remover',
488
- description: 'Array से duplicate items remove करता है',
488
+ description: 'Remove duplicate items from an array',
489
489
  inputSchema: {
490
490
  type: 'object',
491
491
  properties: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brave-real-browser-mcp-server",
3
- "version": "2.14.10",
3
+ "version": "2.14.12",
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",