Real Browser MCP
Provides a real browser that bypasses bot detection (Cloudflare, Turnstile) for AI agents, enabling navigation, clicking, typing, screenshots, and data collection through MCP tools.
README
Real Browser MCP
An MCP (Model Context Protocol) server that exposes a real browser (via puppeteer-real-browser) as tools for AI agents. The browser bypasses bot detection (Cloudflare, Turnstile, etc.) and behaves like a real user.
Features
- Full browser access: Navigate, search, click, type, run JavaScript
- Screenshots: Capture pages and save to
DOWNLOADS_PATH - Data collection: Extract content, run JS, save pages as HTML/MHTML
- Downloads: Files automatically saved to
DOWNLOADS_PATH - Multi-tab: List and switch between tabs
Requirements
- Node.js 18+
- Chrome/Chromium (used by puppeteer-real-browser)
- On Linux:
sudo apt-get install xvfb
Installation
npm install
Configuration
Environment variables
DOWNLOADS_PATH – Where screenshots and downloads are saved. Default: ~/Downloads.
HEADLESS – true or 1 = headless (invisible). false or 0 = visible. Default: visible.
SHOW_BROWSER – 1/true/yes = visible browser. 0/false/no = headless. Use if HEADLESS is not respected by your MCP client (e.g. LM Studio).
Config file – If env vars are not passed by your MCP client, create real-browser-mcp.config.json in the project root with {"headless": false} to show the browser. The repo includes this file by default.
BROWSER_PROFILE_PATH – Path for Chrome's persistent profile (cookies, logins, localStorage). Default: ~/.real-browser-mcp/chrome-profile. Cookies and sessions persist between runs so you don't have to accept cookies every time.
ADBLOCK_ENABLED – Ghostery adblocker is enabled by default (blocks ads and trackers). Set to false or 0 to disable.
# Windows (PowerShell) - visible browser (default)
$env:DOWNLOADS_PATH = "C:\Users\YourName\Downloads"
# Do NOT set HEADLESS to see the website
# For headless (no window, e.g. CI):
$env:HEADLESS = "true"
# Linux/macOS - same logic
export DOWNLOADS_PATH="/home/user/Downloads"
# Omit HEADLESS = visible. export HEADLESS=true = headless
Agent Instructions (prompt.txt)
The prompt.txt file contains system instructions for the agent: when to use the browser proactively, how to research, and how to use memory tools. Add it to your agent's system prompt or Cursor rules so the agent knows how to use the browser tools without being asked.
Usage
Run the MCP server
npm start
# or
node src/index.js
Cursor / VS Code MCP config
Add to your MCP settings (e.g. ~/.cursor/mcp.json or Cursor Settings → MCP):
{
"mcpServers": {
"real-browser": {
"command": "node",
"args": ["E:\\MCP\\real-browser-mcp\\src\\index.js"],
"env": {
"DOWNLOADS_PATH": "C:\\Users\\YourName\\Downloads"
}
}
}
}
Use an absolute path to the project. By default the browser is visible so you can see the website. Only add HEADLESS: "true" to env if you get "Connection closed" errors and have no display.
Available Tools
| Tool | Description |
|---|---|
browser_navigate |
Navigate to a URL |
browser_search |
Search on Google, Bing, or DuckDuckGo |
browser_screenshot |
Take screenshot (saved to DOWNLOADS_PATH) |
browser_evaluate |
Run JavaScript in the page |
browser_get_content |
Get text or HTML from the page |
browser_click |
Click an element (uses human-like click) |
browser_type |
Type text into an input |
browser_fill |
Clear and fill an input |
browser_save_page |
Save page as HTML or MHTML |
browser_wait |
Wait for time or selector |
browser_tabs |
List or switch tabs |
browser_close |
Close the browser |
get_downloads_path |
Get the DOWNLOADS_PATH value |
Example workflow
browser_search– Search for "latest AI news"browser_get_content– Extract search resultsbrowser_click– Click a result linkbrowser_screenshot– Capture the pagebrowser_save_page– Save as HTML for laterbrowser_close– Close when done
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。