Brave-Real-Browser-Mcp-Server

codeiva4u/Brave-Real-Browser-Mcp-Server

3.3

If you are the rightful owner of Brave-Real-Browser-Mcp-Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The Brave Real Browser MCP Server provides AI assistants with powerful, detection-resistant browser automation capabilities using the brave-real-browser package.

Tools
5
Resources
0
Prompts
0

Brave Real Browser MCP Server

AI assistants के लिए powerful, anti-detection browser automation - Unified MCP+LSP+SSE ecosystem

License: MIT npm version

🚀 Quick Start

Option 1: NPX (Recommended for AI IDEs)

{
  {
  "mcpServers": {
    "brave-real-browser": {
      "command": "npx",
      "args": ["brave-real-browser-mcp-server@latest"],
      "env": {
        "headless": "false"
      }
    }
  }
}

Option 2: (Local AI IDEs)

{
  "mcpServers": {
    "brave-real-browser": {
      "command": "node",
      "args": ["c:\\Users\\Admin\\Desktop\\Workspace-For-Brave-Real-browser-Mcp-Server\\Brave-Real-Browser-Mcp-Server\\dist\\index.js"]
    }
  }
}

Config locations:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Mac: ~/Library/Application Support/Claude/
  • Linux: ~/.config/Claude/

Option 2: Unified Server (Full Features)

npm run dev

✨ Features

FeatureDescription
33 MCP ToolsComplete browser automation toolkit
Unified ServerMCP + SSE + LSP in one command
Stealth Mode50+ anti-detection features
Captcha SolvingreCAPTCHA, hCaptcha, Turnstile
Brave BrowserAuto-detection, uBlock Origin built-in
TypeScript AnalyzerFull Compiler API integration
Real-time StreamingSSE for live progress updates
Auto-SyncSharedEventBus connects all protocols

🌐 Unified MCP+LSP+SSE Ecosystem

एक command से सब active:

npm run dev

Output:

🦁 Brave Real Browser - Unified Server v2.22.0
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📡 HTTP Server: http://localhost:3000

🛠️  Available MCP Tools:
   🚀 browser_init    🔴 browser_close   🌐 navigate
   📄 get_content     🔍 find_element    🖱️ click
   ⌨️ type           🤖 solve_captcha   🎬 media_extractor
   ... and 24 more tools

🔗 SharedEventBus: Auto-syncing MCP ↔ LSP ↔ SSE
📋 Total: 33 MCP tools | TypeScript Analyzer Active
✅ Ready! All protocols unified and auto-synced.

All Endpoints:

CategoryEndpointPurpose
MCPPOST /mcpMCP over HTTP
MCPGET /mcp/sseSSE real-time streaming
MCPPOST /mcp/messageSSE message handler
LSPPOST /lsp/completionAutocomplete
LSPPOST /lsp/hoverHover documentation
LSPPOST /lsp/analyzeTypeScript analysis
LSPPOST /lsp/definitionGo to definition
LSPPOST /lsp/referencesFind references
OtherGET /healthHealth check
OtherGET /eventsEvent bus stats

🛡️ Ad Blocking & Stealth (brave-real-blocker)

Auto-enabled on all pages via ecosystem chain:

brave-real-launcher
    └── brave-real-puppeteer-core
            └── brave-real-browser
                    └── brave-real-blocker (auto-enabled)
                            └── brave-real-browser-mcp-server
FeatureDescription
AdBlockingNetwork-level ad/tracker blocking
StealthNative function masking (prompt, alert, confirm)
RedirectBlockingPopup, window.open interception, tracking param removal
ScriptletInjectionAnti-adblock bypass
CosmeticFilteringElement hiding

ℹ️ No configuration needed - blocker activates automatically on browser launch.


🛠️ All 33 MCP Tools

Browser Management

ToolDescription
browser_initInitialize Brave browser with stealth
browser_closeClose browser instance

Navigation

ToolDescription
navigateNavigate to URL
waitWait for conditions

Content

ToolDescription
get_contentGet page HTML/text
find_elementFind by selector/text/AI
save_content_as_markdownSave as markdown file

Interaction

ToolDescription
clickClick on element
typeType text into input
press_keyKeyboard press
random_scrollNatural scrolling
solve_captchaSolve CAPTCHAs

Media Extraction

ToolDescription
media_extractorExtract video/audio
m3u8_parserParse HLS streams
stream_extractorDirect download URLs

Advanced

ToolDescription
search_contentSearch patterns
extract_jsonExtract embedded JSON
scrape_meta_tagsMeta/OG tags
deep_analysisFull page analysis
network_recorderRecord traffic
api_finderDiscover APIs
ajax_content_waiterWait for AJAX
link_harvesterHarvest links
batch_element_scraperBatch scrape
extract_schemaSchema.org data
element_screenshotScreenshot element
breadcrumb_navigatorNavigate breadcrumbs
redirect_tracerTrace redirects
progress_trackerTrack progress
cookie_managerManage cookies
file_downloaderDownload files
iframe_handlerHandle iframes
popup_handlerHandle popups

📋 Commands

# Install
npm install

# Build
npm run build

# Development (Unified - Recommended!)
npm run dev           # MCP + SSE + LSP on port 3000

# Alternate modes
npm run dev:stdio     # STDIO only (for AI IDEs)
npm run dev:sse       # SSE standalone
npm run dev:http      # HTTP Stream standalone

# Production
npm start             # Unified server
npm run start:stdio   # STDIO mode

# Tests
npm test
npm run test:e2e

⚙️ Environment Variables

VariableDefaultDescription
MCP_PORT3000Server port
MCP_HOSTlocalhostServer host
DEBUGfalseDebug logging

🔧 Browser Options

{
  "headless": false,
  "proxy": "http://proxy:8080"
}

📋 Prerequisites

  • Node.js >= 18.0.0
  • Brave Browser (auto-detected)

🐛 Troubleshooting

Port in use

MCP_PORT=3001 npm run dev

Debug mode

DEBUG=true npm run dev

📄 License

MIT License - see


Made with ❤️ by codeiva4u