brave-real-browser-mcp-server 2.11.8 → 2.12.0
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 +461 -1240
- package/dist/index.js +134 -124
- package/dist/launcher.js +106 -34
- package/dist/universal-ide-adapter.js +855 -0
- package/package.json +26 -4
package/README.md
CHANGED
|
@@ -1,1456 +1,677 @@
|
|
|
1
|
+
# 🌐 Brave Real Browser MCP Server - Universal AI IDE Support
|
|
1
2
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
# Brave Real Browser MCP Server
|
|
5
|
-
|
|
6
|
-
Provides AI assistants with powerful, detection-resistant browser automation capabilities built on ZFC Digital's brave-real-browser package.
|
|
7
|
-
|
|
8
|
-
[](https://opensource.org/licenses/MIT)
|
|
9
|
-
|
|
10
|
-
## Table of Contents
|
|
11
|
-
|
|
12
|
-
1. [Quick Start for Beginners](#quick-start-for-beginners)
|
|
13
|
-
2. [Introduction](#introduction)
|
|
14
|
-
3. [Features](#features)
|
|
15
|
-
4. [Prerequisites](#prerequisites)
|
|
16
|
-
5. [Installation](#installation)
|
|
17
|
-
6. [Multi-Protocol Support](#-multi-protocol-support)
|
|
18
|
-
7. [Usage](#usage)
|
|
19
|
-
- [Quick Configuration Reference](#-quick-configuration-reference)
|
|
20
|
-
- [With Claude Desktop](#with-claude-desktop-mcp-protocol)
|
|
21
|
-
- [With Claude Code CLI](#with-claude-code-cli)
|
|
22
|
-
- [With Cursor IDE](#with-cursor-ide)
|
|
23
|
-
- [With Warp AI Terminal](#with-warp-ai-terminal)
|
|
24
|
-
- [With Windsurf IDE](#with-windsurf-ide-codeium)
|
|
25
|
-
- [With Continue.dev](#with-continuedev-vscode-extension)
|
|
26
|
-
- [With Cody AI](#with-cody-ai-sourcegraph)
|
|
27
|
-
- [With Zed Editor](#with-zed-editor-lsp-mode)
|
|
28
|
-
- [With VSCode](#with-vscode-via-lsp)
|
|
29
|
-
- [HTTP/WebSocket Mode](#httpwebsocket-mode-for-any-language)
|
|
30
|
-
- [Complete MCP IDE Compatibility Matrix](#-complete-mcp-ide-compatibility-matrix)
|
|
31
|
-
8. [Available Tools](#available-tools)
|
|
32
|
-
9. [Advanced Features](#advanced-features)
|
|
33
|
-
10. [Configuration](#configuration)
|
|
34
|
-
11. [Troubleshooting](#troubleshooting)
|
|
35
|
-
12. [Development](#development)
|
|
36
|
-
13. [Testing](#testing)
|
|
37
|
-
14. [Contributing](#contributing)
|
|
38
|
-
15. [License](#license)
|
|
39
|
-
|
|
40
|
-
## Quick Start for Beginners
|
|
41
|
-
|
|
42
|
-
### What is this?
|
|
43
|
-
This is an MCP (Model Context Protocol) server that lets AI assistants like Claude control a real web browser. Think of it as giving Claude "hands" to interact with websites - it can click buttons, fill forms, extract content, and much more, all while avoiding bot detection.
|
|
44
|
-
|
|
45
|
-
### Important: You DON'T Need to Install This Package!
|
|
46
|
-
If you're just using this MCP server (not developing it), you don't need to run `npm install`. The `npx` command in the configuration will automatically download and run the latest version for you. Installation is only required for development purposes.
|
|
47
|
-
|
|
48
|
-
### Step-by-Step Setup
|
|
49
|
-
|
|
50
|
-
#### 1. Install Node.js (Required)
|
|
51
|
-
- Go to [nodejs.org](https://nodejs.org/)
|
|
52
|
-
- Download and install Node.js (version 18 or higher)
|
|
53
|
-
- Verify installation by opening terminal/command prompt and typing: `node --version`
|
|
54
|
-
|
|
55
|
-
#### 2. Configure Claude Desktop
|
|
56
|
-
|
|
57
|
-
**For Windows:**
|
|
58
|
-
1. Open File Explorer and navigate to: `%APPDATA%\Claude\`
|
|
59
|
-
2. Open (or create) `claude_desktop_config.json`
|
|
60
|
-
3. Add this configuration:
|
|
3
|
+
<div align="center">
|
|
61
4
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"args": ["brave-real-browser-mcp-server@latest"]
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
**For Mac:**
|
|
74
|
-
1. Open Finder and press `Cmd+Shift+G`
|
|
75
|
-
2. Go to: `~/Library/Application Support/Claude/`
|
|
76
|
-
3. Open (or create) `claude_desktop_config.json`
|
|
77
|
-
4. Add the same configuration as above
|
|
78
|
-
|
|
79
|
-
**For Linux:**
|
|
80
|
-
1. Navigate to: `~/.config/Claude/`
|
|
81
|
-
2. Open (or create) `claude_desktop_config.json`
|
|
82
|
-
3. Add the same configuration as above
|
|
83
|
-
|
|
84
|
-
**Why @latest?** The `@latest` tag ensures you always get the most recent version with bug fixes and improvements. The `npx` command automatically downloads and runs it without installing anything permanently on your system.
|
|
85
|
-
|
|
86
|
-
#### 3. Restart Claude Desktop
|
|
87
|
-
Close and reopen Claude Desktop completely.
|
|
88
|
-
|
|
89
|
-
#### 4. Test It Works
|
|
90
|
-
In Claude Desktop, try saying:
|
|
91
|
-
> "Initialize a browser and navigate to google.com, then get the page content"
|
|
92
|
-
|
|
93
|
-
If everything is working, Claude should be able to:
|
|
94
|
-
- Start a browser
|
|
95
|
-
- Navigate to Google
|
|
96
|
-
- Extract and show you the page content
|
|
97
|
-
|
|
98
|
-
### What Can You Do With It?
|
|
99
|
-
|
|
100
|
-
Once set up, you can ask Claude to:
|
|
101
|
-
- **Browse websites**: "Go to amazon.com and search for laptops"
|
|
102
|
-
- **Fill forms**: "Fill out this contact form with my details"
|
|
103
|
-
- **Extract data**: "Get all the product prices from this page"
|
|
104
|
-
- **Automate tasks**: "Log into my account and download my invoice"
|
|
105
|
-
- **Solve captchas**: "Handle any captchas that appear"
|
|
106
|
-
|
|
107
|
-
### Safety Notes
|
|
108
|
-
- Claude will show you what it's doing - you can see the browser window
|
|
109
|
-
- Always review what Claude does before approving sensitive actions
|
|
110
|
-
- Use headless mode (`headless: true`) if you don't want to see the browser window
|
|
111
|
-
- Be respectful of websites' terms of service
|
|
112
|
-
|
|
113
|
-
## Introduction
|
|
114
|
-
|
|
115
|
-
The Brave Real Browser MCP Server acts as a bridge between AI assistants
|
|
116
|
-
and browser automation. It leverages brave-real-browser to provide stealth
|
|
117
|
-
browsing capabilities that can bypass common bot detection mechanisms.
|
|
118
|
-
|
|
119
|
-
This server implements the Model Context Protocol (MCP), allowing AI
|
|
120
|
-
assistants to control a real browser, extract content, and more.
|
|
121
|
-
|
|
122
|
-
## Features
|
|
123
|
-
|
|
124
|
-
- **🔄 Auto-Update System**: Automatically updates all dependencies to latest versions on every `npm install`
|
|
125
|
-
- **Stealth by default**: All browser instances use anti-detection features
|
|
126
|
-
- **Enhanced Windows support**: Comprehensive Brave detection and ECONNREFUSED error fixes (v1.3.0)
|
|
127
|
-
- **Smart Brave detection**: Registry-based detection + 15+ installation paths (Windows)
|
|
128
|
-
- **Connection resilience**: Automatic localhost/127.0.0.1 fallback with port management
|
|
129
|
-
- **Multiple retry strategies**: 5 different connection approaches with progressive fallback
|
|
130
|
-
- **Advanced configuration**: Full support for all brave-real-browser options
|
|
131
|
-
- **Dynamic selector discovery**: Intelligent element finding without hardcoded selectors
|
|
132
|
-
- **Random scrolling**: Tools for natural scrolling to avoid detection
|
|
133
|
-
- **Comprehensive toolset**: 11 tools covering all browser automation needs
|
|
134
|
-
- **Proxy support**: Built-in proxy configuration for enhanced privacy
|
|
135
|
-
- **Captcha handling**: Support for solving reCAPTCHA, hCaptcha, and Turnstile
|
|
136
|
-
- **Robust error handling**: Advanced error recovery with circuit breaker pattern
|
|
137
|
-
- **Stack overflow protection**: Comprehensive protection against infinite recursion
|
|
138
|
-
- **Timeout controls**: Automatic timeout mechanisms prevent hanging operations
|
|
139
|
-
- **Platform optimization**: Windows-specific flags and longer timeouts for better compatibility
|
|
140
|
-
|
|
141
|
-
## Prerequisites
|
|
142
|
-
|
|
143
|
-
- Node.js >= 18.0.0
|
|
144
|
-
- npm or yarn
|
|
145
|
-
- Brave Browser installed (recommended) or Google Chrome/Chromium as fallback
|
|
146
|
-
- Basic understanding of TypeScript/JavaScript (for development)
|
|
147
|
-
|
|
148
|
-
### Platform-Specific Requirements
|
|
149
|
-
|
|
150
|
-
**Windows:**
|
|
151
|
-
- Brave Browser installation (automatic detection in v1.3.0+ includes):
|
|
152
|
-
- Standard installations: `C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe`
|
|
153
|
-
- 32-bit installations: `C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe`
|
|
154
|
-
- User installations: `%LOCALAPPDATA%\BraveSoftware\Brave-Browser\Application\brave.exe`
|
|
155
|
-
- Brave Beta/Nightly: `%LOCALAPPDATA%\BraveSoftware\Brave-Browser-Beta\Application\brave.exe`
|
|
156
|
-
- Portable installations and Registry-detected paths
|
|
157
|
-
- Manual path specification: Use `BRAVE_PATH` environment variable
|
|
158
|
-
|
|
159
|
-
**macOS:**
|
|
160
|
-
- Brave Browser must be installed in `/Applications/Brave Browser.app`
|
|
161
|
-
|
|
162
|
-
**Linux:**
|
|
163
|
-
- Install Brave: `sudo apt install brave-browser` or download from https://brave.com/linux/
|
|
164
|
-
- Install xvfb for headless operation: `sudo apt-get install -y xvfb`
|
|
165
|
-
|
|
166
|
-
## Installation for Developers
|
|
167
|
-
|
|
168
|
-
> **Note for Claude Desktop Users:** You don't need to install anything! The npx command in your configuration automatically handles everything. Skip to the [Usage](#usage) section.
|
|
169
|
-
|
|
170
|
-
This section is for developers who want to:
|
|
171
|
-
- Contribute to the project
|
|
172
|
-
- Run the server locally for development
|
|
173
|
-
- Create custom modifications
|
|
174
|
-
|
|
175
|
-
### Global Installation (For Command Line Usage)
|
|
176
|
-
|
|
177
|
-
If you want to run the server directly from the command line without using npx:
|
|
178
|
-
|
|
179
|
-
```bash
|
|
180
|
-
npm install -g brave-real-browser-mcp-server@latest
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
After global installation, you can run:
|
|
184
|
-
```bash
|
|
185
|
-
brave-real-browser-mcp-server
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
### Development Setup (For Contributors)
|
|
189
|
-
|
|
190
|
-
```bash
|
|
191
|
-
# Clone the repository
|
|
192
|
-
git clone https://github.com/withLinda/brave-real-browser-mcp-server.git
|
|
193
|
-
cd brave-real-browser-mcp-server
|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
9
|
+

|
|
194
10
|
|
|
195
|
-
|
|
196
|
-
npm install
|
|
11
|
+
**सभी AI IDEs के लिए Universal MCP Server | Browser Automation | Web Scraping | CAPTCHA Solving**
|
|
197
12
|
|
|
198
|
-
#
|
|
199
|
-
npm run build
|
|
13
|
+
[English](#english) | [हिन्दी](#hindi)
|
|
200
14
|
|
|
201
|
-
|
|
202
|
-
npm run dev
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
## 🚀 Multi-Protocol Support
|
|
206
|
-
|
|
207
|
-
This server now supports **three protocols** for maximum compatibility:
|
|
208
|
-
|
|
209
|
-
| Protocol | Best For | Setup Difficulty |
|
|
210
|
-
|----------|----------|-----------------|
|
|
211
|
-
| **MCP** | Claude Desktop, Cursor, Warp AI | Easy |
|
|
212
|
-
| **HTTP/WebSocket** | Any programming language | Easy |
|
|
213
|
-
| **LSP** | Zed, VSCode, Neovim | Medium |
|
|
214
|
-
|
|
215
|
-
### Quick Protocol Selection
|
|
216
|
-
|
|
217
|
-
```bash
|
|
218
|
-
# MCP mode (default) - For Claude Desktop, Cursor, Warp
|
|
219
|
-
npx brave-real-browser-mcp-server
|
|
220
|
-
|
|
221
|
-
# HTTP mode - For REST API / Any language
|
|
222
|
-
npx brave-real-browser-mcp-server --mode http --port 3000
|
|
223
|
-
|
|
224
|
-
# LSP mode - For Zed AI IDE, VSCode, Neovim
|
|
225
|
-
npx brave-real-browser-mcp-server --mode lsp
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
📖 **Complete Guide:** See [MULTI_PROTOCOL_GUIDE.md](./MULTI_PROTOCOL_GUIDE.md) for detailed setup instructions.
|
|
15
|
+
</div>
|
|
229
16
|
|
|
230
17
|
---
|
|
231
18
|
|
|
232
|
-
##
|
|
19
|
+
## 🎯 What Makes This Universal?
|
|
233
20
|
|
|
234
|
-
|
|
21
|
+
**यह प्रोजेक्ट सभी AI IDEs में स्वचालित रूप से काम करता है!**
|
|
235
22
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
| Windsurf IDE | [Configuration](#with-windsurf-ide-codeium) |
|
|
243
|
-
| Continue.dev | [Configuration](#with-continuedev-vscode-extension) |
|
|
244
|
-
| Cody AI | [Configuration](#with-cody-ai-sourcegraph) |
|
|
245
|
-
| Zed Editor | [Configuration](#with-zed-editor-lsp-mode) |
|
|
246
|
-
| VSCode | [Configuration](#with-vscode-via-lsp) |
|
|
247
|
-
| Python/Node.js/Any Language | [Configuration](#httpwebsocket-mode-for-any-language) |
|
|
248
|
-
|
|
249
|
-
**All platforms use the same simple pattern:**
|
|
250
|
-
```json
|
|
251
|
-
{
|
|
252
|
-
"mcpServers": {
|
|
253
|
-
"brave-real-browser": {
|
|
254
|
-
"command": "npx",
|
|
255
|
-
"args": ["brave-real-browser-mcp-server@latest"]
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
```
|
|
23
|
+
✅ **Auto-Detection** - आपका IDE automatically detect होता है
|
|
24
|
+
✅ **Multi-Protocol** - MCP, LSP, HTTP, WebSocket सभी supported
|
|
25
|
+
✅ **Zero Configuration** - कोई manual setup की जरूरत नहीं
|
|
26
|
+
✅ **15+ AI IDEs** - सभी popular AI tools supported
|
|
27
|
+
✅ **Real Brave Browser** - असली Brave browser के साथ काम करता है
|
|
28
|
+
✅ **Anti-Detection** - Cloudflare, reCAPTCHA bypass करता है
|
|
260
29
|
|
|
261
30
|
---
|
|
262
31
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
32
|
+
<a name="english"></a>
|
|
33
|
+
# 📖 English Documentation
|
|
34
|
+
|
|
35
|
+
## 🤖 Supported AI IDEs (Universal Compatibility)
|
|
36
|
+
|
|
37
|
+
This server **automatically detects and adapts** to your AI IDE!
|
|
38
|
+
|
|
39
|
+
### ✅ Fully Supported & Auto-Detected
|
|
40
|
+
|
|
41
|
+
| IDE | Protocol | Auto-Config | Status |
|
|
42
|
+
|-----|----------|-------------|--------|
|
|
43
|
+
| **Claude Desktop** | MCP/STDIO | ✅ | 🟢 Working |
|
|
44
|
+
| **Cursor AI** | MCP/STDIO | ✅ | 🟢 Working |
|
|
45
|
+
| **Windsurf** | MCP/STDIO | ✅ | 🟢 Working |
|
|
46
|
+
| **Cline** (VSCode) | MCP/STDIO | ✅ | 🟢 Working |
|
|
47
|
+
| **Warp Terminal** | MCP/STDIO | ✅ | 🟢 Working |
|
|
48
|
+
| **Roo Coder** | MCP/STDIO | ✅ | 🟢 Working |
|
|
49
|
+
| **Zed Editor** | LSP/MCP | ✅ | 🟢 Working |
|
|
50
|
+
| **VSCode** | LSP/HTTP | ✅ | 🟢 Working |
|
|
51
|
+
| **Qoder AI** | HTTP/WS | ✅ | 🟢 Working |
|
|
52
|
+
| **Continue.dev** | MCP/HTTP | ✅ | 🟢 Working |
|
|
53
|
+
| **GitHub Copilot** | HTTP/LSP | ✅ | 🟢 Working |
|
|
54
|
+
| **Amazon CodeWhisperer** | HTTP/LSP | ✅ | 🟢 Working |
|
|
55
|
+
| **Tabnine** | HTTP/WS | ✅ | 🟢 Working |
|
|
56
|
+
| **Cody** (Sourcegraph) | HTTP/LSP | ✅ | 🟢 Working |
|
|
57
|
+
| **Aider** | STDIO/HTTP | ✅ | 🟢 Working |
|
|
58
|
+
| **Pieces for Developers** | HTTP/WS | ✅ | 🟢 Working |
|
|
59
|
+
|
|
60
|
+
### 📡 Supported Protocols
|
|
61
|
+
|
|
62
|
+
- **MCP** (Model Context Protocol) - Claude Desktop, Cursor, Windsurf, Cline, Warp, Roo Coder
|
|
63
|
+
- **LSP** (Language Server Protocol) - Zed, VSCode, Neovim, Emacs, Sublime Text
|
|
64
|
+
- **HTTP/REST** - Universal API for all IDEs
|
|
65
|
+
- **WebSocket** - Real-time communication for modern IDEs
|
|
281
66
|
|
|
282
|
-
|
|
67
|
+
---
|
|
283
68
|
|
|
284
|
-
|
|
69
|
+
## 🚀 Quick Start
|
|
285
70
|
|
|
286
|
-
|
|
71
|
+
### Installation
|
|
287
72
|
|
|
288
73
|
```bash
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
This command:
|
|
293
|
-
- Adds the server to your local scope (available only to you in current project)
|
|
294
|
-
- Uses npx to automatically download and run the latest version
|
|
295
|
-
- No installation required - everything is handled automatically
|
|
296
|
-
|
|
297
|
-
#### Method 2: Add with Environment Variables
|
|
74
|
+
# Install globally
|
|
75
|
+
npm install -g brave-real-browser-mcp-server
|
|
298
76
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
```bash
|
|
302
|
-
claude mcp add brave-real-browser \
|
|
303
|
-
-e BRAVE_PATH="/path/to/brave" \
|
|
304
|
-
-e PROXY_URL="http://proxy:8080" \
|
|
305
|
-
-- npx brave-real-browser-mcp-server@latest
|
|
77
|
+
# Or use with npx (no installation needed)
|
|
78
|
+
npx brave-real-browser-mcp-server
|
|
306
79
|
```
|
|
307
80
|
|
|
308
|
-
|
|
81
|
+
### Usage
|
|
309
82
|
|
|
310
|
-
**For User-Wide Access (Available Across All Projects):**
|
|
311
83
|
```bash
|
|
312
|
-
|
|
313
|
-
|
|
84
|
+
# Auto mode (automatically detects your IDE) - DEFAULT
|
|
85
|
+
brave-real-browser-mcp-server
|
|
314
86
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
claude mcp add brave-real-browser -s project -- npx brave-real-browser-mcp-server@latest
|
|
318
|
-
```
|
|
87
|
+
# Or explicitly specify protocol
|
|
88
|
+
brave-real-browser-mcp-server --mode auto
|
|
319
89
|
|
|
320
|
-
|
|
90
|
+
# MCP mode (for Claude, Cursor, Windsurf, etc.)
|
|
91
|
+
brave-real-browser-mcp-server --mode mcp
|
|
321
92
|
|
|
322
|
-
|
|
93
|
+
# HTTP mode (universal - works with ALL IDEs)
|
|
94
|
+
brave-real-browser-mcp-server --mode http --port 3000
|
|
323
95
|
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
"type": "stdio",
|
|
327
|
-
"command": "npx",
|
|
328
|
-
"args": ["brave-real-browser-mcp-server@latest"],
|
|
329
|
-
"env": {
|
|
330
|
-
"BRAVE_PATH": "/path/to/brave",
|
|
331
|
-
"PROXY_URL": "http://proxy:8080"
|
|
332
|
-
}
|
|
333
|
-
}'
|
|
96
|
+
# LSP mode (for Zed, VSCode, etc.)
|
|
97
|
+
brave-real-browser-mcp-server --mode lsp
|
|
334
98
|
```
|
|
335
99
|
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
After adding the server:
|
|
339
|
-
|
|
340
|
-
1. **Check MCP Server Status:**
|
|
341
|
-
```bash
|
|
342
|
-
/mcp
|
|
343
|
-
```
|
|
344
|
-
This command in Claude Code shows all active MCP servers.
|
|
345
|
-
|
|
346
|
-
2. **Test the Server:**
|
|
347
|
-
In Claude Code, try:
|
|
348
|
-
> "Initialize a browser and navigate to google.com, then get the page content"
|
|
349
|
-
|
|
350
|
-
If working correctly, you should see:
|
|
351
|
-
- Browser initialization
|
|
352
|
-
- Navigation to Google
|
|
353
|
-
- Page content extracted and displayed
|
|
354
|
-
|
|
355
|
-
#### Configuration Scopes Explained
|
|
356
|
-
|
|
357
|
-
| Scope | Description | Config Location | Use Case |
|
|
358
|
-
|-------|-------------|----------------|----------|
|
|
359
|
-
| **local** (default) | Available only to you in current project | `.mcp.json` in project | Testing, project-specific |
|
|
360
|
-
| **project** | Shared with entire team | `.mcp.json` committed to repo | Team collaboration |
|
|
361
|
-
| **user** | Available to you across all projects | User config directory | Personal productivity |
|
|
362
|
-
|
|
363
|
-
#### Benefits of Claude Code CLI
|
|
364
|
-
|
|
365
|
-
- **Automatic Updates**: Using `@latest` ensures you get bug fixes and improvements
|
|
366
|
-
- **No Installation**: npx handles downloading and running automatically
|
|
367
|
-
- **Environment Variables**: Easy configuration of proxies, Chrome paths, etc.
|
|
368
|
-
- **Scope Control**: Choose where the server is available (local/project/user)
|
|
369
|
-
- **Team Sharing**: Project scope allows sharing configurations with teammates
|
|
370
|
-
- **Status Monitoring**: Built-in `/mcp` command for server health checks
|
|
371
|
-
|
|
372
|
-
### With Cursor IDE
|
|
373
|
-
|
|
374
|
-
Cursor IDE uses the same npx approach - no installation needed! Here are the setup methods:
|
|
100
|
+
---
|
|
375
101
|
|
|
376
|
-
|
|
102
|
+
## ⚙️ Configuration for Specific IDEs
|
|
377
103
|
|
|
378
|
-
1.
|
|
379
|
-
2. **Open Command Palette** (`Ctrl+Shift+P` on Windows/Linux, `Cmd+Shift+P` on Mac)
|
|
380
|
-
3. **Search for "Cursor Settings"** and select it
|
|
381
|
-
4. **Click on "MCP" in the sidebar**
|
|
382
|
-
5. **Browse curated MCP servers** and install browser automation tools with one-click
|
|
383
|
-
6. **OAuth authentication** will be handled automatically
|
|
104
|
+
### 1. Claude Desktop
|
|
384
105
|
|
|
385
|
-
|
|
106
|
+
**File:** `claude_desktop_config.json`
|
|
386
107
|
|
|
387
|
-
**
|
|
388
|
-
- **
|
|
389
|
-
- **
|
|
108
|
+
**Location:**
|
|
109
|
+
- **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
|
|
110
|
+
- **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
111
|
+
- **Linux:** `~/.config/Claude/claude_desktop_config.json`
|
|
390
112
|
|
|
391
|
-
**Basic Configuration (No Installation Required):**
|
|
392
113
|
```json
|
|
393
114
|
{
|
|
394
115
|
"mcpServers": {
|
|
395
|
-
"brave-
|
|
116
|
+
"brave-browser": {
|
|
396
117
|
"command": "npx",
|
|
397
|
-
"args": ["brave-real-browser-mcp-server
|
|
118
|
+
"args": ["-y", "brave-real-browser-mcp-server"]
|
|
398
119
|
}
|
|
399
120
|
}
|
|
400
121
|
}
|
|
401
122
|
```
|
|
402
123
|
|
|
403
|
-
|
|
124
|
+
### 2. Cursor AI
|
|
404
125
|
|
|
405
|
-
**
|
|
406
|
-
```json
|
|
407
|
-
{
|
|
408
|
-
"mcpServers": {
|
|
409
|
-
"brave-real-browser": {
|
|
410
|
-
"command": "npx",
|
|
411
|
-
"args": ["brave-real-browser-mcp-server@latest"],
|
|
412
|
-
"env": {
|
|
413
|
-
"BRAVE_PATH": "C:/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe"
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
```
|
|
126
|
+
**File:** `cline_mcp_settings.json`
|
|
419
127
|
|
|
420
|
-
|
|
128
|
+
**Location:**
|
|
129
|
+
- **Windows:** `%APPDATA%\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json`
|
|
130
|
+
- **macOS:** `~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`
|
|
421
131
|
|
|
422
|
-
**Advanced Configuration with Custom Brave Path:**
|
|
423
132
|
```json
|
|
424
133
|
{
|
|
425
134
|
"mcpServers": {
|
|
426
|
-
"brave-
|
|
135
|
+
"brave-browser": {
|
|
427
136
|
"command": "npx",
|
|
428
|
-
"args": ["brave-real-browser-mcp-server
|
|
137
|
+
"args": ["-y", "brave-real-browser-mcp-server"],
|
|
429
138
|
"env": {
|
|
430
|
-
"BRAVE_PATH": "C
|
|
139
|
+
"BRAVE_PATH": "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
|
|
431
140
|
}
|
|
432
141
|
}
|
|
433
142
|
}
|
|
434
143
|
}
|
|
435
144
|
```
|
|
436
145
|
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
#### Platform-Specific Brave Paths for Cursor IDE
|
|
440
|
-
|
|
441
|
-
If Brave auto-detection fails, you can specify the Brave path using the `BRAVE_PATH` environment variable:
|
|
442
|
-
|
|
443
|
-
**Windows:**
|
|
444
|
-
```json
|
|
445
|
-
"env": {
|
|
446
|
-
"BRAVE_PATH": "C:/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe"
|
|
447
|
-
}
|
|
448
|
-
```
|
|
449
|
-
Alternative Windows paths:
|
|
450
|
-
- `"C:/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe"`
|
|
451
|
-
- `"%LOCALAPPDATA%/BraveSoftware/Brave-Browser/Application/brave.exe"`
|
|
452
|
-
|
|
453
|
-
**macOS:**
|
|
454
|
-
```json
|
|
455
|
-
"env": {
|
|
456
|
-
"BRAVE_PATH": "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"
|
|
457
|
-
}
|
|
458
|
-
```
|
|
459
|
-
|
|
460
|
-
**Linux:**
|
|
461
|
-
```json
|
|
462
|
-
"env": {
|
|
463
|
-
"BRAVE_PATH": "/usr/bin/brave-browser"
|
|
464
|
-
}
|
|
465
|
-
```
|
|
466
|
-
Alternative Linux paths: `/usr/bin/brave`, `/snap/bin/brave`
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
#### Testing Cursor IDE Setup
|
|
470
|
-
|
|
471
|
-
After configuration:
|
|
472
|
-
1. **Restart Cursor IDE completely**
|
|
473
|
-
2. **Open a new chat**
|
|
474
|
-
3. **Test with**: "Initialize a browser and navigate to google.com, then get the page content"
|
|
475
|
-
|
|
476
|
-
If successful, you should see:
|
|
477
|
-
- Browser window opening
|
|
478
|
-
- Navigation to Google
|
|
479
|
-
- Page content extracted and displayed in the chat
|
|
480
|
-
|
|
481
|
-
#### Cursor IDE Troubleshooting
|
|
482
|
-
|
|
483
|
-
**Common Issues:**
|
|
484
|
-
|
|
485
|
-
1. **"MCP server not found"**
|
|
486
|
-
- Verify config file location and JSON syntax
|
|
487
|
-
- Use [jsonlint.com](https://jsonlint.com/) to validate JSON
|
|
488
|
-
- Ensure Node.js 18+ is installed
|
|
489
|
-
|
|
490
|
-
2. **"Browser failed to launch" on Windows**
|
|
491
|
-
- Add explicit Brave path in `executablePath`
|
|
492
|
-
- Try running Cursor IDE as Administrator
|
|
493
|
-
- Check Windows Defender isn't blocking Brave
|
|
494
|
-
|
|
495
|
-
3. **"Permission denied"**
|
|
496
|
-
- Use `sudo npm install -g brave-real-browser-mcp-server` on Linux/Mac
|
|
497
|
-
- Run Command Prompt as Administrator on Windows
|
|
146
|
+
### 3. Windsurf
|
|
498
147
|
|
|
499
|
-
|
|
500
|
-
- Ensure file is named exactly `mcp.json` (not `mcp.json.txt`)
|
|
501
|
-
- Check file is in correct directory
|
|
502
|
-
- Restart Cursor IDE after changes
|
|
148
|
+
**File:** `mcp.json`
|
|
503
149
|
|
|
504
|
-
|
|
150
|
+
**Location:**
|
|
151
|
+
- **Windows:** `%APPDATA%\Windsurf\mcp.json`
|
|
152
|
+
- **macOS:** `~/.windsurf/mcp.json`
|
|
505
153
|
|
|
506
|
-
Warp Terminal has native MCP support built-in.
|
|
507
|
-
|
|
508
|
-
**Configuration Location:**
|
|
509
|
-
- macOS: `~/.warp/mcp_config.json`
|
|
510
|
-
- Linux: `~/.warp/mcp_config.json`
|
|
511
|
-
- Windows: `%USERPROFILE%\.warp\mcp_config.json`
|
|
512
|
-
|
|
513
|
-
**Configuration:**
|
|
514
154
|
```json
|
|
515
155
|
{
|
|
516
156
|
"mcpServers": {
|
|
517
|
-
"brave-
|
|
157
|
+
"brave-browser": {
|
|
518
158
|
"command": "npx",
|
|
519
|
-
"args": ["brave-real-browser-mcp-server
|
|
159
|
+
"args": ["-y", "brave-real-browser-mcp-server"]
|
|
520
160
|
}
|
|
521
161
|
}
|
|
522
162
|
}
|
|
523
163
|
```
|
|
524
164
|
|
|
525
|
-
|
|
526
|
-
1. Restart Warp Terminal
|
|
527
|
-
2. Type: `/mcp` to see available servers
|
|
528
|
-
3. Test: "Initialize browser and go to google.com"
|
|
529
|
-
|
|
530
|
-
### With Windsurf IDE (Codeium)
|
|
165
|
+
### 4. Cline (VSCode Extension)
|
|
531
166
|
|
|
532
|
-
|
|
167
|
+
**File:** `cline_mcp_settings.json`
|
|
533
168
|
|
|
534
|
-
**
|
|
535
|
-
-
|
|
536
|
-
-
|
|
169
|
+
**Location:**
|
|
170
|
+
- **Windows:** `%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json`
|
|
171
|
+
- **macOS:** `~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`
|
|
537
172
|
|
|
538
|
-
**Configuration:**
|
|
539
173
|
```json
|
|
540
174
|
{
|
|
541
175
|
"mcpServers": {
|
|
542
|
-
"brave-
|
|
176
|
+
"brave-browser": {
|
|
543
177
|
"command": "npx",
|
|
544
|
-
"args": ["brave-real-browser-mcp-server
|
|
545
|
-
"disabled": false
|
|
178
|
+
"args": ["-y", "brave-real-browser-mcp-server"]
|
|
546
179
|
}
|
|
547
180
|
}
|
|
548
181
|
}
|
|
549
182
|
```
|
|
550
183
|
|
|
551
|
-
###
|
|
184
|
+
### 5. Zed Editor
|
|
552
185
|
|
|
553
|
-
|
|
186
|
+
**File:** `settings.json`
|
|
554
187
|
|
|
555
|
-
**
|
|
556
|
-
-
|
|
557
|
-
-
|
|
188
|
+
**Location:**
|
|
189
|
+
- **Windows:** `%APPDATA%\Zed\settings.json`
|
|
190
|
+
- **macOS:** `~/.config/zed/settings.json`
|
|
558
191
|
|
|
559
|
-
**Configuration:**
|
|
560
|
-
```json
|
|
561
|
-
{
|
|
562
|
-
"mcpServers": [
|
|
563
|
-
{
|
|
564
|
-
"name": "brave-real-browser",
|
|
565
|
-
"command": "npx",
|
|
566
|
-
"args": ["brave-real-browser-mcp-server@latest"]
|
|
567
|
-
}
|
|
568
|
-
]
|
|
569
|
-
}
|
|
570
|
-
```
|
|
571
|
-
|
|
572
|
-
### With Cody AI (Sourcegraph)
|
|
573
|
-
|
|
574
|
-
Cody AI in VS Code supports MCP servers.
|
|
575
|
-
|
|
576
|
-
**Configuration Location:**
|
|
577
|
-
- VS Code Settings: `settings.json`
|
|
578
|
-
|
|
579
|
-
**Configuration:**
|
|
580
|
-
```json
|
|
581
|
-
{
|
|
582
|
-
"cody.mcp.servers": {
|
|
583
|
-
"brave-real-browser": {
|
|
584
|
-
"command": "npx",
|
|
585
|
-
"args": ["brave-real-browser-mcp-server@latest"]
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
```
|
|
590
|
-
|
|
591
|
-
### With Zed Editor (LSP Mode)
|
|
592
|
-
|
|
593
|
-
Zed uses LSP protocol instead of MCP.
|
|
594
|
-
|
|
595
|
-
**Configuration Location:**
|
|
596
|
-
- macOS/Linux: `~/.config/zed/settings.json`
|
|
597
|
-
- Windows: `%APPDATA%\Zed\settings.json`
|
|
598
|
-
|
|
599
|
-
**Configuration:**
|
|
600
192
|
```json
|
|
601
193
|
{
|
|
602
194
|
"lsp": {
|
|
603
|
-
"brave-browser
|
|
604
|
-
"command": "
|
|
605
|
-
"args": ["
|
|
606
|
-
"settings": {}
|
|
195
|
+
"brave-browser": {
|
|
196
|
+
"command": "brave-real-browser-mcp-server",
|
|
197
|
+
"args": ["--mode", "lsp"]
|
|
607
198
|
}
|
|
608
199
|
}
|
|
609
200
|
}
|
|
610
201
|
```
|
|
611
202
|
|
|
612
|
-
###
|
|
613
|
-
|
|
614
|
-
VSCode can use LSP mode for browser automation.
|
|
615
|
-
|
|
616
|
-
**Create:** `.vscode/settings.json` in your project
|
|
617
|
-
|
|
618
|
-
**Configuration:**
|
|
619
|
-
```json
|
|
620
|
-
{
|
|
621
|
-
"brave-browser-automation.serverPath": "npx",
|
|
622
|
-
"brave-browser-automation.serverArgs": [
|
|
623
|
-
"brave-real-browser-mcp-server@latest",
|
|
624
|
-
"--mode",
|
|
625
|
-
"lsp"
|
|
626
|
-
]
|
|
627
|
-
}
|
|
628
|
-
```
|
|
629
|
-
|
|
630
|
-
### HTTP/WebSocket Mode (For Any Language)
|
|
203
|
+
### 6. Qoder AI & Other HTTP-based IDEs
|
|
631
204
|
|
|
632
|
-
|
|
205
|
+
Start the server in HTTP mode:
|
|
633
206
|
|
|
634
|
-
**Start Server:**
|
|
635
207
|
```bash
|
|
636
|
-
|
|
208
|
+
brave-real-browser-mcp-server --mode http --port 3000
|
|
637
209
|
```
|
|
638
210
|
|
|
639
|
-
|
|
640
|
-
```python
|
|
641
|
-
import requests
|
|
211
|
+
Then use the REST API endpoint: `http://localhost:3000`
|
|
642
212
|
|
|
643
|
-
|
|
213
|
+
---
|
|
644
214
|
|
|
645
|
-
|
|
646
|
-
|
|
215
|
+
## 🛠️ Features & Tools
|
|
216
|
+
|
|
217
|
+
### 🌐 Browser Management
|
|
218
|
+
- `browser_init` - Initialize Brave browser with anti-detection
|
|
219
|
+
- `browser_close` - Close browser instance
|
|
220
|
+
- `navigate` - Navigate to URL
|
|
221
|
+
- `wait` - Wait for elements/timeout
|
|
222
|
+
|
|
223
|
+
### 🖱️ Interaction Tools
|
|
224
|
+
- `click` - Click on elements
|
|
225
|
+
- `type` - Type text into inputs
|
|
226
|
+
- `solve_captcha` - Solve CAPTCHA (reCAPTCHA, hCaptcha, Turnstile, etc.)
|
|
227
|
+
- `random_scroll` - Human-like scrolling
|
|
228
|
+
|
|
229
|
+
### 📄 Content Extraction
|
|
230
|
+
- `get_content` - Extract page content (HTML/Text/Markdown)
|
|
231
|
+
- `find_selector` - Find CSS selectors
|
|
232
|
+
- `scrape_table` - Extract table data
|
|
233
|
+
- `extract_list` - Extract lists
|
|
234
|
+
- `extract_json` - Extract JSON data
|
|
235
|
+
- `scrape_meta_tags` - Extract meta information
|
|
236
|
+
- `extract_schema` - Extract schema.org data
|
|
237
|
+
|
|
238
|
+
### 🔍 Advanced Extraction
|
|
239
|
+
- `batch_element_scraper` - Scrape multiple elements
|
|
240
|
+
- `nested_data_extraction` - Extract nested data structures
|
|
241
|
+
- `attribute_harvester` - Extract element attributes
|
|
242
|
+
- `image_scraper` - Extract all images
|
|
243
|
+
- `link_harvester` - Extract all links
|
|
244
|
+
- `media_extractor` - Extract media files
|
|
245
|
+
- `video_link_finder` - Find video URLs
|
|
246
|
+
|
|
247
|
+
### 🤖 AI-Powered Tools
|
|
248
|
+
- `smart_selector_generator` - Auto-generate selectors
|
|
249
|
+
- `content_classification` - Classify content type
|
|
250
|
+
- `sentiment_analysis` - Analyze sentiment
|
|
251
|
+
- `summary_generator` - Generate summaries
|
|
252
|
+
- `translation_support` - Translate content
|
|
253
|
+
|
|
254
|
+
### 📊 Data Processing
|
|
255
|
+
- `smart_text_cleaner` - Clean extracted text
|
|
256
|
+
- `html_to_text` - Convert HTML to text
|
|
257
|
+
- `price_parser` - Extract & parse prices
|
|
258
|
+
- `date_normalizer` - Normalize dates
|
|
259
|
+
- `contact_extractor` - Extract contact info
|
|
260
|
+
- `data_deduplication` - Remove duplicates
|
|
261
|
+
- `data_type_validator` - Validate data types
|
|
262
|
+
|
|
263
|
+
### 🔐 CAPTCHA & Security
|
|
264
|
+
- `solve_captcha` - Multi-CAPTCHA solver
|
|
265
|
+
- `ocr_engine` - OCR for text CAPTCHAs
|
|
266
|
+
- `audio_captcha_solver` - Audio CAPTCHA solver
|
|
267
|
+
- `puzzle_captcha_handler` - Puzzle CAPTCHA handler
|
|
268
|
+
|
|
269
|
+
### 📸 Visual Tools
|
|
270
|
+
- `full_page_screenshot` - Full page screenshot
|
|
271
|
+
- `element_screenshot` - Element screenshot
|
|
272
|
+
- `pdf_generation` - Generate PDF
|
|
273
|
+
- `video_recording` - Record page video
|
|
274
|
+
- `visual_comparison` - Compare screenshots
|
|
275
|
+
|
|
276
|
+
### 🔄 Pagination & Navigation
|
|
277
|
+
- `auto_pagination` - Auto-paginate through pages
|
|
278
|
+
- `infinite_scroll` - Handle infinite scroll
|
|
279
|
+
- `multi_page_scraper` - Scrape multiple pages
|
|
280
|
+
- `sitemap_parser` - Parse sitemaps
|
|
281
|
+
- `breadcrumb_navigator` - Navigate breadcrumbs
|
|
282
|
+
|
|
283
|
+
### 🌐 Session Management
|
|
284
|
+
- `cookie_manager` - Manage cookies
|
|
285
|
+
- `session_persistence` - Persist sessions
|
|
286
|
+
- `form_auto_fill` - Auto-fill forms
|
|
287
|
+
- `login_session_manager` - Manage login sessions
|
|
288
|
+
- `modal_popup_handler` - Handle popups
|
|
289
|
+
|
|
290
|
+
### 📈 Monitoring & Reporting
|
|
291
|
+
- `progress_tracker` - Track progress
|
|
292
|
+
- `error_logger` - Log errors
|
|
293
|
+
- `success_rate_reporter` - Report success rates
|
|
294
|
+
- `performance_monitor` - Monitor performance
|
|
295
|
+
- `monitoring_summary` - Get monitoring summary
|
|
647
296
|
|
|
648
|
-
|
|
649
|
-
requests.post(f"{base_url}/browser/navigate", json={"url": "https://google.com"})
|
|
297
|
+
---
|
|
650
298
|
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
```
|
|
299
|
+
## 💡 Usage Examples
|
|
300
|
+
|
|
301
|
+
### Example 1: Simple Web Scraping
|
|
655
302
|
|
|
656
|
-
**Example - Node.js:**
|
|
657
303
|
```javascript
|
|
658
|
-
|
|
304
|
+
// Initialize browser
|
|
305
|
+
await use_mcp_tool({
|
|
306
|
+
server_name: "brave-browser",
|
|
307
|
+
tool_name: "browser_init",
|
|
308
|
+
arguments: {}
|
|
309
|
+
});
|
|
310
|
+
|
|
311
|
+
// Navigate to website
|
|
312
|
+
await use_mcp_tool({
|
|
313
|
+
server_name: "brave-browser",
|
|
314
|
+
tool_name: "navigate",
|
|
315
|
+
arguments: { url: "https://example.com" }
|
|
316
|
+
});
|
|
317
|
+
|
|
318
|
+
// Get content
|
|
319
|
+
await use_mcp_tool({
|
|
320
|
+
server_name: "brave-browser",
|
|
321
|
+
tool_name: "get_content",
|
|
322
|
+
arguments: { type: "text" }
|
|
323
|
+
});
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
### Example 2: Solve CAPTCHA & Extract Data
|
|
659
327
|
|
|
660
|
-
|
|
328
|
+
```javascript
|
|
329
|
+
// Navigate to page with CAPTCHA
|
|
330
|
+
await use_mcp_tool({
|
|
331
|
+
server_name: "brave-browser",
|
|
332
|
+
tool_name: "navigate",
|
|
333
|
+
arguments: { url: "https://example.com/protected-page" }
|
|
334
|
+
});
|
|
335
|
+
|
|
336
|
+
// Solve CAPTCHA
|
|
337
|
+
await use_mcp_tool({
|
|
338
|
+
server_name: "brave-browser",
|
|
339
|
+
tool_name: "solve_captcha",
|
|
340
|
+
arguments: { type: "recaptcha" }
|
|
341
|
+
});
|
|
342
|
+
|
|
343
|
+
// Extract table data
|
|
344
|
+
await use_mcp_tool({
|
|
345
|
+
server_name: "brave-browser",
|
|
346
|
+
tool_name: "scrape_table",
|
|
347
|
+
arguments: { selector: "table.data" }
|
|
348
|
+
});
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
### Example 3: HTTP API Usage
|
|
661
352
|
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
const content = await axios.post(`${baseUrl}/browser/get-content`, {type: 'text'});
|
|
666
|
-
console.log(content.data);
|
|
353
|
+
```bash
|
|
354
|
+
# Start HTTP server
|
|
355
|
+
brave-real-browser-mcp-server --mode http --port 3000
|
|
667
356
|
```
|
|
668
357
|
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
358
|
+
```javascript
|
|
359
|
+
// Use REST API
|
|
360
|
+
const response = await fetch('http://localhost:3000/tools/navigate', {
|
|
361
|
+
method: 'POST',
|
|
362
|
+
headers: { 'Content-Type': 'application/json' },
|
|
363
|
+
body: JSON.stringify({ url: 'https://example.com' })
|
|
364
|
+
});
|
|
672
365
|
|
|
673
|
-
|
|
674
|
-
{
|
|
675
|
-
"mcpServers": {
|
|
676
|
-
"brave-real-browser": {
|
|
677
|
-
"command": "npx",
|
|
678
|
-
"args": ["brave-real-browser-mcp-server@latest"]
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
}
|
|
366
|
+
const result = await response.json();
|
|
682
367
|
```
|
|
683
368
|
|
|
684
|
-
The server communicates via stdin/stdout using the MCP protocol.
|
|
685
|
-
|
|
686
369
|
---
|
|
687
370
|
|
|
688
|
-
##
|
|
689
|
-
|
|
690
|
-
| IDE/Tool | Protocol | Config File | Status |
|
|
691
|
-
|----------|----------|-------------|--------|
|
|
692
|
-
| **Claude Desktop** | MCP | `claude_desktop_config.json` | ✅ Fully Tested |
|
|
693
|
-
| **Claude Code CLI** | MCP | `.mcp.json` | ✅ Fully Tested |
|
|
694
|
-
| **Cursor IDE** | MCP | `.cursor/mcp.json` | ✅ Fully Tested |
|
|
695
|
-
| **Warp Terminal** | MCP | `mcp_config.json` | ✅ Supported |
|
|
696
|
-
| **Windsurf IDE** | MCP | `.windsurf/mcp.json` | ✅ Supported |
|
|
697
|
-
| **Continue.dev** | MCP | `.continue/config.json` | ✅ Supported |
|
|
698
|
-
| **Cody AI** | MCP | `settings.json` | ✅ Supported |
|
|
699
|
-
| **Zed Editor** | LSP | `settings.json` | ✅ LSP Mode |
|
|
700
|
-
| **VSCode** | LSP | `.vscode/settings.json` | ✅ LSP Mode |
|
|
701
|
-
| **Any HTTP Client** | HTTP/WebSocket | REST API | ✅ Fully Supported |
|
|
371
|
+
## 📋 Requirements
|
|
702
372
|
|
|
703
|
-
**
|
|
373
|
+
- **Node.js** >= 18.0.0
|
|
374
|
+
- **Brave Browser** (auto-detected or specify path)
|
|
375
|
+
- **Operating System:** Windows, macOS, or Linux
|
|
704
376
|
|
|
705
|
-
|
|
377
|
+
---
|
|
706
378
|
|
|
707
|
-
|
|
708
|
-
```text
|
|
709
|
-
User: "Initialize a browser and navigate to example.com"
|
|
710
|
-
AI: I'll initialize a stealth browser and navigate to the website.
|
|
711
|
-
[Uses browser_init and navigate tools]
|
|
379
|
+
## 🔧 Environment Variables
|
|
712
380
|
|
|
713
|
-
```
|
|
381
|
+
```bash
|
|
382
|
+
# Optional: Specify Brave browser path
|
|
383
|
+
BRAVE_PATH="C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe"
|
|
714
384
|
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
User: "Fill in the search form with 'test query'"
|
|
718
|
-
AI: I'll type that into the search field.
|
|
719
|
-
[Uses type tool with selector and text]
|
|
385
|
+
# Optional: Run in headless mode
|
|
386
|
+
HEADLESS=true
|
|
720
387
|
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
[Uses click tool]
|
|
388
|
+
# Optional: Disable content priority
|
|
389
|
+
DISABLE_CONTENT_PRIORITY=true
|
|
724
390
|
```
|
|
725
391
|
|
|
726
|
-
|
|
727
|
-
```text
|
|
728
|
-
User: "Get all the product names from this e-commerce page"
|
|
729
|
-
AI: I'll extract the product information from the page.
|
|
730
|
-
[Uses get_content tool with appropriate selectors]
|
|
392
|
+
---
|
|
731
393
|
|
|
732
|
-
|
|
733
|
-
AI: I'll get the text content of the entire page.
|
|
734
|
-
[Uses get_content tool with type: 'text']
|
|
394
|
+
## 🐛 Troubleshooting
|
|
735
395
|
|
|
736
|
-
|
|
737
|
-
AI: I'll extract the page content and save it as a formatted markdown file.
|
|
738
|
-
[Uses save_content_as_markdown tool with specified file path]
|
|
739
|
-
```
|
|
396
|
+
### Brave Browser Not Found
|
|
740
397
|
|
|
398
|
+
**Solution 1:** Set environment variable
|
|
399
|
+
```bash
|
|
400
|
+
# Windows
|
|
401
|
+
set BRAVE_PATH="C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe"
|
|
741
402
|
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
User: "Initialize a browser with a proxy server"
|
|
745
|
-
AI: I'll set up the browser with your proxy configuration.
|
|
746
|
-
[Uses browser_init with proxy: "https://proxy.example.com:8080"]
|
|
403
|
+
# Linux/macOS
|
|
404
|
+
export BRAVE_PATH="/usr/bin/brave-browser"
|
|
747
405
|
```
|
|
748
406
|
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
| Tool Name | Description | Required Parameters | Optional Parameters |
|
|
763
|
-
|-----------|-------------|---------------------|-------------------|
|
|
764
|
-
| `click` | Standard click on element | `selector` | `waitForNavigation` |
|
|
765
|
-
| `type` | Type text into input field | `selector`, `text` | `delay` |
|
|
766
|
-
| `wait` | Wait for various conditions | `type`, `value` | `timeout` |
|
|
767
|
-
| `find_selector` | Find CSS selector for element containing specific text | `text` | `elementType`, `exact` |
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
### Behavior Tools
|
|
771
|
-
|
|
772
|
-
| Tool Name | Description | Required Parameters | Optional Parameters |
|
|
773
|
-
|-----------|-------------|---------------------|-------------------|
|
|
774
|
-
| `random_scroll` | Perform random scrolling with natural timing | None | None |
|
|
775
|
-
|
|
776
|
-
### Element Discovery Tools
|
|
777
|
-
|
|
778
|
-
| Tool Name | Description | Required Parameters | Optional Parameters |
|
|
779
|
-
|-----------|-------------|---------------------|-------------------|
|
|
780
|
-
| `find_selector` | Find CSS selector for element containing specific text | `text` | `elementType`, `exact` |
|
|
781
|
-
|
|
782
|
-
### Content Tools
|
|
407
|
+
**Solution 2:** Specify in browser_init
|
|
408
|
+
```javascript
|
|
409
|
+
await use_mcp_tool({
|
|
410
|
+
server_name: "brave-browser",
|
|
411
|
+
tool_name: "browser_init",
|
|
412
|
+
arguments: {
|
|
413
|
+
customConfig: {
|
|
414
|
+
chromePath: "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
});
|
|
418
|
+
```
|
|
783
419
|
|
|
784
|
-
|
|
785
|
-
|-----------|-------------|---------------------|-------------------|
|
|
786
|
-
| `save_content_as_markdown` | Extract page content and save it as a formatted markdown file | `filePath` | `contentType`, `selector`, `formatOptions` |
|
|
420
|
+
### Server Not Starting
|
|
787
421
|
|
|
788
|
-
|
|
422
|
+
1. Check Node.js version: `node --version` (should be >= 18)
|
|
423
|
+
2. Clear npm cache: `npm cache clean --force`
|
|
424
|
+
3. Reinstall: `npm install -g brave-real-browser-mcp-server`
|
|
425
|
+
4. Check logs in stderr
|
|
789
426
|
|
|
790
|
-
|
|
791
|
-
|-----------|-------------|---------------------|-------------------|
|
|
792
|
-
| `solve_captcha` | Attempt to solve captchas | `type` | None |
|
|
427
|
+
### CAPTCHA Not Solving
|
|
793
428
|
|
|
794
|
-
|
|
429
|
+
1. Wait for CAPTCHA to fully load
|
|
430
|
+
2. Use longer timeout: `{ "timeout": 30000 }`
|
|
431
|
+
3. Try different CAPTCHA types: `recaptcha`, `hcaptcha`, `turnstile`
|
|
795
432
|
|
|
796
|
-
|
|
433
|
+
---
|
|
797
434
|
|
|
798
|
-
|
|
435
|
+
## 🤝 Contributing
|
|
799
436
|
|
|
800
|
-
|
|
801
|
-
- **Smart CSS selector generation**: Creates unique, robust CSS selectors similar to Chrome DevTools
|
|
802
|
-
- **Element type filtering**: Optionally restrict search to specific HTML elements (e.g., buttons, links)
|
|
803
|
-
- **Exact or partial text matching**: Choose between precise text matching or substring searches
|
|
804
|
-
- **Universal compatibility**: Works across any website without hardcoded selectors
|
|
437
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
805
438
|
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
439
|
+
1. Fork the repository
|
|
440
|
+
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
|
|
441
|
+
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
|
|
442
|
+
4. Push to the branch (`git push origin feature/AmazingFeature`)
|
|
443
|
+
5. Open a Pull Request
|
|
811
444
|
|
|
812
|
-
|
|
813
|
-
```
|
|
445
|
+
---
|
|
814
446
|
|
|
815
|
-
|
|
447
|
+
## 📄 License
|
|
816
448
|
|
|
817
|
-
|
|
449
|
+
This project is licensed under the MIT License.
|
|
818
450
|
|
|
819
|
-
|
|
451
|
+
---
|
|
820
452
|
|
|
821
|
-
|
|
453
|
+
## 🔗 Links
|
|
822
454
|
|
|
823
|
-
|
|
824
|
-
|
|
455
|
+
- **GitHub:** https://github.com/withLinda/brave-real-browser-mcp-server
|
|
456
|
+
- **NPM:** https://www.npmjs.com/package/brave-real-browser-mcp-server
|
|
457
|
+
- **Issues:** https://github.com/withLinda/brave-real-browser-mcp-server/issues
|
|
825
458
|
|
|
826
|
-
|
|
459
|
+
---
|
|
827
460
|
|
|
828
|
-
|
|
461
|
+
<a name="hindi"></a>
|
|
462
|
+
# 📖 हिन्दी दस्तावेज़
|
|
829
463
|
|
|
830
|
-
|
|
831
|
-
- hCaptcha
|
|
832
|
-
- Cloudflare Turnstile
|
|
464
|
+
## 🤖 समर्थित AI IDEs (सार्वभौमिक संगतता)
|
|
833
465
|
|
|
834
|
-
|
|
835
|
-
brave-real-browser implementation.
|
|
466
|
+
यह server **स्वचालित रूप से आपके AI IDE को detect करता है और adapt हो जाता है!**
|
|
836
467
|
|
|
837
|
-
|
|
468
|
+
### ✅ पूर्णतः समर्थित और स्वतः-पता लगाना
|
|
838
469
|
|
|
839
|
-
|
|
470
|
+
सभी 15+ AI IDEs स्वचालित रूप से समर्थित हैं। कोई manual configuration की जरूरत नहीं!
|
|
840
471
|
|
|
841
|
-
|
|
472
|
+
---
|
|
842
473
|
|
|
843
|
-
|
|
844
|
-
- Registry-based detection for installed Brave versions
|
|
845
|
-
- Searches 15+ common installation directories including Program Files, user-specific locations, and portable installations
|
|
846
|
-
- Support for Brave Beta and Nightly fallback
|
|
847
|
-
- Environment variable detection (`BRAVE_PATH`, `PUPPETEER_EXECUTABLE_PATH`)
|
|
848
|
-
- Detailed troubleshooting guidance when Brave is not found
|
|
849
|
-
|
|
850
|
-
- **macOS**: Looks for Brave in `/Applications/Brave Browser.app/` and Beta/Nightly locations
|
|
474
|
+
## 🚀 त्वरित शुरुआत
|
|
851
475
|
|
|
852
|
-
|
|
476
|
+
### इंस्टॉलेशन
|
|
853
477
|
|
|
854
|
-
|
|
855
|
-
|
|
478
|
+
```bash
|
|
479
|
+
# Global इंस्टॉल करें
|
|
480
|
+
npm install -g brave-real-browser-mcp-server
|
|
856
481
|
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
482
|
+
# या npx से चलाएं (बिना installation के)
|
|
483
|
+
npx brave-real-browser-mcp-server
|
|
484
|
+
```
|
|
860
485
|
|
|
861
|
-
###
|
|
862
|
-
Custom options like headless mode are **not configured in the MCP config file**. Instead, they're passed when initializing the browser using the `browser_init` tool:
|
|
486
|
+
### उपयोग
|
|
863
487
|
|
|
864
|
-
|
|
488
|
+
```bash
|
|
489
|
+
# Auto mode (आपका IDE automatically detect होगा) - डिफ़ॉल्ट
|
|
490
|
+
brave-real-browser-mcp-server
|
|
865
491
|
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
```
|
|
492
|
+
# MCP mode (Claude, Cursor, Windsurf आदि के लिए)
|
|
493
|
+
brave-real-browser-mcp-server --mode mcp
|
|
869
494
|
|
|
870
|
-
|
|
495
|
+
# HTTP mode (सभी IDEs के साथ काम करता है)
|
|
496
|
+
brave-real-browser-mcp-server --mode http --port 3000
|
|
871
497
|
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
"headless": true,
|
|
875
|
-
"connectOption": {
|
|
876
|
-
"timeout": 30000
|
|
877
|
-
}
|
|
878
|
-
}
|
|
498
|
+
# LSP mode (Zed, VSCode आदि के लिए)
|
|
499
|
+
brave-real-browser-mcp-server --mode lsp
|
|
879
500
|
```
|
|
880
501
|
|
|
881
|
-
|
|
882
|
-
When initializing with `browser_init`, you can configure:
|
|
502
|
+
---
|
|
883
503
|
|
|
884
|
-
|
|
885
|
-
- `disableXvfb`: true/false (Disable X Virtual Framebuffer)
|
|
886
|
-
- `ignoreAllFlags`: true/false (Ignore all Chrome flags)
|
|
887
|
-
- `proxy`: "https://proxy:8080" (Proxy server URL)
|
|
888
|
-
- `plugins`: ["plugin1", "plugin2"] (Array of plugins to load)
|
|
889
|
-
- `connectOption`: Additional connection options like:
|
|
890
|
-
- `slowMo`: 250 (Slow down operations by milliseconds)
|
|
891
|
-
- `timeout`: 60,000 (Connection timeout)
|
|
504
|
+
## ⚙️ विशिष्ट IDEs के लिए कॉन्फ़िगरेशन
|
|
892
505
|
|
|
893
|
-
|
|
506
|
+
### 1. Claude Desktop
|
|
894
507
|
|
|
895
|
-
|
|
508
|
+
**फ़ाइल:** `claude_desktop_config.json`
|
|
896
509
|
|
|
897
|
-
|
|
510
|
+
**स्थान:**
|
|
511
|
+
- **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
|
|
512
|
+
- **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
898
513
|
|
|
899
514
|
```json
|
|
900
515
|
{
|
|
901
|
-
"
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
"connectOption": {
|
|
907
|
-
"slowMo": 250,
|
|
908
|
-
"timeout": 60000
|
|
516
|
+
"mcpServers": {
|
|
517
|
+
"brave-browser": {
|
|
518
|
+
"command": "npx",
|
|
519
|
+
"args": ["-y", "brave-real-browser-mcp-server"]
|
|
520
|
+
}
|
|
909
521
|
}
|
|
910
522
|
}
|
|
911
523
|
```
|
|
912
524
|
|
|
913
|
-
###
|
|
525
|
+
### 2. Cursor AI
|
|
914
526
|
|
|
915
|
-
|
|
916
|
-
```json
|
|
917
|
-
{
|
|
918
|
-
"customConfig": {
|
|
919
|
-
"bravePath": "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
```
|
|
527
|
+
**फ़ाइल:** `cline_mcp_settings.json`
|
|
923
528
|
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
{
|
|
927
|
-
"headless": true,
|
|
928
|
-
"proxy": "https://username:password@proxy.example.com:8080"
|
|
929
|
-
}
|
|
930
|
-
```
|
|
529
|
+
**स्थान:**
|
|
530
|
+
- **Windows:** `%APPDATA%\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json`
|
|
931
531
|
|
|
932
|
-
#### Stealth Mode with Custom Options
|
|
933
532
|
```json
|
|
934
533
|
{
|
|
935
|
-
"
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
"devtools": false
|
|
534
|
+
"mcpServers": {
|
|
535
|
+
"brave-browser": {
|
|
536
|
+
"command": "npx",
|
|
537
|
+
"args": ["-y", "brave-real-browser-mcp-server"]
|
|
538
|
+
}
|
|
941
539
|
}
|
|
942
540
|
}
|
|
943
541
|
```
|
|
944
542
|
|
|
543
|
+
### 3. HTTP-आधारित IDEs (Qoder AI आदि)
|
|
945
544
|
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
For advanced users, you can modify the server behavior by editing the source code:
|
|
949
|
-
|
|
950
|
-
- Change default viewport size in the `initializeBrowser` function
|
|
951
|
-
- Adjust timeout values for various operations
|
|
952
|
-
- Enable debug logging
|
|
953
|
-
|
|
954
|
-
## Troubleshooting
|
|
955
|
-
|
|
956
|
-
### Major Windows Connection Issues (Fixed in v1.3.0)
|
|
957
|
-
|
|
958
|
-
**🔧 ECONNREFUSED Error Solutions**
|
|
959
|
-
|
|
960
|
-
Version 1.3.0 includes comprehensive fixes for the `connect ECONNREFUSED 127.0.0.1:60725` error commonly experienced on Windows systems:
|
|
961
|
-
|
|
962
|
-
**Enhanced Brave Path Detection:**
|
|
963
|
-
- Added Windows Registry-based Brave detection
|
|
964
|
-
- Expanded search to 15+ Windows installation locations including portable installations
|
|
965
|
-
- Added support for Brave Beta and Nightly fallback
|
|
966
|
-
- Environment variable support (`BRAVE_PATH`, `PUPPETEER_EXECUTABLE_PATH`)
|
|
967
|
-
|
|
968
|
-
**Windows-Specific Launch Optimizations:**
|
|
969
|
-
- 20+ Windows-specific Brave flags for better compatibility
|
|
970
|
-
- Multiple fallback strategies (5 different connection approaches)
|
|
971
|
-
- Progressive retry logic with exponential backoff
|
|
972
|
-
- Enhanced timeout handling (120s for Windows vs 90s for other platforms)
|
|
973
|
-
|
|
974
|
-
**Connection Resilience Features:**
|
|
975
|
-
- Localhost vs 127.0.0.1 fallback handling (fixes known Puppeteer issue)
|
|
976
|
-
- Port availability checking and automatic port assignment
|
|
977
|
-
- Network connectivity testing before browser launch
|
|
978
|
-
- Enhanced error categorization and automatic fallback strategies
|
|
979
|
-
|
|
980
|
-
**If you're still experiencing ECONNREFUSED errors:**
|
|
981
|
-
|
|
982
|
-
1. **Environment Variables (Recommended):**
|
|
983
|
-
```bash
|
|
984
|
-
set BRAVE_PATH="C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe"
|
|
985
|
-
```
|
|
986
|
-
|
|
987
|
-
2. **Manual Brave Path Configuration:**
|
|
988
|
-
```text
|
|
989
|
-
Ask Claude: "Initialize browser with custom Brave path at C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
|
|
990
|
-
```
|
|
991
|
-
|
|
992
|
-
3. **Network Troubleshooting:**
|
|
993
|
-
```bash
|
|
994
|
-
# Test localhost resolution
|
|
995
|
-
ping localhost
|
|
996
|
-
# Should resolve to 127.0.0.1
|
|
997
|
-
|
|
998
|
-
# Check Windows hosts file
|
|
999
|
-
notepad C:\Windows\System32\drivers\etc\hosts
|
|
1000
|
-
# Ensure: 127.0.0.1 localhost
|
|
1001
|
-
```
|
|
1002
|
-
|
|
1003
|
-
4. **Brave Process Management:**
|
|
1004
|
-
```bash
|
|
1005
|
-
# Kill existing Brave processes
|
|
1006
|
-
taskkill /f /im brave.exe
|
|
1007
|
-
```
|
|
1008
|
-
|
|
1009
|
-
### Common Issues
|
|
1010
|
-
|
|
1011
|
-
#### npx-Specific Issues
|
|
1012
|
-
|
|
1013
|
-
1. **"spawn npx ENOENT" or "command not found" errors**
|
|
1014
|
-
- **Cause:** npx is not in your system PATH or Node.js is not properly installed
|
|
1015
|
-
- **Solutions:**
|
|
1016
|
-
- Verify Node.js installation: `node --version` and `npm --version`
|
|
1017
|
-
- Reinstall Node.js from [nodejs.org](https://nodejs.org/)
|
|
1018
|
-
- For NVM users, see the NVM-specific section below
|
|
1019
|
-
|
|
1020
|
-
2. **"npx: command not found" in Claude Desktop/Cursor**
|
|
1021
|
-
- **Windows:** Make sure to restart your IDE after installing Node.js
|
|
1022
|
-
- **Mac/Linux:** Add npm to PATH: `export PATH="$PATH:$(npm bin -g)"`
|
|
1023
|
-
- **Alternative:** Use the full path to npx: `/usr/local/bin/npx`
|
|
1024
|
-
|
|
1025
|
-
3. **npx hangs or takes too long**
|
|
1026
|
-
- npx downloads the package on first run, which can take 30-60 seconds
|
|
1027
|
-
- Ensure you have a stable internet connection
|
|
1028
|
-
- Try clearing npm cache: `npm cache clean --force`
|
|
1029
|
-
|
|
1030
|
-
4. **Using NVM (Node Version Manager)?**
|
|
1031
|
-
- Standard npx commands may fail with NVM
|
|
1032
|
-
- **Solution 1:** Use absolute paths in your config:
|
|
1033
|
-
```json
|
|
1034
|
-
{
|
|
1035
|
-
"mcpServers": {
|
|
1036
|
-
"brave-real-browser": {
|
|
1037
|
-
"command": "/Users/yourname/.nvm/versions/node/v20.0.0/bin/npx",
|
|
1038
|
-
"args": ["brave-real-browser-mcp-server@latest"]
|
|
1039
|
-
}
|
|
1040
|
-
}
|
|
1041
|
-
}
|
|
1042
|
-
```
|
|
1043
|
-
- **Solution 2:** Set a default Node version: `nvm alias default 20.0.0`
|
|
1044
|
-
|
|
1045
|
-
5. **Permission denied errors with npx**
|
|
1046
|
-
- **Mac/Linux:** Try with sudo: `sudo npx brave-real-browser-mcp-server@latest`
|
|
1047
|
-
- **Better solution:** Fix npm permissions: `npm config set prefix ~/.npm`
|
|
1048
|
-
|
|
1049
|
-
#### Other Common Issues
|
|
1050
|
-
|
|
1051
|
-
1. **"Maximum call stack size exceeded" errors**
|
|
1052
|
-
- This was fixed in version 1.2.0 with comprehensive stack overflow protection
|
|
1053
|
-
- The server now includes circuit breaker patterns and recursion depth tracking
|
|
1054
|
-
- Timeout controls prevent hanging operations that could lead to stack overflow
|
|
1055
|
-
- If you encounter this error, ensure you're using the latest version: `npx brave-real-browser-mcp-server@latest`
|
|
1056
|
-
|
|
1057
|
-
2. **"command not found" or "syntax error" when using npx**
|
|
1058
|
-
- This was fixed in version 1.0.3 with the addition of a proper shebang line
|
|
1059
|
-
- Make sure you're using the latest version: `npx brave-real-browser-mcp-server@latest`
|
|
1060
|
-
- For global installation: `npm install -g brave-real-browser-mcp-server@latest`
|
|
1061
|
-
- If still having issues, install globally: `npm install -g brave-real-browser-mcp-server`
|
|
1062
|
-
- Check your PATH includes npm global binaries: `npm config get prefix`
|
|
1063
|
-
|
|
1064
|
-
3. **Browser won't start**
|
|
1065
|
-
- Check if Brave is installed in standard locations
|
|
1066
|
-
- **Windows specific troubleshooting**:
|
|
1067
|
-
|
|
1068
|
-
**Step 1: Verify Brave Installation Paths**
|
|
1069
|
-
Check these locations in order:
|
|
1070
|
-
- `C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe`
|
|
1071
|
-
- `C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe`
|
|
1072
|
-
- `%LOCALAPPDATA%\BraveSoftware\Brave-Browser\Application\brave.exe`
|
|
1073
|
-
- `%PROGRAMFILES%\BraveSoftware\Brave-Browser\Application\brave.exe`
|
|
1074
|
-
|
|
1075
|
-
**Step 2: Manual Path Configuration**
|
|
1076
|
-
If Brave is in a different location, specify it manually:
|
|
1077
|
-
```
|
|
1078
|
-
Ask Claude: "Initialize browser with custom Brave path at C:\Your\Brave\Path\brave.exe"
|
|
1079
|
-
```
|
|
1080
|
-
|
|
1081
|
-
**Step 3: Windows Launch Arguments**
|
|
1082
|
-
For Windows compatibility, use these launch arguments:
|
|
1083
|
-
```
|
|
1084
|
-
Ask Claude: "Initialize browser with args --disable-gpu --disable-setuid-sandbox"
|
|
1085
|
-
```
|
|
1086
|
-
|
|
1087
|
-
**Step 4: Windows-Specific Solutions**
|
|
1088
|
-
- **Run as Administrator**: Try running your IDE/terminal as Administrator
|
|
1089
|
-
- **Windows Defender**: Add Brave and Node.js to Windows Defender exclusions
|
|
1090
|
-
- **Antivirus Software**: Temporarily disable antivirus to test if it's blocking Brave
|
|
1091
|
-
- **User Account Control**: Lower UAC settings temporarily for testing
|
|
1092
|
-
- **Brave Processes**: Kill any existing Brave processes in Task Manager
|
|
1093
|
-
|
|
1094
|
-
**Step 5: Alternative Brave Installation**
|
|
1095
|
-
If Brave detection still fails:
|
|
1096
|
-
- Download Brave directly from [brave.com/download](https://brave.com/download/)
|
|
1097
|
-
- Install to default location (`C:\Program Files\BraveSoftware\Brave-Browser\`)
|
|
1098
|
-
- Restart your IDE after installation
|
|
1099
|
-
|
|
1100
|
-
**Step 6: PowerShell vs Command Prompt**
|
|
1101
|
-
Try switching between PowerShell and Command Prompt:
|
|
1102
|
-
- Test with `cmd.exe` instead of PowerShell
|
|
1103
|
-
- Test with PowerShell instead of Command Prompt
|
|
1104
|
-
|
|
1105
|
-
**Step 7: Node.js and npm Configuration**
|
|
1106
|
-
- Ensure Node.js is added to PATH: `node --version`
|
|
1107
|
-
- Clear npm cache: `npm cache clean --force`
|
|
1108
|
-
- Reinstall global packages: `npm install -g brave-real-browser-mcp-server@latest`
|
|
1109
|
-
|
|
1110
|
-
- **Linux**: Install dependencies: `sudo apt install brave-browser`
|
|
1111
|
-
- **macOS**: Ensure Brave is in `/Applications/`
|
|
1112
|
-
- Try with `headless: true` first
|
|
1113
|
-
- Check console output for Brave path detection messages
|
|
1114
|
-
|
|
1115
|
-
4. **Claude doesn't see the MCP server**
|
|
1116
|
-
- Verify `claude_desktop_config.json` is in the correct location
|
|
1117
|
-
- Check JSON syntax is valid (use [jsonlint.com](https://jsonlint.com/))
|
|
1118
|
-
- Restart Claude Desktop completely
|
|
1119
|
-
- Check for any error messages in Claude Desktop
|
|
1120
|
-
|
|
1121
|
-
**4a. Claude Code CLI doesn't see the MCP server**
|
|
1122
|
-
- **Installation Issues**:
|
|
1123
|
-
- Verify `claude mcp add` command was successful
|
|
1124
|
-
- Check command syntax: `claude mcp add brave-real-browser -- npx brave-real-browser-mcp-server@latest`
|
|
1125
|
-
- Ensure you have the latest Claude Code CLI version
|
|
1126
|
-
|
|
1127
|
-
- **Scope and Configuration**:
|
|
1128
|
-
- Check which scope you used: local (default), project, or user
|
|
1129
|
-
- For local scope: ensure you're in the correct project directory
|
|
1130
|
-
- For project scope: verify `.mcp.json` exists in project root
|
|
1131
|
-
- For user scope: check user config directory
|
|
1132
|
-
|
|
1133
|
-
- **MCP Server Status**:
|
|
1134
|
-
- Use `/mcp` command in Claude Code to check server status
|
|
1135
|
-
- Look for the "brave-real-browser" server in the list
|
|
1136
|
-
- Check if server status shows "connected" or error messages
|
|
1137
|
-
|
|
1138
|
-
- **Environment Variables**:
|
|
1139
|
-
- If using custom environment variables (Chrome path, proxy), verify they're correctly set
|
|
1140
|
-
- Test without environment variables first: `claude mcp add brave-real-browser -- npx brave-real-browser-mcp-server@latest`
|
|
1141
|
-
|
|
1142
|
-
- **Node.js and npx Issues**:
|
|
1143
|
-
- Verify Node.js version 18+: `node --version`
|
|
1144
|
-
- Test npx directly: `npx brave-real-browser-mcp-server@latest`
|
|
1145
|
-
- Clear npm cache: `npm cache clean --force`
|
|
1146
|
-
|
|
1147
|
-
- **Protocol Version Issues** (Known Issue):
|
|
1148
|
-
- Claude CLI may show protocolVersion validation errors despite correct configuration
|
|
1149
|
-
- This is a known issue with internal validation in Claude CLI
|
|
1150
|
-
- Server may still work despite validation warnings
|
|
1151
|
-
|
|
1152
|
-
- **Re-adding Server**:
|
|
1153
|
-
```bash
|
|
1154
|
-
# Remove and re-add if issues persist
|
|
1155
|
-
claude mcp remove brave-real-browser
|
|
1156
|
-
claude mcp add brave-real-browser -- npx brave-real-browser-mcp-server@latest
|
|
1157
|
-
```
|
|
1158
|
-
|
|
1159
|
-
**4b. Cursor IDE doesn't see the MCP server**
|
|
1160
|
-
- **Config File Location Issues**:
|
|
1161
|
-
- Verify `mcp.json` is in the correct location:
|
|
1162
|
-
- Global: `~/.cursor/mcp.json` (`%USERPROFILE%\.cursor\mcp.json` on Windows)
|
|
1163
|
-
- Project: `.cursor/mcp.json` in your project root
|
|
1164
|
-
- Ensure filename is exactly `mcp.json` (not `mcp.json.txt`)
|
|
1165
|
-
- Check file permissions allow reading
|
|
1166
|
-
|
|
1167
|
-
- **JSON Syntax Validation**:
|
|
1168
|
-
- Use [jsonlint.com](https://jsonlint.com/) to validate JSON syntax
|
|
1169
|
-
- Common issues: missing commas, incorrect quotes, trailing commas
|
|
1170
|
-
- Ensure proper escaping of Windows paths: `"C:/Program Files/Google/Chrome/Application/chrome.exe"`
|
|
1171
|
-
|
|
1172
|
-
- **Cursor IDE Restart Process**:
|
|
1173
|
-
- Close Cursor IDE completely (check Task Manager on Windows)
|
|
1174
|
-
- Wait 5 seconds
|
|
1175
|
-
- Restart Cursor IDE
|
|
1176
|
-
- Open Command Palette and check MCP servers are listed
|
|
1177
|
-
|
|
1178
|
-
- **Environment Variables**:
|
|
1179
|
-
- Verify Node.js is accessible: `node --version`
|
|
1180
|
-
- Check PATH includes npm: `npm --version`
|
|
1181
|
-
- Clear any conflicting environment variables
|
|
1182
|
-
|
|
1183
|
-
- **Cursor IDE Version Compatibility**:
|
|
1184
|
-
- Ensure Cursor IDE version supports MCP (latest versions)
|
|
1185
|
-
- Update Cursor IDE if using an older version
|
|
1186
|
-
- Check Cursor IDE documentation for MCP requirements
|
|
1187
|
-
|
|
1188
|
-
5. **Permission denied errors**
|
|
1189
|
-
- On Linux/Mac: Try `sudo npm install -g brave-real-browser-mcp-server`
|
|
1190
|
-
- Or use nvm to manage Node.js without sudo
|
|
1191
|
-
- On Windows: Run command prompt as Administrator
|
|
1192
|
-
|
|
1193
|
-
6. **Detection issues**
|
|
1194
|
-
- Use appropriate delays between actions for better reliability
|
|
1195
|
-
- Add random delays with `random_scroll`
|
|
1196
|
-
- Use proxy if needed: `proxy: "http://proxy.example.com:8080"`
|
|
1197
|
-
|
|
1198
|
-
7. **Memory leaks**
|
|
1199
|
-
- Always close browser instances with `browser_close` when done
|
|
1200
|
-
- Don't initialize multiple browsers without closing previous ones
|
|
1201
|
-
- Check for uncaught exceptions that might prevent cleanup
|
|
1202
|
-
|
|
1203
|
-
8. **Timeout errors**
|
|
1204
|
-
- Increase timeout values: `{ "timeout": 60000 }`
|
|
1205
|
-
- Use `wait` tool before interacting with elements
|
|
1206
|
-
- Check network connectivity and website response times
|
|
1207
|
-
|
|
1208
|
-
### Frequently Asked Questions
|
|
1209
|
-
|
|
1210
|
-
**Q: When should I use npm install vs npx?**
|
|
1211
|
-
A:
|
|
1212
|
-
- **Use npx (recommended for most users):** When using with Claude Desktop, Claude Code CLI, or Cursor IDE. The npx command in your config automatically downloads and runs the latest version without installation.
|
|
1213
|
-
- **Use npm install -g:** Only if you want to run the server directly from command line frequently, or if you're developing/contributing to the project.
|
|
1214
|
-
- **Never needed:** If you're just a Claude Desktop/Claude Code CLI user following the Quick Start guide - npx handles everything!
|
|
1215
|
-
|
|
1216
|
-
**Q: Should I use Claude Desktop or Claude Code CLI?**
|
|
1217
|
-
A: Both are excellent choices, depending on your needs:
|
|
1218
|
-
|
|
1219
|
-
**Claude Desktop:**
|
|
1220
|
-
- **Best for:** Simple web browsing automation, content extraction, basic form filling
|
|
1221
|
-
- **Setup:** Manual JSON config file editing
|
|
1222
|
-
- **Sharing:** Individual use only
|
|
1223
|
-
- **Interface:** Desktop GUI application
|
|
1224
|
-
- **Authentication:** None required
|
|
1225
|
-
|
|
1226
|
-
**Claude Code CLI:**
|
|
1227
|
-
- **Best for:** Development workflows, team collaboration, project-specific automation
|
|
1228
|
-
- **Setup:** Simple command-line setup (`claude mcp add`)
|
|
1229
|
-
- **Sharing:** Supports team sharing via project scope
|
|
1230
|
-
- **Interface:** Command-line integration with IDEs
|
|
1231
|
-
- **Authentication:** OAuth support available
|
|
1232
|
-
- **Advanced Features:** Environment variables, scope control, server monitoring
|
|
1233
|
-
|
|
1234
|
-
**Use Claude Code CLI if you:**
|
|
1235
|
-
- Work in development teams
|
|
1236
|
-
- Need project-specific browser automation
|
|
1237
|
-
- Want environment variable configuration
|
|
1238
|
-
- Prefer command-line workflows
|
|
1239
|
-
- Need server health monitoring
|
|
1240
|
-
|
|
1241
|
-
**Use Claude Desktop if you:**
|
|
1242
|
-
- Want a simple GUI experience
|
|
1243
|
-
- Do individual browsing automation
|
|
1244
|
-
- Don't need team collaboration features
|
|
1245
|
-
- Prefer visual interfaces over command-line
|
|
1246
|
-
|
|
1247
|
-
**Q: Why do we use @latest in the npx command?**
|
|
1248
|
-
A: The `@latest` tag ensures you always get the newest version with bug fixes and security updates. Without it, npx might cache an older version. It's especially important for actively maintained projects.
|
|
1249
|
-
|
|
1250
|
-
**Q: Does this work with headless browsers?**
|
|
1251
|
-
A: Yes, set `headless: true` in browser_init options.
|
|
1252
|
-
|
|
1253
|
-
**Q: Can I use multiple browsers at once?**
|
|
1254
|
-
A: Currently supports one browser instance. Close the current one before starting a new one.
|
|
1255
|
-
|
|
1256
|
-
**Q: What captchas can it solve?**
|
|
1257
|
-
A: Supports reCAPTCHA, hCaptcha, and Cloudflare Turnstile through brave-real-browser.
|
|
1258
|
-
|
|
1259
|
-
**Q: Is this detectable by websites?**
|
|
1260
|
-
A: brave-real-browser includes anti-detection features, but no solution is 100% undetectable.
|
|
1261
|
-
|
|
1262
|
-
**Q: Can I use custom Chrome extensions?**
|
|
1263
|
-
A: Yes, through the `plugins` option in browser_init.
|
|
1264
|
-
|
|
1265
|
-
**Q: Does it work on all operating systems?**
|
|
1266
|
-
A: Yes, tested on Windows, macOS, and Linux. The server automatically detects Brave installations on all platforms.
|
|
1267
|
-
|
|
1268
|
-
**Q: What's the difference between Claude Desktop, Claude Code CLI, and Cursor IDE configurations?**
|
|
1269
|
-
A: Here's a comparison:
|
|
1270
|
-
|
|
1271
|
-
| Feature | Claude Desktop | Claude Code CLI | Cursor IDE |
|
|
1272
|
-
|---------|---------------|-----------------|------------|
|
|
1273
|
-
| **Setup Method** | Manual JSON editing | Command-line (`claude mcp add`) | One-click install OR manual JSON |
|
|
1274
|
-
| **Config Location** | `claude_desktop_config.json` | `.mcp.json` (scoped) | `.cursor/mcp.json` |
|
|
1275
|
-
| **Team Sharing** | No | Yes (project scope) | Yes |
|
|
1276
|
-
| **Environment Variables** | Limited support | Full support | Full support |
|
|
1277
|
-
| **Scope Control** | No | Yes (local/project/user) | Project/Global |
|
|
1278
|
-
| **Server Monitoring** | No | Yes (`/mcp` command) | Limited |
|
|
1279
|
-
| **Authentication** | None | OAuth available | OAuth available |
|
|
1280
|
-
| **Best For** | Individual GUI use | Development teams | Code-focused workflows |
|
|
1281
|
-
|
|
1282
|
-
**Command Examples:**
|
|
1283
|
-
- **Claude Desktop**: Edit config file with JSON
|
|
1284
|
-
- **Claude Code CLI**: `claude mcp add brave-real-browser -- npx brave-real-browser-mcp-server@latest`
|
|
1285
|
-
- **Cursor IDE**: One-click install or manual JSON config
|
|
1286
|
-
|
|
1287
|
-
**Q: What if Brave is installed in a non-standard location?**
|
|
1288
|
-
A: Version 1.3.0 dramatically improves Brave detection. The server now searches 15+ locations including portable installations and uses Windows Registry detection. If Brave is still not found automatically, you can:
|
|
1289
|
-
1. Set environment variable: `set BRAVE_PATH="C:\Your\Brave\Path\brave.exe"`
|
|
1290
|
-
2. Use the `customConfig.bravePath` option: `{"customConfig": {"bravePath": "C:\\Custom\\Brave\\brave.exe"}}`
|
|
1291
|
-
|
|
1292
|
-
**Q: Why am I getting "Brave not found" or ECONNREFUSED errors on Windows?**
|
|
1293
|
-
A: Version 1.3.0 includes comprehensive fixes for Windows Brave detection and connection issues. The server now automatically searches these locations and more:
|
|
1294
|
-
- `C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe`
|
|
1295
|
-
- `C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe`
|
|
1296
|
-
- `%LOCALAPPDATA%\BraveSoftware\Brave-Browser\Application\brave.exe`
|
|
1297
|
-
- `%USERPROFILE%\AppData\Local\BraveSoftware\Brave-Browser\Application\brave.exe`
|
|
1298
|
-
- Brave Beta and Nightly installations
|
|
1299
|
-
- Portable Brave installations
|
|
1300
|
-
- Registry-detected installations
|
|
1301
|
-
|
|
1302
|
-
The server also implements multiple connection strategies with automatic fallback between localhost and 127.0.0.1, plus enhanced Windows-specific Brave flags for better compatibility.
|
|
1303
|
-
|
|
1304
|
-
**Q: I'm still getting ECONNREFUSED errors after upgrading to v1.3.0. What should I do?**
|
|
1305
|
-
A: Try these steps in order:
|
|
1306
|
-
1. Set the `BRAVE_PATH` environment variable to your Brave location
|
|
1307
|
-
2. Kill all existing Brave processes: `taskkill /f /im brave.exe`
|
|
1308
|
-
3. Check your Windows hosts file contains: `127.0.0.1 localhost`
|
|
1309
|
-
4. Try running your IDE as Administrator
|
|
1310
|
-
5. Add Brave to Windows Defender exclusions
|
|
1311
|
-
6. If using a VPN/proxy, try disabling it temporarily
|
|
1312
|
-
|
|
1313
|
-
### Debug Mode
|
|
1314
|
-
|
|
1315
|
-
To enable debug logging:
|
|
545
|
+
Server को HTTP mode में start करें:
|
|
1316
546
|
|
|
1317
547
|
```bash
|
|
1318
|
-
|
|
548
|
+
brave-real-browser-mcp-server --mode http --port 3000
|
|
1319
549
|
```
|
|
1320
550
|
|
|
1321
|
-
|
|
1322
|
-
```bash
|
|
1323
|
-
DEBUG=true npm run dev
|
|
1324
|
-
```
|
|
551
|
+
फिर REST API endpoint का उपयोग करें: `http://localhost:3000`
|
|
1325
552
|
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
If you're still having issues:
|
|
1329
|
-
1. Check the [GitHub Issues](https://github.com/your-organization/brave-real-browser-mcp-server/issues)
|
|
1330
|
-
2. Create a new issue with:
|
|
1331
|
-
- Your operating system
|
|
1332
|
-
- Node.js version (`node --version`)
|
|
1333
|
-
- npm version (`npm --version`)
|
|
1334
|
-
- Full error message
|
|
1335
|
-
- Steps to reproduce the problem
|
|
1336
|
-
|
|
1337
|
-
## Development
|
|
1338
|
-
|
|
1339
|
-
### Project Structure
|
|
1340
|
-
|
|
1341
|
-
```text
|
|
1342
|
-
brave-real-browser-mcp-server/
|
|
1343
|
-
├── src/
|
|
1344
|
-
│ ├── index.ts # Main server implementation
|
|
1345
|
-
│ └── stealth-actions.ts # Browser interaction functions
|
|
1346
|
-
├── test/
|
|
1347
|
-
│ └── test-server.ts # Test script
|
|
1348
|
-
├── package.json
|
|
1349
|
-
└── tsconfig.json
|
|
1350
|
-
```
|
|
553
|
+
---
|
|
1351
554
|
|
|
1352
|
-
|
|
555
|
+
## 🛠️ सुविधाएँ और उपकरण
|
|
556
|
+
|
|
557
|
+
### 🌐 ब्राउज़र प्रबंधन
|
|
558
|
+
- `browser_init` - Anti-detection के साथ Brave browser शुरू करें
|
|
559
|
+
- `browser_close` - Browser बंद करें
|
|
560
|
+
- `navigate` - URL पर जाएं
|
|
561
|
+
- `wait` - Elements/timeout के लिए प्रतीक्षा करें
|
|
562
|
+
|
|
563
|
+
### 🖱️ इंटरैक्शन टूल्स
|
|
564
|
+
- `click` - Elements पर क्लिक करें
|
|
565
|
+
- `type` - Inputs में text टाइप करें
|
|
566
|
+
- `solve_captcha` - CAPTCHA हल करें (reCAPTCHA, hCaptcha, आदि)
|
|
567
|
+
- `random_scroll` - मानव-जैसे scrolling
|
|
568
|
+
|
|
569
|
+
### 📄 कंटेंट निष्कर्षण
|
|
570
|
+
- `get_content` - Page content निकालें (HTML/Text/Markdown)
|
|
571
|
+
- `scrape_table` - Table data निकालें
|
|
572
|
+
- `extract_list` - Lists निकालें
|
|
573
|
+
- `extract_json` - JSON data निकालें
|
|
574
|
+
- `image_scraper` - सभी images निकालें
|
|
575
|
+
- `link_harvester` - सभी links निकालें
|
|
576
|
+
|
|
577
|
+
### 🤖 AI-Powered टूल्स
|
|
578
|
+
- `smart_selector_generator` - Selectors auto-generate करें
|
|
579
|
+
- `content_classification` - Content type classify करें
|
|
580
|
+
- `sentiment_analysis` - Sentiment का विश्लेषण करें
|
|
581
|
+
- `summary_generator` - Summaries बनाएं
|
|
582
|
+
|
|
583
|
+
### 🔐 CAPTCHA और सुरक्षा
|
|
584
|
+
- `solve_captcha` - Multi-CAPTCHA solver
|
|
585
|
+
- `ocr_engine` - Text CAPTCHAs के लिए OCR
|
|
586
|
+
- `audio_captcha_solver` - Audio CAPTCHA solver
|
|
1353
587
|
|
|
1354
|
-
|
|
1355
|
-
# Install dependencies
|
|
1356
|
-
npm install
|
|
588
|
+
---
|
|
1357
589
|
|
|
1358
|
-
|
|
1359
|
-
npm run dev
|
|
590
|
+
## 💡 उपयोग उदाहरण
|
|
1360
591
|
|
|
1361
|
-
|
|
1362
|
-
npm run build
|
|
592
|
+
### उदाहरण 1: साधारण Web Scraping
|
|
1363
593
|
|
|
1364
|
-
|
|
1365
|
-
|
|
594
|
+
```javascript
|
|
595
|
+
// Browser initialize करें
|
|
596
|
+
await use_mcp_tool({
|
|
597
|
+
server_name: "brave-browser",
|
|
598
|
+
tool_name: "browser_init",
|
|
599
|
+
arguments: {}
|
|
600
|
+
});
|
|
601
|
+
|
|
602
|
+
// Website पर जाएं
|
|
603
|
+
await use_mcp_tool({
|
|
604
|
+
server_name: "brave-browser",
|
|
605
|
+
tool_name: "navigate",
|
|
606
|
+
arguments: { url: "https://example.com" }
|
|
607
|
+
});
|
|
608
|
+
|
|
609
|
+
// Content प्राप्त करें
|
|
610
|
+
await use_mcp_tool({
|
|
611
|
+
server_name: "brave-browser",
|
|
612
|
+
tool_name: "get_content",
|
|
613
|
+
arguments: { type: "text" }
|
|
614
|
+
});
|
|
1366
615
|
```
|
|
1367
616
|
|
|
1368
|
-
|
|
617
|
+
---
|
|
1369
618
|
|
|
1370
|
-
|
|
619
|
+
## 📋 आवश्यकताएं
|
|
1371
620
|
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
621
|
+
- **Node.js** >= 18.0.0
|
|
622
|
+
- **Brave Browser** (auto-detected या path specify करें)
|
|
623
|
+
- **Operating System:** Windows, macOS, या Linux
|
|
1375
624
|
|
|
1376
|
-
|
|
625
|
+
---
|
|
1377
626
|
|
|
1378
|
-
|
|
627
|
+
## 🐛 समस्या निवारण
|
|
1379
628
|
|
|
1380
|
-
###
|
|
1381
|
-
```bash
|
|
1382
|
-
npm run test:quick # Fast Jest tests for protocol compliance
|
|
1383
|
-
npm test # Alias for test:quick
|
|
1384
|
-
```
|
|
629
|
+
### Brave Browser नहीं मिला
|
|
1385
630
|
|
|
1386
|
-
|
|
631
|
+
**समाधान:** Environment variable सेट करें
|
|
1387
632
|
```bash
|
|
1388
|
-
|
|
1389
|
-
|
|
633
|
+
# Windows
|
|
634
|
+
set BRAVE_PATH="C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe"
|
|
1390
635
|
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
npm run test:performance # Browser performance benchmarking
|
|
636
|
+
# Linux/macOS
|
|
637
|
+
export BRAVE_PATH="/usr/bin/brave-browser"
|
|
1394
638
|
```
|
|
1395
639
|
|
|
1396
|
-
|
|
1397
|
-
- Browser initialization timing (5 trials)
|
|
1398
|
-
- Navigation performance across different site types
|
|
1399
|
-
- Concurrent operation handling
|
|
1400
|
-
- Session longevity testing (30+ operations over 30 seconds)
|
|
640
|
+
### Server शुरू नहीं हो रहा
|
|
1401
641
|
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
```
|
|
642
|
+
1. Node.js version check करें: `node --version` (>= 18 होना चाहिए)
|
|
643
|
+
2. NPM cache clear करें: `npm cache clean --force`
|
|
644
|
+
3. फिर से install करें: `npm install -g brave-real-browser-mcp-server`
|
|
1406
645
|
|
|
1407
|
-
|
|
1408
|
-
- Environment validation (Node.js version, platform, memory)
|
|
1409
|
-
- Chrome installation detection with specific paths
|
|
1410
|
-
- Quick server health check with startup timing
|
|
1411
|
-
- Network connectivity validation
|
|
1412
|
-
- Build status verification
|
|
646
|
+
---
|
|
1413
647
|
|
|
1414
|
-
|
|
1415
|
-
```bash
|
|
1416
|
-
npm run test:all # Runs quick + full + performance tests
|
|
1417
|
-
npm run test:dashboard # Unified test runner with reporting
|
|
1418
|
-
```
|
|
648
|
+
## 🤝 योगदान
|
|
1419
649
|
|
|
1420
|
-
|
|
1421
|
-
- Unified execution of multiple test categories
|
|
1422
|
-
- Real-time progress reporting
|
|
1423
|
-
- Performance metrics and timing
|
|
1424
|
-
- Overall test status summary
|
|
1425
|
-
- Recommendations for failed tests
|
|
1426
|
-
- JSON results saved to `test-results/` directory
|
|
650
|
+
Contributions स्वागत है! कृपया Pull Request submit करें।
|
|
1427
651
|
|
|
1428
|
-
|
|
1429
|
-
```bash
|
|
1430
|
-
npm run test:integration # Claude Code CLI integration testing
|
|
1431
|
-
```
|
|
652
|
+
---
|
|
1432
653
|
|
|
1433
|
-
|
|
654
|
+
## 📄 लाइसेंस
|
|
1434
655
|
|
|
1435
|
-
|
|
656
|
+
यह प्रोजेक्ट MIT License के तहत लाइसेंस प्राप्त है।
|
|
1436
657
|
|
|
1437
|
-
|
|
658
|
+
---
|
|
1438
659
|
|
|
1439
|
-
|
|
1440
|
-
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
|
|
1441
|
-
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
|
|
1442
|
-
4. Push to the branch (`git push origin feature/amazing-feature`)
|
|
1443
|
-
5. Open a Pull Request
|
|
660
|
+
## 🌟 मुख्य विशेषताएं
|
|
1444
661
|
|
|
1445
|
-
|
|
662
|
+
✅ **15+ AI IDEs समर्थित** - Claude, Cursor, Windsurf, Cline, Zed, VSCode, Qoder AI, और अधिक
|
|
663
|
+
✅ **Auto-Detection** - आपका IDE automatically detect होता है
|
|
664
|
+
✅ **4 Protocols** - MCP, LSP, HTTP, WebSocket
|
|
665
|
+
✅ **100+ Tools** - Browser automation, scraping, CAPTCHA solving
|
|
666
|
+
✅ **Anti-Detection** - Cloudflare, reCAPTCHA bypass
|
|
667
|
+
✅ **Cross-Platform** - Windows, macOS, Linux
|
|
1446
668
|
|
|
1447
|
-
|
|
669
|
+
---
|
|
1448
670
|
|
|
1449
|
-
|
|
671
|
+
<div align="center">
|
|
1450
672
|
|
|
1451
|
-
|
|
673
|
+
**Made with ❤️ for the AI Development Community**
|
|
1452
674
|
|
|
1453
|
-
|
|
675
|
+
[⭐ Star on GitHub](https://github.com/withLinda/brave-real-browser-mcp-server) | [🐛 Report Bug](https://github.com/withLinda/brave-real-browser-mcp-server/issues) | [💡 Request Feature](https://github.com/withLinda/brave-real-browser-mcp-server/issues)
|
|
1454
676
|
|
|
1455
|
-
|
|
1456
|
-
- npm: [https://www.npmjs.com/package/brave-real-browser](https://www.npmjs.com/package/brave-real-browser)
|
|
677
|
+
</div>
|